Skip to main content
GET
/
v1
/
api_keys
List
curl --request GET \
  --url https://api.incident.io/v1/api_keys \
  --header 'Authorization: Bearer <token>'
{
  "api_keys": [
    {
      "created_at": "2021-08-17T13:28:57.801578Z",
      "creator": {
        "api_key": {
          "id": "01FCNDV6P870EA6S7TK1DSYDG0",
          "name": "My test API key"
        },
        "user": {
          "email": "lisa@incident.io",
          "id": "01FCNDV6P870EA6S7TK1DSYDG0",
          "name": "Lisa Karlin Curtis",
          "role": "viewer",
          "slack_user_id": "U02AYNF2XJM"
        }
      },
      "id": "01FCNDV6P870EA6S7TK1DSYDG0",
      "name": "My test API key",
      "roles": [
        {
          "description": "Can create incidents",
          "name": "viewer"
        }
      ],
      "team_ids": [
        "01FCNDV6P870EA6S7TK1DSYDG0"
      ],
      "team_roles": [
        {
          "description": "Can read schedules",
          "name": "schedules_editor"
        }
      ],
      "token_last_issued_at": "2021-08-17T13:28:57.801578Z"
    }
  ],
  "pagination_meta": {
    "after": "01FCNDV6P870EA6S7TK1DSYDG0",
    "page_size": 25
  }
}

Authorizations

Authorization
string
header
required

API key from your incident.io dashboard (Settings → API keys)

Query Parameters

page_size
integer<int64>
default:25

Integer number of records to return

Required range: x <= 250
Example:

25

after
string

An record's ID. This endpoint will return a list of records after this ID in relation to the API response order.

Example:

"01FDAG4SAP5TYPT98WGR2N7W91"

Response

200 - application/json

OK response.

api_keys
object[]
required
Example:
[
{
"created_at": "2021-08-17T13:28:57.801578Z",
"creator": {
"api_key": {
"id": "01FCNDV6P870EA6S7TK1DSYDG0",
"name": "My test API key"
},
"user": {
"email": "lisa@incident.io",
"id": "01FCNDV6P870EA6S7TK1DSYDG0",
"name": "Lisa Karlin Curtis",
"role": "viewer",
"slack_user_id": "U02AYNF2XJM"
}
},
"id": "01FCNDV6P870EA6S7TK1DSYDG0",
"name": "My test API key",
"roles": [
{
"description": "Can create incidents",
"name": "viewer"
}
],
"team_ids": ["01FCNDV6P870EA6S7TK1DSYDG0"],
"team_roles": [
{
"description": "Can read schedules",
"name": "schedules_editor"
}
],
"token_last_issued_at": "2021-08-17T13:28:57.801578Z"
}
]
pagination_meta
object
required
Example:
{
"after": "01FCNDV6P870EA6S7TK1DSYDG0",
"page_size": 25
}