Skip to main content
GET
/
keys
List API keys
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.phaseo.app/v1/keys', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "data": [
    {
      "id": "11111111-1111-4111-8111-111111111111",
      "hash": "a3f5b7c9d8e1f23456789abcdeffedcba9876543210fedcba1234567890abcdef",
      "workspace_id": "22222222-2222-4222-8222-222222222222",
      "name": "Analytics Service Key",
      "label": "Analytics Service Key",
      "prefix": "aistats_v1_sk_abcd1234",
      "status": "active",
      "disabled": false,
      "soft_blocked": false,
      "scopes": "[\"chat.completions\",\"responses\"]",
      "created_by": "user_abc123",
      "created_at": "2026-04-28T12:00:00Z",
      "updated_at": "2026-04-28T12:15:00Z",
      "last_used_at": "2026-04-28T12:30:00Z",
      "expires_at": "2027-12-31T23:59:59Z"
    }
  ],
  "total_count": 3
}

Documentation Index

Fetch the complete documentation index at: https://docs.ai-stats.phaseo.app/llms.txt

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

This endpoint requires a management API key. Standard Gateway API keys are not accepted.
Returns API keys for the authenticated workspace with pagination and optional disabled-key filtering.

Authorizations

Authorization
string
header
required

Bearer token authentication

Query Parameters

include_disabled
boolean
default:false

Whether to include paused or soft-blocked keys in the response.

offset
integer
default:0

Number of API keys to skip for pagination.

Required range: x >= 0
limit
integer
default:100

Maximum number of API keys to return.

Required range: 1 <= x <= 250
workspace_id
string<uuid>

Optional workspace override. Must match the authenticated workspace unless using an internal control caller.

Response

API key list

data
object[]
required
total_count
integer
required
Required range: x >= 0
Example:

3

Last modified on April 29, 2026