Skip to main content
TroopyDocs
Open Troopy
Troopy

API reference / Account

Who am I

The person the API key belongs to, their organization and role, the key's workspace, and its scopes. Use it to check a key works.

get/api/v1/me

Authorization

HeaderAuthorization: Bearer <API key>
Or the headerX-API-Key: <API key>
API keyMake one in Troopy under Settings > API keys. It acts as you, in its workspace.
ScopesAny valid key

Other ways to call it

CLItroopy whoami
MCP tooltroopy_whoami
Rate limit120 calls in 60 seconds, for each key

Response

200 · application/json
data*object
4 properties
user*object
3 properties
id*string

A 24-character id

name*string
email*string
organization*object
3 properties
id*string

A 24-character id

name*string
role*enum<string>

Role in the organization. Owners and admins reach every workspace in it, and manage its people. A member reaches only the workspaces that someone invited it into

owneradminmember

workspace*object
2 properties
id*string

A 24-character id

name*string
auth*object
2 properties
type*enum<string>

api_keysessionoauthagent

scopes*array<string>

Errors

401 unauthorizedSend an API key as `Authorization: Bearer tr_live_...`. Create one in Troopy under Settings.
403 forbiddenThe key lacks a scope this operation needs, or its owner lacks the role. detail says which; create a key with the scope, or ask an organization owner or admin.
429 rate_limitedWait the number of seconds in Retry-After, then retry.