API ReferenceManagementThird Party Apps
POST
/v1/mgmt/thirdparty/consents/search

Search third party applications consents, using a valid management key.

Endpoint Authentication

Use authorization bearer header with the following format:

Authorization: Bearer \<ProjectId:ManagementKey\>

Try it

/v1/mgmt/thirdparty/consents/search

The Authorization access token

Authorization

Authorization
Required
Bearer <token>

< Project ID >:< Management Key > as bearer

In: header

Request Body

appIdstring

userIdstring

consentIdstring

pageinteger

Page number starting with 0 for the first page

Format: "int32"

tenantIdstring

Status codeDescription
200OK
curl -X POST "https://api.descope.com/v1/mgmt/thirdparty/consents/search" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <ProjectId:ManagementKey>" \
  -d '{
  "appId": "string",
  "userId": "string",
  "consentId": "string",
  "page": 0,
  "tenantId": "string"
}'

{
  "consents": [
    {
      "id": "string",
      "appId": "string",
      "userId": "string",
      "scopes": [
        "string"
      ],
      "grantedBy": "string",
      "createdTime": 0,
      "tenantId": "string"
    }
  ],
  "total": 0
}

Was this helpful?