Skip to Content
Xeonr Developer Docs

List API Keys

POST
/xeonr.auth.api.v1.ApiKeysService/ListApiKeys

Lists the application's keys for an owner, or the keys owned by or bound to a resource. Revoked keys are included only on request.

Service accounts only.

Required scopes: auth:api-keys:manage

Authorization

AuthorizationBearer <token>

JWT access token obtained via OAuth2 flow or service account

In: header

Header Parameters

Connect-Protocol-Version?number

Define the version of the Connect protocol

Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

owner?

Keys of this owner. Either owner or resource_type+resource_id is required.

resourceType?string

Keys owned by, or bound to, this resource.

Lengthlength <= 128
resourceId?string
Lengthlength <= 255
includeRevoked?boolean
pageSize?integer
Formatint32
Range0 <= value <= 200
pageToken?string
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://auth.xeonr.io/xeonr.auth.api.v1.ApiKeysService/ListApiKeys" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "keys": [
    {
      "keyId": "urn:xeonr:auth:api-key:7e0c1e52-3a0d-4a0a-9b2e-2f0f7a1b9c3d",
      "name": "string",
      "description": "string",
      "keyPrefix": "string",
      "applicationId": "string",
      "applicationSlug": "string",
      "applicationName": "string",
      "owner": {
        "kind": "API_KEY_OWNER_KIND_UNSPECIFIED",
        "urn": "urn:xeonr:auth:team:0f3c9a2e-8f1b-4c2d-9e6a-1b2c3d4e5f60",
        "resourceType": "bucket",
        "resourceId": "bkt_01J9W3E8Q9"
      },
      "subject": "string",
      "identityless": true,
      "scopes": [
        "string"
      ],
      "effectiveScopes": [
        "string"
      ],
      "resourceMode": "API_KEY_RESOURCE_MODE_UNSPECIFIED",
      "bindings": [
        {
          "resourceType": "string",
          "resourceId": "string",
          "scopes": [
            "string"
          ],
          "effectiveScopes": [
            "string"
          ],
          "label": "string"
        }
      ],
      "attributes": {
        "property1": {},
        "property2": {}
      },
      "expiresAt": "2023-01-15T01:30:15.01Z",
      "lastUsedAt": "2023-01-15T01:30:15.01Z",
      "revokedAt": "2023-01-15T01:30:15.01Z",
      "createdAt": "2023-01-15T01:30:15.01Z",
      "updatedAt": "2023-01-15T01:30:15.01Z",
      "createdBy": "string",
      "assertedBy": "string",
      "version": "string",
      "legacyPrefix": "string"
    }
  ],
  "nextPageToken": "string",
  "total": 0
}