POST
/v1/mgmt/accesskey/search

Authorization

AuthorizationRequiredBearer <token>

< Project ID >:< Management Key > as bearer

In: header

Request Body

application/jsonRequired
tenantIdsarray<string>
textstring
sortarray<object>
curl -X POST "https://api.descope.com/v1/mgmt/accesskey/search" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "tenantIds": [
      "string"
    ],
    "text": "string",
    "sort": [
      {
        "field": "string",
        "desc": true
      }
    ]
  }'

OK

{
  "keys": [
    {
      "id": "string",
      "name": "string",
      "roleNames": [
        "string"
      ],
      "keyTenants": [
        {
          "tenantId": "string",
          "roleNames": [
            "string"
          ],
          "tenantName": "string"
        }
      ],
      "status": "string",
      "createdTime": 0,
      "expireTime": 0,
      "createdBy": "string",
      "clientId": "string",
      "boundUserId": "string",
      "customClaims": {},
      "editable": true,
      "description": "string",
      "permittedIps": [
        "string"
      ]
    }
  ]
}

Was this helpful?