Skip to content

Authentication

Request a new token

Request

Generates a new token using client credentials

Bodyapplication/json
tokenobjectrequired
curl -i -X POST \
  https://api.sandbox.congruitcredit.com/v1/tokens \
  -H 'Content-Type: application/json' \
  -d '{
    "token": {
      "client_id": "string",
      "client_secret": "string"
    }
  }'

Responses

Token created

Bodyapplication/json
tokenstringrequired

The Bearer access token

expires_atintegerrequired

Unix epoch timestamp (seconds) when the token expires

expires_inintegerrequired

Number of seconds until the token expires

token_typestringrequired

The type of token (always Bearer)

Response
{ "token": "string", "expires_at": 0, "expires_in": 0, "token_type": "string" }