Parameters
grant_type
string
RequiredDescription
OAuth 2.0 grant type. Set to `client_credentials`.
client_id
string
RequiredDescription
The OAuth Client ID obtained from SuperAdmin > Settings > API.
client_secret
string
RequiredDescription
The OAuth Client Secret obtained from SuperAdmin > Settings > API.
POST/skua/tenant_oauth/token
bash
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
json
{
"status": true,
"data": {
"access_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IjEifQ...",
"token_type": "Bearer",
"expires_in": 3600
}
}