Exchange an authorization grant

Token endpoint. Supports the authorization_code and refresh_token grant types, sent as application/x-www-form-urlencoded. The client_credentials grant is available only to Wingspan-provisioned machine clients that authenticate with private_key_jwt; clients registered through the API cannot use it. The client authenticates with the method it registered (client_secret_basic, client_secret_post, private_key_jwt or none). Errors are returned as OAuth error objects (400, 401 for invalid_client). The response is not cacheable.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Form Data
string
enum
required
Allowed:
string
uri
string
string
string
string
string
uri
string
^(?:[A-Za-z0-9_.]{22}|[a-f0-9]{24})$

Account identifier. Newly created V3 Accounts use a 22-character Wingspan ID; migrated Accounts may retain a 24-character lowercase hexadecimal ID.

string
string
Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json