Browse docs

Get started Create an API key

Create an API key

Ingest keys connect a service to one environment. They can send, never read.

Format

sf_dsn_<environment>_<43 characters>. One key belongs to one environment of one project. Superflows stores only a keyed hash and the last four characters, so a key is shown exactly once.

Create and store

Create keys in Settings → API keys (or POST /v1/keys). Put the key in the SUPERFLOWS_KEY environment variable or in .env; superflows init does this and adds .env to .gitignore. Never commit a key to source.

Rotate and revoke

Create a new key, deploy it, then revoke the old one; both work in between. A revoked key stops working on the next call: the SDK prints one line to stderr, stops sending and your app keeps running. A key from one environment cannot touch another.