API Keys

Learn how to create API keys:


Generic information about user

get

Get all issued api keys for user

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Your ByteNite access token

Responses
200

A successful response.

get
/api_keys
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-11-23T01:41:10.754Z",
      "expiresAt": "2025-11-23T01:41:10.754Z",
      "userId": "acc2e66f-fa31-4e73-9c49-eedee36fcf32",
      "revoked": true,
      "fingerprint": "text"
    }
  ]
}


Revoke an API key

post

Revoke an API key

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Your ByteNite access token

Path parameters
idstringRequired
Responses
200

A successful response.

post
/api_keys/{id}/revoke
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?