Skip to Content
Presentations.AI
Api

Me

The authenticated principal: who the current API key acts as.

Me

GET
/me

Resolve the API key's user, workspace/project scope, effective permissions, and plan.

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Response Body

Successful Response

application/json
  1. response

Caller identity returned by the API /me endpoint.

user_id*User Id

User the API key acts as.

Formatuuid
email*Email

That user's email.

Formatemail
workspace_id*Workspace Id

Workspace the key belongs to.

Formatuuid
project_id*|

Project the key is limited to; null for workspace-wide keys.

api_key_id*Api Key Id

The calling API key.

Formatuuid
role_at_issuance*WorkspaceRole

User's workspace role when the key was created; later role changes do not affect the key.

Value in"OWNER""ADMIN""MEMBER""GUEST"
scopes*array<string>

Scopes granted to the key at creation.

permissions*array<>

Effective capabilities: scopes intersected with role_at_issuance's permissions.

plan*WorkspacePlan

The workspace's plan, which decides the limits below.

Value in"FREE""BASIC""STUDENT""TEACHER""PRO""GOLD""TEAM""ENTERPRISE""PAI_API_DEVELOPER""PAI_API_STARTER""PAI_API_GROWTH""PAI_API_SCALE"
max_model*DeckGenerationModel

Highest model that POST /decks accepts on this plan; a higher one is a 403 FEATURE_NOT_IN_PLAN.

Value in"STANDARD""PRO""ULTRA"
plan_features*array<>

Features the plan unlocks.

Example Request
curl -X GET 'https://api.presentations.ai/api/v1/me'
Example Response
{  "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",  "email": "user@example.com",  "workspace_id": "0967198e-ec7b-4c6b-b4d3-f71244cadbe9",  "project_id": "405d8375-3514-403b-8c43-83ae74cfe0e9",  "api_key_id": "b0dd218e-3bcf-4bdb-a1e3-0689d60a8afd",  "role_at_issuance": "OWNER",  "scopes": [    "string"  ],  "permissions": [    "workspace.read"  ],  "plan": "FREE",  "max_model": "STANDARD",  "plan_features": [    "EXPORT_PPTX"  ]}