Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.mesa.dev/llms.txt

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

List API keys visible to the caller. Secret key values are never returned.
const keys = await mesa.apiKeys.list();

for (const key of keys.api_keys) {
  console.log(key.id, key.name, key.scopes);
}

Options

org
string | undefined
Organization override.

Response

next_cursor
string | null
Cursor for the next page, or null when no more results remain.
has_more
boolean
Whether another page is available.
api_keys
array
API key summaries. Includes fields such as id, name, scopes, repo_ids, tags, last_used_at, expires_at, revoked_at, and created_at.

Required scope

admin

Raw filters

The high-level method currently accepts only org. Use mesa.raw.listApiKeys(...) for generated filters such as query, status, scope, repo_id, cursor, and limit.