Request an auth token

Request an authentication token to access private Liquidity Hub API endpoints.

Request
Request Body schema: application/json
clientId
required
string

The client ID associated with a specific set of API credentials. The client ID must be 32 characters long.

clientSecret
required
string

The client secret associated with a specific set of API credentials. The client secret must be 64 characters long.

Responses
200
400

Bad request

401

Unauthorized

403

Forbidden

404

Not found

500

Internal server error

post/oauth/token
Request samples
application/json
{
  • "clientId": "vTRUNYZoYuk0zsQq1Bs09lliKKriqWNn",
  • "clientSecret": "wwkNBXm_y2cqYSVdNkhfCcYhbsyczx4c1RfSX8MmOuJwdT1_9ejPXFVFIK0cH1w3"
}
Response samples
application/json
{
  • "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c",
  • "expiresIn": 300,
  • "tokenType": "Bearer",
  • "scope": "resource_one:read resource_one:write resource_two:read"
}