1.1.5. Token

POST /token

Obtain a bearer token.

Obtain a JWT for interacting with this API.

Example request:

POST /token HTTP/1.1
Host: example.com
Content-Type: application/json

{
    "client_id": "string",
    "client_secret": "string"
}
Status Codes
  • 200 OK

    A bearer token that can be used to make calls to other endpoints in this API.

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    {
        "token": "string",
        "token_type": "string"
    }
    

  • 400 Bad Request

    No credentials supplied

    Example response:

    HTTP/1.1 400 Bad Request
    Content-Type: application/json
    
    {}
    

  • 401 Unauthorized

    Bad credentials

    Example response:

    HTTP/1.1 401 Unauthorized
    Content-Type: application/json
    
    {}