v3

latestSwagger 2.02026-08-067506752.0 MB
oauth

Return a view-as token

post/oauth/token/view

Request body

orgIdstring required

org id

personIdstring

person id

userIdstring

user id

roleIdstring

role id

scopestring required

scope being requested

Example request

{
  "orgId": "588f7ee98f138b19220041a7",
  "personId": "588f7ee98f138b19220041a7",
  "userId": "588f7ee98f138b19220041a7",
  "roleId": "588f7ee98f138b19220041a7"
}

Response

successful operation

access_tokenstring required

access token value

token_typestring

access token type

expires_ininteger required

expiration time of token, in seconds

refresh_tokenstring

refresh token value

scopestring

scope of the access token

redirect_uristring

redirect uri of the access token

Example response

{
  "access_token": "2YotnFZFEjr1zCsicMWsdv",
  "token_type": "bearer",
  "refresh_token": "tGzv3JOkF0XG5Qx2TlKWIA",
  "scope": "admin",
  "redirect_uri": "com.charthop.mobile://oauth"
}