Honor app_id.

Validate provided app_id. Return status code 400 when invalid.