cURL
curl --request POST \ --url https://prod.oneloop.ai/api/v1/api-key/verify \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "key": "<string>", "requestedScopes": [ { "representation": "<string>", "create": true, "read": true, "update": true, "del": true, "id": "<string>" } ], "route": "<string>", "billing": { "usage": "0", "usageName": "<string>" }, "rateLimitConfig": { "id": "<string>", "limit": 1 } } '
{ "apiKeyId": "<string>", "expiresAt": 1, "requestedScopes": [ { "representation": "<string>", "create": true, "read": true, "update": true, "del": true, "id": "<string>" } ], "status": "VALID", "billing": { "id": "<string>", "totalCredits": "<string>", "usedCredits": "<string>", "allowOverages": true, "spendCap": "<string>", "createdAt": "<string>", "updatedAt": "<string>" }, "externalMeterId": "<string>", "customerId": "<string>", "scopes": [ { "representation": "<string>", "create": true, "read": true, "update": true, "del": true, "id": "<string>" } ], "rateLimit": { "remaining": 123, "resetAt": 123 }, "metadata": {} }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Show child attributes
x > 0
The verification result
VALID
EXPIRED
DISABLED
DELETED
RATE_LIMITED
USAGE_LIMITED
INVALID_SCOPES
INVALID