Skip to main content
GET
Inspect the metadata, granted scopes, and live USD spend-limit state of the calling API key. Use this endpoint for health checks, verifying key permissions on startup, or monitoring remaining per-key budget before hitting a 402.

Authentication

Accepts any valid long-lived Classic or Scoped Fish Audio API key (Authorization: Bearer <sk-fish-...>). No extra scope is required.
  • One-time ek-fish- ephemeral tokens and web session tokens are rejected with 401.
  • Responses include Cache-Control: no-store.
  • When a spend limit is configured, spend_current_usd and spend_remaining_usd are returned as unscaled decimal strings (parse as decimals). Both return null when no spend limit is configured or during billing maintenance.

Errors

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

Request fulfilled, document follows

Self-introspection payload returned by GET /apikey/self (FISH-2376).

_id
string
required
name
string | null
required
masked_key
string
required
team_id
string
required
key_type
enum<string>
required
Available options:
classic,
scoped
created_at
string<date-time> | null
required
expires_at
string<date-time> | null
required
scopes
string[]

Explicit scopes stored on the key (empty for classic keys).

effective_scopes
string[]

Effective capabilities of this key: explicit scopes for scoped keys, or the implicit classic capability set for classic keys.

spend_limit_usd
string | null
spend_limit_reset
enum<string> | null
Available options:
daily,
weekly,
monthly,
never
spend_current_usd
string | null
spend_remaining_usd
string | null
spend_resets_at
string<date-time> | null
spend_limit_exceeded
boolean
default:false