EndpointsWidgets

Get widget status

Returns the outcome of an end-to-end or age gate widget flow, keyed by the `widgetId` that `/widget/generate-e2e-url` or `/widget/generate-age-gate-url` returned. Use it when the player finishes the flow on another device, such as a phone that scanned the widget's QR code, and your service needs the result. Once a widget reports `PASS` it keeps reporting `PASS`. Follow with `/session/get` for the session's current state and permissions. To learn of an outcome promptly, subscribe to the webhooks rather than polling often.

GET
/widget/get-status
AuthorizationBearer <token>

In: header

Query Parameters

widgetId*string

The ID of the widget, as returned by /widget/generate-e2e-url or /widget/generate-age-gate-url

Formatuuid

Response Body

application/json

application/json

curl -X GET "https://example.com/widget/get-status?widgetId=2f6c1d3e-8a4b-4c5d-9e6f-7a8b9c0d1e2f"

{  "widgetId": "2f6c1d3e-8a4b-4c5d-9e6f-7a8b9c0d1e2f",  "status": "PASS",  "sessionId": "b1a6482d-5242-4b4a-aa88-3fa52595a672"}