Docs

HTTP API: users and auth settings

Manage a project's app users (create, import, ban, delete, roles, MFA reset) and its sign-in settings: providers, sessions, SMTP, email templates, hooks, OIDC and OAuth apps.

Updated Nov 25, 2026

Manage the project's app users and how they sign in. Call these on the project URL with a team member's access token; the member's role must allow the action (owners and admins for users). Guides: Users and app roles, Authentication settings reference, Emails: SMTP, templates and limits, Auth event hooks.

URL=https://<project-ref>.sovarias.in   # the project URL names the project
ANON_KEY=<anon key>
ACCESS_TOKEN=<a team member's access token>
Base URLhttps://<project-ref>.sovarias.in — your project URL from Connect.
KeysSend the project's key as apikey. Calls made for a signed-in user also send Authorization: Bearer <access token>.
ErrorsA status code and {"detail": …} — a sentence, or {code, message} for errors your code may branch on (HTTP API).

#App users

Owners and admins of the organization manage the project's app users. user_id is the user's id (node_id in the listing).

GET/api/v1/projects/{project_id}/auth/users

List the project's app users, newest first.

Pages with a cursor: when more remain, the response has an X-Next-Cursor header — pass it back as cursor. The first page (no cursor) also has X-Total-Count for the same filters.

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.

Path parameters

project_idstringrequired
The project.

Query parameters

limitintegeroptionaldefault 500
Users per page (1–500).
1–500
cursorstring | nulloptional
From the previous page's X-Next-Cursor.
0–200 characters
qstring | nulloptional
Part of an email, or an exact user id.
0–200 characters
statusstring | nulloptional
active or banned.
pattern `^(active|banned)$`

Returns

node_idstring
The user's id — the one every other call takes as user_id, and auth.uid() in SQL.
idstring
The id of their sign-in record (rarely needed).
emailstring
is_activeboolean
false while banned.
created_at, updated_at, last_sign_in_atstring | null
ISO 8601.
mfa_enabled, phone_mfa_enabled, any_mfa_enabledboolean
Authenticator app, SMS, either.
rolesarray<string>
Their app roles in this project (Users and app roles).
role_sourcesarray<string>
Where the roles come from.
project_idstring

Responses

  • 200Success.
  • 403Only organization owners and admins can list app users.
  • 401No valid session or key.
  • Response headers: X-Next-Cursor: eyJ0cyI6… when there is a next page; X-Total-Count: 1284 on the first page.
curl -s "$URL/api/v1/projects/f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07/auth/users?limit=50&status=active" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"
Response
[
  {
    "id": "a71d0c5e-2f84-4b9a-9e13-6c5d8f2b1a47",
    "node_id": "3c8f1e2a-9b47-4d6e-a5c1-7f0e2d4b8a93",
    "email": "ana@example.com",
    "is_active": true,
    "created_at": "2026-10-02T08:14:22.481Z",
    "updated_at": "2026-10-16T19:03:51.112Z",
    "mfa_enabled": false,
    "phone_mfa_enabled": false,
    "any_mfa_enabled": false,
    "last_sign_in_at": "2026-10-17T09:41:05.330Z",
    "roles": [
      "staff"
    ],
    "role_sources": [
      "project_settings"
    ],
    "project_id": "f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07"
  }
]

POST/api/v1/projects/{project_id}/auth/users

Create an app user (as an admin).

Without a password, the user signs in by magic link or invite: send_magic_link: true emails one. email_confirm: true marks the email confirmed so no verification email is needed. Roles must exist in the project's role list.

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.

Path parameters

project_idstringrequired
The project.

Body

namestringrequired
Display name.
1–255 characters
emailstringrequired
Sign-in email.
passwordstring | nulloptional
Optional; at least 8 characters.
at least 8 characters
password_fromstring | nulloptional
Name of a project secret holding the password, read on the server (Sovariq never sees it)
0–64 characters, pattern `^[A-Z][A-Z0-9_]{1,63}$`
generate_password_secretbooleanoptionaldefault false
With password_from: when that secret isn't set yet, Sovaria generates a strong password and stores it under that name (test users without asking anyone to type one; the owner reads it in Settings › Secrets)
temporary_passwordbooleanoptionaldefault false
Sovaria generates a strong temporary password, returns it once in this response (never stored in plain text or logged) and the user must change it at first sign-in. For first users a person hands their password to
rolesarray<string>optional
App roles to give them.
send_magic_linkbooleanoptionaldefault false
Email a sign-in link now.
email_confirmbooleanoptionaldefault false
Treat the email as confirmed.
env_idstring | nulloptional
An environment of the project.

Returns

node_idstring
The user's id — the one every other call takes as user_id, and auth.uid() in SQL.
idstring
The id of their sign-in record (rarely needed).
emailstring
is_activeboolean
false while banned.
created_at, updated_at, last_sign_in_atstring | null
ISO 8601.
mfa_enabled, phone_mfa_enabled, any_mfa_enabledboolean
Authenticator app, SMS, either.
rolesarray<string>
Their app roles in this project (Users and app roles).
role_sourcesarray<string>
Where the roles come from.
project_idstring
pending_inviteboolean
A sign-in link was sent and the email isn't confirmed yet.

Responses

  • 201Created.
  • 409That email is already registered in this project.
  • 422UNKNOWN_APP_ROLE — a role isn't defined; the body lists roles.
  • 403Only organization owners and admins.
  • 429Too many sign-in links for this address or IP.
  • 401No valid session or key.
curl -s -X POST "$URL/api/v1/projects/f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07/auth/users" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"name": "Ana Lima", "email": "ana@example.com", "roles": ["staff"], "send_magic_link": true}'
Response
{
  "id": "a71d0c5e-2f84-4b9a-9e13-6c5d8f2b1a47",
  "node_id": "3c8f1e2a-9b47-4d6e-a5c1-7f0e2d4b8a93",
  "email": "ana@example.com",
  "is_active": true,
  "created_at": "2026-10-02T08:14:22.481Z",
  "updated_at": "2026-10-16T19:03:51.112Z",
  "mfa_enabled": false,
  "phone_mfa_enabled": false,
  "any_mfa_enabled": false,
  "last_sign_in_at": null,
  "roles": [
    "staff"
  ],
  "role_sources": [
    "project_settings"
  ],
  "project_id": "f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07",
  "actor_lane": "product",
  "auth_subject_type": "product_user",
  "pending_invite": true
}

GET/api/v1/projects/{project_id}/auth/users/{user_id}

One app user: the Users list's row plus user_metadata, app_metadata and custom claims (supabase's auth.admin.getUserById).

For the project's admins (an org owner/admin or a member with user-management rights); an app user's own session is refused. banned is true for a banned user.

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.

Path parameters

project_idstringrequired
The project.
user_idstringrequired
The user.

Responses

  • 200Success.
  • 401No session.
  • 403Not an admin of this project, or an API key (use a team member's session).
  • 404No such user in this project.
curl -s "$URL/api/v1/projects/f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07/auth/users/3c8f1e2a-9b47-4d6e-a5c1-7f0e2d4b8a93" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"
Response
{
  "id": "3c8f1e2a-9b47-4d6e-a5c1-7f0e2d4b8a93",
  "node_id": "3c8f1e2a-9b47-4d6e-a5c1-7f0e2d4b8a93",
  "email": "ada@example.com",
  "email_verified": true,
  "is_active": true,
  "banned": false,
  "created_at": "2026-10-01T09:12:44+00:00",
  "last_sign_in_at": "2026-10-30T18:02:11+00:00",
  "roles": [
    "librarian"
  ],
  "user_metadata": {
    "name": "Ada"
  },
  "app_metadata": {
    "plan": "pro"
  },
  "custom_claims": {}
}

POST/api/v1/projects/{project_id}/auth/users/import

Import up to 1,000 users at once, keeping their ids and password hashes (from Supabase, Firebase or your own system).

Nothing is emailed and no sign-up hooks or function triggers run. Emails already in the project are skipped. Passwords: bcrypt hashes (Supabase) are kept as they are; firebase_scrypt hashes are checked with your Firebase project's hash parameters (hash_config, stored encrypted) and upgraded to bcrypt at the user's first sign-in. Users without a password sign in by magic link or a provider. A UUID id is kept (so rows referencing the user still match); other ids (Firebase uids) get a new id and the old one is returned as source_id. The CLI does this for you: sov import supabase / sov import firebase (Migrate from Supabase or Firebase).

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.

Path parameters

project_idstringrequired
The project.

Body

usersarray<object>required
1–1000 items
9 fields
emailstringrequired
idstringoptional
Their id in the old system.
email_verifiedbooleanoptional
phonestringoptional
display_namestringoptional
password_algorithmstringoptional
One of bcrypt, firebase_scrypt
password_hashstringoptional
password_saltstringoptional
Firebase only.
sourcestringoptional
Where they came from, kept in the user's metadata.
hash_configobjectoptional
Your Firebase project's password hash parameters (Firebase console › Authentication › Password hash parameters).
4 fields
signer_keystringrequired
Base64.
salt_separatorstringrequired
Base64.
roundsintegerrequired
mem_costintegerrequired

Returns

importedarray<object>
user (email), id (their id here), source_id, password (bcrypt, firebase_scrypt or none).
skipped, failedarray<object>
user and reason.
countsobject

Responses

  • 200Success.
  • 413More than 1,000 users in one call.
  • 422hash_config is invalid.
  • 403Only organization owners and admins.
  • 401No valid session or key.
curl -s -X POST "$URL/api/v1/projects/f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07/auth/users/import" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"users": [{"id": "3c8f1e2a-9b47-4d6e-a5c1-7f0e2d4b8a93", "email": "ana@example.com", "email_verified": true, "password_algorithm": "bcrypt", "password_hash": "$2a$10$Q3m…"}, {"id": "kX9fF2…", "email": "li@example.com", "password_algorithm": "firebase_scrypt", "password_hash": "lSrfV1…", "password_salt": "42xEC…"}], "hash_config": {"signer_key": "jxspr8Ki0…", "salt_separator": "Bw==", "rounds": 8, "mem_cost": 14}}'
Response
{
  "imported": [
    {
      "user": "ana@example.com",
      "id": "3c8f1e2a-9b47-4d6e-a5c1-7f0e2d4b8a93",
      "source_id": "3c8f1e2a-9b47-4d6e-a5c1-7f0e2d4b8a93",
      "password": "bcrypt"
    },
    {
      "user": "li@example.com",
      "id": "9e2b…",
      "source_id": "kX9fF2…",
      "password": "firebase_scrypt"
    }
  ],
  "skipped": [
    {
      "user": "old@example.com",
      "reason": "already in this project"
    }
  ],
  "failed": [
    {
      "user": "bad",
      "reason": "missing or invalid email"
    }
  ],
  "counts": {
    "imported": 2,
    "skipped": 1,
    "failed": 1
  }
}

DELETE/api/v1/projects/{project_id}/auth/users/{user_id}

Delete an app user permanently and sign them out everywhere.

Their sign-in record is removed for good and every session ends. To keep the account but stop sign-ins, ban instead.

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.

Path parameters

project_idstringrequired
The project.
user_idstringrequired
The user's id (node_id).

Responses

  • 204Success, with no body.
  • 404No such user in this project.
  • 403Only organization owners and admins.
  • 401No valid session or key.
curl -s -X DELETE "$URL/api/v1/projects/f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07/auth/users/3c8f1e2a-9b47-4d6e-a5c1-7f0e2d4b8a93" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

POST/api/v1/projects/{project_id}/auth/users/{user_id}/ban

Ban an app user, or unban them — each call switches it.

A banned user can't sign in or refresh a session. is_active in the answer is the new state.

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.

Path parameters

project_idstringrequired
The project.
user_idstringrequired
The user.

Query parameters

bannedboolean | nulloptional
true bans, false unbans; omitted flips the state

Responses

  • 200Success.
  • 400You can't ban yourself.
  • 404No such user.
  • 401No valid session or key.
curl -s -X POST "$URL/api/v1/projects/f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07/auth/users/3c8f1e2a-9b47-4d6e-a5c1-7f0e2d4b8a93/ban" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"
Response
{
  "user_id": "3c8f1e2a-9b47-4d6e-a5c1-7f0e2d4b8a93",
  "is_active": false
}

GET/api/v1/projects/{project_id}/auth/users/{user_id}/roles

A user's app roles.

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.

Path parameters

project_idstringrequired
The project.
user_idstringrequired
The user.

Responses

  • 200Success.
  • 401No valid session or key.
curl -s "$URL/api/v1/projects/f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07/auth/users/3c8f1e2a-9b47-4d6e-a5c1-7f0e2d4b8a93/roles" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"
Response
{
  "user_id": "3c8f1e2a-9b47-4d6e-a5c1-7f0e2d4b8a93",
  "org_id": "b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90",
  "project_id": "f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07",
  "roles": [
    "staff"
  ]
}

PUT/api/v1/projects/{project_id}/auth/users/{user_id}/roles

Replace a user's app roles.

Takes effect at their next token (refresh, or sign-in). Roles are what ctx.actor.roles in rules and auth.jwt() in SQL see (Users and app roles).

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.

Path parameters

project_idstringrequired
The project.
user_idstringrequired
The user.

Body

rolesarray<string>optional
The full list; [] removes all.

Responses

  • 200Success.
  • 422UNKNOWN_APP_ROLE — a role isn't defined in the project.
  • 401No valid session or key.
curl -s -X PUT "$URL/api/v1/projects/f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07/auth/users/3c8f1e2a-9b47-4d6e-a5c1-7f0e2d4b8a93/roles" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"roles": ["staff", "billing"]}'
Response
{
  "user_id": "3c8f1e2a-9b47-4d6e-a5c1-7f0e2d4b8a93",
  "org_id": "b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90",
  "project_id": "f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07",
  "roles": [
    "billing",
    "staff"
  ]
}

GET/api/v1/projects/{project_id}/auth/users/{user_id}/mfa

Whether a user has two-factor sign-in turned on.

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.

Path parameters

project_idstringrequired
The project.
user_idstringrequired
The user.

Returns

mfa_enabledboolean
Authenticator app.
phone_mfa_enabledboolean
SMS codes.
totp_enrolledboolean
An authenticator secret is stored.
any_mfa_enabledboolean

Responses

  • 200Success.
  • 401No valid session or key.
curl -s "$URL/api/v1/projects/f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07/auth/users/3c8f1e2a-9b47-4d6e-a5c1-7f0e2d4b8a93/mfa" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"
Response
{
  "user_id": "3c8f1e2a-9b47-4d6e-a5c1-7f0e2d4b8a93",
  "mfa_enabled": true,
  "phone_mfa_enabled": false,
  "totp_enrolled": true,
  "any_mfa_enabled": true
}

POST/api/v1/projects/{project_id}/auth/users/{user_id}/mfa/reset

Turn off a user's two-factor sign-in (they lost their phone).

Removes their authenticator and SMS factors; they sign in with their password alone and can enrol again. Recorded in the user's security activity.

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.

Path parameters

project_idstringrequired
The project.
user_idstringrequired
The user.

Responses

  • 200Success.
  • 404No such user in this project.
  • 401No valid session or key.
curl -s -X POST "$URL/api/v1/projects/f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07/auth/users/3c8f1e2a-9b47-4d6e-a5c1-7f0e2d4b8a93/mfa/reset" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"
Response
{
  "user_id": "3c8f1e2a-9b47-4d6e-a5c1-7f0e2d4b8a93",
  "status": "reset",
  "message": "MFA has been reset for this user",
  "mfa_enabled": false,
  "phone_mfa_enabled": false,
  "totp_enrolled": false,
  "any_mfa_enabled": false
}

POST/api/v1/auth/product-users/{user_id}/test-session

Get a short-lived access token for one of your app users, to test your API and rules as them.

For owners and admins. The token is a real access token for that user (no refresh token), lasting minutes (default 15, at most 60), marked test_session — it can't create further test sessions. Every issue is audited.

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/product-users/{user_id}/test-session

Path parameters

user_idstringrequired
The user.

Body

minutesintegeroptionaldefault 15
How long it lasts (1–60).
1.0–60.0

