HTTP API: organizations, projects and keys
Organizations, projects, members, invitations, roles, API keys, project settings and secrets, webhooks, notifications, integrations and templates.
Organizations, projects, members and the project's keys, settings, secrets, app roles and webhooks. Project-scoped calls (keys, settings, secrets, roles, webhooks) take the project from the project URL. Guides: Organizations, members and roles, API keys, API keys, origins and security.
| Base URL | https://<project-ref>.sovarias.in — your project URL from Connect. |
| Keys | Send the project's key as apikey. Calls made for a signed-in user also send Authorization: Bearer <access token>. |
| Errors | A status code and {"detail": …} — a sentence, or {code, message} for errors your code may branch on (HTTP API). |
#Organizations and projects
Called with a console account's session (the console, or sov login).
GET/api/v1/org
Your organizations (or, with type=PROJECT, the projects in them).
- Who
- Any signed-in console account.
Query parameters
typestring | nulloptionalORG(default) orPROJECT.
Returns
rolestring- Your role:
OWNER,ADMIN,MEMBERorVIEWER. metadata_jsonobject- Settings and details.
env_id, env_name, env_db_typestring | null- For projects: their first environment.
Responses
- 200Success.
- 400
typeother than ORG or PROJECT. - 401No valid session or key.
curl -s "$URL/api/v1/org" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
[
{
"id": "b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90",
"type": "ORG",
"name": "Skolist",
"metadata_json": {
"settings": {
"require_mfa": false
}
},
"role": "OWNER",
"env_id": null,
"env_name": null,
"env_db_type": null
}
]POST/api/v1/org
Create an organization, or a project in one.
For a project, put the organization in metadata.org_id. The project's database, keys, default policies and project URL are set up right after. Counts against the plan (org.organizations, org.projects).
- Who
- Any signed-in console account (projects: the organization's owners and admins, or members when the organization allows it).
Body
typestringrequired- One of
ORG,PROJECT namestringrequired- 1–255 characters
metadataobjectoptional- For a project:
org_id(required), and optionallyregion.
Responses
- 201Created.
- 403
PLAN_LIMIT_REACHED(organizations or projects), or members can't create projects here. - 400Invalid
org_id. - 401No valid session or key.
curl -s -X POST "$URL/api/v1/org" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d '{"type": "PROJECT", "name": "Skolist shop", "metadata": {"org_id": "b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90", "region": "ap-south-1"}}'Response
{
"node_id": "f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07",
"type": "PROJECT",
"name": "Skolist shop"
}GET/api/v1/org/{node_id}
One organization or project.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
node_idstringrequired- Its id.
Responses
- 200Success.
- 403You have no role on it.
- 404No such node.
- 401No valid session or key.
curl -s "$URL/api/v1/org/b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
{
"id": "b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90",
"type": "ORG",
"name": "Skolist",
"metadata_json": {
"settings": {
"default_member_role": "MEMBER"
}
},
"created_at": "2026-09-01T10:00:00+00:00"
}PUT/api/v1/org/{org_id}
Rename the organization or change its settings.
- Who
- An organization owner or admin.
Path parameters
org_idstringrequired- The organization.
Body
namestringoptionalsettingsobjectoptional- Merged into the current settings.
11 fields
descriptionstringoptionaldefault_member_rolestringoptional- One of
ADMIN,MEMBER,VIEWER allow_member_invitesbooleanoptionalrequire_mfabooleanoptional- Members without two-factor sign-in lose access until they add it.
allowed_email_domainsarray<string>optional- Only people with these email domains can join.
billing_contact_emailstringoptionaldefault_regionstringoptionalnotify_billing_emails, notify_security_emailsbooleanoptionalrestrict_project_creation_to_adminsbooleanoptionalsession_idle_minutesintegeroptional- Sign console members out after this many minutes without activity (0 = off; 5 to 10,080). Setting or tightening it needs a paid plan (
org.session_policy); loosening or turning it off never does. session_max_minutesintegeroptional- Sign console members out after this many minutes in total, however active (0 = off; 15 to 43,200). Same plan rule.
Responses
- 200The organization record.
- 403Not an owner/admin.
- 403
PLAN_FEATURE_REQUIRED: setting or tightening a session timeout on a plan withoutorg.session_policy(Free). - 422A session timeout outside its range.
- 401No valid session or key.
curl -s -X PUT "$URL/api/v1/org/b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d '{"name": "Skolist", "settings": {"require_mfa": true, "allowed_email_domains": ["skolist.com"]}}'DELETE/api/v1/org/{org_id}
Delete an organization or a project (its data is removed in the background).
- Who
- The organization's owner (for a project: an owner or admin).
Path parameters
org_idstringrequired- The organization's or project's id.
Responses
- 202Accepted — the work continues in the background.
- 403You may not delete it.
- 404Not found.
- 401No valid session or key.
curl -s -X DELETE "$URL/api/v1/org/b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
{
"status": "deleting",
"org_id": "b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90"
}GET/api/v1/org/{parent_id}/children
What's under a node: an organization's projects, or a project's environments.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
parent_idstringrequired- Organization or project.
Query parameters
relationstringoptionaldefaultOWNS- Edge relation type: OWNS | HAS_ENV
Responses
- 200Success.
- 401No valid session or key.
curl -s "$URL/api/v1/org/b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90/children" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
[
{
"id": "f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07",
"type": "PROJECT",
"name": "Skolist shop",
"metadata_json": {
"org_id": "b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90",
"region": "ap-south-1"
},
"role": null,
"env_id": "8d1e5c2a-…",
"env_name": "production",
"env_db_type": "postgres"
}
]GET/api/v1/org/{project_id}/ref
A project's ref and URLs — what an app is configured with.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
project_idstringrequired- The project.
Returns
project_refstring- 12 hex characters, stable for the project.
Responses
- 200Success.
- 401No valid session or key.
curl -s "$URL/api/v1/org/f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07/ref" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
{
"project_id": "f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07",
"project_ref": "3f9a1c0b7e2d",
"project_url": "https://3f9a1c0b7e2d.sovarias.in",
"project_url_local": "http://localhost:8000 (X-Sovaria-Project-Ref: 3f9a1c0b7e2d)",
"client_endpoints": {
"auth_base": "https://3f9a1c0b7e2d.sovarias.in/auth/v1",
"functions_base": "https://3f9a1c0b7e2d.sovarias.in/functions/v1",
"rest_doc_base": "https://3f9a1c0b7e2d.sovarias.in/rest/doc",
"rest_sql": "https://3f9a1c0b7e2d.sovarias.in/rest/sql/query",
"storage_base": "https://3f9a1c0b7e2d.sovarias.in/storage/v1",
"realtime_base": "https://3f9a1c0b7e2d.sovarias.in/realtime/v1"
}
}PUT/api/v1/org/{org_id}/plan
Record the organization's plan.
Upgrades are made through billing checkout (Billing, invoices and overage); a paid plan is only recorded once payment is confirmed.
- Who
- An organization owner or admin.
Path parameters
org_idstringrequired- The organization.
Body
planstringrequired- Plan id.
- One of
free,pro,ultra,team,enterprise checkout_verifiedbooleanoptionaldefaultfalse- Deprecated and ignored. Paid plans require a completed payment or platform_admin — client-supplied checkout flags are not trusted.
confirm_downgradebooleanoptionaldefaultfalse- Required to move to a lower plan: a downgrade applies at once to every project of the account, so only an explicit choice (Billing) makes it, never a side effect of another form.
Responses
- 200Success.
- 403Not an owner/admin, or a paid plan without payment.
- 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/org/b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90/plan" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d '{"plan": "free"}'Response
{
"org_id": "b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90",
"plan": "free"
}#Members
GET/api/v1/org/{org_id}/members
The organization's members.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
org_idstringrequired- The organization.
Responses
- 200Success.
- 403Not a member.
- 401No valid session or key.
curl -s "$URL/api/v1/org/b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90/members" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
[
{
"id": "6e19c0a2-3f5b-4a8e-9b1d-0c7f2e8a4d51",
"type": "USER",
"name": "Ana Lima",
"metadata_json": {},
"role": "ADMIN",
"email": "ana@skolist.com",
"mfa_enabled": true
}
]GET/api/v1/org/{org_id}/seats
Seats on the plan: members plus pending invites against the seat limit.
Counted exactly as inviting counts them: members plus invites not yet accepted or expired, against the plan's seat limit with any Sovaria override. limit: null means the plan has no seat limit. on_hold: members over the limit after a downgrade (they keep no access until there is room). Any member of the organization may read it; who is invited stays with owners and admins.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
org_idstringrequired- The organization.
Responses
- 200Success.
- 403Not a member.
- 401No valid session or key.
curl -s "$URL/api/v1/org/b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90/seats" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
{
"org_id": "b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90",
"plan": "pro",
"members": 3,
"pending_invites": 1,
"on_hold": 0,
"used": 4,
"limit": 5,
"left": 1,
"full": false
}POST/api/v1/org/{org_id}/member
Set a member's role (or add yourself). Other people join by accepting an invite.
Adding someone who isn't a member yet is refused with INVITE_REQUIRED — nobody is put into an organization without agreeing; send them an invite.
- Who
- An organization owner or admin.
Path parameters
org_idstringrequired- The organization.
Body
user_idstringrequired- Their account id.
rolestringrequiredOWNER,ADMIN,MEMBERorVIEWER.
Responses
- 201Created.
- 403Not an owner/admin;
INVITE_REQUIRED; only an owner can grant the owner role. - 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/org/b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90/member" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d '{"user_id": "6e19c0a2-3f5b-4a8e-9b1d-0c7f2e8a4d51", "role": "MEMBER"}'Response
{
"status": "ok",
"user_id": "6e19c0a2-3f5b-4a8e-9b1d-0c7f2e8a4d51",
"org_id": "b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90",
"role": "MEMBER"
}PUT/api/v1/org/{org_id}/member/{user_id}
Change a member's role.
- Who
- An organization owner or admin.
Path parameters
org_idstringrequired- The organization.
user_idstringrequired- The member.
Body
rolestringrequired- New role.
- 1–50 characters
Responses
- 200Success.
- 403Not an owner/admin, only an owner can grant or remove the owner role, or it would leave no owner.
- 404Not a member.
- 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/org/b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90/member/6e19c0a2-3f5b-4a8e-9b1d-0c7f2e8a4d51" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d '{"role": "VIEWER"}'Response
{
"status": "ok",
"user_id": "6e19c0a2-3f5b-4a8e-9b1d-0c7f2e8a4d51",
"org_id": "b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90",
"role": "VIEWER"
}DELETE/api/v1/org/{org_id}/member/{user_id}
Remove a member from the organization.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
org_idstringrequired- The organization.
user_idstringrequired- The member.
Responses
- 200Success.
- 403Not an owner/admin, only an owner can remove an owner, or it's the last owner.
- 404Not a member.
- 401No valid session or key.
curl -s -X DELETE "$URL/api/v1/org/b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90/member/6e19c0a2-3f5b-4a8e-9b1d-0c7f2e8a4d51" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
{
"status": "ok",
"user_id": "6e19c0a2-3f5b-4a8e-9b1d-0c7f2e8a4d51",
"org_id": "b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90",
"role": "MEMBER"
}GET/api/v1/org/{org_id}/member/{user_id}/projects
Which projects a member is limited to (members assigned to projects see only those).
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
org_idstringrequired- The organization.
user_idstringrequired- The member.
Responses
- 200Success.
- 401No valid session or key.
curl -s "$URL/api/v1/org/b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90/member/6e19c0a2-3f5b-4a8e-9b1d-0c7f2e8a4d51/projects" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
{
"org_id": "b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90",
"user_id": "6e19c0a2-3f5b-4a8e-9b1d-0c7f2e8a4d51",
"project_ids": [
"f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07"
],
"assignments": [
{
"project_id": "f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07",
"permissions": [
"database.read",
"functions.read"
]
}
],
"projects": [
{
"id": "f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07",
"name": "Skolist shop"
}
]
}PUT/api/v1/org/{org_id}/member/{user_id}/projects
Limit a member to some projects (replaces the list; empty = all projects).
- Who
- An organization owner or admin.
Path parameters
org_idstringrequired- The organization.
user_idstringrequired- The member.
Body
project_idsarray<string>optional- Projects they may access.
assignmentsarray<object>optional- Optional
{project_id, permissions}per project.
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/org/b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90/member/6e19c0a2-3f5b-4a8e-9b1d-0c7f2e8a4d51/projects" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d '{"project_ids": ["f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07"], "assignments": [{"project_id": "f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07", "permissions": ["database.read", "functions.read"]}]}'Response
{
"status": "ok",
"org_id": "b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90",
"user_id": "6e19c0a2-3f5b-4a8e-9b1d-0c7f2e8a4d51",
"project_ids": [
"f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07"
],
"assignments": [
{
"project_id": "f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07",
"permissions": [
"database.read",
"functions.read"
]
}
]
}#Invites, join links and requests
POST/api/v1/org/{org_id}/invites
Invite someone by email; they get a link valid for 7 days.
- Who
- Owners and admins (members too when the organization allows member invites).
Path parameters
org_idstringrequired- The organization.
Body
emailstringrequired- Their email.
rolestring | nulloptionalADMIN,MEMBERorVIEWER.- 1–50 characters
Returns
invite_idstringrequiredtokenstringrequiredexpires_atstringrequiredaccept_urlstringrequired
Responses
- 201Created.
- 403Not allowed to invite, only an owner can invite an owner, or
EMAIL_DOMAIN_NOT_ALLOWED. - 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/org/b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90/invites" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d '{"email": "li@skolist.com", "role": "MEMBER"}'Response
{
"invite_id": "5a0f…",
"token": "Qm9…(43 characters)",
"expires_at": "2026-10-25T11:00:00+00:00",
"accept_url": "https://console.sovaria.in/invite/accept?token=Qm9…"
}GET/api/v1/org/{org_id}/invites
Pending invites.
- Who
- An organization owner or admin.
Path parameters
org_idstringrequired- The organization.
Responses
- 200Success.
- 401No valid session or key.
curl -s "$URL/api/v1/org/b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90/invites" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
{
"invites": [
{
"id": "5a0f…",
"email": "li@skolist.com",
"role": "MEMBER",
"invited_by": "ana@skolist.com",
"created_at": "2026-10-18T11:00:00+00:00",
"expires_at": "2026-10-25T11:00:00+00:00",
"expired": false
}
]
}POST/api/v1/org/{org_id}/invites/{invite_id}/resend
Send an invite again (with a new 7-day expiry).
- Who
- An organization owner or admin.
Path parameters
org_idstringrequired- The organization.
invite_idstringrequired- The invite.
Responses
- 200Success.
- 401No valid session or key.
curl -s -X POST "$URL/api/v1/org/b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90/invites/5a0f…/resend" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
{
"invite_id": "5a0f…",
"expires_at": "2026-10-25T12:00:00+00:00",
"accept_url": "https://console.sovaria.in/invite/accept?token=…"
}DELETE/api/v1/org/{org_id}/invites/{invite_id}
Cancel an invite.
- Who
- An organization owner or admin.
Path parameters
org_idstringrequired- The organization.
invite_idstringrequired- The invite.
Responses
- 200Success.
- 401No valid session or key.
curl -s -X DELETE "$URL/api/v1/org/b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90/invites/5a0f…" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
{
"revoked": true
}POST/api/v1/org/invites/preview
What an invite is for — shown on the invite page before signing in.
- Who
- PUBLIC (the token is the credential).
Body
tokenstringrequired- The invite token.
- 10–200 characters
Returns
statusstringpending,acceptedorexpired.has_accountboolean- Whether the email already has a Sovaria account (sign in vs sign up).
Responses
- 200Success.
- 404Not a valid invite.
- 422The body is missing a required field or has a field of the wrong type.
curl -s -X POST "$URL/api/v1/org/invites/preview" \
-H "apikey: $ANON_KEY" \
-H 'Content-Type: application/json' \
-d '{"token": "Qm9…"}'Response
{
"status": "pending",
"org_id": "b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90",
"org_name": "Skolist",
"role": "member",
"email": "li@skolist.com",
"invited_by": "ana@skolist.com",
"expires_at": "2026-10-25T11:00:00+00:00",
"has_account": false
}POST/api/v1/org/invites/accept
Accept an invite (signed in as the invited email).
- Who
- The invited person, signed in.
Body
tokenstringrequired- The invite token.
- 16–128 characters
Returns
statusstringrequiredorg_idstringrequired- The organization id.
user_idstringrequired- The app user's id.
rolestringrequired
Responses
- 200Success.
- 400Invalid or expired.
- 409Already accepted.
- 403The invite was sent to a different email address.
- 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/org/invites/accept" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d '{"token": "Qm9…"}'Response
{
"status": "accepted",
"org_id": "b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90",
"user_id": "c1d2…",
"role": "MEMBER"
}POST/api/v1/org/{org_id}/invite-links
A shareable join link (code), optionally needing approval.
- Who
- An organization owner or admin.
Path parameters
org_idstringrequired- The organization.
Body
rolestring | nulloptional- Role for people who join (
memberby default). - 0–32 characters
requires_approvalbooleanoptionaldefaultfalse- Joining creates a request instead.
max_usesinteger | nulloptional- 1–1000.
- 1.0–1000.0
expires_in_daysinteger | nulloptionaldefault7- 1–90 (default 7).
- 1.0–90.0
Returns
codestring- 8 characters (no 0/O/1/I).
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/org/b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90/invite-links" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d '{"role": "member", "requires_approval": true, "max_uses": 20}'Response
{
"id": "2b7c…",
"code": "K7QM2XPA",
"role": "member",
"requires_approval": true,
"max_uses": 20,
"uses": 0,
"expires_at": "2026-10-25T11:00:00+00:00",
"created_at": "2026-10-18T11:00:00+00:00",
"url": "https://console.sovaria.in/join/K7QM2XPA"
}GET/api/v1/org/{org_id}/invite-links
Active join links.
- Who
- An organization owner or admin.
Path parameters
org_idstringrequired- The organization.
Responses
- 200Success.
- 401No valid session or key.
curl -s "$URL/api/v1/org/b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90/invite-links" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
{
"links": [
{
"id": "2b7c…",
"code": "K7QM2XPA",
"role": "member",
"requires_approval": true,
"max_uses": 20,
"uses": 3,
"expires_at": "2026-10-25T11:00:00+00:00",
"created_at": "2026-10-18T11:00:00+00:00",
"url": "https://console.sovaria.in/join/K7QM2XPA"
}
]
}DELETE/api/v1/org/{org_id}/invite-links/{link_id}
Turn off a join link.
- Who
- An organization owner or admin.
Path parameters
org_idstringrequired- The organization.
link_idstringrequired- The link.
Responses
- 200Success.
- 401No valid session or key.
curl -s -X DELETE "$URL/api/v1/org/b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90/invite-links/2b7c…" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
{
"revoked": true
}GET/api/v1/org/join/{code}
What a join code leads to.
- Who
- Any signed-in console account.
Path parameters
codestringrequired- The code.
Responses
- 200Success.
- 401No valid session or key.
curl -s "$URL/api/v1/org/join/K7QM2XPA" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
{
"org_id": "b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90",
"org_name": "Skolist",
"role": "member",
"requires_approval": true,
"already_member": false,
"request_pending": false,
"seats_full": false
}POST/api/v1/org/join/{code}
Join with a code (or ask to, when approval is needed).
- Who
- Any signed-in console account.
Path parameters
codestringrequired- The code.
Body
messagestringoptional- A note for the admins (with approval).
- 0–500 characters
Returns
statusstringjoined(withrole),requested, ormember(already one).
Responses
- 200Success.
- 403App-user accounts can't join organizations, or
EMAIL_DOMAIN_NOT_ALLOWED. - 404Invalid, used up or expired.
- 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/org/join/K7QM2XPA" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d '{"message": "I'm on the data team"}'Response
{
"status": "requested",
"org_id": "b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90"
}GET/api/v1/org/{org_id}/join-requests
Pending requests to join.
- Who
- An organization owner or admin.
Path parameters
org_idstringrequired- The organization.
Responses
- 200Success.
- 401No valid session or key.
curl -s "$URL/api/v1/org/b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90/join-requests" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
{
"requests": [
{
"id": "9c1a…",
"user_id": "c1d2…",
"email": "li@skolist.com",
"message": "I'm on the data team",
"requested_role": "member",
"created_at": "2026-10-18T11:30:00+00:00"
}
]
}POST/api/v1/org/{org_id}/join-requests/{request_id}
Approve or decline a join request.
- Who
- An organization owner or admin.
Path parameters
org_idstringrequired- The organization.
request_idstringrequired- The request.
Body
approvebooleanrequiredtrueto let them in.rolestring | nulloptional- Role to grant (default: the one asked for).
- 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 POST "$URL/api/v1/org/b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90/join-requests/9c1a…" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d '{"approve": true, "role": "viewer"}'Response
{
"status": "approved",
"user_id": "c1d2…",
"role": "viewer"
}#Custom roles
GET/api/v1/org/{org_id}/iam/catalog
Every permission a role can have, grouped.
Permissions: database.read|write|admin, storage.read|write|admin, functions.read|invoke|deploy, auth.read|manage, realtime.read|manage, policies.read|write, secrets.manage, keys.read|manage, logs.read, settings.manage, billing.read|manage, ai.use, ai.apply.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
org_idstringrequired- The organization.
Responses
- 200Success.
- 401No valid session or key.
curl -s "$URL/api/v1/org/b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90/iam/catalog" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
{
"permissions": [
{
"id": "database.read",
"label": "View tables, rows, schemas and database status"
},
{
"id": "database.write",
"label": "Insert/update/delete rows, run SQL, change tables and schemas"
}
],
"groups": [
{
"name": "Database",
"permissions": [
"database.read",
"database.write",
"database.admin"
]
}
]
}GET/api/v1/org/{org_id}/iam/me
Your own permissions in the organization (or one project).
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
org_idstringrequired- The organization.
Query parameters
project_idstring | nulloptional- A project.
Returns
ai_permissionsarray<string> | null- What Sovariq may do for you (
null= the same as you).
Responses
- 200Success.
- 401No valid session or key.
curl -s "$URL/api/v1/org/b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90/iam/me" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
{
"member": true,
"role": "MEMBER",
"permissions": [
"database.read",
"database.write",
"functions.deploy",
"logs.read"
],
"ai_permissions": null
}GET/api/v1/org/{org_id}/iam/roles
Built-in and custom roles.
Built-in: Owner and Admin (everything), Member (all but billing changes, key management and project settings), Viewer (read-only).
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
org_idstringrequired- The organization.
Responses
- 200Success.
- 401No valid session or key.
curl -s "$URL/api/v1/org/b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90/iam/roles" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
{
"roles": [
{
"id": "owner",
"name": "Owner",
"description": "",
"builtin": true,
"permissions": [
"…every permission"
],
"members": null,
"updated_at": null
},
{
"id": "4e8d…",
"name": "Support",
"description": "Reads data and logs",
"builtin": false,
"permissions": [
"auth.read",
"database.read",
"logs.read"
],
"members": 2,
"updated_at": "2026-10-15T09:00:00+00:00"
}
]
}POST/api/v1/org/{org_id}/iam/roles
Create a custom role (up to 50).
- Who
- An organization owner or admin.
Path parameters
org_idstringrequired- The organization.
Body
namestringrequired- 2–60 characters, not a built-in name.
- 2–60 characters
descriptionstringoptional- Up to 300 characters.
- 0–300 characters
permissionsarray<string>optional- Permission ids from the catalog.
- 0–60 items
Responses
- 201Created.
- 400Unknown permission, no permissions, a built-in name, or already 50 roles.
- 409A role with that name exists.
- 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/org/b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90/iam/roles" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d '{"name": "Support", "description": "Reads data and logs", "permissions": ["auth.read", "database.read", "logs.read"]}'Response
{
"id": "4e8d…",
"name": "Support",
"permissions": [
"auth.read",
"database.read",
"logs.read"
]
}PATCH/api/v1/org/{org_id}/iam/roles/{role_id}
Change a custom role.
- Who
- An organization owner or admin.
Path parameters
org_idstringrequired- The organization.
role_idstringrequired- The role.
Body
namestring | nulloptional- Name.
- 0–60 characters
descriptionstring | nulloptional- Description.
- 0–300 characters
permissionsarray<string> | nulloptional- Permissions.
- 0–60 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 PATCH "$URL/api/v1/org/b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90/iam/roles/4e8d…" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d '{"permissions": ["auth.read", "database.read", "logs.read", "functions.read"]}'Response
{
"status": "updated"
}DELETE/api/v1/org/{org_id}/iam/roles/{role_id}
Delete a custom role (its assignments go too).
- Who
- An organization owner or admin.
Path parameters
org_idstringrequired- The organization.
role_idstringrequired- The role.
Responses
- 200Success.
- 401No valid session or key.
curl -s -X DELETE "$URL/api/v1/org/b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90/iam/roles/4e8d…" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
{
"status": "deleted"
}GET/api/v1/org/{org_id}/iam/assignments
Who has which custom role, organization-wide or in one project.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
org_idstringrequired- The organization.
Responses
- 200Success.
- 401No valid session or key.
curl -s "$URL/api/v1/org/b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90/iam/assignments" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
{
"assignments": [
{
"id": "a12f…",
"user_id": "6e19c0a2-3f5b-4a8e-9b1d-0c7f2e8a4d51",
"email": "ana@skolist.com",
"role_id": "4e8d…",
"role_name": "Support",
"project_id": null,
"project_name": null
}
]
}POST/api/v1/org/{org_id}/iam/assignments
Give a member a custom role (optionally in one project).
- Who
- An organization owner or admin.
Path parameters
org_idstringrequired- The organization.
Body
user_idstringrequired- The member.
role_idstringrequired- The custom role.
project_idstring | nulloptional- Only in this project.
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/org/b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90/iam/assignments" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d '{"user_id": "6e19c0a2-3f5b-4a8e-9b1d-0c7f2e8a4d51", "role_id": "4e8d…", "project_id": "f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07"}'Response
{
"id": "a12f…"
}DELETE/api/v1/org/{org_id}/iam/assignments/{assignment_id}
Remove a custom-role assignment.
- Who
- An organization owner or admin.
Path parameters
org_idstringrequired- The organization.
assignment_idstringrequired- The assignment.
Responses
- 200Success.
- 401No valid session or key.
curl -s -X DELETE "$URL/api/v1/org/b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90/iam/assignments/a12f…" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
{
"status": "removed"
}GET/api/v1/org/{org_id}/iam/ai-policy
What Sovariq may do for members.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
org_idstringrequired- The organization.
Returns
permissionsarray<string> | nullnull= whatever the member may do.
Responses
- 200Success.
- 401No valid session or key.
curl -s "$URL/api/v1/org/b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90/iam/ai-policy" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
{
"permissions": [
"ai.use",
"database.read",
"logs.read"
]
}PUT/api/v1/org/{org_id}/iam/ai-policy
Limit what Sovariq may do for members.
- Who
- An organization owner or admin.
Path parameters
org_idstringrequired- The organization.
Body
permissionsarray<string> | nulloptional- Allowed permissions, or
nullfor no extra limit. - 0–60 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/org/b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90/iam/ai-policy" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d '{"permissions": ["ai.use", "database.read", "logs.read"]}'Response
{
"permissions": [
"ai.use",
"database.read",
"logs.read"
]
}GET/api/v1/context/{user_id}/{resource_id}
Which roles someone holds on an organization, project or environment (including inherited ones).
- Who
- Yourself, or an admin of the resource.
Path parameters
user_idstringrequired- The person.
resource_idstringrequired- Organization, project or environment.
Returns
mfa_requiredboolean- The organization requires two-factor sign-in and they have none: no access until they add it.
Responses
- 200Success.
- 401No valid session or key.
curl -s "$URL/api/v1/context/6e19c0a2-3f5b-4a8e-9b1d-0c7f2e8a4d51/f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
{
"roles": [
"ADMIN"
],
"mfa_required": false
}POST/api/v1/edge
Link two nodes in the access graph (advanced).
Relations: OWNS (organization → project), MEMBER_OF (person → organization/project, with a role), HAS_ENV (project → environment). You need admin rights on the source. Prefer the member and invite endpoints.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Body
source_idstringrequired- From.
target_idstringrequired- To.
relation_typestringrequiredOWNS,MEMBER_OF,HAS_ENV.- One of
OWNS,MEMBER_OF,HAS_ENV,AUTH_USER_OF rolestring | nulloptional- For
MEMBER_OF. - 0–50 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/edge" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d '{"source_id": "6e19c0a2-3f5b-4a8e-9b1d-0c7f2e8a4d51", "target_id": "f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07", "relation_type": "MEMBER_OF", "role": "MEMBER"}'Response
{
"status": "ok",
"source_id": "6e19c0a2-3f5b-4a8e-9b1d-0c7f2e8a4d51",
"target_id": "f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07",
"relation_type": "MEMBER_OF"
}#API keys
GET/api/v1/apikeys
The project's API keys (never the secret part).
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Returns
kindstringanon(public, for apps),service_role(full access, servers only) orcustom.rolestring- For custom keys:
admin,editor,viewerorservice. prefixstring- The first 8 characters, to recognise it.
Responses
- 200Success.
- 401No valid session or key.
curl -s "$URL/api/v1/apikeys" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
[
{
"id": "1c7e…",
"name": "Backend worker",
"prefix": "svr_9f3c…",
"role": "editor",
"kind": "custom",
"created": "2026-10-18T09:00:00+00:00",
"expires_at": "2027-10-18T09:00:00+00:00",
"last_used": null,
"is_active": true
},
{
"id": "0a1b…",
"name": "Anon Key",
"prefix": "svr_4c1d…",
"role": "viewer",
"kind": "anon",
"created": "2026-10-18T09:00:00+00:00",
"expires_at": null,
"last_used": "2026-10-18T11:59:00+00:00",
"is_active": true
}
]POST/api/v1/apikeys
Create an API key. The full key is in this answer only.
Keys look like svr_ + 48 hex characters. The project has one anon and one service_role key; custom keys carry a role and optional expiry. Non-anon keys count against the plan (auth.service_accounts), and owners are emailed when one is created (API keys).
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Body
namestringoptional- Required for custom keys.
kindstringoptionaldefaultcustom- One of
anon,service_role,custom rolestringoptionaldefaultadmin- One of
admin,editor,viewer,service expires_instringoptionaldefaultnever- One of
never,30d,90d,1y
Returns
idstringrequirednamestringrequiredprefixstringrequiredrolestringrequiredkindstringoptionaldefaultcustomcreatedstringrequiredexpires_atstring | nulloptionallast_usedstring | nulloptionalis_activebooleanoptionaldefaulttrueraw_keystringrequired
Responses
- 201Created.
- 403
PLAN_LIMIT_REACHED— more server keys than the plan allows. - 422A custom key without a name.
- 401No valid session or key.
curl -s -X POST "$URL/api/v1/apikeys" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d '{"name": "Backend worker", "kind": "custom", "role": "editor", "expires_in": "1y"}'Response
{
"id": "1c7e…",
"name": "Backend worker",
"prefix": "svr_9f3c…",
"role": "editor",
"kind": "custom",
"created": "2026-10-18T09:00:00+00:00",
"expires_at": "2027-10-18T09:00:00+00:00",
"last_used": null,
"is_active": true,
"raw_key": "svr_9f3c2a71e4b85d06c1a7f2e9…(52 characters)"
}POST/api/v1/apikeys/ensure-defaults
Create the anon and service-role keys if the project lacks them; returns the ones created (with their full keys).
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Returns
idstringrequirednamestringrequiredprefixstringrequiredrolestringrequiredkindstringoptionaldefaultcustomcreatedstringrequiredexpires_atstring | nulloptionallast_usedstring | nulloptionalis_activebooleanoptionaldefaulttrueraw_keystringrequired
Responses
- 200Success.
- 401No valid session or key.
curl -s -X POST "$URL/api/v1/apikeys/ensure-defaults" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
[]GET/api/v1/apikeys/anon/reveal
The full anon key, for the Connect panel (it only grants anonymous access).
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Responses
- 200Success.
- 401No valid session or key.
curl -s "$URL/api/v1/apikeys/anon/reveal" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
{
"available": true,
"key_id": "0a1b…",
"raw_key": "svr_4c1d…"
}POST/api/v1/apikeys/anon/rotate
Replace the anon key; apps using the old one stop working.
- Who
- An organization owner or admin.
Responses
- 200Success.
- 403Not an owner/admin.
- 401No valid session or key.
curl -s -X POST "$URL/api/v1/apikeys/anon/rotate" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
{
"available": true,
"key_id": "0a1c…",
"raw_key": "svr_…"
}DELETE/api/v1/apikeys/{key_id}
Revoke a key: it stops working at once (it stays in the list as inactive).
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
key_idstringrequired- The key.
Responses
- 200Success.
- 404No such key.
- 401No valid session or key.
curl -s -X DELETE "$URL/api/v1/apikeys/1c7e…" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
{
"status": "revoked",
"key_id": "1c7e…"
}DELETE/api/v1/apikeys/{key_id}/hard
Delete a key record for good.
- Who
- An organization owner or admin.
Path parameters
key_idstringrequired- The key.
Responses
- 204Success, with no body.
- 403Not an owner/admin.
- 404No such key.
- 401No valid session or key.
curl -s -X DELETE "$URL/api/v1/apikeys/1c7e…/hard" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"#Project settings
GET/api/v1/project-settings
The project's settings: sign-up and password rules, API rate limits, allowed origins, auth configuration, realtime limits.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Returns
settings.allowedOriginsarray<string>- Browser origins allowed to call the project API (
https://*.skolist.comallowed; up to 50). settings.apiRateLimitPerMinute, apiRateLimitPerUserPerMinuteinteger- Per IP, and per signed-in user (0 = off); capped by the plan.
settings.authConfigobject- Sessions, URLs, auth rate limits, MFA, attack protection, passkeys, mobile — see
/project-settings/auth-config. settings.realtimeConfigobjectallowPublicAccess,maxConcurrentClients(0 = the plan's),maxEventsPerSecond,maxPayloadKB.settings.stagingFirstboolean- The console opens staging first and warns before editing production.
settings.containsPHIboolean- The project holds health data (needs HIPAA mode).
Responses
- 200Success.
- 401No valid session or key.
curl -s "$URL/api/v1/project-settings" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
{
"project_id": "f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07",
"settings": {
"allowPublicSignup": true,
"allowInviteOnlySignup": false,
"anonymousSignIn": false,
"emailVerification": true,
"secureEmailChange": true,
"phoneVerification": false,
"mfaEnforcement": false,
"passwordMinLength": 8,
"passwordRequireUppercase": true,
"passwordRequireDigit": true,
"passwordRequireSpecial": true,
"captchaProtection": false,
"bruteForceProtection": true,
"rateLimiting": true,
"sessionTimeout": 60,
"apiRateLimitPerMinute": 120,
"apiRateLimitPerUserPerMinute": 0,
"allowedOrigins": [
"https://app.skolist.com",
"http://localhost:*"
],
"realtime_cdc": {
"enabled": true,
"tables": [
"orders"
]
},
"stagingFirst": false,
"containsPHI": false,
"customSmtpEnabled": false,
"projectDisplayName": "Skolist shop",
"authProviders": {
"email": true,
"magic_link": true,
"google": false
},
"authConfig": {
"sessions": {
"timeBoxMinutes": 0,
"inactivityMinutes": 0,
"singleSession": false,
"reuseIntervalSeconds": 10
},
"urls": {
"siteUrl": "https://app.skolist.com",
"redirectUrls": [
"https://app.skolist.com/**",
"skolist://auth-callback"
]
},
"rateLimits": {
"emailsPerHour": 30,
"smsPerHour": 30,
"tokenRefreshesPer5Min": 150,
"verificationsPer5Min": 30,
"anonymousSignInsPerHour": 30,
"signInsPer5Min": 30,
"failedSignInsPerAccount15Min": 10,
"magicLinksPerEmailHour": 3,
"magicLinksPerIpHour": 5,
"passwordResetsPerEmailHour": 3,
"passwordResetsPerIpHour": 5,
"emailCodeAttempts": 5,
"smsPerNumberHour": 10
},
"mfa": {
"totp": true,
"phone": false,
"maxFactors": 10
},
"attack": {
"leakedPasswordCheck": false,
"preventEnumeration": true
},
"passkeys": {
"enabled": false,
"rpId": "",
"rpName": "",
"origins": []
},
"mobile": {
"requirePkce": true
}
},
"realtimeConfig": {
"allowPublicAccess": true,
"maxConcurrentClients": 0,
"maxEventsPerSecond": 100,
"maxPayloadKB": 128
}
},
"ignored_keys": []
}PUT/api/v1/project-settings
Change project settings; keys you don't send are kept.
Keys older clients sent that nothing used are dropped and listed in ignored_keys. customSmtpEnabled is changed through the SMTP settings. Invalid values are refused all together with a per-key message.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Body
settingsobjectrequired- The keys to change.
Returns
project_idstringrequired- The project id.
settingsobjectrequiredignored_keysarray<string>optional- Retired or unchanged read-only keys that were accepted but not stored
env_idstring | nulloptional- The branch or staging environment these settings are for (null: production)
env_changed_keysarray<string>optional- Settings this branch or environment changed (deployed to production with it)
Responses
- 200Success.
- 422
INVALID_PROJECT_SETTINGS—errorsmaps each bad key to why. - 403
PLAN_LIMIT_REACHED(rate limit above the plan's),PLAN_FEATURE_REQUIRED(a gated auth setting), orcontainsPHIwithout HIPAA mode. - 401No valid session or key.
curl -s -X PUT "$URL/api/v1/project-settings" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d '{"settings": {"allowPublicSignup": false, "allowedOrigins": ["https://app.skolist.com"], "apiRateLimitPerMinute": 300, "authConfig": {"urls": {"siteUrl": "https://app.skolist.com"}}}}'Response
{
"project_id": "f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07",
"settings": {
"allowPublicSignup": false,
"allowInviteOnlySignup": false,
"anonymousSignIn": false,
"emailVerification": true,
"secureEmailChange": true,
"phoneVerification": false,
"mfaEnforcement": false,
"passwordMinLength": 8,
"passwordRequireUppercase": true,
"passwordRequireDigit": true,
"passwordRequireSpecial": true,
"captchaProtection": false,
"bruteForceProtection": true,
"rateLimiting": true,
"sessionTimeout": 60,
"apiRateLimitPerMinute": 300,
"apiRateLimitPerUserPerMinute": 0,
"allowedOrigins": [
"https://app.skolist.com"
],
"realtime_cdc": {
"enabled": true,
"tables": [
"orders"
]
},
"stagingFirst": false,
"containsPHI": false,
"customSmtpEnabled": false,
"projectDisplayName": "Skolist shop",
"authProviders": {
"email": true,
"magic_link": true,
"google": false
},
"authConfig": {
"sessions": {
"timeBoxMinutes": 0,
"inactivityMinutes": 0,
"singleSession": false,
"reuseIntervalSeconds": 10
},
"urls": {
"siteUrl": "https://app.skolist.com",
"redirectUrls": [
"https://app.skolist.com/**",
"skolist://auth-callback"
]
},
"rateLimits": {
"emailsPerHour": 30,
"smsPerHour": 30,
"tokenRefreshesPer5Min": 150,
"verificationsPer5Min": 30,
"anonymousSignInsPerHour": 30,
"signInsPer5Min": 30,
"failedSignInsPerAccount15Min": 10,
"magicLinksPerEmailHour": 3,
"magicLinksPerIpHour": 5,
"passwordResetsPerEmailHour": 3,
"passwordResetsPerIpHour": 5,
"emailCodeAttempts": 5,
"smsPerNumberHour": 10
},
"mfa": {
"totp": true,
"phone": false,
"maxFactors": 10
},
"attack": {
"leakedPasswordCheck": false,
"preventEnumeration": true
},
"passkeys": {
"enabled": false,
"rpId": "",
"rpName": "",
"origins": []
},
"mobile": {
"requirePkce": true
}
},
"realtimeConfig": {
"allowPublicAccess": true,
"maxConcurrentClients": 0,
"maxEventsPerSecond": 100,
"maxPayloadKB": 128
}
},
"ignored_keys": []
}GET/api/v1/project-settings/auth-config
The authentication configuration, its defaults, and which plan-gated parts the plan allows.
Sections: sessions (timeBoxMinutes, inactivityMinutes — 0 = never; singleSession; reuseIntervalSeconds 0–60), urls (siteUrl, redirectUrls — wildcards allowed, custom schemes for apps), rateLimits (per hour / 5 minutes / account), mfa (totp, phone, maxFactors), attack (leakedPasswordCheck, preventEnumeration), passkeys (enabled, rpId, rpName, origins), mobile (requirePkce). Changing session limits, leaked-password checks or MFA needs the plan features in available.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Responses
- 200Success.
- 401No valid session or key.
curl -s "$URL/api/v1/project-settings/auth-config" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
{
"project_id": "f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07",
"authConfig": {
"sessions": {
"timeBoxMinutes": 0,
"inactivityMinutes": 0,
"singleSession": false,
"reuseIntervalSeconds": 10
},
"urls": {
"siteUrl": "https://app.skolist.com",
"redirectUrls": [
"https://app.skolist.com/**",
"skolist://auth-callback"
]
},
"rateLimits": {
"emailsPerHour": 30,
"smsPerHour": 30,
"tokenRefreshesPer5Min": 150,
"verificationsPer5Min": 30,
"anonymousSignInsPerHour": 30,
"signInsPer5Min": 30,
"failedSignInsPerAccount15Min": 10,
"magicLinksPerEmailHour": 3,
"magicLinksPerIpHour": 5,
"passwordResetsPerEmailHour": 3,
"passwordResetsPerIpHour": 5,
"emailCodeAttempts": 5,
"smsPerNumberHour": 10
},
"mfa": {
"totp": true,
"phone": false,
"maxFactors": 10
},
"attack": {
"leakedPasswordCheck": false,
"preventEnumeration": true
},
"passkeys": {
"enabled": false,
"rpId": "",
"rpName": "",
"origins": []
},
"mobile": {
"requirePkce": true
}
},
"defaults": {
"sessions": {
"timeBoxMinutes": 0,
"inactivityMinutes": 0,
"singleSession": false,
"reuseIntervalSeconds": 10
},
"urls": {
"siteUrl": "",
"redirectUrls": []
},
"rateLimits": {
"emailsPerHour": 30,
"smsPerHour": 30,
"tokenRefreshesPer5Min": 150,
"verificationsPer5Min": 30,
"anonymousSignInsPerHour": 30,
"signInsPer5Min": 30,
"failedSignInsPerAccount15Min": 10,
"magicLinksPerEmailHour": 3,
"magicLinksPerIpHour": 5,
"passwordResetsPerEmailHour": 3,
"passwordResetsPerIpHour": 5,
"emailCodeAttempts": 5,
"smsPerNumberHour": 10
},
"mfa": {
"totp": true,
"phone": false,
"maxFactors": 10
},
"attack": {
"leakedPasswordCheck": false,
"preventEnumeration": true
},
"passkeys": {
"enabled": false,
"rpId": "",
"rpName": "",
"origins": []
},
"mobile": {
"requirePkce": true
}
},
"plan": "pro",
"available": {
"auth.leaked_password_protection": true,
"auth.mfa": true,
"auth.session_controls": true
}
}PUT/api/v1/project-settings/auth-config
Change part of the authentication configuration.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Body
authConfigobjectrequired- Any sections and fields to change.
Responses
- 200The same shape as GET.
- 422
INVALID_PROJECT_SETTINGSwith per-field errors. - 403
PLAN_FEATURE_REQUIRED— a gated setting. - 401No valid session or key.
curl -s -X PUT "$URL/api/v1/project-settings/auth-config" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d '{"authConfig": {"sessions": {"inactivityMinutes": 10080}, "urls": {"redirectUrls": ["https://app.skolist.com/**", "skolist://auth-callback"]}}}'GET/api/v1/project-settings/jwt
How the platform's own (team) tokens are signed — issuer, audience, lifetimes, key.
These are console and CLI tokens. App users' tokens are signed with the project's own ES256 key: iss is the project's auth URL and aud is authenticated; verify them with GET /api/v1/auth/project-jwks (Sessions and tokens).
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Responses
- 200Success.
- 401No valid session or key.
curl -s "$URL/api/v1/project-settings/jwt" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
{
"project_id": "f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07",
"algorithm": "RS256",
"kid": "Wq2fH6…(RFC 7638 thumbprint)",
"jwks_url": "https://api.sovaria.in/api/v1/auth/jwks",
"issuer": "sovaria.axis",
"audience": "sovaria.axis.api",
"access_token_ttl_seconds": 900,
"refresh_token_ttl_days": 7,
"claims": [
"sub",
"iss",
"aud",
"exp",
"iat",
"jti",
"aal",
"amr",
"ctx.org_id",
"ctx.project_id",
"ctx.roles"
]
}GET/api/v1/project-settings/compliance
HIPAA status for the project's organization, and whether the project is marked as holding health data.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Responses
- 200Success.
- 401No valid session or key.
curl -s "$URL/api/v1/project-settings/compliance" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
{
"project_id": "f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07",
"hipaa_available": false,
"hipaa_mode": false,
"contains_phi": false,
"audit_log_days": 30,
"session_limits": {},
"mfa_required_for_members": false,
"features_outside_baa": [
{
"id": "ai",
"label": "Sovariq AI assistant and project agents",
"why": "Prompts and data go to an LLM provider that isn't covered by the AWS BAA."
},
{
"id": "log_drains",
"label": "Log drains to third-party services",
"why": "Request logs can contain PHI; drains send them outside AWS."
}
]
}#Project secrets
GET/api/v1/project-secrets
The project's secrets (names and hints, never values).
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Returns
value_hintstring- First and last two characters.
rotation_periodstringmanual,monthly,weeklyordaily(generated secrets rotate automatically).version_countinteger- Current value plus kept earlier ones (the plan's
vault.secret_versions).
Responses
- 200Success.
- 401No valid session or key.
curl -s "$URL/api/v1/project-secrets" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
[
{
"name": "STRIPE_SECRET",
"value_set": true,
"value_hint": "sk…9Q",
"created_at": "2026-10-02T10:00:00+00:00",
"updated_at": "2026-10-16T08:00:00+00:00",
"version_count": 2,
"generated": false,
"rotation_period": "manual",
"next_rotation_at": null,
"rotated_at": null
}
]POST/api/v1/project-secrets
Store a secret, or have one generated. The value is in this answer only.
Encrypted at rest; functions and server code read them. Names: a letter or _, then letters, digits, _ (up to 64). Up to 100 per project (and the plan's vault.secrets). Automatic rotation cadences depend on the plan (vault.rotation).
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Body
namestringrequiredvaluestringoptional- The value — or use
generate_length. generate_lengthintegeroptional- Generate a random letters-and-digits value.
- 16–256
rotation_periodstringoptionaldefaultmanual- One of
manual,monthly,weekly,daily
Responses
- 201Created.
- 400Bad name, both or neither of
value/generate_length, or an existing name. - 403
PLAN_LIMIT_REACHED/PLAN_FEATURE_REQUIRED(that rotation cadence). - 401No valid session or key.
curl -s -X POST "$URL/api/v1/project-secrets" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d '{"name": "WEBHOOK_TOKEN", "generate_length": 48, "rotation_period": "monthly"}'Response
{
"name": "WEBHOOK_TOKEN",
"value_set": true,
"value_hint": "Xq…7d",
"created_at": "2026-10-02T10:00:00+00:00",
"updated_at": "2026-10-16T08:00:00+00:00",
"version_count": 1,
"generated": true,
"rotation_period": "monthly",
"next_rotation_at": "2026-11-17T12:00:00+00:00",
"rotated_at": null,
"value": "Xq…(48 characters)"
}PUT/api/v1/project-secrets/{secret_name}
Set a new value or rotation; the old value is kept as a version.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
secret_namestringrequired- The secret.
Body
valuestring | nulloptional- New value.
- at least 1 characters
rotation_periodstring | nulloptional- New cadence.
Responses
- 200Success.
- 404No such secret.
- 400Invalid value or cadence.
- 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/project-secrets/STRIPE_SECRET" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d '{"value": "<new value>"}'Response
{
"name": "STRIPE_SECRET",
"value_set": true,
"value_hint": "sk…9Q",
"created_at": "2026-10-02T10:00:00+00:00",
"updated_at": "2026-10-18T12:00:00+00:00",
"version_count": 3,
"generated": false,
"rotation_period": "manual",
"next_rotation_at": null,
"rotated_at": null
}GET/api/v1/project-secrets/{secret_name}/versions
A secret's versions (values not included).
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
secret_namestringrequired- The secret.
Responses
- 200Success.
- 401No valid session or key.
curl -s "$URL/api/v1/project-secrets/STRIPE_SECRET/versions" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
[
{
"version": 2,
"created_at": "2026-10-16T08:00:00+00:00",
"current": true
},
{
"version": 1,
"created_at": "2026-10-02T10:00:00+00:00",
"current": false
}
]POST/api/v1/project-secrets/{secret_name}/versions/{version}/restore
Make an earlier version current again.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
secret_namestringrequired- The secret.
versionintegerrequired- The version number.
Responses
- 200Success.
- 404No such secret or version.
- 401No valid session or key.
curl -s -X POST "$URL/api/v1/project-secrets/STRIPE_SECRET/versions/1/restore" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
{
"name": "STRIPE_SECRET",
"value_set": true,
"value_hint": "sk…9Q",
"created_at": "2026-10-02T10:00:00+00:00",
"updated_at": "2026-10-18T12:05:00+00:00",
"version_count": 3,
"generated": false,
"rotation_period": "manual",
"next_rotation_at": null,
"rotated_at": null
}DELETE/api/v1/project-secrets/{secret_name}
Delete a secret and its versions.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
secret_namestringrequired- The secret.
Responses
- 204Success, with no body.
- 404No such secret.
- 401No valid session or key.
curl -s -X DELETE "$URL/api/v1/project-secrets/WEBHOOK_TOKEN" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"#App roles
GET/api/v1/roles/matrix
The project's app roles and their permissions.
App roles are what your app's users get (ctx.actor.roles in rules). Defaults: admin, editor, viewer, service. Permissions: read, write, delete, manage_users, manage_roles, manage_settings, manage_api_keys, manage_policies, execute_functions, manage_storage, view_logs, manage_billing (Users and app roles).
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Responses
- 200Success.
- 401No valid session or key.
curl -s "$URL/api/v1/roles/matrix" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
{
"admin": {
"read": true,
"write": true,
"delete": true,
"manage_users": true,
"manage_roles": true,
"manage_settings": true,
"manage_api_keys": true,
"manage_policies": true,
"execute_functions": true,
"manage_storage": true,
"view_logs": true,
"manage_billing": true
},
"staff": {
"read": true,
"write": true,
"delete": false,
"manage_users": false,
"manage_roles": false,
"manage_settings": false,
"manage_api_keys": false,
"manage_policies": false,
"execute_functions": true,
"manage_storage": true,
"view_logs": false,
"manage_billing": false
}
}PUT/api/v1/roles/matrix
Replace the app roles (each with the permissions it grants).
Also updates the project's matching access policy.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Body
matrixobject<string, array<string>>required- Role name → list of permissions.
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/roles/matrix" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d '{"matrix": {"admin": ["read", "write", "delete", "manage_users"], "staff": ["read", "write", "execute_functions"], "customer": ["read"]}}'Response
{
"status": "ok",
"roles": [
"admin",
"customer",
"staff"
]
}GET/api/v1/roles/list
The default app roles.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Responses
- 200Success.
- 401No valid session or key.
curl -s "$URL/api/v1/roles/list" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
[
{
"name": "admin",
"description": "Default admin role",
"is_system": true
},
{
"name": "editor",
"description": "Default editor role",
"is_system": true
}
]GET/api/v1/roles/catalog
Team roles and the project's app roles, in one list each.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Responses
- 200Success.
- 401No valid session or key.
curl -s "$URL/api/v1/roles/catalog" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
{
"orgTeamRoles": [
"OWNER",
"ADMIN",
"MEMBER",
"VIEWER"
],
"appUserRoles": [
"admin",
"customer",
"staff"
]
}#Database webhooks
GET/api/v1/webhooks
Database webhooks: URLs called when rows change.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Returns
delivery_count, failure_count, pending_count, last_delivered_atinteger | string- From the delivery log.
Responses
- 200Success.
- 401No valid session or key.
curl -s "$URL/api/v1/webhooks" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
[
{
"id": "8b2e…",
"name": "Orders to ERP",
"url": "https://erp.skolist.com/sovaria",
"events": [
"INSERT",
"UPDATE"
],
"table": "orders",
"enabled": true,
"headers": {
"X-Source": "sovaria"
},
"created_at": "2026-10-10T09:00:00+00:00",
"updated_at": "2026-10-10T09:00:00+00:00",
"delivery_count": 1840,
"failure_count": 2,
"pending_count": 0,
"last_delivered_at": "2026-10-18T10:59:12+00:00"
}
]POST/api/v1/webhooks
Call a URL when rows are inserted, updated or deleted.
Each matching write sends POST {type: "database.change", project_id, table, event, timestamp, data: {row_count}, event_id} — the change, not the rows (read them with the API). Headers: your headers, X-Sovaria-Delivery: <id>, and with a secret X-Sovaria-Signature: sha256=<hex HMAC of the body>. Failed deliveries are retried after 10 s, 1 min, 5 min, 30 min, 2 h and 6 h; then dead-lettered (plans with echo.dlq) or marked failed. Webhook and target counts are limited by the plan (echo.pipes, echo.webhook_targets).
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Body
namestringrequired- A label.
- 1–128 characters
urlstringrequired- HTTPS endpoint (private addresses refused).
eventsarray<string>requiredINSERT,UPDATE,DELETE, or*.- 1–… items
tablestringoptionaldefault*- One table, or
*. secretstringoptional- Signing secret.
enabledbooleanoptionaldefaulttrue- On or off.
headersobject<string, string>optional- Extra headers to send.
Responses
- 201Created.
- 400Invalid URL or event type.
- 403
PLAN_LIMIT_REACHED. - 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/webhooks" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d '{"name": "Orders to ERP", "url": "https://erp.skolist.com/sovaria", "events": ["INSERT", "UPDATE"], "table": "orders", "secret": "<random secret>"}'Response
{
"id": "8b2e…",
"name": "Orders to ERP",
"url": "https://erp.skolist.com/sovaria",
"events": [
"INSERT",
"UPDATE"
],
"table": "orders",
"enabled": true,
"headers": {
"X-Source": "sovaria"
},
"created_at": "2026-10-10T09:00:00+00:00",
"updated_at": "2026-10-10T09:00:00+00:00",
"delivery_count": 0,
"failure_count": 0,
"pending_count": 0,
"last_delivered_at": "2026-10-18T10:59:12+00:00"
}PUT/api/v1/webhooks/{webhook_id}
Change a webhook.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
webhook_idstringrequired- The webhook.
Body
namestring | nulloptional- Name.
urlstring | nulloptional- URL.
eventsarray<string> | nulloptional- Events.
tablestring | nulloptional- Table.
secretstring | nulloptional- Secret.
enabledboolean | nulloptional- On or off.
headersobject<string, string> | nulloptional- Headers.
Responses
- 200The webhook (without the secret).
- 404No such webhook.
- 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/webhooks/8b2e…" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d '{"enabled": false}'DELETE/api/v1/webhooks/{webhook_id}
Delete a webhook.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
webhook_idstringrequired- The webhook.
Responses
- 200Success.
- 401No valid session or key.
curl -s -X DELETE "$URL/api/v1/webhooks/8b2e…" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
{
"status": "deleted",
"id": "8b2e…"
}POST/api/v1/webhooks/test/{webhook_id}
Send a test event now.
Body: {type: "webhook.test", table: "test", event: "TEST", timestamp, data: {message}}, signed like real deliveries.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
webhook_idstringrequired- The webhook.
Responses
- 200Success.
- 401No valid session or key.
curl -s -X POST "$URL/api/v1/webhooks/test/8b2e…" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
{
"status": "delivered",
"http_status": 200
}GET/api/v1/webhooks/{webhook_id}/deliveries
A webhook's recent deliveries.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
webhook_idstringrequired- The webhook.
Query parameters
limitintegeroptionaldefault50- How many (1–200).
- 1–200
Returns
statusstringpending,delivered,failedordead.
Responses
- 200Success.
- 401No valid session or key.
curl -s "$URL/api/v1/webhooks/8b2e…/deliveries" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
[
{
"id": "d41e…",
"webhook_id": "8b2e…",
"event_type": "orders.INSERT",
"status": "delivered",
"attempts": 1,
"last_http_status": 200,
"last_error": null,
"replay_of": null,
"next_attempt_at": null,
"created_at": "2026-10-18T10:59:11+00:00",
"delivered_at": "2026-10-18T10:59:12+00:00"
}
]POST/api/v1/webhooks/{webhook_id}/replay
Send a time range of past events again.
Only events within the plan's replay window (echo.replay_days).
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
webhook_idstringrequired- The webhook.
Body
sincestringrequired- From (ISO 8601).
untilstring | nulloptional- To (default now).
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/webhooks/8b2e…/replay" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d '{"since": "2026-10-17T00:00:00Z"}'Response
{
"queued": 312,
"since": "2026-10-17T00:00:00+00:00",
"until": "2026-10-18T12:00:00+00:00"
}GET/api/v1/webhooks/dead-letter
Deliveries that failed every retry (plans with a dead-letter queue).
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Query parameters
limitintegeroptionaldefault100- How many (1–500).
- 1–500
Responses
- 200Success.
- 403
PLAN_FEATURE_REQUIRED(echo.dlq). - 401No valid session or key.
curl -s "$URL/api/v1/webhooks/dead-letter" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
[
{
"id": "d41e…",
"webhook_id": "8b2e…",
"event_type": "orders.INSERT",
"status": "dead",
"attempts": 7,
"last_http_status": 503,
"last_error": "http_503",
"replay_of": null,
"next_attempt_at": null,
"created_at": "2026-10-18T10:59:11+00:00",
"delivered_at": null
}
]POST/api/v1/webhooks/dead-letter/{delivery_id}/redrive
Retry a dead-lettered delivery.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
delivery_idstringrequired- The delivery.
Responses
- 200Success.
- 404Not in the dead-letter queue.
- 401No valid session or key.
curl -s -X POST "$URL/api/v1/webhooks/dead-letter/d41e…/redrive" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
{
"status": "requeued",
"id": "d41e…"
}#SSO, alert channels and integrations
GET/api/v1/org/{org_id}/sso/saml
The organization's SAML single sign-on settings.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
org_idstringrequired- The organization.
Responses
- 200Success.
- 401No valid session or key.
curl -s "$URL/api/v1/org/b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90/sso/saml" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
{
"enabled": true,
"idp_entity_id": "http://www.okta.com/exk1…",
"idp_sso_url": "https://skolist.okta.com/app/…/sso/saml",
"idp_certificate_set": true,
"email_attribute": "email",
"sp_entity_id": "https://api.sovaria.in/api/v1/auth/saml/metadata/b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90",
"updated_at": "2026-10-01T09:00:00+00:00"
}PUT/api/v1/org/{org_id}/sso/saml
Set up SAML single sign-on for the console (Team plan and above).
- Who
- An organization owner or admin.
Path parameters
org_idstringrequired- The organization.
Body
enabledboolean | nulloptional- On or off.
idp_entity_idstring | nulloptional- From your identity provider.
idp_sso_urlstring | nulloptional- Its sign-in URL.
idp_certificate_pemstring | nulloptional- Its signing certificate (PEM).
email_attributestring | nulloptionaldefaultemail- The attribute holding the email (default
email). sp_entity_idstring | nulloptional- Override the service-provider id.
domainsarray<string> | nulloptional- Email domains this IdP may sign in
- 1–50 items
metadata_xmlstring | nulloptional- The IdP's metadata document
- 0–200,000 characters
Responses
- 200The settings as in GET.
- 403Not an owner/admin, or not in the plan (
res.sso). - 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/org/b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90/sso/saml" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d '{"enabled": true, "idp_entity_id": "http://www.okta.com/exk1…", "idp_sso_url": "https://skolist.okta.com/app/…/sso/saml", "idp_certificate_pem": "-----BEGIN CERTIFICATE-----\nMIID…\n-----END CERTIFICATE-----"}'GET/api/v1/org/{org_id}/notification-channels
Where the organization's alerts go besides email: Slack, Discord, Teams or a webhook.
- Who
- An organization owner or admin.
Path parameters
org_idstringrequired- The organization.
Responses
- 200Success.
- 401No valid session or key.
curl -s "$URL/api/v1/org/b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90/notification-channels" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
{
"channels": [
{
"id": "7d3a…",
"kind": "slack",
"name": "#ops",
"url_hint": "hooks.slack.com/…/Xy9",
"categories": [
"security",
"usage"
],
"enabled": true,
"last_status": "ok",
"last_error": null,
"last_sent_at": "2026-10-17T22:00:00+00:00",
"created_at": "2026-10-01T09:00:00+00:00"
}
]
}POST/api/v1/org/{org_id}/notification-channels
Add a channel (up to 10).
- Who
- An organization owner or admin.
Path parameters
org_idstringrequired- The organization.
Body
kindstringrequiredslack,discord,teamsorwebhook.- 0–16 characters
namestringoptional- A label.
- 0–80 characters
urlstringrequired- The incoming-webhook URL (Slack, Discord, Teams) or your HTTPS endpoint.
- 0–2,000 characters
categoriesarray<string> | nulloptionalsecurity,project,usage,billing(default all).
Responses
- 201Created.
- 400The URL isn't valid for that kind.
- 409Already 10 channels.
- 422No categories.
- 401No valid session or key.
curl -s -X POST "$URL/api/v1/org/b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90/notification-channels" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d '{"kind": "webhook", "name": "PagerDuty bridge", "url": "https://hooks.skolist.com/sovaria-alerts", "categories": ["security", "usage"]}'Response
{
"id": "7d3b…",
"kind": "webhook",
"name": "PagerDuty bridge",
"url_hint": "hooks.skolist.com/…lerts",
"categories": [
"security",
"usage"
],
"enabled": true,
"last_status": null,
"last_error": null,
"last_sent_at": null,
"created_at": "2026-10-18T11:40:00+00:00",
"signing_secret": "whsec_…(shown once)"
}PATCH/api/v1/org/{org_id}/notification-channels/{channel_id}
Rename a channel, change its categories or switch it off.
- Who
- An organization owner or admin.
Path parameters
org_idstringrequired- The organization.
channel_idstringrequired- The channel.
Body
namestring | nulloptional- Name.
- 0–80 characters
categoriesarray<string> | nulloptional- Categories.
enabledboolean | nulloptional- On or off.
Responses
- 200The channel.
- 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/org/b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90/notification-channels/7d3a…" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d '{"enabled": false}'DELETE/api/v1/org/{org_id}/notification-channels/{channel_id}
Remove a channel.
- Who
- An organization owner or admin.
Path parameters
org_idstringrequired- The organization.
channel_idstringrequired- The channel.
Responses
- 200Success.
- 401No valid session or key.
curl -s -X DELETE "$URL/api/v1/org/b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90/notification-channels/7d3a…" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
{
"deleted": true
}POST/api/v1/org/{org_id}/notification-channels/{channel_id}/test
Send a test message to a channel.
- Who
- An organization owner or admin.
Path parameters
org_idstringrequired- The organization.
channel_idstringrequired- The channel.
Responses
- 200Success.
- 401No valid session or key.
curl -s -X POST "$URL/api/v1/org/b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90/notification-channels/7d3a…/test" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
{
"ok": true,
"error": null
}GET/api/v1/integrations/connect/providers
Integrations that connect in one click: Slack, Discord (alerts), Vercel, Netlify (deploy env vars).
- Who
- Any signed-in console account.
Responses
- 200Success.
- 401No valid session or key.
curl -s "$URL/api/v1/integrations/connect/providers" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
{
"providers": [
{
"id": "vercel",
"name": "Vercel",
"kind": "deploy",
"configured": true,
"enabled": true,
"docs": "https://vercel.com/dashboard/integrations/console",
"callback_url": "https://api.sovaria.in/api/v1/integrations/connect/vercel/callback"
}
]
}POST/api/v1/org/{org_id}/integrations/{provider}/connect
Start connecting an integration: returns the provider's sign-in URL.
Send the browser to authorize_url. Afterwards it returns to return_to with ?connected=<provider> (or ?connect_error=…). Slack and Discord become notification channels; Vercel and Netlify are stored for syncing env vars.
- Who
- An organization owner or admin.
Path parameters
org_idstringrequired- The organization.
providerstringrequiredslack,discord,vercelornetlify.
Body
return_tostringrequired- A console URL to come back to.
- 0–2,000 characters
project_idstring | nulloptional- The project (deploy integrations).
- 0–64 characters
categoriesarray<string> | nulloptional- Alert categories (channels).
- 0–8 items
Responses
- 200Success.
- 400Invalid
return_to, or the integration isn't available. - 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/org/b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90/integrations/vercel/connect" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d '{"return_to": "https://console.sovaria.in/project/…/integrations", "project_id": "f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07"}'Response
{
"authorize_url": "https://vercel.com/integrations/sovaria/new?state=…"
}GET/api/v1/org/{org_id}/integrations/{provider}/state
Whether a deploy integration is connected for a project, and its last sync.
- Who
- An organization owner or admin.
Path parameters
org_idstringrequired- The organization.
providerstringrequiredvercelornetlify.
Query parameters
project_idstringrequired- The project.
- 0–64 characters
Responses
- 200Success.
- 401No valid session or key.
curl -s "$URL/api/v1/org/b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90/integrations/vercel/state?project_id=f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
{
"provider": "vercel",
"connected": true,
"connected_at": "2026-10-12T09:00:00Z",
"last_sync": {
"target_id": "prj_8hT…",
"at": "2026-10-12T09:01:00+00:00",
"keys": [
"NEXT_PUBLIC_SOVARIA_URL",
"NEXT_PUBLIC_SOVARIA_ANON_KEY"
]
}
}GET/api/v1/org/{org_id}/integrations/{provider}/targets
The Vercel projects or Netlify sites you can sync to.
- Who
- An organization owner or admin.
Path parameters
org_idstringrequired- The organization.
providerstringrequiredvercelornetlify.
Query parameters
project_idstringrequired- The project.
- 0–64 characters
Responses
- 200Success.
- 409Connect it first.
- 502The provider didn't answer.
- 401No valid session or key.
curl -s "$URL/api/v1/org/b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90/integrations/vercel/targets?project_id=f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
{
"targets": [
{
"id": "prj_8hT…",
"name": "skolist-web"
}
]
}POST/api/v1/org/{org_id}/integrations/{provider}/sync
Write the project's URL and anon key into a Vercel project or Netlify site as environment variables.
Writes SOVARIA_URL, SOVARIA_ANON_KEY and their NEXT_PUBLIC_ and VITE_ forms — public values only, never a secret key.
- Who
- An organization owner or admin.
Path parameters
org_idstringrequired- The organization.
providerstringrequiredvercelornetlify.
Body
project_idstringrequired- The project.
- 0–64 characters
target_idstringrequired- The Vercel project or Netlify site id.
- 1–100 characters, pattern `^[A-Za-z0-9_-]+$`
Responses
- 200Success.
- 409Not connected, or the anon key can't be shown (rotate it first).
- 502The provider refused the change.
- 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/org/b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90/integrations/vercel/sync" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d '{"project_id": "f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07", "target_id": "prj_8hT…"}'Response
{
"synced": [
"SOVARIA_URL",
"SOVARIA_ANON_KEY",
"NEXT_PUBLIC_SOVARIA_URL",
"NEXT_PUBLIC_SOVARIA_ANON_KEY",
"VITE_SOVARIA_URL",
"VITE_SOVARIA_ANON_KEY"
],
"target_id": "prj_8hT…"
}GET/api/v1/org/{org_id}/integrations/env
The public values a frontend needs, to set them by hand.
- Who
- An organization owner or admin.
Path parameters
org_idstringrequired- The organization.
Query parameters
project_idstringrequired- The project.
- 0–64 characters
Responses
- 200Success.
- 401No valid session or key.
curl -s "$URL/api/v1/org/b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90/integrations/env?project_id=f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
{
"env": {
"SOVARIA_URL": "https://3f9a1c0b7e2d.sovarias.in",
"SOVARIA_ANON_KEY": "svr_…",
"NEXT_PUBLIC_SOVARIA_URL": "https://3f9a1c0b7e2d.sovarias.in",
"NEXT_PUBLIC_SOVARIA_ANON_KEY": "svr_…",
"VITE_SOVARIA_URL": "https://3f9a1c0b7e2d.sovarias.in",
"VITE_SOVARIA_ANON_KEY": "svr_…"
}
}DELETE/api/v1/org/{org_id}/integrations/{provider}
Disconnect a deploy integration from a project.
- Who
- An organization owner or admin.
Path parameters
org_idstringrequired- The organization.
providerstringrequiredvercelornetlify.
Query parameters
project_idstringrequired- The project.
- 0–64 characters
Responses
- 200Success.
- 401No valid session or key.
curl -s -X DELETE "$URL/api/v1/org/b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90/integrations/vercel?project_id=f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
{
"disconnected": "vercel"
}#Your notifications
GET/api/v1/notifications
Your console notifications, newest first.
- Who
- Any signed-in console account.
Query parameters
unreadbooleanoptionaldefaultfalse- Only unread.
limitintegeroptionaldefault30- How many (1–100).
- 1–100
Responses
- 200Success.
- 401No valid session or key.
curl -s "$URL/api/v1/notifications" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
{
"items": [
{
"id": "3f1e…",
"category": "usage",
"event": "usage.threshold",
"title": "Storage at 80% of your plan",
"body": "Skolist shop uses 4 GB of 5 GB.",
"link": "/org/…/usage",
"org_id": "b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90",
"project_id": "f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07",
"created_at": "2026-10-18T06:00:00+00:00",
"read_at": null
}
],
"unread": 1
}POST/api/v1/notifications/read
Mark notifications read.
- Who
- Any signed-in console account.
Body
idsarray<string>optional- Notification ids (up to 200).
- 0–200 items
allbooleanoptionaldefaultfalse- Mark all read.
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/notifications/read" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d '{"all": true}'Response
{
"updated": 4
}GET/api/v1/notifications/preferences
Which kinds of notifications you get.
- Who
- Any signed-in console account.
Responses
- 200Success.
- 401No valid session or key.
curl -s "$URL/api/v1/notifications/preferences" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
{
"preferences": {
"security": true,
"billing": true,
"usage": true,
"project": true,
"product": false
},
"categories": [
{
"id": "security",
"label": "Security alerts",
"locked": true
},
{
"id": "billing",
"label": "Billing and plan",
"locked": false
},
{
"id": "usage",
"label": "Usage and limits",
"locked": false
},
{
"id": "project",
"label": "Project activity",
"locked": false
},
{
"id": "product",
"label": "Product updates",
"locked": false
}
]
}PUT/api/v1/notifications/preferences
Turn kinds of notifications on or off (security alerts can't be turned off).
- Who
- Any signed-in console account.
Body
preferencesobject<string, boolean>required- Category → on/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/notifications/preferences" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d '{"preferences": {"product": true, "project": false}}'Response
{
"preferences": {
"security": true,
"billing": true,
"usage": true,
"project": false,
"product": true
}
}#Templates and support
GET/api/v1/templates
App templates: what each creates.
Templates: saas, marketplace, chat. Apply one to a project with POST /api/v1/governance/tenants/{org_id}/projects/{project_id}/templates/{name}/apply (HTTP API: databases, backups and replicas).
- Who
- A project team member (app users and the anon key are refused).
Responses
- 200Success.
- 401No valid session or key.
curl -s "$URL/api/v1/templates" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
{
"templates": [
{
"name": "saas",
"title": "SaaS starter",
"description": "Organizations with members and roles, invitation links, and per-organization projects — every row visible only to members of its organization.",
"tags": [
"b2b",
"multi-tenant",
"teams"
],
"creates": [
"Tables organizations, memberships (owner / admin / member), invitations, projects",
"…"
],
"tables": [
"organizations",
"memberships",
"invitations",
"projects"
],
"steps": [
{
"type": "migration",
"name": "template saas: organizations, members, invitations, projects"
},
{
"type": "function_rules",
"functions": [
"accept_invitation"
]
}
],
"app": "SaaS starter (React + Vite)"
}
]
}GET/api/v1/templates/{name}
One template, including the SQL its migration runs.
- Who
- A project team member (app users and the anon key are refused).
Path parameters
namestringrequiredsaas,marketplaceorchat.
Responses
- 200The template as in the list, plus
sql: file name → SQL. - 404
TEMPLATE_NOT_FOUND. - 401No valid session or key.
curl -s "$URL/api/v1/templates/chat" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"GET/api/v1/templates/{name}/app.zip
Download the template's React starter app (with a .env.example).
- Who
- A project team member (app users and the anon key are refused).
Path parameters
namestringrequired- The template.
Responses
- 200
application/zip—sovaria-<name>.zip. - 401No valid session or key.
curl -s "$URL/api/v1/templates/chat/app.zip" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"POST/api/v1/templates/{name}/app.zip
Download the starter app with its .env filled in.
- Who
- A project team member (app users and the anon key are refused).
Path parameters
namestringrequired- The template.
Body
project_urlstring | nulloptional- The project URL (https).
- 0–200 characters
anon_keystring | nulloptional- The anon key.
- 0–300 characters
Responses
- 200
application/zip. - 422
BAD_URL/BAD_KEY. - 404No such template or it has no app.
- 401No valid session or key.
curl -s -X POST "$URL/api/v1/templates/chat/app.zip" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d '{"project_url": "https://3f9a1c0b7e2d.sovarias.in", "anon_key": "svr_4c1d…"}'POST/api/v1/support-requests
Contact Sovaria support (the website's contact form).
- Who
- Anyone: no key or session is needed.
Body
namestringrequired- Your name.
- 1–200 characters
emailstringrequired- Where to reply.
- 3–320 characters
subjectstringrequired- 3–500 characters.
- 3–500 characters
messagestringrequired- 10–8000 characters.
- 10–8,000 characters
sourcestringoptionaldefaultweb- Where it came from (default
web). - 0–40 characters
categorystringoptionaldefaultgeneral- e.g.
general,billing,technical. - 0–40 characters
org_idstring | nulloptional- Your organization, if any.
user_idstring | nulloptional- Your account, if any.
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/support-requests" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d '{"name": "Ana Lima", "email": "ana@skolist.com", "subject": "Restoring a backup", "message": "Our restore has been running for an hour — can you take a look?", "category": "technical", "org_id": "b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90"}'Response
{
"id": 812,
"source": "web",
"category": "technical",
"name": "Ana Lima",
"email": "ana@skolist.com",
"subject": "Restoring a backup",
"message": "Our restore has been running…",
"org_id": "b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90",
"user_id": null,
"status": "open",
"created_at": "2026-10-18T12:10:00+00:00",
"updated_at": "2026-10-18T12:10:00+00:00",
"assigned_to": null,
"operator_notes": null
}#Compliance center
Evidence for your own audits and security reviews: the overview, the evidence pack and, on Enterprise, HIPAA status and the HIPAA safeguards report. None of it is a certification.
GET/api/v1/org/{org_id}/compliance
The compliance overview: what the evidence pack will contain, checked now.
- Who
- An organization owner or admin, signed in to the console (
sov loginworks too).
Path parameters
org_idstringrequired- The organization.
Query parameters
project_idstring | nulloptional- One project instead of the whole organization.
Responses
- 200Cached for a minute per caller.
backup_encryptioncomes from the projects' own backup records.hipaais only{available: false, plan, required_plan}on plans without HIPAA. - 403Not an owner or admin of the organization.
- 401No valid session or key.
curl -s "$URL/api/v1/org/b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90/compliance" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
{
"generated_at": "2026-11-07T08:00:00+00:00",
"scope": "organization",
"statement": "This pack describes how Sovaria is configured … not a certification.",
"organization": {
"id": "b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90",
"name": "Skolist",
"plan": "pro",
"default_region": "ap-south-1"
},
"audit_chain": {
"status": "ok",
"chain_valid": true
},
"byok": "not_enabled",
"backup_encryption": {
"completed": 14,
"encrypted": 14,
"unencrypted": 0,
"algorithms": [
"aes256gcm-stream-v1"
],
"unreadable_projects": 0
},
"data_regions": [
"ap-south-1"
],
"projects": [
{
"id": "5e8d2a1f-3c90-4f0a-9c6b-b2f4a1c87d3e",
"name": "shop",
"ref": "abcdefghijkl",
"data_region": "ap-south-1",
"backups": "ok",
"pitr": "ok",
"pitr_enabled": true,
"security_advisor": {
"high": 1
},
"security_advisor_status": "ok",
"backup_encryption": "encrypted"
}
],
"access": {
"members": 3,
"owners": 1,
"admins": 1,
"members_without_mfa": 0,
"active_api_keys": 2,
"service_role_keys": 1
},
"security_advisor": {
"critical": 0,
"high": 1,
"medium": 0,
"low": 0
},
"subprocessors": 9,
"trust_center": "https://sovaria.in/trust",
"hipaa": {
"available": false,
"plan": "pro",
"required_plan": "enterprise"
}
}GET/api/v1/org/{org_id}/compliance/evidence
Download the evidence pack (ZIP) for your own audits.
- Who
- An organization owner or admin, signed in to the console (
sov loginworks too).
Path parameters
org_idstringrequired- The organization.
Query parameters
project_idstring | nulloptional- One project instead of the whole organization.
Responses
- 200
application/zip: README.txt, report.json, audit_chain.json, encryption.json, projects.csv, access_*.csv, subprocessors.csv, backups/ and security_advisor/ per project, hipaa.json and hipaa_safeguards.md on plans with HIPAA, and MANIFEST.json with each file's SHA-256. Counts towardcompliance.evidence_exports_day; written to the audit log. - 403Not an owner or admin.
- 429
PLAN_QUOTA_EXHAUSTED: the plan's packs per day are used. - 401No valid session or key.
curl -s "$URL/api/v1/org/b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90/compliance/evidence" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"GET/api/v1/org/{org_id}/compliance/hipaa
HIPAA status: plan, HIPAA mode (BAA signed), session limits, retention and PHI projects.
- Who
- An organization owner or admin, signed in to the console (
sov loginworks too). Enterprise plan (or a Sovaria override).
Path parameters
org_idstringrequired- The organization.
Responses
- 200
safeguardsis empty here; the report download judges each one from live data. - 403
PLAN_FEATURE_REQUIRED(required_plan: Enterprise): the plan doesn't include HIPAA. Also: not an owner or admin. - 401No valid session or key.
curl -s "$URL/api/v1/org/b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90/compliance/hipaa" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
{
"available": true,
"plan": "enterprise",
"required_plan": "enterprise",
"mode": true,
"active": true,
"baa_signed": true,
"session_limits": {
"inactivityMinutes": 15,
"timeBoxMinutes": 720
},
"org_session_limits": null,
"audit_log_days": 2190,
"phi_projects": [
{
"id": "5e8d2a1f-3c90-4f0a-9c6b-b2f4a1c87d3e",
"name": "clinic",
"ref": "abcdefghijkl"
}
],
"features_outside_baa": [
{
"id": "ai",
"label": "Sovariq AI assistant and project agents",
"why": "Prompts and data go to an LLM provider that isn't covered by the AWS BAA."
}
],
"safeguards": []
}GET/api/v1/org/{org_id}/compliance/hipaa/report
Download the HIPAA safeguards report (ZIP), judged from live data.
- Who
- An organization owner or admin, signed in to the console (
sov loginworks too). Enterprise plan (or a Sovaria override).
Path parameters
org_idstringrequired- The organization.
Responses
- 200
application/zip: hipaa_safeguards.md (one row per HIPAA Security Rule safeguard: in place, action needed, couldn't check or not applicable, with what the data shows), hipaa.json and MANIFEST.json. Evidence for your own risk analysis, not a certification. Counts towardcompliance.evidence_exports_day; written to the audit log ascompliance.hipaa_report_exported. - 403
PLAN_FEATURE_REQUIRED(required_plan: Enterprise), or not an owner or admin. - 429
PLAN_QUOTA_EXHAUSTED: the plan's packs per day are used. - 401No valid session or key.
curl -s "$URL/api/v1/org/b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90/compliance/hipaa/report" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"#Linked apps
Groups of this organization's projects whose users sign in once across the apps (Linked apps (sign in once across your apps)). Owners and admins only; AI assistants can't change them.
GET/api/v1/org/{org_id}/linked-apps
List the organization's groups of linked apps.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
org_idstringrequired- The organization id.
Responses
- 200Success.
- 403Only the organization's owners and admins can do this.
- 401No valid session or key.
curl -s "$URL/api/v1/org/<org-id>/linked-apps" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
{
"pools": [
{
"id": "8d2b…",
"name": "Shop",
"auto_create_users": true,
"created_at": "2026-11-25T03:40:00+00:00",
"apps": [
{
"project_id": "4f7f…",
"allowed_origins": [
"https://store.example.com"
],
"project_origin": "https://9f4c1a2b3c4d.sovarias.in",
"linked_at": "2026-11-25T03:40:00+00:00"
},
{
"project_id": "69f5…",
"allowed_origins": [],
"project_origin": "https://2a7e9b1c0d3f.sovarias.in",
"linked_at": "2026-11-25T03:40:00+00:00"
}
]
}
]
}POST/api/v1/org/{org_id}/linked-apps
Link two or more of the organization's projects.
A project can be in one group at most. auto_create_users: a person with no account in an app gets one on their first visit, when that app also takes new sign-ups.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
org_idstringrequired- The organization id.
Body
namestringoptionaldefaultLinked apps- 0–80 characters
project_idsarray<string>required- 2–20 items
auto_create_usersbooleanoptionaldefaulttrue
Responses
- 201Created.
- 400
LINKED_PROJECT_NOT_IN_ORGorLINKED_TOO_FEW. - 409
LINKED_PROJECT_IN_POOL: a project is already in another group. - 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/org/<org-id>/linked-apps" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
{
"id": "8d2b…",
"name": "Shop",
"auto_create_users": true,
"created_at": "2026-11-25T03:40:00+00:00",
"apps": [
{
"project_id": "4f7f…",
"allowed_origins": [
"https://store.example.com"
],
"project_origin": "https://9f4c1a2b3c4d.sovarias.in",
"linked_at": "2026-11-25T03:40:00+00:00"
},
{
"project_id": "69f5…",
"allowed_origins": [],
"project_origin": "https://2a7e9b1c0d3f.sovarias.in",
"linked_at": "2026-11-25T03:40:00+00:00"
}
]
}PATCH/api/v1/org/{org_id}/linked-apps/{pool_id}
Rename a group, add or remove apps, or set an app's extra addresses.
origins: [{ project_id, allowed_origins }] sets the exact addresses (https; http only for localhost) a sign-in link may open for that app; they are also added to the project's allowed origins and taken out again when removed. A group keeps at least two apps.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
org_idstringrequired- The organization id.
pool_idstringrequired
Body
namestring | nulloptional- 0–80 characters
auto_create_usersboolean | nulloptionaladd_projectsarray<string>optional- 0–20 items
remove_projectsarray<string>optional- 0–20 items
originsarray<object>optional- 0–20 items
2 fields
project_idstringrequired- The project id.
allowed_originsarray<string>optional- 0–20 items
Responses
- 200Success.
- 400
LINKED_TOO_FEWorLINKED_ORIGIN_INVALID. - 404
LINKED_POOL_NOT_FOUNDorLINKED_APP_NOT_IN_POOL. - 409
LINKED_PROJECT_IN_POOL. - 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/org/<org-id>/linked-apps/<pool_id>" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
{
"id": "8d2b…",
"name": "Shop",
"auto_create_users": true,
"created_at": "2026-11-25T03:40:00+00:00",
"apps": [
{
"project_id": "4f7f…",
"allowed_origins": [
"https://store.example.com"
],
"project_origin": "https://9f4c1a2b3c4d.sovarias.in",
"linked_at": "2026-11-25T03:40:00+00:00"
},
{
"project_id": "69f5…",
"allowed_origins": [],
"project_origin": "https://2a7e9b1c0d3f.sovarias.in",
"linked_at": "2026-11-25T03:40:00+00:00"
}
]
}DELETE/api/v1/org/{org_id}/linked-apps/{pool_id}
Unlink a group. People keep their accounts in each app.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
org_idstringrequired- The organization id.
pool_idstringrequired
Responses
- 204Success, with no body.
- 404
LINKED_POOL_NOT_FOUND. - 401No valid session or key.
curl -s -X DELETE "$URL/api/v1/org/<org-id>/linked-apps/<pool_id>" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"#More endpoints
GET/api/v1/infrastructure-requests
List infrastructure requests.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Responses
- 200Success.
- 401No valid session or key.
curl -s "$URL/api/v1/infrastructure-requests" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"POST/api/v1/infrastructure-requests
Request infrastructure.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Body
typestringrequired- pattern `^(static_egress_ip|private_network|vpc_peering|multi_region|ha_failover|isolated_compute)$`
notesstringoptional- 0–4,000 characters
regionstring | 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/infrastructure-requests" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"GET/api/v1/org/{org_id}/deleted-projects
List deleted projects.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
org_idstringrequired- The organization id.
Responses
- 200Success.
- 401No valid session or key.
curl -s "$URL/api/v1/org/<org-id>/deleted-projects" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"POST/api/v1/org/{org_id}/deleted-projects/{project_id}/restore
Restore deleted project.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
org_idstringrequired- The organization id.
project_idstringrequired- The project id.
Responses
- 200Success.
- 401No valid session or key.
curl -s -X POST "$URL/api/v1/org/<org-id>/deleted-projects/<project-id>/restore" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"GET/api/v1/org/{org_id}/integrations/connect/providers
Connect providers for org.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
org_idstringrequired- The organization id.
Responses
- 200Success.
- 401No valid session or key.
curl -s "$URL/api/v1/org/<org-id>/integrations/connect/providers" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"GET/api/v1/org/{org_id}/integrations/connections
The org's connected integrations.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
org_idstringrequired- The organization id.
Responses
- 200Success.
- 401No valid session or key.
curl -s "$URL/api/v1/org/<org-id>/integrations/connections" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"DELETE/api/v1/org/{org_id}/integrations/{provider}/app
Org app delete.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
org_idstringrequired- The organization id.
providerstringrequired
Responses
- 200Success.
- 401No valid session or key.
curl -s -X DELETE "$URL/api/v1/org/<org-id>/integrations/<provider>/app" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"PUT/api/v1/org/{org_id}/integrations/{provider}/app
Org app save.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
org_idstringrequired- The organization id.
providerstringrequired
Body
client_idstringrequired- 1–300 characters
client_secretstringrequired- 1–2,000 characters
slugstring | nulloptional- 0–100 characters, pattern `^[a-z0-9-]*$`
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/org/<org-id>/integrations/<provider>/app" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"POST/api/v1/org/{org_id}/integrations/{provider}/complete
Finish a connection after the provider's callback (pending id).
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
org_idstringrequired- The organization id.
providerstringrequired
Body
pendingstringrequired- 16–200 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/org/<org-id>/integrations/<provider>/complete" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"POST/api/v1/org/{org_id}/sso/saml/domains/{domain}/verify
Verify org saml domain.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
org_idstringrequired- The organization id.
domainstringrequired
Responses
- 200Success.
- 401No valid session or key.
curl -s -X POST "$URL/api/v1/org/<org-id>/sso/saml/domains/<domain>/verify" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"POST/api/v1/org/{org_id}/transfer-ownership
Hand the organization and its billing to another admin (owner only). 409 ONE_OWNED_ORG when they already own one.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
org_idstringrequired- The organization id.
Body
new_owner_idstringrequiredreasonstring | nulloptional- 0–500 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/org/<org-id>/transfer-ownership" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"POST/api/v1/projects/{project_id}/a2a/signing-keys/rotate
Rotate.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: 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>/a2a/signing-keys/rotate" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"GET/api/v1/projects/{project_id}/config
Remote config draft of an environment: parameters, conditions, the published version and pending changes.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
project_idstringrequired- The project id.
Query parameters
envstringoptional- environment (default: the request's environment)
Responses
- 200Success.
- 401No valid session or key.
curl -s "$URL/api/v1/projects/<project-id>/config" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"DELETE/api/v1/projects/{project_id}/config/conditions/{name}
Delete a condition from the draft.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
namestringrequiredproject_idstringrequired- The project id.
Query parameters
envstringoptional- environment (default: the request's environment)
Responses
- 204Success, with no body.
- 401No valid session or key.
curl -s -X DELETE "$URL/api/v1/projects/<project-id>/config/conditions/welcome" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"PUT/api/v1/projects/{project_id}/config/conditions/{name}
Create or change a targeting condition: rules (attrs, semver, percent, users, audience), priority (lower wins first).
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
namestringrequiredproject_idstringrequired- The project id.
Query parameters
envstringoptional- environment (default: the request's environment)
Responses
- 200Success.
- 401No valid session or key.
curl -s -X PUT "$URL/api/v1/projects/<project-id>/config/conditions/welcome" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"POST/api/v1/projects/{project_id}/config/diff
What publishing the draft (or a given template) would change against the published version.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
project_idstringrequired- The project id.
Query parameters
envstringoptional- environment (default: the request's environment)
Body
templateobject | 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 POST "$URL/api/v1/projects/<project-id>/config/diff" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"POST/api/v1/projects/{project_id}/config/evaluate
The values one user or device would get (context: user_id, anon_id, platform, app_version, country, language, attrs).
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
project_idstringrequired- The project id.
Query parameters
envstringoptional- environment (default: the request's environment)
Body
contextobjectoptionalsourcestringoptionaldefaultpublished- pattern `^(draft|published)$`
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/projects/<project-id>/config/evaluate" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"DELETE/api/v1/projects/{project_id}/config/params/{key}
Delete a parameter from the draft.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
keystringrequiredproject_idstringrequired- The project id.
Query parameters
envstringoptional- environment (default: the request's environment)
Responses
- 204Success, with no body.
- 401No valid session or key.
curl -s -X DELETE "$URL/api/v1/projects/<project-id>/config/params/<key>" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"PUT/api/v1/projects/{project_id}/config/params/{key}
Create or change a parameter: type (bool|string|number|json), default, description, conditional [{condition, value}].
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
keystringrequiredproject_idstringrequired- The project id.
Query parameters
envstringoptional- environment (default: the request's environment)
Responses
- 200Success.
- 401No valid session or key.
curl -s -X PUT "$URL/api/v1/projects/<project-id>/config/params/<key>" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"POST/api/v1/projects/{project_id}/config/preview
How many recently seen users would get different values if the draft (or template) were published.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
project_idstringrequired- The project id.
Query parameters
sampleintegeroptionaldefault1000- 10–5000
envstringoptional- environment (default: the request's environment)
Body
templateobject | 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 POST "$URL/api/v1/projects/<project-id>/config/preview" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"POST/api/v1/projects/{project_id}/config/publish
Publish the draft as the next immutable version (base_version: the version you reviewed; scheduled_at: publish later).
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
project_idstringrequired- The project id.
Query parameters
envstringoptional- environment (default: the request's environment)
Body
messagestringoptional- 0–500 characters
base_versioninteger | nulloptionalscheduled_atstring | 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 POST "$URL/api/v1/projects/<project-id>/config/publish" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"POST/api/v1/projects/{project_id}/config/rollback/{version}
Publish an older version again as a new version.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
versionintegerrequiredproject_idstringrequired- The project id.
Query parameters
envstringoptional- environment (default: the request's environment)
Body
messagestringoptional- 0–500 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/projects/<project-id>/config/rollback/<version>" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"DELETE/api/v1/projects/{project_id}/config/schedules/{schedule_id}
Cancel a scheduled publish.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
schedule_idstringrequiredproject_idstringrequired- The project id.
Query parameters
envstringoptional- environment (default: the request's environment)
Responses
- 204Success, with no body.
- 401No valid session or key.
curl -s -X DELETE "$URL/api/v1/projects/<project-id>/config/schedules/<schedule_id>" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"GET/api/v1/projects/{project_id}/config/template
The draft (or the published version) as a git-friendly template file.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
project_idstringrequired- The project id.
Query parameters
sourcestringoptionaldefaultdraft- pattern `^(draft|published)$`
envstringoptional- environment (default: the request's environment)
Responses
- 200Success.
- 401No valid session or key.
curl -s "$URL/api/v1/projects/<project-id>/config/template" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"PUT/api/v1/projects/{project_id}/config/template
Replace the draft from a template file {conditions, parameters}; prune removes what the file doesn't have. Nothing is published.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
project_idstringrequired- The project id.
Query parameters
prunebooleanoptionaldefaulttrueenvstringoptional- environment (default: the request's environment)
Responses
- 200Success.
- 401No valid session or key.
curl -s -X PUT "$URL/api/v1/projects/<project-id>/config/template" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"GET/api/v1/projects/{project_id}/config/versions
Published (and scheduled) versions, newest first.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
project_idstringrequired- The project id.
Query parameters
limitintegeroptionaldefault50- How many to return.
- 1–500
envstringoptional- environment (default: the request's environment)
Responses
- 200Success.
- 401No valid session or key.
curl -s "$URL/api/v1/projects/<project-id>/config/versions" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"GET/api/v1/projects/{project_id}/config/versions/{version}
One published version with its snapshot and template file.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
versionintegerrequiredproject_idstringrequired- The project id.
Query parameters
envstringoptional- environment (default: the request's environment)
Responses
- 200Success.
- 401No valid session or key.
curl -s "$URL/api/v1/projects/<project-id>/config/versions/<version>" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"GET/api/v1/projects/{project_id}/distribution
Tester builds, groups, testers, usage and the plan's limits.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: 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>/distribution" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"DELETE/api/v1/projects/{project_id}/distribution/groups/{name}
Delete a tester group.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
namestringrequiredproject_idstringrequired- The project id.
Responses
- 204Success, with no body.
- 401No valid session or key.
curl -s -X DELETE "$URL/api/v1/projects/<project-id>/distribution/groups/welcome" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"POST/api/v1/projects/{project_id}/distribution/releases
Start a tester build upload: returns the release and a signed upload URL (PUT the .apk/.aab/.ipa there, then finalize).
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: 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>/distribution/releases" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"DELETE/api/v1/projects/{project_id}/distribution/releases/{release_id}
Delete a tester build and its file.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
release_idstringrequiredproject_idstringrequired- The project id.
Responses
- 204Success, with no body.
- 401No valid session or key.
curl -s -X DELETE "$URL/api/v1/projects/<project-id>/distribution/releases/<release_id>" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"PATCH/api/v1/projects/{project_id}/distribution/releases/{release_id}
Change a build's notes or groups.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
release_idstringrequiredproject_idstringrequired- The project id.
Responses
- 200Success.
- 401No valid session or key.
curl -s -X PATCH "$URL/api/v1/projects/<project-id>/distribution/releases/<release_id>" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"POST/api/v1/projects/{project_id}/distribution/releases/{release_id}/finalize
Read the uploaded build (package/bundle id, version, build, minimum OS), share it with its groups and email their testers.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
release_idstringrequiredproject_idstringrequired- The project id.
Responses
- 200Success.
- 401No valid session or key.
curl -s -X POST "$URL/api/v1/projects/<project-id>/distribution/releases/<release_id>/finalize" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"POST/api/v1/projects/{project_id}/distribution/testers
Add testers by email to groups and send them install links.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
project_idstringrequired- The project id.
Body
emailsarray<string>required- 1–500 items
groupsarray<string>optional- 0–20 items
send_invitebooleanoptionaldefaulttrue
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/projects/<project-id>/distribution/testers" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"DELETE/api/v1/projects/{project_id}/distribution/testers/{tester_id}
Remove a tester; their install links stop working at once.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
tester_idstringrequiredproject_idstringrequired- The project id.
Responses
- 204Success, with no body.
- 401No valid session or key.
curl -s -X DELETE "$URL/api/v1/projects/<project-id>/distribution/testers/<tester_id>" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"POST/api/v1/projects/{project_id}/distribution/testers/{tester_id}/invite
Send a tester a new install link (older links stop working).
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
tester_idstringrequiredproject_idstringrequired- The project id.
Responses
- 200Success.
- 401No valid session or key.
curl -s -X POST "$URL/api/v1/projects/<project-id>/distribution/testers/<tester_id>/invite" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"GET/api/v1/projects/{project_id}/experiments
A/B experiments of an environment and the plan's limits.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
project_idstringrequired- The project id.
Query parameters
envstringoptional- environment (default: the request's environment)
Responses
- 200Success.
- 401No valid session or key.
curl -s "$URL/api/v1/projects/<project-id>/experiments" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"POST/api/v1/projects/{project_id}/experiments
Create an experiment on a parameter: variants [{name, value, weight}], control, condition?, exposure_pct?, goal {type, event|sql, value_prop?}, min_sample?.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
project_idstringrequired- The project id.
Query parameters
envstringoptional- environment (default: the request's environment)
Responses
- 201Created.
- 401No valid session or key.
curl -s -X POST "$URL/api/v1/projects/<project-id>/experiments" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"DELETE/api/v1/projects/{project_id}/experiments/{ref}
Delete a draft or stopped experiment.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
refstringrequiredproject_idstringrequired- The project id.
Query parameters
envstringoptional- environment (default: the request's environment)
Responses
- 204Success, with no body.
- 401No valid session or key.
curl -s -X DELETE "$URL/api/v1/projects/<project-id>/experiments/<ref>" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"GET/api/v1/projects/{project_id}/experiments/{ref}
One experiment (by id or name).
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
refstringrequiredproject_idstringrequired- The project id.
Query parameters
envstringoptional- environment (default: the request's environment)
Responses
- 200Success.
- 401No valid session or key.
curl -s "$URL/api/v1/projects/<project-id>/experiments/<ref>" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"PATCH/api/v1/projects/{project_id}/experiments/{ref}
Change an experiment: weights and exposure while running (assigned units keep their variant); anything while draft.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
refstringrequiredproject_idstringrequired- The project id.
Query parameters
envstringoptional- environment (default: the request's environment)
Responses
- 200Success.
- 401No valid session or key.
curl -s -X PATCH "$URL/api/v1/projects/<project-id>/experiments/<ref>" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"GET/api/v1/projects/{project_id}/experiments/{ref}/results
Per-variant results: z-test or Welch with 95% intervals, sample-ratio check, winner once every variant has min_sample units.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
refstringrequiredproject_idstringrequired- The project id.
Query parameters
envstringoptional- environment (default: the request's environment)
Responses
- 200Success.
- 401No valid session or key.
curl -s "$URL/api/v1/projects/<project-id>/experiments/<ref>/results" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"POST/api/v1/projects/{project_id}/experiments/{ref}/rollout
Make a variant (the winner by default) the parameter's default, end the experiment and publish.
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
refstringrequiredproject_idstringrequired- The project id.
Query parameters
envstringoptional- environment (default: the request's environment)
Body
variantstring | nulloptional- 0–64 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/projects/<project-id>/experiments/<ref>/rollout" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"POST/api/v1/projects/{project_id}/experiments/{ref}/start
Start an experiment (publishes a config version with it).
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
refstringrequiredproject_idstringrequired- The project id.
Query parameters
envstringoptional- environment (default: the request's environment)
Responses
- 200Success.
- 401No valid session or key.
curl -s -X POST "$URL/api/v1/projects/<project-id>/experiments/<ref>/start" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"POST/api/v1/projects/{project_id}/experiments/{ref}/stop
Stop an experiment (optionally naming the winner).
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Path parameters
refstringrequiredproject_idstringrequired- The project id.
Query parameters
envstringoptional- environment (default: the request's environment)
Body
winnerstring | nulloptional- 0–64 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/projects/<project-id>/experiments/<ref>/stop" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"GET/api/v1/roles/matrix/status
Whether the saved role matrix is enforced, and the plan's role allowance
- Who
- A project team member's session (the console, or a token from
sov login) asAuthorization: Bearer <token>. The member's role must allow the action.
Responses
- 200Success.
- 401No valid session or key.
curl -s "$URL/api/v1/roles/matrix/status" \
-H "apikey: $ANON_KEY" \
-H "Authorization: Bearer $ACCESS_TOKEN"