Last updated 6 days ago
Was this helpful?
Learn how to create API keys:
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" } }
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": "acc2e66f-fa31-4e73-9c49-eedee36fcf32", "name": "My API key", "issuedAt": "2025-03-15T21:33:35.291Z", "expiresAt": "2025-03-15T21:33:35.291Z", "userId": "acc2e66f-fa31-4e73-9c49-eedee36fcf32", "revoked": true, "fingerprint": "text" } ] }