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.

mesa.whoami() calls the API once, caches the result, and also populates the client’s default organization.
identity = await mesa.whoami()
print(identity.org.slug)
print(identity.key_id)

Options

This method does not take options.

Response

Returns the generated WhoamiResponse200 model.
org
object
Organization associated with the authenticated key.
key_id
str
Identifier of the API key used for the request.

Errors

Raises AuthenticationError for invalid API keys and other ApiError subclasses for non-2xx responses.