okaeDocs
APIExperimental

API reference · v1

Show the current API session

GET
/api/v1/auth/session

Returns session identity, workspace and expiry without querying GitHub. Repository operations verify live authority separately.

Authorization

apiSession
AuthorizationBearer <token>

Owner credential for a single workspace. Expires after seven days or on revocation.

In: header

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/api/v1/auth/session"
{  "user": {    "id": "c6d39605-0b59-4761-8f57-d69c3911dde5",    "login": "octo-owner",    "display_name": "Octo Owner"  },  "workspace": {    "id": "befd47ea-81e8-4413-9684-54493256f63c",    "name": "octo-example"  },  "expires_at": "2026-11-17T10:00:00Z"}