Responses

  • 200Success.
  • 400No organization/project scope.
  • 403Not an owner/admin, or called with a test session.
  • 404No such user.
  • 401No valid session or key.
  • 422The body is missing a required field or has a field of the wrong type.
curl -s -X POST "$URL/api/v1/auth/product-users/3c8f1e2a-9b47-4d6e-a5c1-7f0e2d4b8a93/test-session" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"minutes": 15}'
Response
{
  "access_token": "eyJhbGciOiJFUzI1NiIs…",
  "token_type": "bearer",
  "expires_in": 900,
  "user_id": "3c8f1e2a-9b47-4d6e-a5c1-7f0e2d4b8a93",
  "email": "ana@example.com",
  "roles": [
    "staff"
  ],
  "test_session": true
}

PATCH/api/v1/projects/{project_id}/auth/users/{user_id}

Change an app user's user_metadata, app_metadata (only admins can), custom claims or email_verified (supabase's auth.admin.updateUserById).

Metadata is merged: a key with null is removed. Custom claims ride in every token from the user's next refresh; reserved claims (sub, role, roles, aal…) are refused. The change is in the project history (field names only, not values).

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.

Path parameters

project_idstringrequired
The project.
user_idstringrequired
The user.

Body

user_metadataobject | nulloptional
Fields to merge into user_metadata.
app_metadataobject | nulloptional
Fields to merge into app_metadata.
custom_claimsobject | nulloptional
Claims to add to the user's tokens.
email_verifiedboolean | nulloptional
Mark the email confirmed (true) or not.

Responses

  • 200Success.
  • 403Not an admin of this project.
  • 404No such user in this project.
  • 422A reserved claim, or metadata that is too large.
  • 401No valid session or key.
curl -s -X PATCH "$URL/api/v1/projects/f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07/auth/users/3c8f1e2a-9b47-4d6e-a5c1-7f0e2d4b8a93" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"app_metadata": {"plan": "pro"}, "email_verified": true}'
Response
{
  "id": "3c8f1e2a-9b47-4d6e-a5c1-7f0e2d4b8a93",
  "email": "ada@example.com",
  "email_verified": true,
  "user_metadata": {
    "name": "Ada"
  },
  "app_metadata": {
    "plan": "pro"
  },
  "custom_claims": {}
}

POST/api/v1/projects/{project_id}/auth/generate-link

The sign-in, recovery or invite link an auth email would carry, returned to you instead of emailed (supabase's auth.admin.generateLink).

Org owners and admins only, with a team member's session (API keys are refused). At most 60 links an hour per admin; every link is in the audit log as auth.admin.link_generated. invite creates the passwordless user first (fails when the address is taken) and its link lasts 24 hours; magiclink and recovery need an existing, active user. The link signs that user in — send it only to them. hashed_token is what verifyOtp({ token_hash, type }) takes; email_otp is the 6-digit code the email would show.

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.

Path parameters

project_idstringrequired
The project.

Body

typestringrequired
magiclink, recovery or invite.
pattern `^(magiclink|recovery|invite|signup)$`
emailstringrequired
The user's email.
passwordstring | nulloptional
signup: the new user's password (checked against the project's policy)
1–1,024 characters
redirect_tostring | nulloptional
Where the link lands (must be an allowed redirect URL; default the Site URL).
0–2,048 characters
dataobject | nulloptional
invite only: the new user's user_metadata.

Responses

  • 200Success.
  • 400type isn't magiclink, recovery or invite.
  • 403Not an owner or admin of the organization, or an API key.
  • 404magiclink / recovery: no active user with that email in the project.
  • 422invite: the address is already registered.
  • 429More than 60 links in the last hour.
  • 401No valid session or key.
curl -s -X POST "$URL/api/v1/projects/f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07/auth/generate-link" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"type": "invite", "email": "grace@example.com", "redirect_to": "https://app.example.com/auth/callback", "data": {"team": "blue"}}'
Response
{
  "action_link": "https://app.example.com/auth/callback?token=Jq7v…&type=magiclink&org_id=…&project_id=…",
  "email_otp": "482913",
  "hashed_token": "Jq7v…",
  "verification_type": "invite",
  "redirect_to": "https://app.example.com/auth/callback",
  "expires_in": 86400,
  "user": {
    "id": "3c8f1e2a-9b47-4d6e-a5c1-7f0e2d4b8a93",
    "email": "grace@example.com"
  }
}

#Activity and data requests

GET/api/v1/auth/users/{user_id}/timeline

A user's sign-in and security events, newest first.

Event types include auth.login.success, auth.login.failed, auth.logout, auth.token.refresh, auth.password.changed, auth.password.reset, auth.mfa.enrolled, auth.mfa.verified, auth.mfa.disabled, auth.passkey.registered, auth.session.revoked, auth.email.changed.

Who
The user themselves, or an organization admin.
Also at
/auth/v1/users/{user_id}/timeline

Path parameters

user_idstringrequired
The user.

Query parameters

atstring | nulloptional
Only events at or before this time (ISO 8601).
event_typestring | nulloptional
One event type.
limitintegeroptionaldefault 50
How many (at most 200).
offsetintegeroptionaldefault 0
How many to skip.

Responses

  • 200Success.
  • 400at isn't a valid time.
  • 403Someone else's timeline without admin access.
  • 401No valid session or key.
curl -s "$URL/api/v1/auth/users/3c8f1e2a-9b47-4d6e-a5c1-7f0e2d4b8a93/timeline?limit=20" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"
Response
{
  "user_id": "3c8f1e2a-9b47-4d6e-a5c1-7f0e2d4b8a93",
  "at": null,
  "events": [
    {
      "id": "5d2f…",
      "event_type": "auth.login.success",
      "meta": {
        "method": "password",
        "aal": "aal1",
        "ip": "203.0.113.24",
        "device": "Chrome on macOS"
      },
      "created_at": "2026-10-17T09:41:05.330Z"
    }
  ],
  "count": 1,
  "limit": 20,
  "offset": 0
}

GET/api/v1/auth/users/{user_id}/timeline/state

What a user's account looked like at a moment in time (for investigations).

Rebuilt from the timeline: the last sign-in before at, whether two-factor and passkeys were set up, whether the account was banned, and which sessions were open (approximate — expired sessions aren't recorded).

Who
The user themselves, or an organization admin.
Also at
/auth/v1/users/{user_id}/timeline/state

Path parameters

user_idstringrequired
The user.

Query parameters

atstringrequired
The moment (ISO 8601); now by default.

Responses

  • 200Success.
  • 401No valid session or key.
curl -s "$URL/api/v1/auth/users/3c8f1e2a-9b47-4d6e-a5c1-7f0e2d4b8a93/timeline/state?at=2026-10-10T00:00:00Z" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"
Response
{
  "user_id": "3c8f1e2a-9b47-4d6e-a5c1-7f0e2d4b8a93",
  "at": "2026-10-10T00:00:00+00:00",
  "last_login": "2026-10-09T18:22:10.004Z",
  "last_method": "password",
  "last_aal": "aal2",
  "was_mfa_enrolled": true,
  "had_passkey": false,
  "is_active": true,
  "active_sessions": [
    "9f1c2e…"
  ],
  "mfa_factors": [
    {
      "type": "totp",
      "enrolled_at": "2026-10-03T11:00:12.551Z"
    }
  ],
  "passkeys_registered": [],
  "total_events_at": 41
}

POST/api/v1/auth/users/{user_id}/data-export

Everything Sovaria holds about a user, as one JSON document (data-protection requests).

Covers the account, sign-in records, API keys, webhooks they own and their security events. Data in your own tables isn't included — export that with SQL.

Who
The user themselves, or an organization owner/admin for users in their organization.
Also at
/auth/v1/users/{user_id}/data-export

Path parameters

user_idstringrequired
The user.

Returns

user_idstringrequired
The app user's id.
exported_atstringrequired
profileobjectrequired
auth_methodsarray<object>required
api_keysarray<object>required
webhooksarray<object>required
auth_eventsarray<object>required
consentsarray<object>optional

Responses

  • 200Success.
  • 400user_id isn't a UUID.
  • 403Not that user or an admin of their organization.
  • 404No such user.
  • 401No valid session or key.
curl -s -X POST "$URL/api/v1/auth/users/3c8f1e2a-9b47-4d6e-a5c1-7f0e2d4b8a93/data-export" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"
Response
{
  "user_id": "3c8f1e2a-9b47-4d6e-a5c1-7f0e2d4b8a93",
  "exported_at": "2026-10-18T10:02:11.900Z",
  "profile": {
    "email": "ana@example.com",
    "is_active": true,
    "email_verified": true,
    "mfa_enabled": false,
    "created_at": "2026-10-02T08:14:22.481Z",
    "updated_at": "2026-10-16T19:03:51.112Z"
  },
  "auth_methods": [
    {
      "email": "ana@example.com",
      "org_id": "b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90",
      "project_id": "f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07",
      "env_id": null,
      "mfa_enabled": false,
      "created_at": "2026-10-02T08:14:22.481Z"
    }
  ],
  "api_keys": [],
  "webhooks": [],
  "auth_events": [
    {
      "event_type": "auth.login.success",
      "meta": {
        "method": "password"
      },
      "created_at": "2026-10-17T09:41:05.330Z"
    }
  ]
}

POST/api/v1/auth/users/{user_id}/delete-request

Start deleting a user's account: deactivated now, erased after 30 days.

The account is deactivated and every session revoked at once; the permanent deletion is scheduled 30 days later. Calling again returns the existing schedule. On hard_delete_at a daily job erases the account: its sign-in methods (password, passkeys, MFA), sessions, memberships and roles, notifications, AI assistant conversations, and the user row in your project's own auth.users table; your project's user.deleted function trigger fires. Rows your app stored about the user in its own tables are yours to delete (for example from that trigger). A console account that still owns an organization is held until ownership is transferred or the organization is deleted.

Who
The user themselves, or an organization owner/admin for users in their organization.
Also at
/auth/v1/users/{user_id}/delete-request

Path parameters

user_idstringrequired
The user.

Returns

user_idstringrequired
The app user's id.
statusstringrequired
scheduled_atstringrequired
hard_delete_atstringrequired
messagestringrequired

Responses

  • 200Success.
  • 401No valid session or key.
curl -s -X POST "$URL/api/v1/auth/users/3c8f1e2a-9b47-4d6e-a5c1-7f0e2d4b8a93/delete-request" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"
Response
{
  "user_id": "3c8f1e2a-9b47-4d6e-a5c1-7f0e2d4b8a93",
  "status": "scheduled",
  "scheduled_at": "2026-10-18T10:05:00.000Z",
  "hard_delete_at": "2026-11-17T10:05:00.000Z",
  "message": "Account deactivated. Permanent deletion scheduled in 30 days."
}

#Sign-in methods, sessions and email

GET/api/v1/auth/providers/config

Which sign-in methods are on for the project, and the SMS settings.

enabled is true only when the method is turned on and available (requested_enabled is what you asked for). Provider ids: email, magic_link, phone_otp, github, google, gitlab, microsoft, apple, discord, linkedin, facebook, x_twitter, saml, oidc, custom_jwt. Social sign-in with your own OAuth app is set up under OIDC providers below.

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/providers/config

Returns

providersarray<object>
id, label, enabled, requested_enabled, available, managed_by, description, setup_required, and unavailable_reason when it can't be used.
sms_configobject
provider (log, twilio, custom), account_sid, from_number, and whether an auth token is stored (auth_token_set, auth_token_hint). The token itself is never returned.
database_linkobject
Kept for older clients; not used by projects.

Responses

  • 200Success.
  • 403Allowed for any team member of the project only (not app users or API keys).
  • 401No valid session or key.
curl -s "$URL/api/v1/auth/providers/config" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"
Response
{
  "providers": [
    {
      "id": "email",
      "label": "Email + Password",
      "enabled": true,
      "requested_enabled": true,
      "available": true,
      "managed_by": "core",
      "description": "Built-in credential authentication.",
      "setup_required": []
    },
    {
      "id": "magic_link",
      "label": "Magic Link",
      "enabled": true,
      "requested_enabled": true,
      "available": true,
      "managed_by": "core",
      "description": "…",
      "setup_required": []
    }
  ],
  "database_link": {
    "enabled": false,
    "engine": "postgresql",
    "host": "",
    "port": 5432,
    "database": "",
    "schema": "public",
    "username": "",
    "ssl": true
  },
  "sms_config": {
    "provider": "twilio",
    "account_sid": "AC5f…",
    "from_number": "+14155550123",
    "auth_token_set": true,
    "auth_token_hint": "8c…f2"
  }
}

PUT/api/v1/auth/providers/config

Turn sign-in methods on or off, and set the SMS provider for phone codes.

Send only what changes. Turning on more social providers than the plan allows is refused (auth.oauth_providers).

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/providers/config

Body

providersarray<object>optional
2 fields
idstringrequired
Provider id.
enabledbooleanrequired
sms_configobjectoptional
4 fields
providerstringoptional
log writes codes to the logs (development).
One of log, twilio, custom
account_sidstringoptional
from_numberstringoptional
auth_tokenstringoptional
Stored encrypted; omit to keep the current one.
database_linkobjectoptional
Ignored for projects.

Responses

  • 200The same shape as GET, after the change.
  • 403PLAN_LIMIT_REACHED — more social providers than the plan allows.
  • 403Allowed for owners and admins of the project only (not app users or API keys).
  • 401No valid session or key.
curl -s -X PUT "$URL/api/v1/auth/providers/config" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"providers": [{"id": "magic_link", "enabled": true}, {"id": "phone_otp", "enabled": true}], "sms_config": {"provider": "twilio", "account_sid": "AC5f…", "from_number": "+14155550123", "auth_token": "<twilio auth token>"}}'

GET/api/v1/auth/sessions/config

Your own session policy: how long sessions last and how many you may have.

Who
Any signed-in account (it applies to that account).
Also at
/auth/v1/sessions/config

Returns

timeout_minutesinteger
Access token lifetime.
refresh_daysinteger
How long a session can be refreshed.
max_concurrentinteger
Open sessions allowed (0 = no limit).
single_sessionboolean
Signing in ends the other sessions.

Responses

  • 200Success.
  • 401No valid session or key.
curl -s "$URL/api/v1/auth/sessions/config" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"
Response
{
  "timeout_minutes": 15,
  "refresh_days": 7,
  "max_concurrent": 0,
  "single_session": false
}

PUT/api/v1/auth/sessions/config

Change your own session policy.

Who
Any signed-in account (it applies to that account).
Also at
/auth/v1/sessions/config

Body

timeout_minutesintegerrequired
Access token lifetime, 1–10080.
1.0–10080.0
refresh_daysintegerrequired
1–365.
1.0–365.0
max_concurrentintegerrequired
0–100 (0 = no limit).
0.0–100.0
single_sessionbooleanoptionaldefault false
Keep only this session.

Responses

  • 200Success.
  • 401No valid session or key.
  • 422The body is missing a required field or has a field of the wrong type.
curl -s -X PUT "$URL/api/v1/auth/sessions/config" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"timeout_minutes": 30, "refresh_days": 14, "max_concurrent": 5, "single_session": false}'
Response
{
  "timeout_minutes": 30,
  "refresh_days": 14,
  "max_concurrent": 5,
  "single_session": false
}

GET/api/v1/auth/smtp-config

The project's own SMTP server for auth emails, if set (the password is never returned).

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/smtp-config

Returns

enabledboolean
Custom SMTP is on and has a host — emails go through it.
customSmtpEnabledboolean
The switch itself.
host, port, user, from_addressstring | integer
password_set, password_hintboolean, string
Whether a password is stored, and its first and last two characters.

Responses

  • 200Success.
  • 401No valid session or key.
curl -s "$URL/api/v1/auth/smtp-config" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"
Response
{
  "enabled": true,
  "host": "smtp.postmarkapp.com",
  "port": 587,
  "user": "pm-user",
  "from_address": "Skolist <no-reply@skolist.com>",
  "password_set": true,
  "password_hint": "Xy…9q",
  "customSmtpEnabled": true
}

PUT/api/v1/auth/smtp-config

