API reference Authentication
Authentication
Two kinds of credentials: ingest keys send data, sessions read and manage it.
Ingest keys
Authorization: Bearer sf_dsn_… on /v1/sdk/*. They can only send. Using one against the REST API returns 401.
Sessions
Log in with POST /v1/auth/login. The dashboard uses the sf_session cookie (HttpOnly, SameSite=Lax); the mobile app and scripts send Authorization: Bearer sf_sess_…. Requests that change something must be application/json.
Choosing an org
Send X-Superflows-Org: org_… when your account belongs to several orgs. Anything outside your orgs answers 404, never 403, so responses never confirm that someone else’s data exists.
Errors
json
1{ "error": { "code": "not_found", "message": "not found", "request_id": "req_01…" } }
Rate limits
Writes: 100 per minute per org. Login and sign-up: 5 per minute per IP. A 429 carries Retry-After.