v1

latestOpenAPI 3.0.02026-07-141,4077,1665.2 MB
Key Management

Get all application keys

List all application keys available for your org

get/api/v2/application_keys

Query parameters

page[size]integer
Example:10

Size for a given page. The maximum allowed value is 100.

page[number]integer

Specific page number to return.

sort'created_at' | '-created_at' | 'last4' | '-last4' | 'name' | '-name'

Sorting options

Application key attribute used to sort results. Sort order is ascending by default. In order to specify a descending sort, prefix the attribute with a minus sign.

filterstring

Filter application keys by the specified string.

filter[created_at][start]string
Example:2020-11-24T18:46:21+00:00

Only include application keys created on or after the specified date.

filter[created_at][end]string
Example:2020-11-24T18:46:21+00:00

Only include application keys created on or before the specified date.

filter[owned_by]string

Filter application keys by owner ID.

includestring
Example:owned_by

Resource path for related resources to include in the response. Only owned_by is supported.

Response

OK

Example response

{
  "data": [
    {
      "attributes": {
        "created_at": "2020-11-23T10:00:00.000Z",
        "last4": "abcd",
        "last_used_at": "2020-12-20T10:00:00.000Z",
        "name": "Application Key for managing dashboards",
        "scopes": [
          "dashboards_read",
          "dashboards_write",
          "dashboards_public_share"
        ]
      },
      "relationships": {
        "owned_by": {
          "data": {
            "id": "00000000-0000-0000-2345-000000000000",
            "type": "users"
          }
        }
      },
      "type": "application_keys"
    }
  ],
  "included": [
    {
      "relationships": {
        "org": {
          "data": {
            "id": "00000000-0000-beef-0000-000000000000",
            "type": "orgs"
          }
        },
        "other_orgs": {
          "data": []
        },
        "other_users": {
          "data": []
        },
        "roles": {
          "data": [
            {
              "id": "3653d3c6-0c75-11ea-ad28-fb5701eabc7d",
              "type": "roles"
            }
          ]
        }
      },
      "type": "users"
    }
  ]
}