Send the project's auth emails through your own SMTP server.

Send only what changes; omit password to keep the stored one. Until it's on, Sovaria's mail service sends them (Emails: SMTP, templates and limits).

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/smtp-config

Body

customSmtpEnabledboolean | nulloptional
Use your server.
hoststring | nulloptional
SMTP host.
portinteger | nulloptional
Usually 587 (STARTTLS) or 465.
1.0–65535.0
userstring | nulloptional
SMTP user.
passwordstring | nulloptional
SMTP password (stored encrypted).
from_addressstring | nulloptional
Sender, e.g. Skolist <no-reply@skolist.com>.

Responses

  • 200The same shape as GET.
  • 401No valid session or key.
  • 422The body is missing a required field or has a field of the wrong type.
curl -s -X PUT "$URL/api/v1/auth/smtp-config" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"customSmtpEnabled": true, "host": "smtp.postmarkapp.com", "port": 587, "user": "pm-user", "password": "<smtp password>", "from_address": "Skolist <no-reply@skolist.com>"}'

GET/api/v1/auth/email-templates

The project's auth email templates (yours where changed, the defaults otherwise).

Keys: email_verification, password_reset, magic_link, password_changed, new_sign_in, mfa_challenge, email_change_confirm_old, email_change_confirm_new, invite_user. {{ placeholders }} are filled when sending: project_name everywhere, plus per template confirmation_url, reset_url, magic_link_url, otp_code, code, ttl_minutes, ttl_hours, new_email, confirm_url, finalize_url, invite_url, ip, device, signed_in_at, changed_at, email.

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/email-templates

Returns

<template key>object
subject, body_html, body_text.

Responses

  • 200Success.
  • 401No valid session or key.
curl -s "$URL/api/v1/auth/email-templates" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"
Response
{
  "magic_link": {
    "subject": "Your sign-in link for {{ project_name }}",
    "body_html": "<!doctype html>…{{ magic_link_url }}…",
    "body_text": "Sign in to {{ project_name }}: {{ magic_link_url }} …"
  },
  "password_reset": {
    "subject": "Reset your {{ project_name }} password",
    "body_html": "…",
    "body_text": "…"
  }
}

PUT/api/v1/auth/email-templates/{template_key}

Change one auth email: subject, HTML and plain-text body.

Send only the parts you change. Custom templates are a paid feature (custom_email_templates).

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/email-templates/{template_key}

Path parameters

template_keystringrequired
Which email (see the list above).

Body

subjectstring | nulloptional
Subject line.
body_htmlstring | nulloptional
HTML body.
body_textstring | nulloptional
Plain-text body.

Responses

  • 200Success.
  • 400Unknown template key (the message lists the valid ones).
  • 403PLAN_CUSTOM_EMAIL_TEMPLATES_REQUIRED — not in the plan.
  • 401No valid session or key.
  • 422The body is missing a required field or has a field of the wrong type.
curl -s -X PUT "$URL/api/v1/auth/email-templates/magic_link" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"subject": "Your Skolist sign-in link", "body_text": "Hi! Sign in to Skolist: {{ magic_link_url }}\nThe link works for {{ ttl_minutes }} minutes."}'
Response
{
  "template_key": "magic_link",
  "subject": "Your Skolist sign-in link",
  "body_html": "…",
  "body_text": "Hi! Sign in to Skolist: {{ magic_link_url }}\nThe link works for {{ ttl_minutes }} minutes."
}

DELETE/api/v1/auth/email-templates/{template_key}

Go back to the default for one email (allowed on every plan).

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/email-templates/{template_key}

Path parameters

template_keystringrequired
Which email.

Responses

  • 200Success.
  • 400Unknown template key.
  • 401No valid session or key.
curl -s -X DELETE "$URL/api/v1/auth/email-templates/magic_link" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"
Response
{
  "template_key": "magic_link",
  "status": "reset_to_default",
  "subject": "Your sign-in link for {{ project_name }}",
  "body_html": "…",
  "body_text": "…"
}

#Auth hooks, blocking hooks and custom claims

GET/api/v1/auth/event-hooks

Webhooks that receive the project's auth events (owners and admins).

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/event-hooks

Returns

delivery_count, failure_countinteger
last_errorstring | null
A short code such as http_503 or network — never the response body.

Responses

  • 200Success.
  • 400No project (send X-Sovaria-Project-ID or use the project URL).
  • 403You aren't an owner or admin of this project (app users and API keys can't manage this).
  • 401No valid session or key.
curl -s "$URL/api/v1/auth/event-hooks" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"
Response
[
  {
    "id": "0b6e…",
    "name": "CRM sync",
    "url": "https://hooks.skolist.com/sovaria-auth",
    "events": [
      "auth.user.login.success",
      "auth.user.registered"
    ],
    "enabled": true,
    "created_at": "2026-10-01T10:00:00+00:00",
    "updated_at": "2026-10-01T10:00:00+00:00",
    "delivery_count": 412,
    "failure_count": 3,
    "last_delivery_at": "2026-10-17T09:41:05+00:00",
    "last_error": null
  }
]

POST/api/v1/auth/event-hooks

Send auth events (sign-ups, sign-ins, bans…) to your URL.

Events: auth.user.registered, auth.user.login.success, auth.user.login.failed, auth.user.logout, auth.user.password_reset, auth.user.email_verified, auth.user.banned, or * for all. Up to 20 hooks per project. Each delivery is a POST of {id, type, project_id, timestamp, data}; with a secret it carries X-Sovaria-Signature: sha256=<hex HMAC of the body>. Deliveries time out after 10 s and are retried after 0.5 s, 1 s and 2 s; the sign-in itself never waits for them. Only the project's owners and admins can add, list or remove hooks, since they receive every app user's e-mail (Auth event hooks).

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/event-hooks

Body

namestringrequired
A label.
1–128 characters
urlstringrequired
HTTPS endpoint (private addresses are refused).
eventsarray<string>required
Event types, or ["*"].
1–… items
secretstringoptional
Signing secret (stored encrypted).
0–256 characters
enabledbooleanoptionaldefault true
On or off.
project_idstring | nulloptional
Deprecated — the project is X-Sovaria-Project-ID (or the project URL). If sent, it must be the same project.

Responses

  • 201Created.
  • 400Unknown event type, a private or non-HTTPS URL, no project, or already 20 hooks.
  • 403project_id in the body names a different project than the header.
  • 403You aren't an owner or admin of this project (app users and API keys can't manage this).
  • 401No valid session or key.
  • 422The body is missing a required field or has a field of the wrong type.
curl -s -X POST "$URL/api/v1/auth/event-hooks" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"name": "CRM sync", "url": "https://hooks.skolist.com/sovaria-auth", "events": ["auth.user.registered", "auth.user.login.success"], "secret": "<random secret>"}'
Response
{
  "id": "0b6e…",
  "name": "CRM sync",
  "url": "https://hooks.skolist.com/sovaria-auth",
  "events": [
    "auth.user.login.success",
    "auth.user.registered"
  ],
  "enabled": true,
  "created_at": "2026-10-18T10:10:00+00:00",
  "updated_at": "2026-10-18T10:10:00+00:00",
  "delivery_count": 0,
  "failure_count": 0,
  "last_delivery_at": null,
  "last_error": null
}

DELETE/api/v1/auth/event-hooks/{hook_id}

Remove an auth event hook.

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/event-hooks/{hook_id}

Path parameters

hook_idstringrequired
The hook.

Responses

  • 204Success, with no body.
  • 404No such hook.
  • 403You aren't an owner or admin of this project (app users and API keys can't manage this).
  • 401No valid session or key.
curl -s -X DELETE "$URL/api/v1/auth/event-hooks/0b6e…" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

GET/api/v1/auth/jwt-enrichment-hook

The custom-claims hook, or null when none is set.

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/jwt-enrichment-hook

Responses

  • 200Success.
  • 403You aren't an owner or admin of this project (app users and API keys can't manage this).
  • 401No valid session or key.
curl -s "$URL/api/v1/auth/jwt-enrichment-hook" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"
Response
{
  "url": "https://api.skolist.com/claims",
  "enabled": true
}

POST/api/v1/auth/jwt-enrichment-hook

Add your own claims to every access token: Sovaria asks your URL each time it issues one.

Your URL receives POST {user_id, project_id, claims} (signed with the secret) and answers {"claims": {…}}; those keys are added to the token's ctx. It must answer within 50 ms — otherwise the token is issued without them. Keys Sovaria owns (roles, org_id, project_id, env_id, aal, actor_lane, lane, plan, permissions…) are dropped. Needs the auth.custom_jwt_claims plan feature (Authentication settings reference).

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/jwt-enrichment-hook

Body

urlstringrequired
HTTPS URL.
secretstringoptional
HMAC-SHA256 signing secret.
enabledbooleanoptionaldefault true
On or off.
timeout_msinteger | nulloptional
How long Sovaria waits for the hook (default 1000 ms; capped by the platform maximum)
50.0–10000.0

Responses

  • 201Created.
  • 400Private or invalid URL.
  • 403PLAN_FEATURE_REQUIRED — custom claims aren't in the plan.
  • 403You aren't an owner or admin of this project (app users and API keys can't manage this).
  • 401No valid session or key.
  • 422The body is missing a required field or has a field of the wrong type.
curl -s -X POST "$URL/api/v1/auth/jwt-enrichment-hook" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"url": "https://api.skolist.com/claims", "secret": "<random secret>"}'
Response
{
  "url": "https://api.skolist.com/claims",
  "enabled": true
}

DELETE/api/v1/auth/jwt-enrichment-hook

Remove the custom-claims hook.

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/jwt-enrichment-hook

Responses

  • 204Success, with no body.
  • 404None is set.
  • 403You aren't an owner or admin of this project (app users and API keys can't manage this).
  • 401No valid session or key.
curl -s -X DELETE "$URL/api/v1/auth/jwt-enrichment-hook" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

GET/api/v1/auth/blocking-hooks

Both blocking hooks (before-create, before-sign-in) without secrets, whether the plan includes them and whether support turned them off.

Owners and admins of the project only (Blocking hooks (before create, before sign-in)).

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/blocking-hooks

Responses

  • 200Success.
  • 401No valid session or key.
curl -s "$URL/api/v1/auth/blocking-hooks" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"
Response
{
  "before_create": null,
  "before_sign_in": {
    "target": "webhook",
    "url": "https://api.acme.com/hooks/before-sign-in",
    "function": null,
    "timeout_ms": 1500,
    "fail": "closed",
    "enabled": true,
    "updated_at": "2026-10-23T09:00:00Z",
    "updated_by": "8d1e…",
    "has_secret": true
  },
  "plan_allowed": true,
  "disabled_by_staff": false,
  "disabled_reason": null,
  "max_timeout_ms": 5000
}

PUT/api/v1/auth/blocking-hooks/{event}

Set the blocking hook for before-create or before-sign-in.

Sovaria calls the webhook or function synchronously, signed with X-Sovaria-Signature (webhooks) or {event, signature} (functions). The hook answers {"allow": false, "message"} to refuse (403 AUTH_HOOK_DENIED) or {"claims": {...}} to add custom claims. On error or timeout, fail: closed refuses (503 AUTH_HOOK_UNAVAILABLE), open lets it through. Plan key auth.blocking_hooks. The signing secret comes back once as secret when it is created or rotated.

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/blocking-hooks/{event}

Path parameters

eventstringrequired
before-create or before-sign-in.

Body

targetstringoptionaldefault webhook
webhook (default) or function.
One of webhook, function
urlstring | nulloptional
HTTPS endpoint (target webhook); private addresses are refused.
0–2,048 characters
functionstring | nulloptional
The project function's name (target function).
0–128 characters
timeout_msinteger | nulloptional
How long Sovaria waits (default 2,000; at most the platform cap, 5,000 by default).
100.0–10000.0
failstringoptionaldefault closed
closed (default) or open.
One of closed, open
enabledbooleanoptionaldefault true
On or off.
rotate_secretbooleanoptionaldefault false
Make a new signing secret (the old one stops at once).

Responses

  • 200Success.
  • 400Unknown target or fail mode, a timeout out of range, an unsafe URL or a bad function name.
  • 403PLAN_FEATURE_UNAVAILABLE — auth.blocking_hooks; or not an owner/admin of the project.
  • 404Unknown event.
  • 401No valid session or key.
  • 422The body is missing a required field or has a field of the wrong type.
curl -s -X PUT "$URL/api/v1/auth/blocking-hooks/before-sign-in" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"target": "webhook", "url": "https://api.acme.com/hooks/before-sign-in", "timeout_ms": 1500, "fail": "closed", "enabled": true}'
Response
{
  "target": "webhook",
  "url": "https://api.acme.com/hooks/before-sign-in",
  "function": null,
  "timeout_ms": 1500,
  "fail": "closed",
  "enabled": true,
  "updated_at": "2026-10-23T09:00:00Z",
  "updated_by": "8d1e…",
  "has_secret": true,
  "secret": "whsec_…"
}

DELETE/api/v1/auth/blocking-hooks/{event}

Remove a blocking hook.

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/blocking-hooks/{event}

Path parameters

eventstringrequired
before-create or before-sign-in.

Responses

  • 204Success, with no body.
  • 404No hook is set for this event.
  • 401No valid session or key.
curl -s -X DELETE "$URL/api/v1/auth/blocking-hooks/before-create" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

POST/api/v1/auth/blocking-hooks/{event}/test

Send a sample event to the hook and report its decision; nothing is stored.

The event carries context.test: true.

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/blocking-hooks/{event}/test

Path parameters

eventstringrequired
before-create or before-sign-in.

Body

emailstring | nulloptional
The sample user's email (default test@example.com).
0–320 characters
providerstring | nulloptional
The sample sign-in method.
0–64 characters

Responses

  • 200Success.
  • 404No hook is set for this event.
  • 401No valid session or key.
  • 422The body is missing a required field or has a field of the wrong type.
curl -s -X POST "$URL/api/v1/auth/blocking-hooks/before-sign-in/test" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"email": "ada@acme.com"}'
Response
{
  "allowed": false,
  "claims": {},
  "message": "Use your Acme email.",
  "failed": false,
  "error": null,
  "latency_ms": 84.2
}

#SCIM provisioning

GET/api/v1/auth/scim

SCIM status: on or off, the base URL for the identity provider, the token's prefix and last use, users provisioned and groups.

Owners and admins of the project (SCIM provisioning (Okta, Entra ID, Google Workspace)).

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/scim

Responses

  • 200Success.
  • 401No valid session or key.
curl -s "$URL/api/v1/auth/scim" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"
Response
{
  "enabled": true,
  "base_url": "https://api.sovaria.in/api/v1/auth/scim/v2/c0ffee00-…",
  "token": {
    "prefix": "scim_Xb3kQ9",
    "created_at": "2026-10-23T09:00:00Z",
    "created_by": "8d1e…",
    "last_used_at": "2026-10-23T10:12:00Z"
  },
  "plan_allowed": true,
  "disabled_by_staff": false,
  "disabled_reason": null,
  "users_provisioned": 42,
  "groups": 3
}

POST/api/v1/auth/scim/token

Turn SCIM on, or rotate its token (the old one stops at once). The token is returned once.

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/scim/token

Responses

  • 201Created.
  • 403PLAN_FEATURE_UNAVAILABLE — auth.scim; SCIM turned off by support; or not an owner/admin.
  • 401No valid session or key.
curl -s -X POST "$URL/api/v1/auth/scim/token" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"
Response
{
  "token": "scim_…",
  "base_url": "https://api.sovaria.in/api/v1/auth/scim/v2/c0ffee00-…",
  "rotated": false,
  "token_info": {
    "prefix": "scim_Xb3kQ9",
    "created_at": "2026-10-23T09:00:00Z",
    "created_by": "8d1e…",
    "last_used_at": null
  }
}

DELETE/api/v1/auth/scim/token

Turn SCIM off: the token stops working; provisioned users and groups stay.

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/scim/token

Responses

  • 204Success, with no body.
  • 404SCIM isn't on.
  • 401No valid session or key.
curl -s -X DELETE "$URL/api/v1/auth/scim/token" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

