DevelopersAPI referenceAuth & accountsMe
Revoke a user API key
Full sessions only.
View as MarkdownAuthorization
bearer AuthorizationBearer <token>
In: header
Path Parameters
kid*string
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X DELETE "https://example.com/v1/me/api-keys/string"{ "message": "string"}Create a user API key
Full sessions only. Returns 200 (not 201) with the key including its show-once secret. workspace_id defaults to the personal workspace; role is ignored for user keys; expires_in_days null = 365, 0 = never.
Workspace switcher list
Every workspace the caller belongs to (personal workspace self-healed first), each with member_count, is_default, and the caller's teams in that workspace. No tools field here — tool access is per active workspace and arrives with the session.