API Keys
Learn how to create API keys:
Get all issued api keys for user
Authorizations
Responses
200
A successful response.
400
Returned when the users sends a malformed request.
401
Returned when the user is not authenticated.
403
Returned when the user does not have permission to access the resource.
404
Returned when the resource does not exist.
500
Returned when an error on the server occurred.
503
Returned when the resource is temporarily unavailable.
default
An unexpected error response.
get
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-06-24T20:43:58.697Z",
"expiresAt": "2025-06-24T20:43:58.697Z",
"userId": "acc2e66f-fa31-4e73-9c49-eedee36fcf32",
"revoked": true,
"fingerprint": "text"
}
]
}
Revoke an API key
Authorizations
Path parameters
idanyRequired
Responses
200
A successful response.
400
Returned when the users sends a malformed request.
401
Returned when the user is not authenticated.
403
Returned when the user does not have permission to access the resource.
404
Returned when the resource does not exist.
500
Returned when an error on the server occurred.
503
Returned when the resource is temporarily unavailable.
default
An unexpected error response.
post
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?