GET/api/v1/auth/scim/v2/{project_id}/ServiceProviderConfig

What this SCIM server supports (PATCH and filter yes; bulk, sort, ETag, password change no).

Who
The identity provider, with the project's SCIM token: Authorization: Bearer scim_… (Authentication › SCIM provisioning).
Also at
/auth/v1/scim/v2/{project_id}/ServiceProviderConfig

Path parameters

project_idstringrequired
The project.

Responses

  • 200Success.
  • 401No SCIM token, or not this project's (SCIM error body).
  • 403The plan has no SCIM (auth.scim) or support turned SCIM off for the project.
curl -s "$URL/api/v1/auth/scim/v2/c0ffee00-0000-4000-8000-000000000000/ServiceProviderConfig" \
  -H "apikey: $ANON_KEY"
Response
{
  "schemas": [
    "urn:ietf:params:scim:schemas:core:2.0:ServiceProviderConfig"
  ],
  "patch": {
    "supported": true
  },
  "bulk": {
    "supported": false,
    "maxOperations": 0,
    "maxPayloadSize": 0
  },
  "filter": {
    "supported": true,
    "maxResults": 200
  }
}

GET/api/v1/auth/scim/v2/{project_id}/ResourceTypes

The User and Group resource types.

Who
The identity provider, with the project's SCIM token: Authorization: Bearer scim_… (Authentication › SCIM provisioning).
Also at
/auth/v1/scim/v2/{project_id}/ResourceTypes

Path parameters

project_idstringrequired
The project.

Responses

  • 200Success.
  • 401No SCIM token, or not this project's (SCIM error body).
  • 403The plan has no SCIM (auth.scim) or support turned SCIM off for the project.
curl -s "$URL/api/v1/auth/scim/v2/c0ffee00-0000-4000-8000-000000000000/ResourceTypes" \
  -H "apikey: $ANON_KEY"

GET/api/v1/auth/scim/v2/{project_id}/Schemas

The User and Group schemas.

Who
The identity provider, with the project's SCIM token: Authorization: Bearer scim_… (Authentication › SCIM provisioning).
Also at
/auth/v1/scim/v2/{project_id}/Schemas

Path parameters

project_idstringrequired
The project.

Responses

  • 200Success.
  • 401No SCIM token, or not this project's (SCIM error body).
  • 403The plan has no SCIM (auth.scim) or support turned SCIM off for the project.
curl -s "$URL/api/v1/auth/scim/v2/c0ffee00-0000-4000-8000-000000000000/Schemas" \
  -H "apikey: $ANON_KEY"

GET/api/v1/auth/scim/v2/{project_id}/Users

List the project's app users (SCIM ListResponse).

Who
The identity provider, with the project's SCIM token: Authorization: Bearer scim_… (Authentication › SCIM provisioning).
Also at
/auth/v1/scim/v2/{project_id}/Users

Path parameters

project_idstringrequired
The project.

Query parameters

filterstringoptional
attribute eq "value" on userName, externalId, id, emails.value, active, joined with and.
startIndexintegeroptional
1-based (default 1).
countintegeroptional
Page size, at most 200.

Responses

  • 200Success.
  • 401No SCIM token, or not this project's (SCIM error body).
  • 403The plan has no SCIM (auth.scim) or support turned SCIM off for the project.
  • 400invalidFilter — an operator other than eq, or an attribute that can't be filtered.
curl -s "$URL/api/v1/auth/scim/v2/c0ffee00-0000-4000-8000-000000000000/Users" \
  -H "apikey: $ANON_KEY"
Response
{
  "schemas": [
    "urn:ietf:params:scim:api:messages:2.0:ListResponse"
  ],
  "totalResults": 1,
  "startIndex": 1,
  "itemsPerPage": 1,
  "Resources": [
    {
      "schemas": [
        "urn:ietf:params:scim:schemas:core:2.0:User"
      ],
      "id": "8d1e…",
      "userName": "ada@acme.com",
      "name": {
        "givenName": "Ada",
        "familyName": "Lovelace"
      },
      "displayName": "Ada Lovelace",
      "active": true,
      "emails": [
        {
          "value": "ada@acme.com",
          "primary": true,
          "type": "work"
        }
      ],
      "groups": [
        {
          "value": "3f2a…",
          "display": "Billing Admins",
          "$ref": "https://api.sovaria.in/api/v1/auth/scim/v2/c0ffee00-…/Groups/3f2a…"
        }
      ],
      "externalId": "00u1abcd",
      "meta": {
        "resourceType": "User",
        "created": "2026-10-23T09:00:00Z",
        "lastModified": "2026-10-23T09:00:00Z",
        "location": "https://api.sovaria.in/api/v1/auth/scim/v2/c0ffee00-…/Users/8d1e…"
      }
    }
  ]
}

POST/api/v1/auth/scim/v2/{project_id}/Users

Provision an app user (passwordless; the email counts as verified).

Who
The identity provider, with the project's SCIM token: Authorization: Bearer scim_… (Authentication › SCIM provisioning).
Also at
/auth/v1/scim/v2/{project_id}/Users

Path parameters

project_idstringrequired
The project.

Body

userNamestringrequired
The sign-in email (or give a primary emails value).
nameobjectoptional
givenName, familyName, formatted.
displayNamestringoptional
Shown name.
emailsarrayoptional
[{value, primary, type}].
activebooleanoptional
Default true.
externalIdstringoptional
The identity provider's id.

Responses

  • 201Created.
  • 401No SCIM token, or not this project's (SCIM error body).
  • 403The plan has no SCIM (auth.scim) or support turned SCIM off for the project.
  • 400invalidValue — no email in userName or emails.
  • 409uniqueness — a user with this email exists.
curl -s -X POST "$URL/api/v1/auth/scim/v2/c0ffee00-0000-4000-8000-000000000000/Users" \
  -H "apikey: $ANON_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"schemas": ["urn:ietf:params:scim:schemas:core:2.0:User"], "userName": "ada@acme.com", "name": {"givenName": "Ada", "familyName": "Lovelace"}, "externalId": "00u1abcd", "active": true}'
Response
{
  "schemas": [
    "urn:ietf:params:scim:schemas:core:2.0:User"
  ],
  "id": "8d1e…",
  "userName": "ada@acme.com",
  "name": {
    "givenName": "Ada",
    "familyName": "Lovelace"
  },
  "displayName": "Ada Lovelace",
  "active": true,
  "emails": [
    {
      "value": "ada@acme.com",
      "primary": true,
      "type": "work"
    }
  ],
  "groups": [
    {
      "value": "3f2a…",
      "display": "Billing Admins",
      "$ref": "https://api.sovaria.in/api/v1/auth/scim/v2/c0ffee00-…/Groups/3f2a…"
    }
  ],
  "externalId": "00u1abcd",
  "meta": {
    "resourceType": "User",
    "created": "2026-10-23T09:00:00Z",
    "lastModified": "2026-10-23T09:00:00Z",
    "location": "https://api.sovaria.in/api/v1/auth/scim/v2/c0ffee00-…/Users/8d1e…"
  }
}

GET/api/v1/auth/scim/v2/{project_id}/Users/{user_id}

One app user.

Who
The identity provider, with the project's SCIM token: Authorization: Bearer scim_… (Authentication › SCIM provisioning).
Also at
/auth/v1/scim/v2/{project_id}/Users/{user_id}

Path parameters

project_idstringrequired
The project.
user_idstringrequired
The user id.

Responses

  • 200Success.
  • 401No SCIM token, or not this project's (SCIM error body).
  • 403The plan has no SCIM (auth.scim) or support turned SCIM off for the project.
  • 404No such user in this project.
curl -s "$URL/api/v1/auth/scim/v2/c0ffee00-0000-4000-8000-000000000000/Users/8d1e0000-0000-4000-8000-000000000000" \
  -H "apikey: $ANON_KEY"
Response
{
  "schemas": [
    "urn:ietf:params:scim:schemas:core:2.0:User"
  ],
  "id": "8d1e…",
  "userName": "ada@acme.com",
  "name": {
    "givenName": "Ada",
    "familyName": "Lovelace"
  },
  "displayName": "Ada Lovelace",
  "active": true,
  "emails": [
    {
      "value": "ada@acme.com",
      "primary": true,
      "type": "work"
    }
  ],
  "groups": [
    {
      "value": "3f2a…",
      "display": "Billing Admins",
      "$ref": "https://api.sovaria.in/api/v1/auth/scim/v2/c0ffee00-…/Groups/3f2a…"
    }
  ],
  "externalId": "00u1abcd",
  "meta": {
    "resourceType": "User",
    "created": "2026-10-23T09:00:00Z",
    "lastModified": "2026-10-23T09:00:00Z",
    "location": "https://api.sovaria.in/api/v1/auth/scim/v2/c0ffee00-…/Users/8d1e…"
  }
}

PUT/api/v1/auth/scim/v2/{project_id}/Users/{user_id}

Replace a user's profile, email and active.

active: false blocks sign-in and ends every session.

Who
The identity provider, with the project's SCIM token: Authorization: Bearer scim_… (Authentication › SCIM provisioning).
Also at
/auth/v1/scim/v2/{project_id}/Users/{user_id}

Path parameters

project_idstringrequired
The project.
user_idstringrequired
The user id.

Body

userNamestringrequired
The sign-in email.
activebooleanoptional
false deactivates.

Responses

  • 200Success.
  • 401No SCIM token, or not this project's (SCIM error body).
  • 403The plan has no SCIM (auth.scim) or support turned SCIM off for the project.
  • 404No such user.
  • 409uniqueness — another user has this email.
curl -s -X PUT "$URL/api/v1/auth/scim/v2/c0ffee00-0000-4000-8000-000000000000/Users/8d1e0000-0000-4000-8000-000000000000" \
  -H "apikey: $ANON_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"userName": "ada@acme.com", "active": false}'
Response
{
  "schemas": [
    "urn:ietf:params:scim:schemas:core:2.0:User"
  ],
  "id": "8d1e…",
  "userName": "ada@acme.com",
  "name": {
    "givenName": "Ada",
    "familyName": "Lovelace"
  },
  "displayName": "Ada Lovelace",
  "active": true,
  "emails": [
    {
      "value": "ada@acme.com",
      "primary": true,
      "type": "work"
    }
  ],
  "groups": [
    {
      "value": "3f2a…",
      "display": "Billing Admins",
      "$ref": "https://api.sovaria.in/api/v1/auth/scim/v2/c0ffee00-…/Groups/3f2a…"
    }
  ],
  "externalId": "00u1abcd",
  "meta": {
    "resourceType": "User",
    "created": "2026-10-23T09:00:00Z",
    "lastModified": "2026-10-23T09:00:00Z",
    "location": "https://api.sovaria.in/api/v1/auth/scim/v2/c0ffee00-…/Users/8d1e…"
  }
}

PATCH/api/v1/auth/scim/v2/{project_id}/Users/{user_id}

Change a user with SCIM PATCH operations (Okta and Entra ID forms).

Who
The identity provider, with the project's SCIM token: Authorization: Bearer scim_… (Authentication › SCIM provisioning).
Also at
/auth/v1/scim/v2/{project_id}/Users/{user_id}

Path parameters

project_idstringrequired
The project.
user_idstringrequired
The user id.

Body

Operationsarrayrequired
[{op: add|replace|remove, path?, value}]; paths active, userName, displayName, externalId, name.*, emails.

Responses

  • 200Success.
  • 401No SCIM token, or not this project's (SCIM error body).
  • 403The plan has no SCIM (auth.scim) or support turned SCIM off for the project.
  • 400invalidPath / invalidSyntax.
  • 404No such user.
curl -s -X PATCH "$URL/api/v1/auth/scim/v2/c0ffee00-0000-4000-8000-000000000000/Users/8d1e0000-0000-4000-8000-000000000000" \
  -H "apikey: $ANON_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"schemas": ["urn:ietf:params:scim:api:messages:2.0:PatchOp"], "Operations": [{"op": "replace", "path": "active", "value": false}]}'
Response
{
  "schemas": [
    "urn:ietf:params:scim:schemas:core:2.0:User"
  ],
  "id": "8d1e…",
  "userName": "ada@acme.com",
  "name": {
    "givenName": "Ada",
    "familyName": "Lovelace"
  },
  "displayName": "Ada Lovelace",
  "active": true,
  "emails": [
    {
      "value": "ada@acme.com",
      "primary": true,
      "type": "work"
    }
  ],
  "groups": [
    {
      "value": "3f2a…",
      "display": "Billing Admins",
      "$ref": "https://api.sovaria.in/api/v1/auth/scim/v2/c0ffee00-…/Groups/3f2a…"
    }
  ],
  "externalId": "00u1abcd",
  "meta": {
    "resourceType": "User",
    "created": "2026-10-23T09:00:00Z",
    "lastModified": "2026-10-23T09:00:00Z",
    "location": "https://api.sovaria.in/api/v1/auth/scim/v2/c0ffee00-…/Users/8d1e…"
  }
}

DELETE/api/v1/auth/scim/v2/{project_id}/Users/{user_id}

Delete an app user (sessions end at once).

Who
The identity provider, with the project's SCIM token: Authorization: Bearer scim_… (Authentication › SCIM provisioning).
Also at
/auth/v1/scim/v2/{project_id}/Users/{user_id}

Path parameters

project_idstringrequired
The project.
user_idstringrequired
The user id.

Responses

  • 204Success, with no body.
  • 401No SCIM token, or not this project's (SCIM error body).
  • 403The plan has no SCIM (auth.scim) or support turned SCIM off for the project.
  • 404No such user.
curl -s -X DELETE "$URL/api/v1/auth/scim/v2/c0ffee00-0000-4000-8000-000000000000/Users/8d1e0000-0000-4000-8000-000000000000" \
  -H "apikey: $ANON_KEY"

GET/api/v1/auth/scim/v2/{project_id}/Groups

List groups (each is an app role).

Who
The identity provider, with the project's SCIM token: Authorization: Bearer scim_… (Authentication › SCIM provisioning).
Also at
/auth/v1/scim/v2/{project_id}/Groups

Path parameters

project_idstringrequired
The project.

Query parameters

filterstringoptional
eq on displayName, externalId, id, members.value.
excludedAttributesstringoptional
members to leave members out.
startIndexintegeroptional
1-based.
countintegeroptional
At most 200.

Responses

  • 200Success.
  • 401No SCIM token, or not this project's (SCIM error body).
  • 403The plan has no SCIM (auth.scim) or support turned SCIM off for the project.
curl -s "$URL/api/v1/auth/scim/v2/c0ffee00-0000-4000-8000-000000000000/Groups" \
  -H "apikey: $ANON_KEY"
Response
{
  "schemas": [
    "urn:ietf:params:scim:api:messages:2.0:ListResponse"
  ],
  "totalResults": 1,
  "startIndex": 1,
  "itemsPerPage": 1,
  "Resources": [
    {
      "schemas": [
        "urn:ietf:params:scim:schemas:core:2.0:Group"
      ],
      "id": "3f2a…",
      "displayName": "Billing Admins",
      "members": [
        {
          "value": "8d1e…",
          "display": "ada@acme.com",
          "$ref": "…/Users/8d1e…"
        }
      ],
      "urn:sovaria:scim:Group": {
        "role": "BILLING_ADMINS"
      },
      "meta": {
        "resourceType": "Group",
        "created": "2026-10-23T09:00:00Z",
        "lastModified": "2026-10-23T09:00:00Z",
        "location": "…/Groups/3f2a…"
      }
    }
  ]
}

POST/api/v1/auth/scim/v2/{project_id}/Groups

Create a group: its members get the app role named after it ("Billing Admins" → BILLING_ADMINS).

Who
The identity provider, with the project's SCIM token: Authorization: Bearer scim_… (Authentication › SCIM provisioning).
Also at
/auth/v1/scim/v2/{project_id}/Groups

Path parameters

project_idstringrequired
The project.

Body

displayNamestringrequired
The group's name; the role is its upper-case form.
membersarrayoptional
[{value: user id}].
externalIdstringoptional
The identity provider's id.

