Improved

App partners: Generate Access Token now returns JSON errors

Every error from Generate Access Token is now a standard OAuth 2.0 JSON object, sent as application/json:

{
  "error": "invalid_request",
  "error_description": "No value for field: \"redirect_uri\" provided."
}

Before, most errors were plain text or wrapped JSON that a parser couldn't read. Status codes haven't changed. If your code searched the body for a value like invalid_client, it still works. If it read message or path from the old error for a missing field, read error_description instead.

The page now lists every error: 400 for a missing field, a malformed body, wrong client credentials, an invalid code or an archived app; 404 when no app is registered for the client_id; 500; and 503, which you can retry with backoff. The full table is in Errors.

The 200 response now has a schema and a valid example: access_token and token_type (bearer).