APIExperimental
API reference · v1
Show the current API 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"}Exchange the authorisation code POST
A native client exchanges a single-use, five-minute code bound to its PKCE challenge, callback URI, owner and workspace. Store the credential securely and send it as `Authorization: Bearer <token>` on API requests.
Revoke the current API session POST
Invalidate the bearer credential used for this request. Owners can also revoke sessions through the dashboard.