Responses

  • 201Created.
  • 401No SCIM token, or not this project's (SCIM error body).
  • 403The plan has no SCIM (auth.scim) or support turned SCIM off for the project.
  • 400invalidValue — a reserved role name or an unknown member.
  • 409uniqueness — a group with this name or role exists.
curl -s -X POST "$URL/api/v1/auth/scim/v2/c0ffee00-0000-4000-8000-000000000000/Groups" \
  -H "apikey: $ANON_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"schemas": ["urn:ietf:params:scim:schemas:core:2.0:Group"], "displayName": "Billing Admins", "members": [{"value": "8d1e…"}]}'
Response
{
  "schemas": [
    "urn:ietf:params:scim:schemas:core:2.0:Group"
  ],
  "id": "3f2a…",
  "displayName": "Billing Admins",
  "members": [
    {
      "value": "8d1e…",
      "display": "ada@acme.com",
      "$ref": "…/Users/8d1e…"
    }
  ],
  "urn:sovaria:scim:Group": {
    "role": "BILLING_ADMINS"
  },
  "meta": {
    "resourceType": "Group",
    "created": "2026-10-23T09:00:00Z",
    "lastModified": "2026-10-23T09:00:00Z",
    "location": "…/Groups/3f2a…"
  }
}

GET/api/v1/auth/scim/v2/{project_id}/Groups/{group_id}

One group with its members.

Who
The identity provider, with the project's SCIM token: Authorization: Bearer scim_… (Authentication › SCIM provisioning).
Also at
/auth/v1/scim/v2/{project_id}/Groups/{group_id}

Path parameters

project_idstringrequired
The project.
group_idstringrequired
The group id.

Responses

  • 200Success.
  • 401No SCIM token, or not this project's (SCIM error body).
  • 403The plan has no SCIM (auth.scim) or support turned SCIM off for the project.
  • 404No such group.
curl -s "$URL/api/v1/auth/scim/v2/c0ffee00-0000-4000-8000-000000000000/Groups/3f2a0000-0000-4000-8000-000000000000" \
  -H "apikey: $ANON_KEY"
Response
{
  "schemas": [
    "urn:ietf:params:scim:schemas:core:2.0:Group"
  ],
  "id": "3f2a…",
  "displayName": "Billing Admins",
  "members": [
    {
      "value": "8d1e…",
      "display": "ada@acme.com",
      "$ref": "…/Users/8d1e…"
    }
  ],
  "urn:sovaria:scim:Group": {
    "role": "BILLING_ADMINS"
  },
  "meta": {
    "resourceType": "Group",
    "created": "2026-10-23T09:00:00Z",
    "lastModified": "2026-10-23T09:00:00Z",
    "location": "…/Groups/3f2a…"
  }
}

PUT/api/v1/auth/scim/v2/{project_id}/Groups/{group_id}

Replace a group's name (the role follows) and members.

Who
The identity provider, with the project's SCIM token: Authorization: Bearer scim_… (Authentication › SCIM provisioning).
Also at
/auth/v1/scim/v2/{project_id}/Groups/{group_id}

Path parameters

project_idstringrequired
The project.
group_idstringrequired
The group id.

Body

displayNamestringrequired
New name.
membersarrayoptional
The complete member list.

Responses

  • 200Success.
  • 401No SCIM token, or not this project's (SCIM error body).
  • 403The plan has no SCIM (auth.scim) or support turned SCIM off for the project.
  • 404No such group.
  • 409uniqueness.
curl -s -X PUT "$URL/api/v1/auth/scim/v2/c0ffee00-0000-4000-8000-000000000000/Groups/3f2a0000-0000-4000-8000-000000000000" \
  -H "apikey: $ANON_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"displayName": "Finance", "members": [{"value": "8d1e…"}]}'
Response
{
  "schemas": [
    "urn:ietf:params:scim:schemas:core:2.0:Group"
  ],
  "id": "3f2a…",
  "displayName": "Billing Admins",
  "members": [
    {
      "value": "8d1e…",
      "display": "ada@acme.com",
      "$ref": "…/Users/8d1e…"
    }
  ],
  "urn:sovaria:scim:Group": {
    "role": "BILLING_ADMINS"
  },
  "meta": {
    "resourceType": "Group",
    "created": "2026-10-23T09:00:00Z",
    "lastModified": "2026-10-23T09:00:00Z",
    "location": "…/Groups/3f2a…"
  }
}

PATCH/api/v1/auth/scim/v2/{project_id}/Groups/{group_id}

Add or remove members, or rename, with SCIM PATCH.

Members whose roles change get their sessions ended, so new tokens carry the new roles.

Who
The identity provider, with the project's SCIM token: Authorization: Bearer scim_… (Authentication › SCIM provisioning).
Also at
/auth/v1/scim/v2/{project_id}/Groups/{group_id}

Path parameters

project_idstringrequired
The project.
group_idstringrequired
The group id.

Body

Operationsarrayrequired
add/remove/replace on members (also members[value eq "id"]), displayName, externalId.

Responses

  • 200Success.
  • 401No SCIM token, or not this project's (SCIM error body).
  • 403The plan has no SCIM (auth.scim) or support turned SCIM off for the project.
  • 400invalidPath / invalidValue.
  • 404No such group.
curl -s -X PATCH "$URL/api/v1/auth/scim/v2/c0ffee00-0000-4000-8000-000000000000/Groups/3f2a0000-0000-4000-8000-000000000000" \
  -H "apikey: $ANON_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"schemas": ["urn:ietf:params:scim:api:messages:2.0:PatchOp"], "Operations": [{"op": "add", "path": "members", "value": [{"value": "8d1e…"}]}]}'
Response
{
  "schemas": [
    "urn:ietf:params:scim:schemas:core:2.0:Group"
  ],
  "id": "3f2a…",
  "displayName": "Billing Admins",
  "members": [
    {
      "value": "8d1e…",
      "display": "ada@acme.com",
      "$ref": "…/Users/8d1e…"
    }
  ],
  "urn:sovaria:scim:Group": {
    "role": "BILLING_ADMINS"
  },
  "meta": {
    "resourceType": "Group",
    "created": "2026-10-23T09:00:00Z",
    "lastModified": "2026-10-23T09:00:00Z",
    "location": "…/Groups/3f2a…"
  }
}

DELETE/api/v1/auth/scim/v2/{project_id}/Groups/{group_id}

Delete a group: its members lose the role.

Who
The identity provider, with the project's SCIM token: Authorization: Bearer scim_… (Authentication › SCIM provisioning).
Also at
/auth/v1/scim/v2/{project_id}/Groups/{group_id}

Path parameters

project_idstringrequired
The project.
group_idstringrequired
The group id.

Responses

  • 204Success, with no body.
  • 401No SCIM token, or not this project's (SCIM error body).
  • 403The plan has no SCIM (auth.scim) or support turned SCIM off for the project.
  • 404No such group.
curl -s -X DELETE "$URL/api/v1/auth/scim/v2/c0ffee00-0000-4000-8000-000000000000/Groups/3f2a0000-0000-4000-8000-000000000000" \
  -H "apikey: $ANON_KEY"

#Social and OIDC sign-in with your own OAuth app

GET/api/v1/auth/oidc/presets

Sign-in providers you can connect with your own OAuth app, and the callback URL to register with each.

Presets: google, microsoft, apple, gitlab, linkedin, slack, twitch, github, discord, facebook, spotify, bitbucket, sovaria, and custom_oidc for any OpenID Connect provider.

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/oidc/presets

Returns

kindstring
oidc or oauth2.
console_urlstring
Where to create the OAuth app.
callback_urlstring
The redirect URI to register there.

Responses

  • 200Success.
  • 401No valid session or key.
curl -s "$URL/api/v1/auth/oidc/presets" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"
Response
[
  {
    "id": "google",
    "name": "Google",
    "kind": "oidc",
    "scopes": [
      "openid",
      "email",
      "profile"
    ],
    "console_url": "https://console.cloud.google.com/apis/credentials",
    "discovery_url": "https://accounts.google.com/.well-known/openid-configuration",
    "authorize_url": "",
    "token_url": "",
    "userinfo_url": "",
    "emails_url": "",
    "token_auth": "body",
    "mapping": {},
    "trusts_email": true,
    "note": "",
    "callback_url": "https://api.sovaria.in/api/v1/auth/sso/google/callback"
  }
]

GET/api/v1/auth/oidc/providers

The project's connected sign-in providers (secrets are never returned).

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/oidc/providers

Responses

  • 200Success.
  • 401No valid session or key.
curl -s "$URL/api/v1/auth/oidc/providers" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"
Response
[
  {
    "preset": "google",
    "kind": "oidc",
    "discovery_url": "https://accounts.google.com/.well-known/openid-configuration",
    "issuer": "https://accounts.google.com",
    "authorization_endpoint": "https://accounts.google.com/o/oauth2/v2/auth",
    "token_endpoint": "https://oauth2.googleapis.com/token",
    "jwks_uri": "https://www.googleapis.com/oauth2/v3/certs",
    "id": "google",
    "name": "Google",
    "client_id": "1234-abc.apps.googleusercontent.com",
    "allowed_domains": [],
    "scopes": [
      "openid",
      "email",
      "profile"
    ],
    "enabled": true,
    "created_at": "2026-10-05T12:00:00Z",
    "has_secret": true,
    "callback_url": "https://api.sovaria.in/api/v1/auth/sso/google/callback"
  }
]

POST/api/v1/auth/oidc/providers

Connect a sign-in provider with your own OAuth app (Google, GitHub, Apple, any OIDC provider…).

Create the OAuth app at the provider first, with the preset's callback_url as its redirect URI. OIDC providers are checked now (their discovery document must load). A preset's id becomes the provider id (google); custom_oidc gets a generated id. The number of providers is limited by the plan (auth.oauth_providers). Apps then sign users in with GET /auth/sso/{id}/authorize (Social sign-in).

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/oidc/providers

Body

presetstringoptionaldefault custom_oidc
A preset id, or custom_oidc.
namestring | nulloptional
Shown on the sign-in button.
0–128 characters
discovery_urlstring | nulloptional
https://…/.well-known/openid-configuration (required for custom_oidc).
0–2,048 characters
client_idstringrequired
From the provider.
1–512 characters
client_secretstringoptional
From the provider (stored encrypted).
0–8,192 characters
client_secret_fromstring | nulloptional
Take the client secret from this project secret (Settings › Secrets) instead of sending it: the value is read on the server and never leaves it. How Sovariq connects a provider after the user stores the secret.
0–64 characters, pattern `^[A-Z][A-Z0-9_]{1,63}$`
allowed_domainsarray<string>optional
Only these email domains may sign in (empty = any).
scopesarray<string> | nulloptional
Scopes to ask for (the preset's by default).
enabledbooleanoptionaldefault true
On or off.
native_client_idsarray<string>optional
Extra audiences accepted for native ID-token sign-in (iOS bundle ID, Android/iOS OAuth client IDs)
0–10 items

Responses

  • 201The provider, as in the list (with has_secret: true and its callback_url).
  • 400No https discovery URL, or discovery failed (the message says why).
  • 403PLAN_LIMIT_REACHED — more providers than the plan allows.
  • 401No valid session or key.
  • 422The body is missing a required field or has a field of the wrong type.
curl -s -X POST "$URL/api/v1/auth/oidc/providers" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"preset": "google", "client_id": "1234-abc.apps.googleusercontent.com", "client_secret": "<client secret>", "allowed_domains": ["skolist.com"]}'

PATCH/api/v1/auth/oidc/providers/{provider_id}

Change a provider's name, credentials, allowed domains, scopes or switch it off.

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/oidc/providers/{provider_id}

Path parameters

provider_idstringrequired
The provider.

Body

namestring | nulloptional
Name.
0–128 characters
client_idstring | nulloptional
Client id.
1–512 characters
client_secretstring | nulloptional
New secret.
1–8,192 characters
client_secret_fromstring | nulloptional
0–64 characters, pattern `^[A-Z][A-Z0-9_]{1,63}$`
allowed_domainsarray<string> | nulloptional
Domains.
scopesarray<string> | nulloptional
Scopes.
enabledboolean | nulloptional
On or off.
native_client_idsarray<string> | nulloptional
0–10 items

Responses

  • 200The provider.
  • 404No such provider.
  • 401No valid session or key.
  • 422The body is missing a required field or has a field of the wrong type.
curl -s -X PATCH "$URL/api/v1/auth/oidc/providers/google" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"allowed_domains": ["skolist.com", "skolist.io"]}'

DELETE/api/v1/auth/oidc/providers/{provider_id}

Disconnect a provider. Users who signed in with it keep their accounts.

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/oidc/providers/{provider_id}

Path parameters

provider_idstringrequired
The provider.

Responses

  • 204Success, with no body.
  • 404No such provider.
  • 401No valid session or key.
curl -s -X DELETE "$URL/api/v1/auth/oidc/providers/google" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

#SAML connections

Connect a company's identity provider (Okta, Microsoft Entra ID, Google Workspace…) so its people sign in to your app with SAML. One connection per IdP, each for its e-mail domains; up to 20 per project. Needs the Team plan or higher (res.sso). Project owners and admins.

GET/api/v1/auth/saml/connections

The project's SAML connections.

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/saml/connections

Responses

  • 200Success.
  • 401No valid session or key.
curl -s "$URL/api/v1/auth/saml/connections" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"
Response
[
  {
    "id": "3c9a7e21-5b4d-4f08-9a6e-1d2c3b4a5f60",
    "name": "Acme Okta",
    "domains": [
      "acme.com"
    ],
    "enabled": true,
    "idp_entity_id": "http://www.okta.com/exk1a2b3c",
    "idp_sso_url": "https://acme.okta.com/app/acme_sovaria/exk1a2b3c/sso/saml",
    "email_attribute": "email",
    "name_attribute": "displayName",
    "created_at": "2026-10-25T09:12:00Z",
    "certificate_set": true,
    "sp_entity_id": "https://api.sovaria.in/api/v1/auth/sso/saml/3c9a7e21-5b4d-4f08-9a6e-1d2c3b4a5f60/metadata",
    "acs_url": "https://api.sovaria.in/api/v1/auth/sso/saml/3c9a7e21-5b4d-4f08-9a6e-1d2c3b4a5f60/acs",
    "metadata_url": "https://api.sovaria.in/api/v1/auth/sso/saml/3c9a7e21-5b4d-4f08-9a6e-1d2c3b4a5f60/metadata"
  }
]

POST/api/v1/auth/saml/connections

Add a SAML connection.

Give the IdP's metadata XML, or its entity ID, sign-in URL and certificate. Then give the IdP the acs_url and sp_entity_id from the answer (or the metadata_url).

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/saml/connections

Body

namestringrequired
A name you recognise (shown on the sign-in screen).
1–128 characters
domainsarray<string>required
E-mail domains this IdP signs in (each in one connection only).
1–50 items
metadata_xmlstring | nulloptional
The IdP's metadata document; fills in the three fields below.
0–200,000 characters
idp_entity_idstring | nulloptional
The IdP's entity ID (issuer).
0–1,024 characters
idp_sso_urlstring | nulloptional
The IdP's sign-in URL (HTTP-Redirect binding), https.
0–2,048 characters
idp_certificate_pemstring | nulloptional
The IdP's signing certificate (PEM). Stored encrypted, never shown again.
0–20,000 characters
email_attributestringoptionaldefault email
The attribute with the user's e-mail (default email; the NameID is used when it is an e-mail).
0–256 characters
name_attributestring | nulloptional
The attribute with the display name.
0–256 characters
enabledbooleanoptionaldefault true
Off keeps the connection but refuses sign-ins.
jit_provisioningbooleanoptionaldefault false
Create users on first SAML sign-in even when the project's public sign-up is off

Responses

  • 201Created.
  • 403PLAN_FEATURE_REQUIRED: needs the Team plan or higher; or you aren't an owner or admin of the project.
  • 409A domain already signs in with another connection, or the project has 20 connections.
  • 422No usable IdP details, a domain that isn't one, a certificate that isn't X.509, or a sign-in URL that isn't https.
  • 401No valid session or key.
