Parameters

grant_type
string
Required
Description
OAuth 2.0 grant type. Set to `client_credentials`.
client_id
string
Required
Description
The OAuth Client ID obtained from SuperAdmin > Settings > API.
client_secret
string
Required
Description
The OAuth Client Secret obtained from SuperAdmin > Settings > API.
POST/skua/tenant_oauth/token
curl https://skua.tradly.app/skua/tenant_oauth/token \
  -H "Content-Type: application/json" \
  -X POST \
  -d '{
  "grant_type": "client_credentials",
  "client_id": "your-client-id",
  "client_secret": "your-client-secret"
}'
RESPONSE
{
  "status": true,
  "data": {
    "access_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IjEifQ...",
    "token_type": "Bearer",
    "expires_in": 3600
  }
}