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.

Fetch the authenticated key, scopes, and default organization.
const identity = await mesa.whoami();

console.log(identity.org.slug);
console.log(identity.scopes);

Options

This method does not accept options.

Response

org
object
Organization object with id, slug, and name.
key_id
string | null
Current API key ID, or null when unavailable.
key_name
string | null
Current API key name, or null when unavailable.
scopes
string[]
Scopes granted to the current key.

Required scope

Any valid API key.