API Keys
Learn how to create API keys:
Get all issued api keys for user
A successful response.
Returned when the users sends a malformed request.
Returned when the user is not authenticated.
Returned when the user does not have permission to access the resource.
Returned when the resource does not exist.
Returned when an error on the server occurred.
Returned when the resource is temporarily unavailable.
An unexpected error response.
GET /v1/auth/api_keys HTTP/1.1
Host: api.bytenite.com
Authorization: YOUR_API_KEY
Accept: */*
{
"apiKeys": [
{
"id": "acc2e66f-fa31-4e73-9c49-eedee36fcf32",
"name": "My API key",
"issuedAt": "2025-08-08T10:14:09.277Z",
"expiresAt": "2025-08-08T10:14:09.277Z",
"userId": "acc2e66f-fa31-4e73-9c49-eedee36fcf32",
"revoked": true,
"fingerprint": "text"
}
]
}
Revoke an API key
A successful response.
Returned when the users sends a malformed request.
Returned when the user is not authenticated.
Returned when the user does not have permission to access the resource.
Returned when the resource does not exist.
Returned when an error on the server occurred.
Returned when the resource is temporarily unavailable.
An unexpected error response.
POST /v1/auth/api_keys/{id}/revoke HTTP/1.1
Host: api.bytenite.com
Authorization: YOUR_API_KEY
Accept: */*
{
"ok": false,
"requestId": "xyz-123",
"message": "Request failed",
"error": {
"code": 404,
"message": "Not Found",
"description": "The requested resource was not found"
}
}
Last updated
Was this helpful?