Python: Organizations, projects and keys
Manage organizations, members, invites, roles, project settings, API keys and project databases with the Python SDK.
These methods manage your Sovaria account — organizations, team members, projects, keys and databases. They need a team member's session (console_login or a CLI token), never an app user's.
#Methods
sovaria.accept_org_invite
Accept org invite.
await sovaria.accept_org_invite(token: str) -> dict[str, Any]Parameters
tokenstrrequired
Returns
dict[str, Any]
{
"status": "accepted",
"org_id": "b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90",
"user_id": "c1d2…",
"role": "MEMBER"
}sovaria.add_member
Add a user as a member of an org/project node.
await sovaria.add_member(
org_id: str,
user_id: str,
role: str = 'MEMBER',
) -> dict[str, Any]Parameters
org_idstrrequireduser_idstrrequiredrolestroptionaldefault'MEMBER'
Returns
dict[str, Any]
{
"status": "ok",
"user_id": "6e19c0a2-3f5b-4a8e-9b1d-0c7f2e8a4d51",
"org_id": "b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90",
"role": "MEMBER"
}sovaria.create_api_key
Create a project API key.
await sovaria.create_api_key(
*, name: str,
kind: str = 'custom',
role: str = 'admin',
expires_in: str = 'never',
) -> dict[str, Any]kind is custom (default), anon or service_role (one each per project); role (custom keys) is admin, editor, viewer or service; expires_in is never, 30d, 90d or 1y. The raw secret is in the response once.
Parameters
namestrrequired- A label for the key.
kindstroptionaldefault'custom'rolestroptionaldefault'admin'- What it can do;
service_rolebypasses policies (servers only). expires_instroptionaldefault'never'
Returns
dict[str, Any]
- The key value is returned once — store it in a secret manager.
{
"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)"
}sovaria.create_edge
Connect two DAPG nodes with a typed relationship.
await sovaria.create_edge(
source_node_id: str,
target_node_id: str,
relation_type: str,
role: str | None = None,
) -> EdgeResponseParameters
source_node_idstrrequiredtarget_node_idstrrequiredrelation_typestrrequiredrolestr | NoneoptionaldefaultNone
Returns
EdgeResponse
sovaria.create_node
Create a DAPG node (ORG / PROJECT / ENV / USER).
For a PROJECT, database_password sets the project's database password (12–72 characters, letters, numbers and symbols; no spaces, quotes, backslashes or backticks).
await sovaria.create_node(
node_type: str,
name: str,
metadata: dict[str, Any] | None = None,
*, database_password: str | None = None,
) -> NodeResponseWithout it the database gets a random password you can change later.
Parameters
node_typestrrequirednamestrrequiredmetadatadict[str, Any] | NoneoptionaldefaultNonedatabase_passwordstr | NoneoptionaldefaultNone
Returns
NodeResponse
- HTTP
- POST /api/v1/org
sovaria.create_org_invite
Create org invite.
await sovaria.create_org_invite(
org_id: str,
email: str,
role: str,
) -> dict[str, Any]Parameters
org_idstrrequired- Organization id.
emailstrrequired- Invitee.
rolestrrequiredOWNER,ADMIN,MEMBERorVIEWER.
Returns
dict[str, Any]
{
"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…"
}sovaria.delete_org
Delete org.
await sovaria.delete_org(org_id: str) -> dict[str, Any]Parameters
org_idstrrequired
Returns
dict[str, Any]
{
"status": "deleting",
"org_id": "b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90"
}sovaria.ensure_default_api_keys
Ensure default api keys.
await sovaria.ensure_default_api_keys() -> list[dict[str, Any]]Returns
list[dict[str, Any]]
[]sovaria.get_children
List child nodes attached by a relation (e.g.
await sovaria.get_children(
parent_id: str,
relation: str = 'OWNS',
) -> list[dict[str, Any]]OWNS, HAS_ENV).
Parameters
parent_idstrrequiredrelationstroptionaldefault'OWNS'
Returns
list[dict[str, Any]]
[
{
"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"
}
]sovaria.get_context
Resolve a user's roles on a resource by walking the DAPG.
await sovaria.get_context(
user_id: str,
resource_id: str,
) -> ContextManifestParameters
user_idstrrequiredresource_idstrrequired
Returns
ContextManifest
sovaria.get_node
Fetch a single graph node by ID.
await sovaria.get_node(node_id: str) -> dict[str, Any]Parameters
node_idstrrequired
Returns
dict[str, Any]
{
"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"
}sovaria.get_project_ref
Get project ref.
await sovaria.get_project_ref(project_id: str) -> dict[str, Any]Parameters
project_idstrrequired
Returns
dict[str, Any]
{
"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"
}
}sovaria.get_project_settings
Get project settings.
await sovaria.get_project_settings() -> dict[str, Any]Returns
dict[str, Any]
{
"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": []
}sovaria.get_role_catalog
Get role catalog.
await sovaria.get_role_catalog() -> dict[str, Any]Returns
dict[str, Any]
{
"orgTeamRoles": [
"OWNER",
"ADMIN",
"MEMBER",
"VIEWER"
],
"appUserRoles": [
"admin",
"customer",
"staff"
]
}sovaria.get_role_matrix
Get role matrix.
await sovaria.get_role_matrix() -> dict[str, Any]Returns
dict[str, Any]
{
"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
}
}sovaria.governance_delete_tenant_database
Governance delete tenant database.
await sovaria.governance_delete_tenant_database(
org_id: str,
project_id: str,
*, snapshot: bool = True,
) -> dict[str, Any]Parameters
org_idstrrequiredproject_idstrrequiredsnapshotbooloptionaldefaultTrue
Returns
dict[str, Any]
sovaria.governance_download_database_backup
A completed backup (plain SQL, gzip): the whole database, so owners, admins and developers only.
await sovaria.governance_download_database_backup(
org_id: str,
project_id: str,
backup_id: int | str,
*, dest: str | None = None,
) -> bytes | strReturns the bytes, or writes them to dest and returns the path. sov db backups download streams large backups to a file without holding them in memory.
Parameters
org_idstrrequiredproject_idstrrequiredbackup_idint | strrequireddeststr | NoneoptionaldefaultNone
Returns
bytes | str
sovaria.governance_download_project_export
A portable export bundle (tar.gz).
await sovaria.governance_download_project_export(
org_id: str,
project_id: str,
export_id: str,
*, dest: str | None = None,
) -> bytes | strReturns the bytes, or writes them to dest.
Parameters
org_idstrrequiredproject_idstrrequiredexport_idstrrequireddeststr | NoneoptionaldefaultNone
Returns
bytes | str
sovaria.governance_get_tenant
Governance get tenant.
await sovaria.governance_get_tenant(org_id: str) -> dict[str, Any]Parameters
org_idstrrequired
Returns
dict[str, Any]
sovaria.governance_get_tenant_database_connection
Governance get tenant database connection.
await sovaria.governance_get_tenant_database_connection(
org_id: str,
project_id: str,
) -> dict[str, Any]Parameters
org_idstrrequiredproject_idstrrequired
Returns
dict[str, Any]
{
"id": 77,
"org_id": "b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90",
"project_id": "f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07",
"region": "ap-south-1",
"compute_size": "micro",
"database": "prj_f0c3e9a2",
"username": "prj_f0c3e9a2_owner",
"status": "ready",
"health_status": "healthy",
"max_storage_bytes": 8589934592,
"created_at": "2026-10-01T08:00:00+00:00",
"ready_at": "2026-10-01T08:00:41+00:00",
"pool_mode": "transaction",
"pool_size": 20,
"pitr_enabled": true,
"wal_archive_enabled": true,
"isolation_mode": "dedicated_project",
"host": "db.b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90.sovaria.in",
"port": 5432,
"sslmode": "require",
"external_access_note": "",
"max_connections": 60,
"direct": {
"host": "db.b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90.sovaria.in",
"port": 5432,
"connection_uri_template": "postgresql://prj_f0c3e9a2_owner:${PASSWORD}@db.b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90.sovaria.in:5432/prj_f0c3e9a2?sslmode=require",
"psql_command": "psql 'postgresql://prj_f0c3e9a2_owner:<password>@db.b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90.sovaria.in:5432/prj_f0c3e9a2?sslmode=require'"
},
"pooled": {
"host": "db.b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90.sovaria.in",
"port": 5432,
"pool_mode": "transaction",
"pool_size": 20,
"connection_uri_template": "postgresql://prj_f0c3e9a2_owner:${PASSWORD}@db.b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90.sovaria.in:5432/prj_f0c3e9a2?sslmode=require",
"psql_command": "psql 'postgresql://prj_f0c3e9a2_owner:<password>@db.b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90.sovaria.in:5432/prj_f0c3e9a2?sslmode=require'"
}
}sovaria.governance_get_tenant_database_sleep
Idle sleep state of the project's database and each environment's (state: awake/asleep/waking).
await sovaria.governance_get_tenant_database_sleep(
org_id: str,
project_id: str,
) -> dict[str, Any]Parameters
org_idstrrequiredproject_idstrrequired
Returns
dict[str, Any]
{
"project_id": "f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07",
"state": "awake",
"can_sleep": true,
"environments": {
"7a1d2c3b-4e5f-4a6b-8c7d-9e0f1a2b3c4d": {
"state": "asleep",
"can_sleep": true,
"slept_at": "2026-10-25T03:10:00+00:00",
"notice": "This database is asleep; it wakes on the next request, which takes a few seconds."
}
},
"policy": {
"enabled": true,
"nonprod_days": 3,
"free_days": 14
}
}sovaria.governance_list_regions
Governance list regions.
await sovaria.governance_list_regions() -> list[dict[str, Any]]Returns
list[dict[str, Any]]
sovaria.governance_list_tenant_database_backups
Governance list tenant database backups.
await sovaria.governance_list_tenant_database_backups(
org_id: str,
project_id: str,
*, limit: int = 5,
) -> list[dict[str, Any]]Parameters
org_idstrrequiredproject_idstrrequiredlimitintoptionaldefault5
Returns
list[dict[str, Any]]
[
{
"id": 1042,
"org_id": "b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90",
"project_id": "f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07",
"kind": "daily",
"location_ref": "s3://sovaria-backups/…/1042.dump",
"size_bytes": 48211968,
"created_at": "2026-10-18T02:00:05+00:00",
"expires_at": "2026-10-25T02:00:05+00:00",
"status": "completed",
"checksum": "sha256:7c1e…",
"encryption": "aes-256-gcm"
}
]sovaria.governance_list_tenant_databases
Governance list tenant databases.
await sovaria.governance_list_tenant_databases(
org_id: str,
) -> list[dict[str, Any]]Parameters
org_idstrrequired
Returns
list[dict[str, Any]]
[
{
"id": 77,
"org_id": "b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90",
"project_id": "f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07",
"region": "ap-south-1",
"compute_size": "micro",
"host": "db-f0c3e9a2",
"port": 5432,
"database": "prj_f0c3e9a2",
"username": "prj_f0c3e9a2_owner",
"status": "ready",
"health_status": "healthy",
"max_storage_bytes": 8589934592,
"created_at": "2026-10-01T08:00:00+00:00",
"ready_at": "2026-10-01T08:00:41+00:00",
"pool_mode": "transaction",
"pool_size": 20,
"pitr_enabled": true,
"wal_archive_enabled": true,
"isolation_mode": "dedicated_project"
}
]sovaria.governance_pause_tenant_database
Governance pause tenant database.
await sovaria.governance_pause_tenant_database(
org_id: str,
project_id: str,
) -> dict[str, Any]Parameters
org_idstrrequiredproject_idstrrequired
Returns
dict[str, Any]
{
"id": 77,
"org_id": "b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90",
"project_id": "f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07",
"region": "ap-south-1",
"compute_size": "micro",
"host": "db-f0c3e9a2",
"port": 5432,
"database": "prj_f0c3e9a2",
"username": "prj_f0c3e9a2_owner",
"status": "paused",
"health_status": "healthy",
"max_storage_bytes": 8589934592,
"created_at": "2026-10-01T08:00:00+00:00",
"ready_at": "2026-10-01T08:00:41+00:00",
"pool_mode": "transaction",
"pool_size": 20,
"pitr_enabled": true,
"wal_archive_enabled": true,
"isolation_mode": "dedicated_project"
}sovaria.governance_project_metrics
Governance project metrics.
await sovaria.governance_project_metrics(
project_id: str,
*, since: str = '24',
limit: int = 500,
) -> dict[str, Any]Parameters
project_idstrrequiredsincestroptionaldefault'24'limitintoptionaldefault500
Returns
dict[str, Any]
sovaria.governance_provision_tenant_database
Governance provision tenant database.
await sovaria.governance_provision_tenant_database(
org_id: str,
*, project_id: str,
tier: str = 'dedicated',
region: str | None = None,
) -> dict[str, Any]Parameters
org_idstrrequiredproject_idstrrequiredtierstroptionaldefault'dedicated'regionstr | NoneoptionaldefaultNone
Returns
dict[str, Any]
sovaria.governance_regions_available
Governance regions available.
await sovaria.governance_regions_available(
*, size: str = 'micro',
plan: str | None = None,
) -> list[dict[str, Any]]Parameters
sizestroptionaldefault'micro'planstr | NoneoptionaldefaultNone
Returns
list[dict[str, Any]]
sovaria.governance_resize_tenant_database
Governance resize tenant database.
await sovaria.governance_resize_tenant_database(
org_id: str,
project_id: str,
compute_size: str,
) -> dict[str, Any]Parameters
org_idstrrequiredproject_idstrrequiredcompute_sizestrrequired
Returns
dict[str, Any]
sovaria.governance_resume_tenant_database
Governance resume tenant database.
await sovaria.governance_resume_tenant_database(
org_id: str,
project_id: str,
) -> dict[str, Any]Parameters
org_idstrrequiredproject_idstrrequired
Returns
dict[str, Any]
{
"id": 77,
"org_id": "b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90",
"project_id": "f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07",
"region": "ap-south-1",
"compute_size": "micro",
"host": "db-f0c3e9a2",
"port": 5432,
"database": "prj_f0c3e9a2",
"username": "prj_f0c3e9a2_owner",
"status": "ready",
"health_status": "healthy",
"max_storage_bytes": 8589934592,
"created_at": "2026-10-01T08:00:00+00:00",
"ready_at": "2026-10-01T08:00:41+00:00",
"pool_mode": "transaction",
"pool_size": 20,
"pitr_enabled": true,
"wal_archive_enabled": true,
"isolation_mode": "dedicated_project"
}sovaria.governance_reveal_tenant_database_connection
Reveal a database's connection string (staff, with the active access grant that allows it).
await sovaria.governance_reveal_tenant_database_connection(
org_id: str,
project_id: str,
grant_id: str,
) -> dict[str, Any]Parameters
org_idstrrequiredproject_idstrrequiredgrant_idstrrequired
Returns
dict[str, Any]
sovaria.governance_trigger_tenant_database_backup
Governance trigger tenant database backup.
await sovaria.governance_trigger_tenant_database_backup(
org_id: str,
project_id: str,
) -> dict[str, Any]Parameters
org_idstrrequiredproject_idstrrequired
Returns
dict[str, Any]
{
"id": 1052,
"org_id": "b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90",
"project_id": "f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07",
"kind": "manual",
"location_ref": "s3://sovaria-backups/…/1042.dump",
"size_bytes": 48211968,
"created_at": "2026-10-18T11:00:00+00:00",
"expires_at": "2026-10-25T11:00:00+00:00",
"status": "completed",
"checksum": "sha256:7c1e…",
"encryption": "aes-256-gcm"
}sovaria.governance_wake_tenant_database
Wake a sleeping database now (project_id may be an environment id).
await sovaria.governance_wake_tenant_database(
org_id: str,
project_id: str,
) -> dict[str, Any]Parameters
org_idstrrequiredproject_idstrrequired
Returns
dict[str, Any]
{
"org_id": "b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90",
"project_id": "f0c3e9a2-1b4d-4e7f-8a6c-2d9b5e3f1a07",
"state": "awake"
}sovaria.list_api_keys
List api keys.
await sovaria.list_api_keys() -> list[dict[str, Any]]Returns
list[dict[str, Any]]
[
{
"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
}
]sovaria.list_nodes
List graph nodes; when provided, node_type filters by type.
await sovaria.list_nodes(
node_type: str | None = None,
) -> list[dict[str, Any]]Parameters
node_typestr | NoneoptionaldefaultNone
Returns
list[dict[str, Any]]
- HTTP
- GET /api/v1/org
[
{
"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
}
]sovaria.list_org_members
List org members.
await sovaria.list_org_members(org_id: str) -> list[dict[str, Any]]Parameters
org_idstrrequired
Returns
list[dict[str, Any]]
[
{
"id": "6e19c0a2-3f5b-4a8e-9b1d-0c7f2e8a4d51",
"type": "USER",
"name": "Ana Lima",
"metadata_json": {},
"role": "ADMIN",
"email": "ana@skolist.com",
"mfa_enabled": true
}
]sovaria.remove_org_member
Remove org member.
await sovaria.remove_org_member(
org_id: str,
user_id: str,
) -> dict[str, Any]Parameters
org_idstrrequireduser_idstrrequired
Returns
dict[str, Any]
{
"status": "ok",
"user_id": "6e19c0a2-3f5b-4a8e-9b1d-0c7f2e8a4d51",
"org_id": "b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90",
"role": "MEMBER"
}sovaria.revoke_api_key
Revoke api key.
await sovaria.revoke_api_key(key_id: str) -> dict[str, Any]Parameters
key_idstrrequired
Returns
dict[str, Any]
{
"status": "revoked",
"key_id": "1c7e…"
}sovaria.update_member_role
Update member role.
await sovaria.update_member_role(
org_id: str,
user_id: str,
role: str,
) -> dict[str, Any]Parameters
org_idstrrequireduser_idstrrequiredrolestrrequired
Returns
dict[str, Any]
{
"status": "ok",
"user_id": "6e19c0a2-3f5b-4a8e-9b1d-0c7f2e8a4d51",
"org_id": "b2f4a1c8-7d3e-4f0a-9c6b-5e8d2a1f3c90",
"role": "VIEWER"
}sovaria.update_org
Update org.
await sovaria.update_org(
org_id: str,
body: dict[str, Any],
) -> dict[str, Any]Parameters
org_idstrrequiredbodydict[str, Any]required
Returns
dict[str, Any]
sovaria.update_project_settings
Update project settings.
await sovaria.update_project_settings(
settings: dict[str, Any],
) -> dict[str, Any]Parameters
settingsdict[str, Any]required
Returns
dict[str, Any]
{
"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": []
}sovaria.update_role_matrix
Update role matrix.
await sovaria.update_role_matrix(
matrix: dict[str, list[str]],
) -> dict[str, Any]Parameters
matrixdict[str, list[str]]required
Returns
dict[str, Any]
{
"status": "ok",
"roles": [
"admin",
"customer",
"staff"
]
}