Mint Space Embed Token

View as Markdown

Mint a short-lived (~1h) embed token scoped to this space, so the grounding surface can render AND edit its output in a browser without the org API key. Requires space:read. Returns { token, expiresAt }; send it as a Bearer to this space’s file-detail, run-result, and doc-edit routes.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

spaceIdstringRequired

Response

A minted embed token and its expiry.
tokenstring
Send as a Bearer token. Scoped to this one space.
expiresAtdatetime
Roughly one hour out.

Errors

503
Service Unavailable Error