Error Messages: /oauth2/token

Every request to POST /v1/oauth2/token that returns HTTP 400, with the error key and the message for each case.

This page lists the requests to POST /v1/oauth2/token that return HTTP 400, with the error key and the message for each case. The endpoint is documented on Authentication. The conventions for these tables and the errors that several endpoints share are on Error Messages by Endpoint.


TriggerFormatError keyMessage
appKey missing, null, or emptyAAppKeyThe AppKey field is required.
appSecret missing, null, or emptyAAppSecretThe AppSecret field is required.
Empty or null bodyA""A non-empty request body is required.
Empty or null bodyAcommandThe command field is required.
Unknown appKey, or appSecret does not matchB""please check your keys
appSecret is not in a valid formatB""Keys validation failed either AppKey or AppSecret is invalid

Invalid credentials return 400, not 401. An empty or null body returns both the "" and command errors in one response.


Did this page help you?