Last updated 17 days ago
Was this helpful?
Get all issued api keys for user
/api_keys
curl -L \ --url 'http://api.bytenite.com/v1/auth/api_keys' \ --header 'Authorization: YOUR_API_KEY'
{ "apiKeys": [ { "id": "text", "name": "text", "issuedAt": "2025-02-21T14:43:06.761Z", "expiresAt": "2025-02-21T14:43:06.761Z", "userId": "text", "revoked": true, "fingerprint": "text" } ] }
Revoke an API key
/api_keys/{id}/revoke
curl -L \ --request POST \ --url 'http://api.bytenite.com/v1/auth/api_keys/{id}/revoke' \ --header 'Authorization: YOUR_API_KEY'
{ "ok": true, "requestId": "text", "message": "text", "error": { "code": 1, "message": "text", "description": "text" } }