Auth

Get current user info

Get information about the current user based on the API key.

get/whoami

Request

  • Base URL
    https://api.mosaic.so
  • URL
    https://api.mosaic.so/whoami
  • Auth
    • HTTP bearer
    • or API key in header X-API-Key

Response

User information retrieved successfully

user_idstring

Unique identifier for the user

emailstring nullable

User's email address

is_adminboolean

Whether the user has admin privileges

api_key_idstring

ID of the API key used for the request

created_atstring date-time nullable

When the API key was created

last_used_atstring date-time nullable

When the API key was last used

scopesstring[] nullable

Explicit API key scopes. null means full organization access; [] grants no entity permissions. Read and write scopes are independent.

Example response

{
  "scopes": [
    "agents:read",
    "agent_runs:read",
    "triggers:read"
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.