Authentication

FilingStream has two hosts and two kinds of credentials. They never mix.

HostUsed forCredential
API host (api.filingstream.dev)/v1/* (REST, SSE, subscriptions)Authorization: Bearer fs_…
App host (app.filingstream.dev)the dashboard and its /auth/* and /api/* routessession cookie set after sign-in

API keys

  • Send the key only in the Authorization: Bearer header. Keys in query strings are rejected.
  • A key belongs to one account and is stored only as a SHA-256 hash on our side, so we cannot show it again. If you lose it, create a new one and revoke the old one.
  • Create, rename and revoke keys in the dashboard (owners and admins). A key can have an expiry.
  • The API host ignores cookies. The app host rejects requests that carry an Authorization header with HTTP 400.

Dashboard sign-in

Sign-in uses an emailed link and code; there are no passwords.

  • The link opens a confirmation page; you press Sign in to finish. (Opening the link does not consume it, so mail scanners that pre-fetch links do not break it.)
  • Alternatively type the 6-digit code into the tab where you started. Five wrong codes invalidate that login request.
  • Link and code expire after 15 minutes and work once.
  • A sign-in lasts at most 7 days: sessions end 7 days after you signed in (earlier after 7 days of inactivity). Sensitive actions (deleting your account, transferring ownership) ask you to sign in again if your last sign-in is older than 15 minutes.
  • Log out everywhere ends all your sessions.
  • Your data: POST /api/me/export (needs a recent sign-in) prepares a ZIP with your user record, memberships, active sessions (without tokens) and accepted terms; you get an email with a link, and GET /api/me/export/{job} downloads it for 24 hours. Owners can export the whole account the same way with POST /api/accounts/{acct}/export. Neither export contains API keys or webhook secrets.

Teams

Accounts have an owner, admins and members. Owners and admins can invite people by email; an invitation can only be accepted by a session signed in with the invited address.

RoleSubscriptions, deliveries, usageAPI keysMembersBillingDelete account
ownerread/writeread/writeread/writeread/writeyes
adminread/writeread/writeinvite/remove non-ownersreadno
memberread/writemetadata onlyreadnono

The number of seats is limited by plan.

Emails we send

Sign-in links and invitations, and for owners and admins: a new API key was created, a key expires in 7 days, a usage warning at 80 % and 100 % of a monthly allowance, a webhook subscription was disabled, payment problems and plan changes, an export is ready, and when an account is deleted and again when its data is permanently erased. Emails are queued and retried if our mail provider is briefly down. The key itself is never sent by email.

Deleting an account

An owner can delete the account (this needs a recent sign-in). Keys and subscriptions stop working immediately and a paid subscription is cancelled right away, so you are not charged again; the rest of the data is erased after 30 days. Within those 30 days support can restore the account, but it comes back on the Free plan without keys or subscriptions, and a cancelled subscription has to be bought again.