Endpoints
Verify key
POST
Headers
your workspace API key
Body
application/json
API ID from your dashboard
Example:
"{api_id}"
The generated API key
Example:
"key_xxxxxxxxxxxxxxxx"
Response
200
application/json
OK
Whether the key is valid or not. A key could be invalid for a number of reasons, for example if it has expired or has no more verifications left
Example:
true
If the key status is false
this field will be set to the reason why it is invalid.
Possible values are:
- USAGE_EXCEEDED: the key has exceeded its validation limit
- EXPIRED: the key has expired,
Available options:
EXPIRED
, USAGE_EXCEEDED
The ID of the API the key belongs to
Example:
"{api_id}"
The name assigned to the key
Example:
"{api_name}"
The prefix assigned to the key
Example:
"prefix"
The length assigned to the key
Required range:
16 <= x <= 255
extra details you passed via the meta attribute
Example:
{ "user_id": "123456" }
Unix timestamp of when the key expires, returns null
when not set
maximum verification allowed for this key, returns null
when not set