curl -s -X POST "$URL/api/v1/auth/saml/connections" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"name": "Acme Okta", "domains": ["acme.com"], "metadata_xml": "<EntityDescriptor …>…</EntityDescriptor>"}'
Response
{
  "id": "3c9a7e21-5b4d-4f08-9a6e-1d2c3b4a5f60",
  "name": "Acme Okta",
  "domains": [
    "acme.com"
  ],
  "enabled": true,
  "idp_entity_id": "http://www.okta.com/exk1a2b3c",
  "idp_sso_url": "https://acme.okta.com/app/acme_sovaria/exk1a2b3c/sso/saml",
  "email_attribute": "email",
  "name_attribute": "displayName",
  "created_at": "2026-10-25T09:12:00Z",
  "certificate_set": true,
  "sp_entity_id": "https://api.sovaria.in/api/v1/auth/sso/saml/3c9a7e21-5b4d-4f08-9a6e-1d2c3b4a5f60/metadata",
  "acs_url": "https://api.sovaria.in/api/v1/auth/sso/saml/3c9a7e21-5b4d-4f08-9a6e-1d2c3b4a5f60/acs",
  "metadata_url": "https://api.sovaria.in/api/v1/auth/sso/saml/3c9a7e21-5b4d-4f08-9a6e-1d2c3b4a5f60/metadata"
}

PATCH/api/v1/auth/saml/connections/{connection_id}

Change a SAML connection (only the fields you send).

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/saml/connections/{connection_id}

Path parameters

connection_idstringrequired
The connection.

Body

namestring | nulloptional
A name you recognise (shown on the sign-in screen).
1–128 characters
domainsarray<string> | nulloptional
E-mail domains this IdP signs in (each in one connection only).
1–50 items
metadata_xmlstring | nulloptional
The IdP's metadata document; fills in the three fields below.
0–200,000 characters
idp_entity_idstring | nulloptional
The IdP's entity ID (issuer).
0–1,024 characters
idp_sso_urlstring | nulloptional
The IdP's sign-in URL (HTTP-Redirect binding), https.
0–2,048 characters
idp_certificate_pemstring | nulloptional
The IdP's signing certificate (PEM). Stored encrypted, never shown again.
0–20,000 characters
email_attributestring | nulloptional
The attribute with the user's e-mail (default email; the NameID is used when it is an e-mail).
0–256 characters
name_attributestring | nulloptional
The attribute with the display name.
0–256 characters
enabledboolean | nulloptional
Off keeps the connection but refuses sign-ins.
jit_provisioningboolean | nulloptional

Responses

  • 200Success.
  • 404No such connection.
  • 409A domain already signs in with another connection.
  • 422See adding a connection.
  • 401No valid session or key.
curl -s -X PATCH "$URL/api/v1/auth/saml/connections/3c9a7e21-5b4d-4f08-9a6e-1d2c3b4a5f60" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"enabled": false}'
Response
{
  "id": "3c9a7e21-5b4d-4f08-9a6e-1d2c3b4a5f60",
  "name": "Acme Okta",
  "domains": [
    "acme.com"
  ],
  "enabled": false,
  "idp_entity_id": "http://www.okta.com/exk1a2b3c",
  "idp_sso_url": "https://acme.okta.com/app/acme_sovaria/exk1a2b3c/sso/saml",
  "email_attribute": "email",
  "name_attribute": "displayName",
  "created_at": "2026-10-25T09:12:00Z",
  "certificate_set": true,
  "sp_entity_id": "https://api.sovaria.in/api/v1/auth/sso/saml/3c9a7e21-5b4d-4f08-9a6e-1d2c3b4a5f60/metadata",
  "acs_url": "https://api.sovaria.in/api/v1/auth/sso/saml/3c9a7e21-5b4d-4f08-9a6e-1d2c3b4a5f60/acs",
  "metadata_url": "https://api.sovaria.in/api/v1/auth/sso/saml/3c9a7e21-5b4d-4f08-9a6e-1d2c3b4a5f60/metadata",
  "updated_at": "2026-10-25T10:00:00Z"
}

DELETE/api/v1/auth/saml/connections/{connection_id}

Remove a SAML connection.

Its users stay; they sign in another way (a magic link, or another connection for their domain).

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/saml/connections/{connection_id}

Path parameters

connection_idstringrequired
The connection.

Responses

  • 204Success, with no body.
  • 404No such connection.
  • 401No valid session or key.
curl -s -X DELETE "$URL/api/v1/auth/saml/connections/3c9a7e21-5b4d-4f08-9a6e-1d2c3b4a5f60" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

#Your project as an OAuth provider

GET/api/v1/auth/oauth-apps

Apps that can sign in with your project as their OAuth provider ("Sign in with Skolist").

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/oauth-apps

Responses

  • 200Success.
  • 401No valid session or key.
curl -s "$URL/api/v1/auth/oauth-apps" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"
Response
{
  "server_enabled": true,
  "apps": [
    {
      "id": "7f2c…",
      "name": "Skolist Analytics",
      "client_id": "sov_3f9a1c0b7e2d4a6f8c1e",
      "redirect_uris": [
        "https://analytics.skolist.com/callback"
      ],
      "scopes": [
        "email",
        "openid",
        "profile"
      ],
      "enabled": true,
      "created_at": "2026-10-11T09:00:00+00:00",
      "client_secret_set": true
    }
  ]
}

PUT/api/v1/auth/oauth-server

Turn the project's OAuth server on or off.

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/oauth-server

Body

enabledbooleanrequired
On or off.

Responses

  • 200Success.
  • 401No valid session or key.
  • 422The body is missing a required field or has a field of the wrong type.
curl -s -X PUT "$URL/api/v1/auth/oauth-server" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"enabled": true}'
Response
{
  "enabled": true
}

POST/api/v1/auth/oauth-apps

Register an app that signs in with your project. The client secret is shown only in this answer.

Redirect URIs must be https, or http on localhost. Scopes default to openid, profile, email. Up to 50 apps per project.

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/oauth-apps

Body

namestringrequired
The app's name.
1–128 characters
redirect_urisarray<string>required
Where users return after signing in.
1–… items
scopesarray<string> | nulloptional
Scopes it may ask for.
enabledbooleanoptionaldefault true
On or off.

Responses

  • 201Created.
  • 400Invalid redirect URI, no name, or already 50 apps.
  • 401No valid session or key.
  • 422The body is missing a required field or has a field of the wrong type.
curl -s -X POST "$URL/api/v1/auth/oauth-apps" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"name": "Skolist Analytics", "redirect_uris": ["https://analytics.skolist.com/callback"]}'
Response
{
  "id": "7f2c…",
  "name": "Skolist Analytics",
  "client_id": "sov_3f9a1c0b7e2d4a6f8c1e",
  "redirect_uris": [
    "https://analytics.skolist.com/callback"
  ],
  "scopes": [
    "openid",
    "profile",
    "email"
  ],
  "enabled": true,
  "created_at": "2026-10-18T10:20:00+00:00",
  "client_secret_set": true,
  "client_secret": "q3Zr…(43 characters)"
}

PATCH/api/v1/auth/oauth-apps/{app_id}

Change an OAuth app.

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/oauth-apps/{app_id}

Path parameters

app_idstringrequired
The app's id.

Body

namestring | nulloptional
Name.
1–128 characters
redirect_urisarray<string> | nulloptional
Redirect URIs.
1–… items
scopesarray<string> | nulloptional
Scopes.
enabledboolean | nulloptional
On or off.

Responses

  • 200The app (without the secret).
  • 400Nothing to change, or an invalid value.
  • 404No such app.
  • 401No valid session or key.
  • 422The body is missing a required field or has a field of the wrong type.
curl -s -X PATCH "$URL/api/v1/auth/oauth-apps/7f2c…" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"enabled": false}'

DELETE/api/v1/auth/oauth-apps/{app_id}

Remove an OAuth app; its tokens stop working.

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/oauth-apps/{app_id}

Path parameters

app_idstringrequired
The app.

Responses

  • 204Success, with no body.
  • 404No such app.
  • 401No valid session or key.
curl -s -X DELETE "$URL/api/v1/auth/oauth-apps/7f2c…" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

#Token keys

GET/api/v1/auth/project-jwks

The public keys that sign the project's app-user tokens, to verify them in your own backend.

A JSON Web Key Set (ES256). Cache it; keys rotate with overlap, so look up the token's kid (Sessions and tokens).

Who
Anyone: no key or session is needed.
Also at
/auth/v1/.well-known/jwks.json, /auth/v1/project-jwks

Responses

  • 200Success.
  • 401No valid session or key.
curl -s "$URL/api/v1/auth/project-jwks" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"
Response
{
  "keys": [
    {
      "kty": "EC",
      "crv": "P-256",
      "x": "f83OJ3D2xF1Bg8vub9tLe1gHMzV76e8Tus9uPHvRVEU",
      "y": "x_FEzRu9m36HLN_tue659LNpXW6pCyStikYjKIWI5a0",
      "kid": "p.f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07.7c1e9a04",
      "alg": "ES256",
      "use": "sig"
    }
  ]
}

#Console sign-in (SAML, GitHub, Google, Microsoft, CLI)

These sign people in to the Sovaria console itself, not to your app.

GET/api/v1/auth/saml/login

Start SAML single sign-on into the Sovaria console for an organization (redirects to your identity provider).

For console members of organizations with SAML set up (Team plan and above). The browser is redirected (302) to the identity provider; after sign-in it comes back to the console signed in.

Who
Anyone: no key or session is needed.
Also at
/auth/v1/saml/login

Query parameters

org_idstringrequired
The organization.

Responses

  • 200302 redirect to the identity provider.
  • 400SAML isn't enabled or has no IdP SSO URL.
  • 403SAML SSO requires the Team plan or higher.
curl -s "$URL/api/v1/auth/saml/login?org_id=b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90" \
  -H "apikey: $ANON_KEY"

GET/api/v1/auth/saml/metadata/{org_id}

The organization's SAML service-provider metadata (XML), to load into your identity provider.

Who
Anyone: no key or session is needed.
Also at
/auth/v1/saml/metadata/{org_id}

Path parameters

org_idstringrequired
The organization.

Responses

  • 200application/samlmetadata+xml with the entity id and the ACS URL …/api/v1/auth/saml/acs.
curl -s "$URL/api/v1/auth/saml/metadata/b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90" \
  -H "apikey: $ANON_KEY"

GET/api/v1/auth/github/login

Sign in to the Sovaria console with GitHub, or connect GitHub to a project (browser redirect).

Redirects to GitHub. Afterwards the browser returns to redirect_uri with ?handoff=<one-time token> (valid 60 s), which the page exchanges with POST /api/v1/auth/oauth/handoff. With project_id it connects GitHub to that project; access=repo also allows writing to repositories.

Who
Anyone: no key or session is needed.
Also at
/auth/v1/github/login

Query parameters

redirect_uristringrequired
Where to return (a Sovaria address).
project_idstring | nulloptional
Connect GitHub to this project instead of signing in.
accessstring | nulloptional
repo for repository write access.

Responses

  • 200302 redirect to GitHub.
  • 400redirect_uri isn't allowed.
curl -s "$URL/api/v1/auth/github/login?redirect_uri=https://console.sovaria.in/auth/callback" \
  -H "apikey: $ANON_KEY"

GET/api/v1/auth/google/login

Sign in to the Sovaria console with Google (browser redirect).

Returns to redirect_uri with ?handoff=<one-time token> to exchange with POST /api/v1/auth/oauth/handoff.

Who
Anyone: no key or session is needed.
Also at
/auth/v1/google/login

Query parameters

redirect_uristringrequired
Where to return (a Sovaria address).

Responses

  • 200302 redirect to Google.
  • 400redirect_uri isn't allowed.
  • 401No valid session or key.
curl -s "$URL/api/v1/auth/google/login?redirect_uri=https://console.sovaria.in/auth/callback" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

GET/api/v1/auth/microsoft/login

Sign in to the Sovaria console with Microsoft (browser redirect).

Returns to redirect_uri with ?handoff=<one-time token> to exchange with POST /api/v1/auth/oauth/handoff.

Who
Anyone: no key or session is needed.
Also at
/auth/v1/microsoft/login

Query parameters

redirect_uristringrequired
Where to return (a Sovaria address).

Responses

  • 200302 redirect to Microsoft.
  • 400redirect_uri isn't allowed.
  • 401No valid session or key.
curl -s "$URL/api/v1/auth/microsoft/login?redirect_uri=https://console.sovaria.in/auth/callback" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

GET/api/v1/auth/github/connection-state

Whether GitHub is connected (for your account, or a project).

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/github/connection-state

Query parameters

project_idstring | nulloptional
A project; your account by default.

Responses

  • 200Success.
  • 401No valid session or key.
curl -s "$URL/api/v1/auth/github/connection-state" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"
Response
{
  "provider": "github",
  "project_scope": "f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07",
  "connected": true,
  "connected_at": "2026-10-04T15:20:00Z",
  "updated_at": "2026-10-04T15:20:00Z",
  "token_hint": "gho_…1f",
  "metadata": {
    "email": "dev@skolist.com",
    "login": "skolist-dev",
    "name": "Skolist Dev",
    "scopes": [
      "read:user",
      "repo",
      "user:email"
    ]
  }
}

DELETE/api/v1/auth/github/connection-state

Disconnect GitHub.

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/github/connection-state

Query parameters

project_idstring | nulloptional
A project; your account by default.

Responses

  • 200Success.
  • 401No valid session or key.
curl -s -X DELETE "$URL/api/v1/auth/github/connection-state" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"
Response
{
  "provider": "github",
  "project_scope": "f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07",
  "connected": false,
  "disconnected": true
}

POST/api/v1/auth/cli/oauth/authorize

Approve a sov login request from the browser (the console's CLI consent page calls this).

The signed-in console user approves the CLI's PKCE request; the answer is the CLI's loopback URL with a one-time code and the state, which the CLI exchanges at POST /oauth/token.

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/cli/oauth/authorize

Body

client_idstringrequired
The CLI's client id.
at least 1 characters
redirect_uristringrequired
The CLI's loopback URL.
at least 1 characters
code_challengestringrequired
PKCE challenge.
at least 1 characters
code_challenge_methodstringoptionaldefault S256
S256.
statestringoptional
The CLI's state value.

Returns

redirect_urlstringrequired

Responses

  • 200Success.
  • 401No valid session or key.
  • 422The body is missing a required field or has a field of the wrong type.
curl -s -X POST "$URL/api/v1/auth/cli/oauth/authorize" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"client_id": "sovaria-cli", "redirect_uri": "http://127.0.0.1:54321/callback", "code_challenge": "E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM", "state": "af0ifjsldkj"}'
Response
{
  "redirect_url": "http://127.0.0.1:54321/callback?code=4f1c…&state=af0ifjsldkj"
}

#Older paths

These answer the same as the project-scoped paths above; new code should use those.

GET/api/v1/auth/product-users

List the project's app users, newest first — the same as /api/v1/projects/{project_id}/auth/users, with the project taken from the project URL or the X-Sovaria-Project-ID header.

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/product-users

Query parameters

limitintegeroptionaldefault 500
Users per page (1–500).
1–500
cursorstring | nulloptional
From the previous page's X-Next-Cursor.
0–200 characters
qstring | nulloptional
Part of an email, or an exact user id.
0–200 characters
statusstring | nulloptional
active or banned.
pattern `^(active|banned)$`

Returns

node_idstring
The user's id — the one every other call takes as user_id, and auth.uid() in SQL.
idstring
The id of their sign-in record (rarely needed).
emailstring
is_activeboolean
false while banned.
created_at, updated_at, last_sign_in_atstring | null
ISO 8601.
mfa_enabled, phone_mfa_enabled, any_mfa_enabledboolean
Authenticator app, SMS, either.
rolesarray<string>
Their app roles in this project (Users and app roles).
role_sourcesarray<string>
Where the roles come from.
project_idstring

Responses

  • 200Success.
  • 403Only organization owners and admins can list app users.
  • 401No valid session or key.
