Skip to main content
POST
/
v1
/
platform
/
oauth2
/
token
Get partner access token (client credentials)
curl --request POST \
  --url https://sandbox.thredfi.com/v1/platform/oauth2/token/ \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "client_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "grant_type": "client_credentials"
}
'
{
  "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhMWIyYzNkNC01Njc4LTkwYWItY2RlZi0xMjM0NTY3ODkwYWIiLCJpYXQiOjE3MDk4MjEyMDAsImV4cCI6MTcwOTgyNDgwMH0.example",
  "token_type": "Bearer",
  "expires_in": 3600
}

Authorizations

Authorization
string
header
required

Basic authentication for OAuth2 token endpoint. Use partner_uuid:api_key as username:password. Example: Authorization: Basic base64(partner_uuid:api_key)

Body

Serializer for OAuth2 token request

client_id
string<uuid>
required

Partner UUID (same as in Basic Auth username)

grant_type
string
default:client_credentials

Must be 'client_credentials'

Minimum string length: 1

Response

Serializer for OAuth2 token response

access_token
string
required

JWT Bearer token for API authentication

expires_in
integer
required

Token expiration time in seconds

token_type
string
default:Bearer

Token type (always 'Bearer')