Get an access token
POST/oauth/token
Get an access token
Request
Header Parameters
x-trackingid uuid
A recommended tracking ID that can be supplied to Pexip support to troubleshoot a request.
user-agent string
A recommended User Agent that can be used by Pexip to identify the client sending the request.
- application/x-www-form-urlencoded
Body
required
grant_type stringrequired
Default value: client_credentials
Type of OAuth flow. Only client_credentials is supported.
Responses
- 200
- 401
Success response containing the access token and associated metadata.
- application/json
- Schema
- Example (from schema)
Schema
access_token string
Access token
token_type string
Possible values: [bearer
]
Type of access token
expires_in integer
Number of seconds the token is valid for
{
"access_token": "string",
"token_type": "bearer",
"expires_in": 3600
}
Unauthorized
Loading...