GET
/
v1
/
keys.getVerifications
curl --request GET \
  --url https://api.unkey.dev/v1/keys.getVerifications \
  --header 'Authorization: Bearer <token>'
{
  "verifications": [
    {
      "time": 1620000000000,
      "success": 100,
      "rateLimited": 10,
      "usageExceeded": 0
    }
  ]
}

Changelog

DateChanges
Jan 08 2024Introduced endpoint

Authorizations

Authorization
string
header
required

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

Query Parameters

keyId
string

The id of the key to fetch, either keyId or ownerId must be provided

Example:

"key_1234"

ownerId
string

The owner id to fetch keys for, either keyId or ownerId must be provided

Example:

"chronark"

start
integer | null

The start of the period to fetch usage for as unix milliseconds timestamp, defaults to 24h ago.

Example:

1620000000000

end
integer | null

The end of the period to fetch usage for as unix milliseconds timestamp, defaults to now.

Example:

1620000000000

granularity
enum<string>
default:
day

The granularity of the usage data to fetch, currently only day is supported

Available options:
day
Example:

"day"

Response

200
application/json
Usage numbers over time
verifications
object[]
required