Skip to main content
GET
/
api
/
keys
List API Keys
curl --request GET \
  --url https://encrata.com/api/keys \
  --header 'Authorization: Bearer <token>'
{
  "keys": [
    {
      "id": "key_abc123",
      "name": "Production",
      "key_preview": "...x9f2",
      "created_at": "2024-01-15T10:00:00Z",
      "last_used": "2024-03-01T14:30:00Z",
      "total_requests": 1250,
      "credits_used": 980
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.encrata.com/llms.txt

Use this file to discover all available pages before exploring further.

Authentication

Requires an API key in the Authorization header.
Authorization: Bearer YOUR_API_KEY

Request

No request body required.

Example request

curl https://encrata.com/api/keys \
  -H "Authorization: Bearer YOUR_API_KEY"

Response

Returns an array of API key objects.
keys
array

Example response

{
  "keys": [
    {
      "id": "key_abc123",
      "name": "Production",
      "key_preview": "...x9f2",
      "created_at": "2024-01-15T10:00:00Z",
      "last_used": "2024-03-01T14:30:00Z",
      "total_requests": 1250,
      "credits_used": 980
    }
  ]
}
{
  "keys": [
    {
      "id": "key_abc123",
      "name": "Production",
      "key_preview": "...x9f2",
      "created_at": "2024-01-15T10:00:00Z",
      "last_used": "2024-03-01T14:30:00Z",
      "total_requests": 1250,
      "credits_used": 980
    }
  ]
}