Skip to main content
POST
/
realms
/
api
/
protocol
/
openid-connect
/
token
cURL
curl --request POST \
  --url https://account.belio.co.ke/realms/api/protocol/openid-connect/token \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data 'client_id=<string>' \
  --data 'client_secret=<string>' \
  --data grant_type=client_credentials
{
  "access_token": "<string>",
  "expires_in": 123,
  "refresh_expires_in": 0,
  "token_type": "Bearer",
  "not-before-policy": 0,
  "scope": "mobilize.service.list mobilize.sms.send.oneway mobilize.bundle.list"
}

Body

application/x-www-form-urlencoded

Client authentication details

client_id
string
required

The client identifier

client_secret
string
required

The client secret

grant_type
enum<string>
default:client_credentials
required
Available options:
client_credentials

Response

Successful token response

access_token
string

The access token. This is used as a bearer token in the Authorization header of requests to the API.

expires_in
integer

Lifetime of the access token in seconds

refresh_expires_in
integer
default:0

Lifetime of the refresh token in seconds

token_type
enum<string>

Type of the token

Available options:
Bearer
not-before-policy
integer
default:0

Not Before Policy time

scope
string
default:mobilize.service.list mobilize.sms.send.oneway mobilize.bundle.list

Scopes associated with the token

I