GET
/
users
/
{userId}
/
apikeys
curl --request GET \
  --url https://api.sulu.sh/v0/users/{userId}/apikeys \
  --header 'Authorization: Bearer <token>'
{
  "apiKeys": [
    {
      "key": "<string>",
      "principals": [
        {
          "id": "<string>",
          "organizationId": "<string>"
        }
      ],
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "expiresAt": "2023-11-07T05:31:56Z"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

userId
string
required

Unique identifier for a user

Response

200
application/json
List of user's API keys
apiKeys
object[]