v1 · OpenAPI 3.1Dashboard

Fox Login Management API

Everything a tenant can do in the dashboard, it can do with this API: create and delete applications, find, export and erase users, set labels, read event logs and manage webhooks.

Generated from openapi.yaml · 51 endpointsDownload OpenAPI

Base URL

https://api.foxlogin.app/v1

Regions

Management requests (this API) go to one base URL, https://api.foxlogin.app/v1, in Germany. End-user sign-in traffic (sign-up, sign-in, codes, Google sign-in, token refresh, sign-out) goes from the Fox Login SDKs and the user's browser directly to the user's region host (eu.auth.foxlogin.app, tr.auth.foxlogin.app); tenants never pick a host. Personal data is stored in the region assigned to the user's country (EU or TR at launch; all other countries are stored in EU). IDs carry the region as a hint: usr_tr_8f2c91a7 lives in TR. Every user object includes region. Each application is single-region at launch: all its users are stored in the application's region.

Session tokens

End-user session tokens are JWTs signed with EdDSA (Ed25519) by the user's region. Verify them locally with the keys from GET /.well-known/jwks.json. Claims are described in the SessionTokenClaims schema: sub (user ID), rgn (region), app, labels, iat, exp (short lifetime, for example 10 minutes) and iss.

Errors

Every 4xx and 5xx response uses one envelope (Error): { "error": { "code", "message", "region", "retryable", "details" } }. When a region cannot answer, the response is 503 region_unavailable with Retry-After.

Authentication

Send one of these keys as a Bearer token (Authorization: Bearer …). Each endpoint lists the scope it needs in x-scopes.

Key Format Reaches Scopes
Secret key sk_live_eu_…, sk_live_tr_… its own application only from the key's role
Organization API key fk_live_… every application of the organization, and creating applications the key's scopes

Use a secret key when your server works with one application. Every application gets one secret key with the admin role when it is created, and you can create more and give each one a role:

Role Label Scopes
admin Full access applications:read, applications:write, users:read, users:write, events:read
editor Read and write users applications:read, users:read, users:write, events:read
viewer Read only applications:read, users:read, events:read

A secret key gets 404 not_found for every other application and 403 secret_key_not_allowed on POST /applications and the /api_keys endpoints. Keep it on your server, for example in the FOXLOGIN_SECRET_KEY environment variable. The publishable key (pk_live_…) does not work here; it only identifies the application to the End-user API.

Rate limits

100 requests/second per key. 429 responses include Retry-After.

Store only the user ID

You do not need to copy email addresses, names or phone numbers into your own database. Save the Fox Login user ID (usr_tr_8f2c91a7) next to your own records. When you need people, ask us with a filter, for example "name contains a and email contains b", using POST /applications/{app_id}/users/search. When you need to show data for IDs you already have, send those IDs in filter.ids and ask only for the fields you will display. Personal data then stays in its region and you have nothing to erase when a user asks to be forgotten.

Endpoints

Secret keys

Secret keys (sk_live_eu_…, sk_live_tr_…) let your server call this API for one application. One key is enough. You can also create several keys, for example one per server or job, and give each the role it needs:

Role Label Scopes
admin Full access applications:read, applications:write, users:read, users:write, events:read
editor Read and write users applications:read, users:read, users:write, events:read
viewer Read only applications:read, users:read, events:read

applications:write on a secret key reaches only its own application: its settings (PATCH /applications/{app_id}) and its webhooks. No role has keys:write, so only dashboard owners and admins, or an organization API key with keys:write, create and revoke secret keys. The creator needs every scope of the role it gives. The full key is shown once, when it is created; only its SHA-256 hash is stored.

Keys

Public keys for verifying session tokens.

Dashboard

Used by the Fox Login dashboard itself, not by tenant backends: who is signed in, their tenants, and organization API keys.

Authenticate with a dashboard session token (Authorization: Bearer, an end-user session token of the dashboard's own Fox Login application) instead of a tenant API key. GET /me and POST /me/tenants need only that token. Every other Dashboard and Management endpoint also needs X-Fox-Tenant: <tenant_id>; access then follows the signed-in person's role in that tenant:

Role Scopes
owner, admin applications:read, applications:write, users:read, users:write, events:read, keys:write
developer applications:read, applications:write, users:read, users:write, events:read
(any other member) "viewer" applications:read, users:read, events:read

End-user API (SDK)

Called by the Fox Login SDKs and hosted pages directly from the user's device or browser — never through api.foxlogin.app and never with a tenant API key. Authenticate with the application's publishable key (X-Fox-Publishable-Key); after sign-in, the MFA and sign-out endpoints take the session's access or refresh token instead.

Served by each region host (https://eu.auth.foxlogin.app, https://tr.auth.foxlogin.app); the SDK calls the host of the application's region. /internal/v1/* is a separate, gateway-only API on the same hosts and is not part of this surface.

Responses never reveal whether an email address has an account: sign_up and the two code-request endpoints always answer 202.

Google sign-in is a browser redirect flow, so its first step takes the publishable key as a query parameter: send the browser to GET /v1/oauth/google/start, and Fox Login brings it back to one of the application's redirect_urls with a one-time fox_code, which POST /v1/client/oauth/token exchanges for a session. The SDKs have no Google method yet; call these endpoints directly.