Request a temporary access token to make authenticated API requests to Cloud Identity Portal administration.
Request
POST /GmaApi/oauth/token
Example cURL request
# curl -v -X POST
https://hostname/GmaApi/oauth/token -d
"client_id=client-12345-12345&client_secret=secret-12345-
12345&grant_type=client_credentials"
Resource
URI
https://hostname/GmaApi/oauth/token
Request parameters
Table 1. Request parameters
| Parameter |
Type |
Required |
Description |
| client_id |
String |
Yes |
Your client ID. |
| client_secret |
String |
Yes |
Your client secret. |
| grant_type |
String |
Yes |
The access grant type. The value of grant_type is
client_credentials. No other grant type is supported. |
Example response
{"access_token":
"644d0ac0-908f-485a-ac8d-b5bb99f200d7" "token_type":"bearer", "expires_in":3599}
Response parameters
Table 2. Response parameters
| Parameter |
Description |
| access_token |
The access token value. |
| token_type |
The access token type is bearer, giving access to the bearer
of the token. |
| expires_in |
The time in seconds the token is valid for. |