Mint an embedded-surface session (human session only)
Issues the access token a workspace shell hands to this app's embedded surface: the app's declared surface.scopes, the caller's workspace role as the token's role claim, a lifetime of minutes and NO refresh token. Machine callers are 403; 409 when the workspace holds no installed app with a bound OAuth client, or the app has no published version. The Apps guard caps such a token at min(scope tier, role tier), so it can never outrank the person who opened it.
Request
- Base URLhttps://api.talonic.com
- AuthHTTP bearer
Path parameters
Response
Session issued.
A short-lived OAuth access token a workspace shell hands to an app's embedded surface (docs/APPS-SPEC.md). No refresh token is issued: the shell calls the route again to renew.
OAuth 2.1 access token, aud talonic:public-api. Its claims carry the same role and tier reported below, so a surface reached through the redirect flow reads the tier off the token itself.
Lifetime in seconds (apps.embedded_session_ttl_seconds).
The app's declared surface.scopes, narrowed to the pre-consentable set.
The caller's client role in the workspace, carried on the token as the role claim.
The Apps tier this token actually reaches: min(scope tier, role tier). A surface hides controls above it rather than discovering the 403.
Absolute API origin the surface calls back into (API_URL, else this request origin).
The install's surface URL - what the shell frames.
The install's one allowed browser origin: the shell's postMessage target and the only origin it accepts messages from. Carried here because the install row itself is readable only by an owner, and any member may open a surface.
Changes
No recorded changes to this operation across all 32 revisions of this API.