Skip to main content
POST
Sign in to an OpenCode Server's web UI

Authorizations

Authorization
string
header
required

workspace API token (sk_akua_...) or OAuth2 JWT. Create tokens at https://akua.dev/developers/api-tokens

Headers

akua-context
string

Optional workspace/scope context for the request. Carries a single workspace wire id (ws_…) today. Only needed for broad tokens - a workspace-owned token implies its workspace.

Required string length: 1 - 53
Example:

"ws_j572abc123def456"

Path Parameters

id
string
required

OpenCode Server id (oc_...).

Pattern: ^oc_[a-z0-9]{1,64}$
Example:

"oc_j572abc123def456"

Response

OpenCodeClientToken

url
string
required

The web UI address with a one-time client token in its fragment (#ct=...). Open it in a browser, or set it as an iframe's source; the token is exchanged for a session of that server and never reaches a server log.

expires_at
integer
required

When the token expires unused, in Unix seconds. Tokens live about a minute.