get api access token
POST/public/apiClient/accessToken
Get the Bearer Access Token by giving the Suger API Client ID & Client Secret.
Request
- application/json
Body
required
Suger API Client
id stringrequired
The ID of the API Client.
organizationID stringrequired
secret stringrequired
The secret of the API Client.
Responses
- 200
- 400
- 500
OK
- application/json
- Schema
- Example (from schema)
Schema
access_token string
expires_in integer
Default value: 3600
The token expires in 1 hour
expires_on date-time
The UTC timestamp when the token expires
token_type string
Default value: Bearer
{
"access_token": "string",
"expires_in": 3600,
"expires_on": "2024-07-29T15:51:28.071Z",
"token_type": "Bearer"
}
Bad request error
- application/json
- Schema
Schema
string
Internal server error
- application/json
- Schema
Schema
string
Loading...