Dashboards v3 · embed

Mint a preview token for the embed simulator

Editor-only. Signs a token with the workspace secret server-side, so the author can see the board under a given scope without ever seeing the secret. claims is keyed by the board's row-level-security column, exactly as a host's token is; same lifetime rules.

post/dashboards/{dashboard_id}/embed/preview-token

Request

  • Base URL: https://app.mammoth.io/api/v2
  • URL: https://app.mammoth.io/api/v2/dashboards/{dashboard_id}/embed/preview-token
  • Auth: one of:
    • HTTP bearer
    • API key in header X-API-KEY and API key in header X-API-SECRET and API key in header X-WORKSPACE-ID

Path parameters

dashboard_idinteger required

Request body

Response

A short-lived token the simulator hands to the embed frame

tokenstring required
expires_atinteger required
embed_urlstring required

Changes

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