Account
Modified on: 2024-10-08 17:56
Overview
Token Obtain&Refresh
This endpoint allows clients to obtain an access token using the client credentials grant type.
Your PMS needs to call this API at least once every 90 days to obtain a new bearer token.
POST /pcapigateway/account/token HTTP/1.1 Authorization: Basic ZGVtbzpkZW1vMTIz Accept-Encoding: gzip Content-Encoding: gzip Content-Type: application/json;charset=utf-8
Request Header
Element | Type | Occurrence | Description |
Authorization | String | Mandatory | Basic authentication following RFC7617. Means combine your client_id(account_id) and client_secret using ":" and encrypt the whole string using Base64 |
Basic Header Build Tool
Response Schema
Element | Type | Occurrence | Description | Comment |
accessToken | String | Mandatory | Access token issued by the authorization server. After a new access token is applied, all old access tokens will expire immediately | |
tokenType | String | Mandatory | The type of the token. Typically "Bearer". |
Example 1.1 - Refresh Token
Response
{ "accessToken": "string", "tokenType": "Bearer" }
Did you find it helpful? Yes No
Send feedbackSorry we couldn't be helpful. Help us improve this article with your feedback.