curl -s "$URL/api/v1/auth/product-users?limit=50&status=active" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"
Response
[
  {
    "id": "a71d0c5e-2f84-4b9a-9e13-6c5d8f2b1a47",
    "node_id": "3c8f1e2a-9b47-4d6e-a5c1-7f0e2d4b8a93",
    "email": "ana@example.com",
    "is_active": true,
    "created_at": "2026-10-02T08:14:22.481Z",
    "updated_at": "2026-10-16T19:03:51.112Z",
    "mfa_enabled": false,
    "phone_mfa_enabled": false,
    "any_mfa_enabled": false,
    "last_sign_in_at": "2026-10-17T09:41:05.330Z",
    "roles": [
      "staff"
    ],
    "role_sources": [
      "project_settings"
    ],
    "project_id": "f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07"
  }
]

POST/api/v1/auth/product-users

Create an app user (as an admin) — the same as /api/v1/projects/{project_id}/auth/users, with the project taken from the project URL or the X-Sovaria-Project-ID header.

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/product-users

Body

namestringrequired
Display name.
1–255 characters
emailstringrequired
Sign-in email.
passwordstring | nulloptional
Optional; at least 8 characters.
at least 8 characters
password_fromstring | nulloptional
Name of a project secret holding the password, read on the server (Sovariq never sees it)
0–64 characters, pattern `^[A-Z][A-Z0-9_]{1,63}$`
generate_password_secretbooleanoptionaldefault false
With password_from: when that secret isn't set yet, Sovaria generates a strong password and stores it under that name (test users without asking anyone to type one; the owner reads it in Settings › Secrets)
temporary_passwordbooleanoptionaldefault false
Sovaria generates a strong temporary password, returns it once in this response (never stored in plain text or logged) and the user must change it at first sign-in. For first users a person hands their password to
rolesarray<string>optional
App roles to give them.
send_magic_linkbooleanoptionaldefault false
Email a sign-in link now.
email_confirmbooleanoptionaldefault false
Treat the email as confirmed.
env_idstring | nulloptional
An environment of the project.

Returns

node_idstring
The user's id — the one every other call takes as user_id, and auth.uid() in SQL.
idstring
The id of their sign-in record (rarely needed).
emailstring
is_activeboolean
false while banned.
created_at, updated_at, last_sign_in_atstring | null
ISO 8601.
mfa_enabled, phone_mfa_enabled, any_mfa_enabledboolean
Authenticator app, SMS, either.
rolesarray<string>
Their app roles in this project (Users and app roles).
role_sourcesarray<string>
Where the roles come from.
project_idstring
pending_inviteboolean
A sign-in link was sent and the email isn't confirmed yet.

Responses

  • 201Created.
  • 409That email is already registered in this project.
  • 422UNKNOWN_APP_ROLE — a role isn't defined; the body lists roles.
  • 403Only organization owners and admins.
  • 429Too many sign-in links for this address or IP.
  • 401No valid session or key.
curl -s -X POST "$URL/api/v1/auth/product-users" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"name": "Ana Lima", "email": "ana@example.com", "roles": ["staff"], "send_magic_link": true}'
Response
{
  "id": "a71d0c5e-2f84-4b9a-9e13-6c5d8f2b1a47",
  "node_id": "3c8f1e2a-9b47-4d6e-a5c1-7f0e2d4b8a93",
  "email": "ana@example.com",
  "is_active": true,
  "created_at": "2026-10-02T08:14:22.481Z",
  "updated_at": "2026-10-16T19:03:51.112Z",
  "mfa_enabled": false,
  "phone_mfa_enabled": false,
  "any_mfa_enabled": false,
  "last_sign_in_at": null,
  "roles": [
    "staff"
  ],
  "role_sources": [
    "project_settings"
  ],
  "project_id": "f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07",
  "actor_lane": "product",
  "auth_subject_type": "product_user",
  "pending_invite": true
}

DELETE/api/v1/auth/product-users/{user_id}

Delete an app user permanently and sign them out everywhere — the same as /api/v1/projects/{project_id}/auth/users/{user_id}, with the project taken from the project URL or the X-Sovaria-Project-ID header.

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/product-users/{user_id}

Path parameters

user_idstringrequired
The user's id (node_id).

Responses

  • 204Success, with no body.
  • 404No such user in this project.
  • 403Only organization owners and admins.
  • 401No valid session or key.
curl -s -X DELETE "$URL/api/v1/auth/product-users/3c8f1e2a-9b47-4d6e-a5c1-7f0e2d4b8a93" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

POST/api/v1/auth/product-users/{user_id}/ban

Ban an app user, or unban them — each call switches it — the same as /api/v1/projects/{project_id}/auth/users/{user_id}/ban, with the project taken from the project URL or the X-Sovaria-Project-ID header.

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/product-users/{user_id}/ban

Path parameters

user_idstringrequired
The user.

Query parameters

bannedboolean | nulloptional
true bans, false unbans; omitted flips the state

Responses

  • 200Success.
  • 400You can't ban yourself.
  • 404No such user.
  • 401No valid session or key.
curl -s -X POST "$URL/api/v1/auth/product-users/3c8f1e2a-9b47-4d6e-a5c1-7f0e2d4b8a93/ban" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"
Response
{
  "user_id": "3c8f1e2a-9b47-4d6e-a5c1-7f0e2d4b8a93",
  "is_active": false
}

GET/api/v1/auth/product-users/{user_id}/roles

A user's app roles — the same as /api/v1/projects/{project_id}/auth/users/{user_id}/roles, with the project taken from the project URL or the X-Sovaria-Project-ID header.

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/product-users/{user_id}/roles

Path parameters

user_idstringrequired
The user.

Responses

  • 200Success.
  • 401No valid session or key.
curl -s "$URL/api/v1/auth/product-users/3c8f1e2a-9b47-4d6e-a5c1-7f0e2d4b8a93/roles" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"
Response
{
  "user_id": "3c8f1e2a-9b47-4d6e-a5c1-7f0e2d4b8a93",
  "org_id": "b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90",
  "project_id": "f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07",
  "roles": [
    "staff"
  ]
}

PUT/api/v1/auth/product-users/{user_id}/roles

Replace a user's app roles — the same as /api/v1/projects/{project_id}/auth/users/{user_id}/roles, with the project taken from the project URL or the X-Sovaria-Project-ID header.

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/product-users/{user_id}/roles

Path parameters

user_idstringrequired
The user.

Body

rolesarray<string>optional
The full list; [] removes all.

Responses

  • 200Success.
  • 422UNKNOWN_APP_ROLE — a role isn't defined in the project.
  • 401No valid session or key.
curl -s -X PUT "$URL/api/v1/auth/product-users/3c8f1e2a-9b47-4d6e-a5c1-7f0e2d4b8a93/roles" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"roles": ["staff", "billing"]}'
Response
{
  "user_id": "3c8f1e2a-9b47-4d6e-a5c1-7f0e2d4b8a93",
  "org_id": "b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90",
  "project_id": "f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07",
  "roles": [
    "billing",
    "staff"
  ]
}

GET/api/v1/auth/product-users/{user_id}/mfa

Whether a user has two-factor sign-in turned on — the same as /api/v1/projects/{project_id}/auth/users/{user_id}/mfa, with the project taken from the project URL or the X-Sovaria-Project-ID header.

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/product-users/{user_id}/mfa

Path parameters

user_idstringrequired
The user.

Returns

mfa_enabledboolean
Authenticator app.
phone_mfa_enabledboolean
SMS codes.
totp_enrolledboolean
An authenticator secret is stored.
any_mfa_enabledboolean

Responses

  • 200Success.
  • 401No valid session or key.
curl -s "$URL/api/v1/auth/product-users/3c8f1e2a-9b47-4d6e-a5c1-7f0e2d4b8a93/mfa" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"
Response
{
  "user_id": "3c8f1e2a-9b47-4d6e-a5c1-7f0e2d4b8a93",
  "mfa_enabled": true,
  "phone_mfa_enabled": false,
  "totp_enrolled": true,
  "any_mfa_enabled": true
}

POST/api/v1/auth/product-users/{user_id}/mfa/reset

Turn off a user's two-factor sign-in (they lost their phone) — the same as /api/v1/projects/{project_id}/auth/users/{user_id}/mfa/reset, with the project taken from the project URL or the X-Sovaria-Project-ID header.

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/product-users/{user_id}/mfa/reset

Path parameters

user_idstringrequired
The user.

Responses

  • 200Success.
  • 404No such user in this project.
  • 401No valid session or key.
curl -s -X POST "$URL/api/v1/auth/product-users/3c8f1e2a-9b47-4d6e-a5c1-7f0e2d4b8a93/mfa/reset" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"
Response
{
  "user_id": "3c8f1e2a-9b47-4d6e-a5c1-7f0e2d4b8a93",
  "status": "reset",
  "message": "MFA has been reset for this user",
  "mfa_enabled": false,
  "phone_mfa_enabled": false,
  "totp_enrolled": false,
  "any_mfa_enabled": false
}

GET/api/v1/auth/users

Older listing of app users — use GET /api/v1/projects/{project_id}/auth/users.

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/users

Query parameters

limitintegeroptionaldefault 500
Users per page (1–500).
1–500
cursorstring | nulloptional
From the previous page's X-Next-Cursor.
0–200 characters
qstring | nulloptional
Part of an email, or an exact user id.
0–200 characters
statusstring | nulloptional
active or banned.
pattern `^(active|banned)$`

Returns

node_idstring
The user's id — the one every other call takes as user_id, and auth.uid() in SQL.
idstring
The id of their sign-in record (rarely needed).
emailstring
is_activeboolean
false while banned.
created_at, updated_at, last_sign_in_atstring | null
ISO 8601.
mfa_enabled, phone_mfa_enabled, any_mfa_enabledboolean
Authenticator app, SMS, either.
rolesarray<string>
Their app roles in this project (Users and app roles).
role_sourcesarray<string>
Where the roles come from.
project_idstring

Responses

  • 200Success.
  • 403Only organization owners and admins can list app users.
  • 401No valid session or key.
curl -s "$URL/api/v1/auth/users?limit=50&status=active" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"
Response
[
  {
    "id": "a71d0c5e-2f84-4b9a-9e13-6c5d8f2b1a47",
    "node_id": "3c8f1e2a-9b47-4d6e-a5c1-7f0e2d4b8a93",
    "email": "ana@example.com",
    "is_active": true,
    "created_at": "2026-10-02T08:14:22.481Z",
    "updated_at": "2026-10-16T19:03:51.112Z",
    "mfa_enabled": false,
    "phone_mfa_enabled": false,
    "any_mfa_enabled": false,
    "last_sign_in_at": "2026-10-17T09:41:05.330Z",
    "roles": [
      "staff"
    ],
    "role_sources": [
      "project_settings"
    ],
    "project_id": "f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07"
  }
]

DELETE/api/v1/auth/users/{user_id}

Delete an app user permanently and sign them out everywhere — the same as /api/v1/projects/{project_id}/auth/users/{user_id}, with the project taken from the project URL or the X-Sovaria-Project-ID header.

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/users/{user_id}

Path parameters

user_idstringrequired
The user's id (node_id).

Responses

  • 204Success, with no body.
  • 404No such user in this project.
  • 403Only organization owners and admins.
  • 401No valid session or key.
curl -s -X DELETE "$URL/api/v1/auth/users/3c8f1e2a-9b47-4d6e-a5c1-7f0e2d4b8a93" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

POST/api/v1/auth/users/{user_id}/ban

Ban an app user, or unban them — each call switches it — the same as /api/v1/projects/{project_id}/auth/users/{user_id}/ban, with the project taken from the project URL or the X-Sovaria-Project-ID header.

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/users/{user_id}/ban

Path parameters

user_idstringrequired
The user.

Query parameters

bannedboolean | nulloptional
true bans, false unbans; omitted flips the state

Responses

  • 200Success.
  • 400You can't ban yourself.
  • 404No such user.
  • 401No valid session or key.
curl -s -X POST "$URL/api/v1/auth/users/3c8f1e2a-9b47-4d6e-a5c1-7f0e2d4b8a93/ban" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"
Response
{
  "user_id": "3c8f1e2a-9b47-4d6e-a5c1-7f0e2d4b8a93",
  "is_active": false
}

GET/api/v1/auth/users/{user_id}/roles

A user's app roles — the same as /api/v1/projects/{project_id}/auth/users/{user_id}/roles, with the project taken from the project URL or the X-Sovaria-Project-ID header.

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/users/{user_id}/roles

Path parameters

user_idstringrequired
The user.

Responses

  • 200Success.
  • 401No valid session or key.
curl -s "$URL/api/v1/auth/users/3c8f1e2a-9b47-4d6e-a5c1-7f0e2d4b8a93/roles" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"
Response
{
  "user_id": "3c8f1e2a-9b47-4d6e-a5c1-7f0e2d4b8a93",
  "org_id": "b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90",
  "project_id": "f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07",
  "roles": [
    "staff"
  ]
}

PUT/api/v1/auth/users/{user_id}/roles

Replace a user's app roles — the same as /api/v1/projects/{project_id}/auth/users/{user_id}/roles, with the project taken from the project URL or the X-Sovaria-Project-ID header.

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/users/{user_id}/roles

Path parameters

user_idstringrequired
The user.

Body

rolesarray<string>optional
The full list; [] removes all.

Responses

  • 200Success.
  • 422UNKNOWN_APP_ROLE — a role isn't defined in the project.
  • 401No valid session or key.
curl -s -X PUT "$URL/api/v1/auth/users/3c8f1e2a-9b47-4d6e-a5c1-7f0e2d4b8a93/roles" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"roles": ["staff", "billing"]}'
Response
{
  "user_id": "3c8f1e2a-9b47-4d6e-a5c1-7f0e2d4b8a93",
  "org_id": "b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90",
  "project_id": "f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07",
  "roles": [
    "billing",
    "staff"
  ]
}

GET/api/v1/auth/users/{user_id}/mfa

Whether a user has two-factor sign-in turned on — the same as /api/v1/projects/{project_id}/auth/users/{user_id}/mfa, with the project taken from the project URL or the X-Sovaria-Project-ID header.

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/users/{user_id}/mfa

Path parameters

user_idstringrequired
The user.

Returns

mfa_enabledboolean
Authenticator app.
phone_mfa_enabledboolean
SMS codes.
totp_enrolledboolean
An authenticator secret is stored.
any_mfa_enabledboolean

Responses

  • 200Success.
  • 401No valid session or key.
curl -s "$URL/api/v1/auth/users/3c8f1e2a-9b47-4d6e-a5c1-7f0e2d4b8a93/mfa" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"
Response
{
  "user_id": "3c8f1e2a-9b47-4d6e-a5c1-7f0e2d4b8a93",
  "mfa_enabled": true,
  "phone_mfa_enabled": false,
  "totp_enrolled": true,
  "any_mfa_enabled": true
}

POST/api/v1/auth/users/{user_id}/mfa/reset

Turn off a user's two-factor sign-in (they lost their phone) — the same as /api/v1/projects/{project_id}/auth/users/{user_id}/mfa/reset, with the project taken from the project URL or the X-Sovaria-Project-ID header.

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/users/{user_id}/mfa/reset

Path parameters

user_idstringrequired
The user.

Responses

  • 200Success.
  • 404No such user in this project.
  • 401No valid session or key.
curl -s -X POST "$URL/api/v1/auth/users/3c8f1e2a-9b47-4d6e-a5c1-7f0e2d4b8a93/mfa/reset" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"
Response
{
  "user_id": "3c8f1e2a-9b47-4d6e-a5c1-7f0e2d4b8a93",
  "status": "reset",
  "message": "MFA has been reset for this user",
  "mfa_enabled": false,
  "phone_mfa_enabled": false,
  "totp_enrolled": false,
  "any_mfa_enabled": false
}

#More endpoints

GET/api/v1/auth/a2a-jwks

The keys a project's Agent Card signatures verify with (the gateway passes the host's project).

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/.well-known/a2a-jwks.json, /auth/v1/a2a-jwks

Responses

  • 200Success.
  • 401No valid session or key.
curl -s "$URL/api/v1/auth/a2a-jwks" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

GET/api/v1/auth/app-users

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/app-users

Query parameters

