Mint Widget Session Token (M2M)
Mint a short-lived (15 minute) BundleAccessToken scoped to the calling token's own deployment, for gated-mode widget embedding. Called server-to-server by the embedding site's own backend, authenticated with its real BundleAccessToken - that real token is never itself exposed to a browser. Checks the calling token's own allowed_domains/allowed_ips/allowed_regions against this request's Origin/Referer and client IP - this validates the embedding site's own server, not the eventual visitor, matching how this call is itself server-to-server.
Authorization
BundleAccessToken AuthorizationBearer <token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Body of POST /v1/bundler/widget-session (gated-mode mint).
Response Body
application/json
application/json
curl -X POST "https://example.com/v1/bundler/widget-session" \ -H "Content-Type: application/json" \ -d '{ "agent_id": "2b1e3b65-2c04-4fa2-a2d7-467901e98978" }'{ "session_token": "string", "expires_at": "2019-08-24T14:15:22Z"}Empty
Empty
Empty
{ "detail": [ { "loc": [ "string" ], "msg": "string", "type": "string" } ]}Empty