POST
/v1/mgmt/outbound/app/user/token

Fetch outbound application user token, using a valid management key.

Endpoint Authentication

Use authorization bearer header with the following format:

Authorization: Bearer \<ProjectId:ManagementKey\>

Try it

/v1/mgmt/outbound/app/user/token

The Authorization access token

Authorization

Authorization
Required
Bearer <token>

< Project ID >:< Management Key > as bearer

In: header

Request Body

appIdstring

userIdstring

scopesarray<string>

optionsobject

Status codeDescription
200OK
curl -X POST "https://api.descope.com/v1/mgmt/outbound/app/user/token" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <ProjectId:ManagementKey>" \
  -d '{
  "appId": "string",
  "userId": "string",
  "scopes": [
    "string"
  ],
  "options": {
    "withRefreshToken": true,
    "forceRefresh": true
  }
}'

{
  "token": {
    "id": "string",
    "appId": "string",
    "userId": "string",
    "tokenSub": "string",
    "accessToken": "string",
    "accessTokenType": "string",
    "accessTokenExpiry": "string",
    "hasRefreshToken": true,
    "refreshToken": "string",
    "lastRefreshTime": "string",
    "lastRefreshError": "string",
    "scopes": [
      "string"
    ]
  }
}

Was this helpful?