limitintegeroptionaldefault 50
How many to return.
1–100
cursorstring | nulloptional
The next_cursor from the previous page.
0–200 characters
qstring | nulloptional
Part of an email or name
0–200 characters
statusstring | nulloptional
pattern `^(active|disabled)$`
rolestring | nulloptional
0–64 characters

Responses

  • 200Success.
  • 401No valid session or key.
curl -s "$URL/api/v1/auth/app-users" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

POST/api/v1/auth/app-users

Invite by email, or make a temporary password (returned once, changed at first sign-in).

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/app-users

Body

emailstringrequired
namestringoptional
0–255 characters
rolesarray<string>optional
0–20 items
modestringoptionaldefault invite
One of invite, temporary_password

Responses

  • 201Created.
  • 401No valid session or key.
  • 422The body is missing a required field or has a field of the wrong type.
curl -s -X POST "$URL/api/v1/auth/app-users" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

GET/api/v1/auth/app-users/access

Whether the signed-in app user may manage users here, and which roles they may give (decided here).

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/app-users/access

Responses

  • 200Success.
  • 401No valid session or key.
curl -s "$URL/api/v1/auth/app-users/access" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

DELETE/api/v1/auth/app-users/{user_id}

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/app-users/{user_id}

Path parameters

user_idstringrequired
The app user's id.

Responses

  • 204Success, with no body.
  • 401No valid session or key.
curl -s -X DELETE "$URL/api/v1/auth/app-users/<user-id>" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

POST/api/v1/auth/app-users/{user_id}/disable

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/app-users/{user_id}/disable

Path parameters

user_idstringrequired
The app user's id.

Responses

  • 200Success.
  • 401No valid session or key.
curl -s -X POST "$URL/api/v1/auth/app-users/<user-id>/disable" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

POST/api/v1/auth/app-users/{user_id}/enable

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/app-users/{user_id}/enable

Path parameters

user_idstringrequired
The app user's id.

Responses

  • 200Success.
  • 401No valid session or key.
curl -s -X POST "$URL/api/v1/auth/app-users/<user-id>/enable" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

PUT/api/v1/auth/app-users/{user_id}/roles

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/app-users/{user_id}/roles

Path parameters

user_idstringrequired
The app user's id.

Body

rolesarray<string>optional
0–20 items

Responses

  • 200Success.
  • 401No valid session or key.
  • 422The body is missing a required field or has a field of the wrong type.
curl -s -X PUT "$URL/api/v1/auth/app-users/<user-id>/roles" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

POST/api/v1/auth/github/connect

Connect GitHub to a project for the signed-in console user (repository access): returns the authorize URL.

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/github/connect

Responses

  • 200Success.
  • 401No valid session or key.
curl -s -X POST "$URL/api/v1/auth/github/connect" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

POST/api/v1/auth/github/connect/finish

Store a project's GitHub connection for the signed-in user who started it (`github_connect from the callback). Someone else's pending connection is refused and dropped

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/github/connect/finish

Responses

  • 200Success.
  • 401No valid session or key.
curl -s -X POST "$URL/api/v1/auth/github/connect/finish" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

POST/api/v1/auth/id-token

Sign an app user in with an ID token the app got from the provider's native SDK.

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/id-token

Body

providerstringrequired
The project's provider id: apple, google, …
1–64 characters
id_tokenstringrequired
20–16,384 characters
noncestring | nulloptional
The raw nonce the app passed to the provider
0–512 characters
access_tokenstring | nulloptional
0–8,192 characters
gotrue_meta_securityobject | nulloptional

Responses

  • 200Success.
  • 422The body is missing a required field or has a field of the wrong type.
curl -s -X POST "$URL/api/v1/auth/id-token" \
  -H "apikey: $ANON_KEY"

GET/api/v1/auth/me/identities

List identities.

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/user/identities, /auth/v1/me/identities

Responses

  • 200Success.
  • 401No valid session or key.
curl -s "$URL/api/v1/auth/me/identities" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

GET/api/v1/auth/me/identities/authorize

Start linking a social/SSO identity to the signed-in app user (Supabase `linkIdentity)

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/user/identities/authorize, /auth/v1/me/identities/authorize

Query parameters

providerstringrequired
1–64 characters
redirect_tostring | nulloptional
0–2,048 characters
code_challengestring | nulloptional
43–128 characters
skip_http_redirectbooleanoptionaldefault false

Responses

  • 200Success.
  • 401No valid session or key.
curl -s "$URL/api/v1/auth/me/identities/authorize" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

POST/api/v1/auth/me/identities/authorize

Start linking a social/SSO identity to the signed-in app user (Supabase `linkIdentity)

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/user/identities/authorize, /auth/v1/me/identities/authorize

Query parameters

providerstringrequired
1–64 characters
redirect_tostring | nulloptional
0–2,048 characters
code_challengestring | nulloptional
43–128 characters
skip_http_redirectbooleanoptionaldefault false

Responses

  • 200Success.
  • 401No valid session or key.
curl -s -X POST "$URL/api/v1/auth/me/identities/authorize" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

POST/api/v1/auth/me/identities/complete

Link identity complete.

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/user/identities/complete, /auth/v1/me/identities/complete

Body

codestringrequired
the one-time code from the ?code= redirect
1–256 characters
code_verifierstring | nulloptional
required if a code_challenge was sent to /authorize
43–128 characters

Responses

  • 200Success.
  • 401No valid session or key.
  • 422The body is missing a required field or has a field of the wrong type.
curl -s -X POST "$URL/api/v1/auth/me/identities/complete" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

DELETE/api/v1/auth/me/identities/{identity_id}

Unlink identity.

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/user/identities/{identity_id}, /auth/v1/me/identities/{identity_id}

Path parameters

identity_idstringrequired

Query parameters

noncestring | nulloptional
0–12 characters

Responses

  • 200Success.
  • 401No valid session or key.
curl -s -X DELETE "$URL/api/v1/auth/me/identities/<identity_id>" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

GET/api/v1/auth/orgs

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/orgs

Responses

  • 200Success.
  • 401No valid session or key.
curl -s "$URL/api/v1/auth/orgs" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

POST/api/v1/auth/orgs

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/orgs

Body

namestringrequired
1–128 characters
slugstring | nulloptional
0–64 characters

Responses

  • 201Created.
  • 401No valid session or key.
  • 422The body is missing a required field or has a field of the wrong type.
curl -s -X POST "$URL/api/v1/auth/orgs" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

PUT/api/v1/auth/orgs/active

Pick the organization your tokens carry (ctx.app_org); refresh the session to get it.

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/orgs/active

Body

org_idstring | nulloptional
The organization id.

Responses

  • 200Success.
  • 401No valid session or key.
  • 422The body is missing a required field or has a field of the wrong type.
curl -s -X PUT "$URL/api/v1/auth/orgs/active" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

POST/api/v1/auth/orgs/invites/accept

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/orgs/invites/accept

Body

tokenstringrequired
20–128 characters

Responses

  • 200Success.
  • 401No valid session or key.
  • 422The body is missing a required field or has a field of the wrong type.
curl -s -X POST "$URL/api/v1/auth/orgs/invites/accept" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

DELETE/api/v1/auth/orgs/{org_id}

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/orgs/{org_id}

Path parameters

org_idstringrequired
The organization id.

Responses

  • 204Success, with no body.
  • 401No valid session or key.
curl -s -X DELETE "$URL/api/v1/auth/orgs/<org-id>" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

GET/api/v1/auth/orgs/{org_id}

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/orgs/{org_id}

Path parameters

org_idstringrequired
The organization id.

Responses

  • 200Success.
  • 401No valid session or key.
curl -s "$URL/api/v1/auth/orgs/<org-id>" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

PATCH/api/v1/auth/orgs/{org_id}

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/orgs/{org_id}

Path parameters

org_idstringrequired
The organization id.

Body

namestring | nulloptional
1–128 characters
metadataobject | nulloptional

Responses

  • 200Success.
  • 401No valid session or key.
  • 422The body is missing a required field or has a field of the wrong type.
curl -s -X PATCH "$URL/api/v1/auth/orgs/<org-id>" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

POST/api/v1/auth/orgs/{org_id}/domains

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/orgs/{org_id}/domains

Path parameters

org_idstringrequired
The organization id.

Body

domainstringrequired
3–253 characters

Responses

  • 201Created.
  • 401No valid session or key.
  • 422The body is missing a required field or has a field of the wrong type.
curl -s -X POST "$URL/api/v1/auth/orgs/<org-id>/domains" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

POST/api/v1/auth/orgs/{org_id}/domains/{domain}/verify

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/orgs/{org_id}/domains/{domain}/verify

Path parameters

org_idstringrequired
The organization id.
domainstringrequired

Responses

  • 200Success.
  • 401No valid session or key.
curl -s -X POST "$URL/api/v1/auth/orgs/<org-id>/domains/<domain>/verify" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

POST/api/v1/auth/orgs/{org_id}/invites

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/orgs/{org_id}/invites

Path parameters

org_idstringrequired
The organization id.

Body

emailstringrequired
rolestringoptionaldefault member
0–32 characters
redirect_tostring | nulloptional
0–2,048 characters

Responses

  • 201Created.
  • 401No valid session or key.
  • 422The body is missing a required field or has a field of the wrong type.
curl -s -X POST "$URL/api/v1/auth/orgs/<org-id>/invites" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

DELETE/api/v1/auth/orgs/{org_id}/invites/{invite_id}

An owner or admin cancels a pending invitation (there was no way to before: run 5, v11).

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/orgs/{org_id}/invites/{invite_id}

Path parameters

org_idstringrequired
The organization id.
invite_idstringrequired

Responses

  • 204Success, with no body.
  • 401No valid session or key.
curl -s -X DELETE "$URL/api/v1/auth/orgs/<org-id>/invites/<invite_id>" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

DELETE/api/v1/auth/orgs/{org_id}/members/{user_id}

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/orgs/{org_id}/members/{user_id}

Path parameters

org_idstringrequired
The organization id.
user_idstringrequired
The app user's id.

Responses

  • 204Success, with no body.
  • 401No valid session or key.
curl -s -X DELETE "$URL/api/v1/auth/orgs/<org-id>/members/<user-id>" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

PATCH/api/v1/auth/orgs/{org_id}/members/{user_id}

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/orgs/{org_id}/members/{user_id}

Path parameters

org_idstringrequired
The organization id.
user_idstringrequired
The app user's id.

Body

rolestringrequired
0–32 characters

Responses

  • 200Success.
  • 401No valid session or key.
  • 422The body is missing a required field or has a field of the wrong type.
curl -s -X PATCH "$URL/api/v1/auth/orgs/<org-id>/members/<user-id>" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

POST/api/v1/auth/reauthenticate

Email the signed-in user an OTP that confirms a sensitive change (send it as `nonce): a new password, a passkey, linking or unlinking a sign-in method

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/reauthenticate

Responses

  • 200Success.
  • 401No valid session or key.
curl -s -X POST "$URL/api/v1/auth/reauthenticate" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

GET/api/v1/auth/sovariq-chrome/context

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/sovariq-chrome/context

Responses

  • 200Success.
  • 401No valid session or key.
curl -s "$URL/api/v1/auth/sovariq-chrome/context" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

POST/api/v1/auth/third-party/exchange

Swap a third-party provider's token for a Sovaria session.

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.
Also at
/auth/v1/third-party/exchange

Body

tokenstringrequired
20–16,384 characters

Responses

  • 200Success.
  • 422The body is missing a required field or has a field of the wrong type.
curl -s -X POST "$URL/api/v1/auth/third-party/exchange" \
  -H "apikey: $ANON_KEY"

GET/api/v1/projects/{project_id}/auth/orgs

Project orgs.

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.

Path parameters

project_idstringrequired
The project id.

Responses

  • 200Success.
  • 401No valid session or key.
curl -s "$URL/api/v1/projects/<project-id>/auth/orgs" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

DELETE/api/v1/projects/{project_id}/auth/orgs/{org_id}

Project delete org.

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.

Path parameters

org_idstringrequired
The organization id.
project_idstringrequired
The project id.

Responses

  • 204Success, with no body.
  • 401No valid session or key.
curl -s -X DELETE "$URL/api/v1/projects/<project-id>/auth/orgs/<org-id>" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

GET/api/v1/projects/{project_id}/auth/signing-keys

The project's token signing keys (active, standby, revoked).

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.

Path parameters

project_idstringrequired
The project id.

Responses

  • 200Success.
  • 401No valid session or key.
curl -s "$URL/api/v1/projects/<project-id>/auth/signing-keys" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

POST/api/v1/projects/{project_id}/auth/signing-keys/rotate

Sign with the standby key from now on.

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.

Path parameters

project_idstringrequired
The project id.

Responses

  • 200Success.
  • 401No valid session or key.
curl -s -X POST "$URL/api/v1/projects/<project-id>/auth/signing-keys/rotate" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

POST/api/v1/projects/{project_id}/auth/signing-keys/standby

Publish a standby key (verifiers learn it before it signs).

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.

Path parameters

project_idstringrequired
The project id.

Responses

  • 201Created.
  • 401No valid session or key.
curl -s -X POST "$URL/api/v1/projects/<project-id>/auth/signing-keys/standby" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

POST/api/v1/projects/{project_id}/auth/signing-keys/{kid}/revoke

Revoke a key: tokens it signed stop working.

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.

Path parameters

kidstringrequired
project_idstringrequired
The project id.

Responses

  • 200Success.
  • 401No valid session or key.
curl -s -X POST "$URL/api/v1/projects/<project-id>/auth/signing-keys/<kid>/revoke" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

GET/api/v1/projects/{project_id}/auth/third-party

Third-party auth providers whose tokens the project accepts (Firebase, Auth0, Clerk, Cognito, WorkOS, OIDC).

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.

Path parameters

project_idstringrequired
The project id.

Responses

  • 200Success.
  • 401No valid session or key.
curl -s "$URL/api/v1/projects/<project-id>/auth/third-party" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

POST/api/v1/projects/{project_id}/auth/third-party

Accept tokens from a third-party auth provider.

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.

Path parameters

project_idstringrequired
The project id.

Body

kindstringrequired
pattern `^(firebase|auth0|clerk|cognito|workos|oidc)$`
namestring | nulloptional
0–64 characters
firebase_project_idstring | nulloptional
0–64 characters
domainstring | nulloptional
0–253 characters
regionstring | nulloptional
0–32 characters
user_pool_idstring | nulloptional
0–64 characters
issuerstring | nulloptional
oidc: the exact iss value
0–512 characters
jwks_urlstring | nulloptional
oidc: where the signing keys are
0–1,024 characters
audiencesarray<string>optional
0–10 items
role_claimstringoptionaldefault role
0–64 characters
enabledbooleanoptionaldefault true

Responses

  • 201Created.
  • 401No valid session or key.
  • 422The body is missing a required field or has a field of the wrong type.
curl -s -X POST "$URL/api/v1/projects/<project-id>/auth/third-party" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

DELETE/api/v1/projects/{project_id}/auth/third-party/{provider_id}

Stop accepting a third-party provider's tokens.

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.

Path parameters

provider_idstringrequired
project_idstringrequired
The project id.

Responses

  • 204Success, with no body.
  • 401No valid session or key.
curl -s -X DELETE "$URL/api/v1/projects/<project-id>/auth/third-party/<provider-id>" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

PATCH/api/v1/projects/{project_id}/auth/third-party/{provider_id}

Change a third-party provider.

Who
A project team member's session (the console, or a token from sov login) as Authorization: Bearer <token>. The member's role must allow the action.

Path parameters

provider_idstringrequired
project_idstringrequired
The project id.

Body

namestring | nulloptional
0–64 characters
audiencesarray<string> | nulloptional
0–10 items
role_claimstring | nulloptional
0–64 characters
enabledboolean | nulloptional

Responses

  • 200Success.
  • 401No valid session or key.
  • 422The body is missing a required field or has a field of the wrong type.
curl -s -X PATCH "$URL/api/v1/projects/<project-id>/auth/third-party/<provider-id>" \
  -H "apikey: $ANON_KEY" \
  -H "Authorization: Bearer $ACCESS_TOKEN"