v2

latestOpenAPI 3.1.02026-08-06714865.6 KB

Whoami Endpoint

Return the authenticated user and token-selected org, if any.

Same JWT shape as /api/auth/me — accessible from the CLI via the Bearer access_token issued by /oauth/token. Used both as codag whoami and as the post-login validation step in codag setup.

get/v1/whoami

Response

Successful Response

user_idinteger required
emailstring required
namestring nullable
org_idstring nullable
org_namestring nullable
org_slugstring nullable
rolestring nullable