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/meOther ways to call it
CLI
troopy whoamiMCP tool
troopy_whoamiRate limit120 calls in 60 seconds, for each key
Response
200 · application/jsondata*object4 properties
user*object3 properties
id*stringA 24-character id
name*stringemail*stringorganization*object3 properties
id*stringA 24-character id
name*stringrole*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*object2 properties
id*stringA 24-character id
name*stringauth*object2 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.