API Reference

Auth

OAuth 2.0 client-credentials token exchange — obtain a Bearer token to authenticate all subsequent requests.

Request access token

POST
/oauth/token

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://demo-co.ldg-stg.one/api/v2/oauth/token" \  -H "Content-Type: application/json" \  -d '{    "grant_type": "client_credentials",    "client_id": "hub-client-001",    "client_secret": "s3cr3t"  }'
{
  "access_token": "eyJhbGciOiJFZERTQSJ9.eyJzdWIiOiJodWItY2xpZW50LTAwMSJ9.abc123",
  "expires_in": 3600
}
{
  "error": {
    "code": "unauthorized",
    "message": "Bearer token is missing or expired"
  }
}

On this page

No Headings