app-gateway

Mint a per-user app session token for a login-required deep-agent artifact

Mints a per-user app token for the signed-in viewer opening a login-required deep-agent artifact. Authed as the b3 user; the viewer's id + active org come from the auth context, not the body. The server resolves the artifact's org from the :appId (deep-agent run id), verifies the workflow is in it and the viewer is acting within it, then signs a token carrying the viewer's id.

post/v1/app-gateway/{appId}/session

Request

  • Base URL
    https://api.b3os.org (the document declares no server; this is the origin it was published from)
  • URL
    https://api.b3os.org/v1/app-gateway/{appId}/session
  • Auth
    none declared

Path parameters

appIdstring required

Deep-agent run id (app id)

Request body

object required
OR

Response

OK

expstring
tokenstring

Changes

No recorded changes to this operation across all 2 revisions of this API.