Skip to content

Environments

Flume has two environments: sandbox for building and live for real users. The API, the iframe and these docs are the same in both. Only the values below differ.

PropertySandboxLive
Base URL for server callshttps://sandbox-api.tryflume.ai/partner/v1https://ssapi.tryflume.ai/partner/v1
Partner key starts withsk_dev_sk_prod_
User access token starts withut_dev_ut_prod_
Iframe originThe origin of the iframe_url you receiveThe origin of the iframe_url you receive
Who can use itOpen to every partner with a sandbox key.Early access. Not yet open to new partners; by request, one at a time.
How to get a keyBy request: Get a sandbox keyBy request, after the go-live checklist
Verification emailsReal email is sentReal email is sent
DataSeparate keys, users and tokensSeparate keys, users and tokens
  • The Sandbox / Live switch in the header changes the host and the key prefixes in code samples.
  • Your browser remembers the choice.
  • Pages load with sandbox values. Copied samples are safe to run by default.
  • Sentences and the table above never change. Only values in code do.
  • The Markdown version of a page always has sandbox values.
  • Every path, header, field, error code and message type.
  • The path prefix /partner/v1.
  • The default limits. Flume can set a different limit for one environment.
  • The sandbox has no test fixtures today:
    • no test users,
    • no fixed verification code,
    • no way to force a quote result.
  • Verification sends a real email. Use an inbox you can read.
  • A sandbox key and a sandbox user access token do not work on live.

Live is in early access. Flume is not yet opening it to new partners, and will enable it by request, one partner at a time. Build and test in the sandbox, and do not plan a launch on live until Flume confirms your platform is enabled.

  1. Finish the go-live checklist in the sandbox.
  2. Ask Flume for live access. Send your page origins, image hosts and redirect hosts.
  3. Flume enables your platform on live and issues a live key.
  4. Verify each user again on live. Sandbox tokens do not carry over.

A live key alone is not enough. Until Flume enables your platform, live refuses the key with PARTNER_KEY_INVALID.

The iframe's origin is the origin of the iframe_url that POST /start-iframe-session returns.

  • Read it at run time: new URL(iframe_url).origin.
  • Do not hardcode it. It differs between sandbox and live, and it can change.
  • Your Content Security Policy needs it in frame-src. See Security and CSP.
  • The image links Flume returns can be on another origin again. Read that from a real link too.