Obtain an access token - OAuth2
Obtain an OAuth2 access token in order to start using the Centili APIs
To secure our API we use OAuth2 with password flow for all endpoints. Authorization header must always contain a Bearer token obtained using tokenURL. The request obtain the Bearer token needs to be in x-www-form-urlencoded format.
Obtaining token URL for authorization
POST
https://auth-capi.centili.com/realms/api/protocol/openid-connect/token
Parameters
Parameter | Description | Type |
---|---|---|
client_id | Name of the client | string |
grant_type | Name of the flow: 'password' when obtaining a token using username and password, 'refresh_token' when refreshing an existing token | string |
username | Your username, required when obtaining tokens via password flow. | string |
password | Your password, required when obtaining tokens via password flow. | string |
refresh_token | Your refresh token, required when obtaining tokens via refresh token flow. | string |
client_secret | Additional security parameter, provided to you by Centili team. | string |
Updated over 1 year ago