API reference
50 endpoints. All paths are relative to your installation, for example https://app.example.com.
/api/v1/platform/meMy platform role, permissions, whether 2FA is on and whether this install requires it for staff/api/v1/platform/usersFind user accounts by email or name/api/v1/platform/users/{id}/statusDisable (signs out everywhere) or re-enable a user account; reason required/api/v1/platform/metricsSaaS metrics: tenants by status, MRR/ARR, churn, plan and usage distribution, operations/api/v1/platform/tenantsSearch and filter tenants/api/v1/platform/tenantsCreate a tenant: organization, first workspace and owner (new owners get a set-password link)/api/v1/platform/tenants/{id}Tenant detail: subscription, usage, workspaces, users, integration status (no secrets), audit/api/v1/platform/tenants/{id}/lifecycleSuspend, reactivate, cancel, schedule deletion, restore or purge (reason required)/api/v1/platform/tenants/{id}/subscriptionOverride plan, status, trial, grace or entitlements (reason required)/api/v1/platform/tenants/{id}/refundsRefund all or part of a paid invoice (optionally cancelling the subscription); idempotent on requestKey/api/v1/platform/tenants/{id}/billingInvoices, refunds and disputes of a tenant (no payment secrets)/api/v1/platform/plansAll plans including archived, with subscriber counts/api/v1/platform/plansCreate a plan/api/v1/platform/plans/{id}Update a plan (prices, limits, features, provider price ids)/api/v1/platform/plans/{id}/archiveArchive / unarchive a plan/api/v1/platform/operationsQueue depths, dead-lettered jobs and failure counters (last 24 h)/api/v1/platform/operations/retryRetry one dead-lettered job (reason required, audited)/api/v1/platform/support/grantsMy active support-access grants/api/v1/platform/support/grantsOpen time-limited, read-only, audited access to one tenant (reason required)/api/v1/platform/support/grants/{id}End a support-access grant/api/v1/platform/auditPlatform audit trail (append-only)/api/v1/platform/staffPlatform staff and what each staff role may do/api/v1/platform/staffGive an existing account a platform role (reason required)/api/v1/platform/staff/{userId}Change or remove a platform role (not your own; the last super admin stays)/api/v1/platform/tenants/{id}/membersMembers of a tenant with organization and workspace roles/api/v1/platform/tenants/{id}/membersAdd a person to a tenant (creates the account if needed)/api/v1/platform/tenants/{id}/members/{userId}Change a member's organization role, including ownership transfer/api/v1/platform/tenants/{id}/members/{userId}/removeRemove a member from a tenant/api/v1/platform/tenants/{id}/modulesPlan entitlements, overrides and effective modules/limits of a tenant/api/v1/platform/tenants/{id}/modulesTurn modules on/off and override limits for one tenant (null = inherit plan)/api/v1/platform/users/{id}/password-resetIssue a password reset link for a user (mailed, or returned once when system mail is off)/api/v1/platform/permissionsPermission matrix: workspace roles per module (from the route rules), organization roles, staff roles/api/v1/platform/settingsGlobal settings: sign-up mode and announcement banner/api/v1/platform/settingsSave global settings (reason required)/api/v1/platform/users/{id}Everything about one account: memberships, sessions, API keys, activity and staff actions/api/v1/platform/users/{id}Edit name, email, language or email-verified flag (reason required)/api/v1/platform/users/{id}/mfa-resetTurn off two-factor for a person who lost their device (signs them out)/api/v1/platform/users/{id}/sessions/revokeSign a person out of every browser/api/v1/platform/sessions/{id}/revokeEnd one session of any user/api/v1/platform/tenants/{id}/profileRename an organization or change its time zone (reason required)/api/v1/platform/tenants/{id}/workspaces/{workspaceId}Rename, archive or restore a workspace of a tenant (reason required)/api/v1/platform/users/{id}/impersonateLog in as this user: a time-limited session with full access, every change audited (reason required)/api/v1/platform/tenants/{id}/impersonateLog in to a tenant as its owner (or the member given in userId)/api/v1/platform/impersonationsOpen "log in as" sessions/api/v1/platform/impersonations/{id}End a "log in as" session/api/v1/platform/dataEvery table with record counts, optionally for one tenant or workspace/api/v1/platform/data/{model}Records of one table: search, filter by column, sort, page (secrets hidden)/api/v1/platform/data/{model}/{recordId}One record with links to related records (viewing is audited)/api/v1/platform/data/{model}/{recordId}Change fields of a record (reason required; before/after audited)/api/v1/platform/data/{model}/{recordId}Delete a record (reason required; the record is kept in the audit trail)/api/v1/platform/meMy platform role, permissions, whether 2FA is on and whether this install requires it for staff
No parameters.
curl -X GET "https://app.example.com/api/v1/platform/me" \
-b cookies.txt -H "X-CSRF-Token: $CSRF"/api/v1/platform/usersFind user accounts by email or name
Query parameters
qrequired | stringLength 2–100 |
page | integerRange 1–9007199254740991 · Default 1 |
curl -X GET "https://app.example.com/api/v1/platform/users" \
-b cookies.txt -H "X-CSRF-Token: $CSRF"/api/v1/platform/users/{id}/statusDisable (signs out everywhere) or re-enable a user account; reason required
Path parameters
idrequired | string |
Request body (JSON)
statusrequired | enumOne of: ACTIVE, DISABLED |
reasonrequired | stringLength 5–500 |
curl -X POST "https://app.example.com/api/v1/platform/users/$ID/status" \
-b cookies.txt -H "X-CSRF-Token: $CSRF" \
-H "Content-Type: application/json" \
-d '{
"status": "ACTIVE",
"reason": "string"
}'/api/v1/platform/metricsSaaS metrics: tenants by status, MRR/ARR, churn, plan and usage distribution, operations
No parameters.
curl -X GET "https://app.example.com/api/v1/platform/metrics" \
-b cookies.txt -H "X-CSRF-Token: $CSRF"/api/v1/platform/tenantsSearch and filter tenants
Query parameters
q | stringLength 0–100 |
status | enumOne of: PENDING_SETUP, TRIAL, ACTIVE, PAST_DUE, SUSPENDED, CANCELLED, DELETION_PENDING, DELETED |
plan | stringLength 0–40 |
page | integerRange 1–9007199254740991 · Default 1 |
pageSize | integerRange 1–100 · Default 25 |
sort | enumOne of: createdAt, name · Default "createdAt" |
curl -X GET "https://app.example.com/api/v1/platform/tenants" \
-b cookies.txt -H "X-CSRF-Token: $CSRF"/api/v1/platform/tenantsCreate a tenant: organization, first workspace and owner (new owners get a set-password link)
Request body (JSON)
organizationNamerequired | stringLength 2–120 |
ownerEmailrequired | string (email) |
ownerName | stringLength 0–120 |
planCode | stringLength 0–40 |
reasonrequired | stringLength 5–500 |
curl -X POST "https://app.example.com/api/v1/platform/tenants" \
-b cookies.txt -H "X-CSRF-Token: $CSRF" \
-H "Content-Type: application/json" \
-d '{
"organizationName": "string",
"ownerEmail": "name@example.com",
"ownerName": "string",
"planCode": "string",
"reason": "string"
}'/api/v1/platform/tenants/{id}Tenant detail: subscription, usage, workspaces, users, integration status (no secrets), audit
Path parameters
idrequired | string |
curl -X GET "https://app.example.com/api/v1/platform/tenants/$ID" \
-b cookies.txt -H "X-CSRF-Token: $CSRF"/api/v1/platform/tenants/{id}/lifecycleSuspend, reactivate, cancel, schedule deletion, restore or purge (reason required)
Path parameters
idrequired | string |
Request body (JSON)
actionrequired | enumOne of: suspend, reactivate, cancel, schedule_deletion, restore, purge_now |
reasonrequired | stringLength 5–500 |
curl -X POST "https://app.example.com/api/v1/platform/tenants/$ID/lifecycle" \
-b cookies.txt -H "X-CSRF-Token: $CSRF" \
-H "Content-Type: application/json" \
-d '{
"action": "suspend",
"reason": "string"
}'/api/v1/platform/tenants/{id}/subscriptionOverride plan, status, trial, grace or entitlements (reason required)
Path parameters
idrequired | string |
Request body (JSON)
planCode | stringLength 0–40 |
status | enumOne of: TRIALING, ACTIVE, PAST_DUE, CANCELED, INCOMPLETE |
trialEndsAt | any | null |
graceUntil | any | null |
overrides | object |
reasonrequired | stringLength 5–500 |
curl -X POST "https://app.example.com/api/v1/platform/tenants/$ID/subscription" \
-b cookies.txt -H "X-CSRF-Token: $CSRF" \
-H "Content-Type: application/json" \
-d '{
"planCode": "string",
"status": "TRIALING",
"trialEndsAt": null,
"graceUntil": null,
"overrides": {},
"reason": "string"
}'/api/v1/platform/tenants/{id}/refundsRefund all or part of a paid invoice (optionally cancelling the subscription); idempotent on requestKey
Path parameters
idrequired | string |
Request body (JSON)
invoiceIdrequired | string (uuid) |
amountCents | integerRange −∞–9007199254740991 |
reasonrequired | stringLength 5–500 |
cancelSubscription | booleanDefault false |
requestKeyrequired | string (uuid) |
curl -X POST "https://app.example.com/api/v1/platform/tenants/$ID/refunds" \
-b cookies.txt -H "X-CSRF-Token: $CSRF" \
-H "Content-Type: application/json" \
-d '{
"invoiceId": "00000000-0000-4000-8000-000000000000",
"amountCents": 1,
"reason": "string",
"cancelSubscription": false,
"requestKey": "00000000-0000-4000-8000-000000000000"
}'/api/v1/platform/tenants/{id}/billingInvoices, refunds and disputes of a tenant (no payment secrets)
Path parameters
idrequired | string |
curl -X GET "https://app.example.com/api/v1/platform/tenants/$ID/billing" \
-b cookies.txt -H "X-CSRF-Token: $CSRF"/api/v1/platform/plansAll plans including archived, with subscriber counts
No parameters.
curl -X GET "https://app.example.com/api/v1/platform/plans" \
-b cookies.txt -H "X-CSRF-Token: $CSRF"/api/v1/platform/plansCreate a plan
Request body (JSON)
coderequired | stringPattern ^[a-z0-9-]{2,40}$ |
namerequired | stringLength 2–60 |
description | stringLength 0–500 · Default "" |
priceMonthlyCentsrequired | integerRange 0–9007199254740991 |
priceYearlyCentsrequired | integerRange 0–9007199254740991 |
currency | stringLength 3–3 · Default "USD" |
trialDays | integerRange 0–90 · Default 14 |
isPublic | booleanDefault true |
isActive | booleanDefault true |
sortOrder | integerRange -9007199254740991–9007199254740991 · Default 0 |
providerPriceIds | objectDefault {} |
entitlementsrequired | object |
entitlements.maxUsersrequired | integerRange 0–9007199254740991 |
entitlements.maxWorkspacesrequired | integerRange 1–9007199254740991 |
entitlements.maxMailboxesrequired | integerRange 0–9007199254740991 |
entitlements.maxActiveCampaignsrequired | integerRange 0–9007199254740991 |
entitlements.maxLeadsrequired | integerRange 0–9007199254740991 |
entitlements.monthlyEmailSendsrequired | integerRange 0–9007199254740991 |
entitlements.monthlyAiUsdrequired | numberRange 0–∞ |
entitlements.monthlyEnrichmentsrequired | integerRange 0–9007199254740991 |
entitlements.monthlyApiCallsrequired | integerRange 0–9007199254740991 |
entitlements.monthlyWorkflowRunsrequired | integerRange 0–9007199254740991 |
entitlements.storageMbrequired | integerRange 0–9007199254740991 |
entitlements.apiRequestsPerMinuterequired | integerRange 1–9007199254740991 |
entitlements.featuresrequired | object |
entitlements.features.copilotrequired | boolean |
entitlements.features.workflowsrequired | boolean |
entitlements.features.autoReplyrequired | boolean |
entitlements.features.waterfallrequired | boolean |
entitlements.features.apiAccessrequired | boolean |
entitlements.features.agencyWorkspacesrequired | boolean |
entitlements.integrationsrequired | string[] |
entitlements.allowancePeriod | enumOne of: monthly, annual_pooled · Default "monthly" |
curl -X POST "https://app.example.com/api/v1/platform/plans" \
-b cookies.txt -H "X-CSRF-Token: $CSRF" \
-H "Content-Type: application/json" \
-d '{
"code": "string",
"name": "string",
"description": "",
"priceMonthlyCents": 0,
"priceYearlyCents": 0,
"currency": "USD",
"trialDays": 14,
"isPublic": true,
"isActive": true,
"sortOrder": 0,
"providerPriceIds": {},
"entitlements": {
"maxUsers": 0,
"maxWorkspaces": 1,
"maxMailboxes": 0,
"maxActiveCampaigns": 0,
"maxLeads": 0,
"monthlyEmailSends": 0,
"monthlyAiUsd": 0,
"monthlyEnrichments": 0,
"monthlyApiCalls": 0,
"monthlyWorkflowRuns": 0,
"storageMb": 0,
"apiRequestsPerMinute": 1,
"features": {
"copilot": true,
"workflows": true,
"autoReply": true,
"waterfall": true,
"apiAccess": true,
"agencyWorkspaces": true
},
"integrations": [
"string"
]
}
}'/api/v1/platform/plans/{id}Update a plan (prices, limits, features, provider price ids)
Path parameters
idrequired | string |
Request body (JSON)
coderequired | stringPattern ^[a-z0-9-]{2,40}$ |
namerequired | stringLength 2–60 |
description | stringLength 0–500 · Default "" |
priceMonthlyCentsrequired | integerRange 0–9007199254740991 |
priceYearlyCentsrequired | integerRange 0–9007199254740991 |
currency | stringLength 3–3 · Default "USD" |
trialDays | integerRange 0–90 · Default 14 |
isPublic | booleanDefault true |
isActive | booleanDefault true |
sortOrder | integerRange -9007199254740991–9007199254740991 · Default 0 |
providerPriceIds | objectDefault {} |
entitlementsrequired | object |
entitlements.maxUsersrequired | integerRange 0–9007199254740991 |
entitlements.maxWorkspacesrequired | integerRange 1–9007199254740991 |
entitlements.maxMailboxesrequired | integerRange 0–9007199254740991 |
entitlements.maxActiveCampaignsrequired | integerRange 0–9007199254740991 |
entitlements.maxLeadsrequired | integerRange 0–9007199254740991 |
entitlements.monthlyEmailSendsrequired | integerRange 0–9007199254740991 |
entitlements.monthlyAiUsdrequired | numberRange 0–∞ |
entitlements.monthlyEnrichmentsrequired | integerRange 0–9007199254740991 |
entitlements.monthlyApiCallsrequired | integerRange 0–9007199254740991 |
entitlements.monthlyWorkflowRunsrequired | integerRange 0–9007199254740991 |
entitlements.storageMbrequired | integerRange 0–9007199254740991 |
entitlements.apiRequestsPerMinuterequired | integerRange 1–9007199254740991 |
entitlements.featuresrequired | object |
entitlements.features.copilotrequired | boolean |
entitlements.features.workflowsrequired | boolean |
entitlements.features.autoReplyrequired | boolean |
entitlements.features.waterfallrequired | boolean |
entitlements.features.apiAccessrequired | boolean |
entitlements.features.agencyWorkspacesrequired | boolean |
entitlements.integrationsrequired | string[] |
entitlements.allowancePeriod | enumOne of: monthly, annual_pooled · Default "monthly" |
curl -X PUT "https://app.example.com/api/v1/platform/plans/$ID" \
-b cookies.txt -H "X-CSRF-Token: $CSRF" \
-H "Content-Type: application/json" \
-d '{
"code": "string",
"name": "string",
"description": "",
"priceMonthlyCents": 0,
"priceYearlyCents": 0,
"currency": "USD",
"trialDays": 14,
"isPublic": true,
"isActive": true,
"sortOrder": 0,
"providerPriceIds": {},
"entitlements": {
"maxUsers": 0,
"maxWorkspaces": 1,
"maxMailboxes": 0,
"maxActiveCampaigns": 0,
"maxLeads": 0,
"monthlyEmailSends": 0,
"monthlyAiUsd": 0,
"monthlyEnrichments": 0,
"monthlyApiCalls": 0,
"monthlyWorkflowRuns": 0,
"storageMb": 0,
"apiRequestsPerMinute": 1,
"features": {
"copilot": true,
"workflows": true,
"autoReply": true,
"waterfall": true,
"apiAccess": true,
"agencyWorkspaces": true
},
"integrations": [
"string"
]
}
}'/api/v1/platform/plans/{id}/archiveArchive / unarchive a plan
Path parameters
idrequired | string |
Request body (JSON)
archivedrequired | boolean |
curl -X POST "https://app.example.com/api/v1/platform/plans/$ID/archive" \
-b cookies.txt -H "X-CSRF-Token: $CSRF" \
-H "Content-Type: application/json" \
-d '{
"archived": true
}'/api/v1/platform/operationsQueue depths, dead-lettered jobs and failure counters (last 24 h)
No parameters.
curl -X GET "https://app.example.com/api/v1/platform/operations" \
-b cookies.txt -H "X-CSRF-Token: $CSRF"/api/v1/platform/operations/retryRetry one dead-lettered job (reason required, audited)
Request body (JSON)
queuerequired | stringLength 0–40 |
jobIdrequired | stringLength 0–200 |
reasonrequired | stringLength 5–300 |
curl -X POST "https://app.example.com/api/v1/platform/operations/retry" \
-b cookies.txt -H "X-CSRF-Token: $CSRF" \
-H "Content-Type: application/json" \
-d '{
"queue": "string",
"jobId": "string",
"reason": "string"
}'/api/v1/platform/support/grantsMy active support-access grants
No parameters.
curl -X GET "https://app.example.com/api/v1/platform/support/grants" \
-b cookies.txt -H "X-CSRF-Token: $CSRF"/api/v1/platform/support/grantsOpen time-limited, read-only, audited access to one tenant (reason required)
Request body (JSON)
organizationIdrequired | string (uuid) |
reasonrequired | stringLength 10–500 |
minutes | integerRange 5–240 · Default 60 |
curl -X POST "https://app.example.com/api/v1/platform/support/grants" \
-b cookies.txt -H "X-CSRF-Token: $CSRF" \
-H "Content-Type: application/json" \
-d '{
"organizationId": "00000000-0000-4000-8000-000000000000",
"reason": "string",
"minutes": 60
}'/api/v1/platform/support/grants/{id}End a support-access grant
Path parameters
idrequired | string |
curl -X DELETE "https://app.example.com/api/v1/platform/support/grants/$ID" \
-b cookies.txt -H "X-CSRF-Token: $CSRF"/api/v1/platform/auditPlatform audit trail (append-only)
Query parameters
organizationId | string (uuid) |
action | stringLength 0–60 |
page | integerRange 1–9007199254740991 · Default 1 |
pageSize | integerRange 1–200 · Default 50 |
curl -X GET "https://app.example.com/api/v1/platform/audit" \
-b cookies.txt -H "X-CSRF-Token: $CSRF"/api/v1/platform/staffPlatform staff and what each staff role may do
No parameters.
curl -X GET "https://app.example.com/api/v1/platform/staff" \
-b cookies.txt -H "X-CSRF-Token: $CSRF"/api/v1/platform/staffGive an existing account a platform role (reason required)
Request body (JSON)
emailrequired | string (email) |
rolerequired | enumOne of: SUPER_ADMIN, SUPPORT, FINANCE |
reasonrequired | stringLength 5–500 |
curl -X POST "https://app.example.com/api/v1/platform/staff" \
-b cookies.txt -H "X-CSRF-Token: $CSRF" \
-H "Content-Type: application/json" \
-d '{
"email": "name@example.com",
"role": "SUPER_ADMIN",
"reason": "string"
}'/api/v1/platform/staff/{userId}Change or remove a platform role (not your own; the last super admin stays)
Path parameters
userIdrequired | string |
Request body (JSON)
rolerequired | enum | nullOne of: SUPER_ADMIN, SUPPORT, FINANCE |
reasonrequired | stringLength 5–500 |
curl -X PUT "https://app.example.com/api/v1/platform/staff/$USER_ID" \
-b cookies.txt -H "X-CSRF-Token: $CSRF" \
-H "Content-Type: application/json" \
-d '{
"role": "SUPER_ADMIN",
"reason": "string"
}'/api/v1/platform/tenants/{id}/membersMembers of a tenant with organization and workspace roles
Path parameters
idrequired | string |
curl -X GET "https://app.example.com/api/v1/platform/tenants/$ID/members" \
-b cookies.txt -H "X-CSRF-Token: $CSRF"/api/v1/platform/tenants/{id}/membersAdd a person to a tenant (creates the account if needed)
Path parameters
idrequired | string |
Request body (JSON)
emailrequired | string (email) |
name | stringLength 0–120 |
rolerequired | enumOne of: OWNER, ADMIN, BILLING, MEMBER |
workspaceId | string (uuid) | null |
workspaceRole | enumOne of: OWNER, ADMIN, MANAGER, MEMBER, VIEWER · Default "MEMBER" |
reasonrequired | stringLength 5–500 |
curl -X POST "https://app.example.com/api/v1/platform/tenants/$ID/members" \
-b cookies.txt -H "X-CSRF-Token: $CSRF" \
-H "Content-Type: application/json" \
-d '{
"email": "name@example.com",
"name": "string",
"role": "OWNER",
"workspaceId": "00000000-0000-4000-8000-000000000000",
"workspaceRole": "MEMBER",
"reason": "string"
}'/api/v1/platform/tenants/{id}/members/{userId}Change a member's organization role, including ownership transfer
Path parameters
idrequired | string |
userIdrequired | string |
Request body (JSON)
rolerequired | enumOne of: OWNER, ADMIN, BILLING, MEMBER |
reasonrequired | stringLength 5–500 |
curl -X PUT "https://app.example.com/api/v1/platform/tenants/$ID/members/$USER_ID" \
-b cookies.txt -H "X-CSRF-Token: $CSRF" \
-H "Content-Type: application/json" \
-d '{
"role": "OWNER",
"reason": "string"
}'/api/v1/platform/tenants/{id}/members/{userId}/removeRemove a member from a tenant
Path parameters
idrequired | string |
userIdrequired | string |
Request body (JSON)
reasonrequired | stringLength 5–500 |
curl -X POST "https://app.example.com/api/v1/platform/tenants/$ID/members/$USER_ID/remove" \
-b cookies.txt -H "X-CSRF-Token: $CSRF" \
-H "Content-Type: application/json" \
-d '{
"reason": "string"
}'/api/v1/platform/tenants/{id}/modulesPlan entitlements, overrides and effective modules/limits of a tenant
Path parameters
idrequired | string |
curl -X GET "https://app.example.com/api/v1/platform/tenants/$ID/modules" \
-b cookies.txt -H "X-CSRF-Token: $CSRF"/api/v1/platform/tenants/{id}/modulesTurn modules on/off and override limits for one tenant (null = inherit plan)
Path parameters
idrequired | string |
Request body (JSON)
featuresrequired | object |
features.copilotrequired | boolean | null |
features.workflowsrequired | boolean | null |
features.autoReplyrequired | boolean | null |
features.waterfallrequired | boolean | null |
features.apiAccessrequired | boolean | null |
features.agencyWorkspacesrequired | boolean | null |
limitsrequired | object |
limits.maxUsersrequired | number | null |
limits.maxWorkspacesrequired | number | null |
limits.maxMailboxesrequired | number | null |
limits.maxActiveCampaignsrequired | number | null |
limits.maxLeadsrequired | number | null |
limits.monthlyEmailSendsrequired | number | null |
limits.monthlyAiUsdrequired | number | null |
limits.monthlyEnrichmentsrequired | number | null |
limits.monthlyApiCallsrequired | number | null |
limits.monthlyWorkflowRunsrequired | number | null |
limits.storageMbrequired | number | null |
limits.apiRequestsPerMinuterequired | number | null |
integrationsrequired | string[] | null |
reasonrequired | stringLength 5–500 |
curl -X PUT "https://app.example.com/api/v1/platform/tenants/$ID/modules" \
-b cookies.txt -H "X-CSRF-Token: $CSRF" \
-H "Content-Type: application/json" \
-d '{
"features": {
"copilot": true,
"workflows": true,
"autoReply": true,
"waterfall": true,
"apiAccess": true,
"agencyWorkspaces": true
},
"limits": {
"maxUsers": 0,
"maxWorkspaces": 0,
"maxMailboxes": 0,
"maxActiveCampaigns": 0,
"maxLeads": 0,
"monthlyEmailSends": 0,
"monthlyAiUsd": 0,
"monthlyEnrichments": 0,
"monthlyApiCalls": 0,
"monthlyWorkflowRuns": 0,
"storageMb": 0,
"apiRequestsPerMinute": 0
},
"integrations": [
"string"
],
"reason": "string"
}'/api/v1/platform/users/{id}/password-resetIssue a password reset link for a user (mailed, or returned once when system mail is off)
Path parameters
idrequired | string |
Request body (JSON)
reasonrequired | stringLength 5–500 |
curl -X POST "https://app.example.com/api/v1/platform/users/$ID/password-reset" \
-b cookies.txt -H "X-CSRF-Token: $CSRF" \
-H "Content-Type: application/json" \
-d '{
"reason": "string"
}'/api/v1/platform/permissionsPermission matrix: workspace roles per module (from the route rules), organization roles, staff roles
No parameters.
curl -X GET "https://app.example.com/api/v1/platform/permissions" \
-b cookies.txt -H "X-CSRF-Token: $CSRF"/api/v1/platform/settingsGlobal settings: sign-up mode and announcement banner
No parameters.
curl -X GET "https://app.example.com/api/v1/platform/settings" \
-b cookies.txt -H "X-CSRF-Token: $CSRF"/api/v1/platform/settingsSave global settings (reason required)
Request body (JSON)
signupMode | enumOne of: env, open, closed |
announcement | object |
announcement.enabledrequired | boolean |
announcement.levelrequired | enumOne of: info, warning, danger |
announcement.messagerequired | stringLength 0–500 |
maintenance | object |
maintenance.enabledrequired | boolean |
maintenance.messagerequired | stringLength 0–500 |
security | object |
security.passwordMinLengthrequired | integerRange 8–128 |
security.sessionIdleDaysrequired | integerRange 1–90 |
security.requireMfaForAllUsersrequired | boolean |
security.impersonationMaxMinutesrequired | integerRange 5–480 |
signups | object |
signups.defaultPlanCoderequired | stringLength 0–40 |
signups.maxOrgsPerUserrequired | integer | null |
branding | object |
branding.appNamerequired | stringLength 2–60 |
branding.supportEmailrequired | "" | string (email) |
reasonrequired | stringLength 5–500 |
curl -X PUT "https://app.example.com/api/v1/platform/settings" \
-b cookies.txt -H "X-CSRF-Token: $CSRF" \
-H "Content-Type: application/json" \
-d '{
"signupMode": "env",
"announcement": {
"enabled": true,
"level": "info",
"message": "string"
},
"maintenance": {
"enabled": true,
"message": "string"
},
"security": {
"passwordMinLength": 8,
"sessionIdleDays": 1,
"requireMfaForAllUsers": true,
"impersonationMaxMinutes": 5
},
"signups": {
"defaultPlanCode": "string",
"maxOrgsPerUser": 1
},
"branding": {
"appName": "string",
"supportEmail": ""
},
"reason": "string"
}'/api/v1/platform/users/{id}Everything about one account: memberships, sessions, API keys, activity and staff actions
Path parameters
idrequired | string |
curl -X GET "https://app.example.com/api/v1/platform/users/$ID" \
-b cookies.txt -H "X-CSRF-Token: $CSRF"/api/v1/platform/users/{id}Edit name, email, language or email-verified flag (reason required)
Path parameters
idrequired | string |
Request body (JSON)
name | stringLength 1–120 |
email | string (email) |
locale | string | null |
emailVerified | boolean |
reasonrequired | stringLength 5–500 |
curl -X PUT "https://app.example.com/api/v1/platform/users/$ID" \
-b cookies.txt -H "X-CSRF-Token: $CSRF" \
-H "Content-Type: application/json" \
-d '{
"name": "string",
"email": "name@example.com",
"locale": "string",
"emailVerified": true,
"reason": "string"
}'/api/v1/platform/users/{id}/mfa-resetTurn off two-factor for a person who lost their device (signs them out)
Path parameters
idrequired | string |
Request body (JSON)
reasonrequired | stringLength 5–500 |
curl -X POST "https://app.example.com/api/v1/platform/users/$ID/mfa-reset" \
-b cookies.txt -H "X-CSRF-Token: $CSRF" \
-H "Content-Type: application/json" \
-d '{
"reason": "string"
}'/api/v1/platform/users/{id}/sessions/revokeSign a person out of every browser
Path parameters
idrequired | string |
Request body (JSON)
reasonrequired | stringLength 5–500 |
curl -X POST "https://app.example.com/api/v1/platform/users/$ID/sessions/revoke" \
-b cookies.txt -H "X-CSRF-Token: $CSRF" \
-H "Content-Type: application/json" \
-d '{
"reason": "string"
}'/api/v1/platform/sessions/{id}/revokeEnd one session of any user
Path parameters
idrequired | string |
Request body (JSON)
reasonrequired | stringLength 5–500 |
curl -X POST "https://app.example.com/api/v1/platform/sessions/$ID/revoke" \
-b cookies.txt -H "X-CSRF-Token: $CSRF" \
-H "Content-Type: application/json" \
-d '{
"reason": "string"
}'/api/v1/platform/tenants/{id}/profileRename an organization or change its time zone (reason required)
Path parameters
idrequired | string |
Request body (JSON)
name | stringLength 2–120 |
timezone | stringLength 1–60 |
reasonrequired | stringLength 5–500 |
curl -X PUT "https://app.example.com/api/v1/platform/tenants/$ID/profile" \
-b cookies.txt -H "X-CSRF-Token: $CSRF" \
-H "Content-Type: application/json" \
-d '{
"name": "string",
"timezone": "string",
"reason": "string"
}'/api/v1/platform/tenants/{id}/workspaces/{workspaceId}Rename, archive or restore a workspace of a tenant (reason required)
Path parameters
idrequired | string |
workspaceIdrequired | string |
Request body (JSON)
name | stringLength 2–80 |
archived | boolean |
reasonrequired | stringLength 5–500 |
curl -X PUT "https://app.example.com/api/v1/platform/tenants/$ID/workspaces/$WORKSPACE_ID" \
-b cookies.txt -H "X-CSRF-Token: $CSRF" \
-H "Content-Type: application/json" \
-d '{
"name": "string",
"archived": true,
"reason": "string"
}'/api/v1/platform/users/{id}/impersonateLog in as this user: a time-limited session with full access, every change audited (reason required)
Path parameters
idrequired | string |
Request body (JSON)
reasonrequired | stringLength 5–500 |
minutes | integerRange 5–480 |
workspaceId | string (uuid) |
curl -X POST "https://app.example.com/api/v1/platform/users/$ID/impersonate" \
-b cookies.txt -H "X-CSRF-Token: $CSRF" \
-H "Content-Type: application/json" \
-d '{
"reason": "string",
"minutes": 5,
"workspaceId": "00000000-0000-4000-8000-000000000000"
}'/api/v1/platform/tenants/{id}/impersonateLog in to a tenant as its owner (or the member given in userId)
Path parameters
idrequired | string |
Request body (JSON)
reasonrequired | stringLength 5–500 |
minutes | integerRange 5–480 |
workspaceId | string (uuid) |
userId | string (uuid) |
curl -X POST "https://app.example.com/api/v1/platform/tenants/$ID/impersonate" \
-b cookies.txt -H "X-CSRF-Token: $CSRF" \
-H "Content-Type: application/json" \
-d '{
"reason": "string",
"minutes": 5,
"workspaceId": "00000000-0000-4000-8000-000000000000",
"userId": "00000000-0000-4000-8000-000000000000"
}'/api/v1/platform/impersonationsOpen "log in as" sessions
No parameters.
curl -X GET "https://app.example.com/api/v1/platform/impersonations" \
-b cookies.txt -H "X-CSRF-Token: $CSRF"/api/v1/platform/impersonations/{id}End a "log in as" session
Path parameters
idrequired | string |
curl -X DELETE "https://app.example.com/api/v1/platform/impersonations/$ID" \
-b cookies.txt -H "X-CSRF-Token: $CSRF"/api/v1/platform/dataEvery table with record counts, optionally for one tenant or workspace
Query parameters
organizationId | string (uuid) |
workspaceId | string (uuid) |
counts | enumOne of: true, false · Default "true" |
curl -X GET "https://app.example.com/api/v1/platform/data" \
-b cookies.txt -H "X-CSRF-Token: $CSRF"/api/v1/platform/data/{model}Records of one table: search, filter by column, sort, page (secrets hidden)
Path parameters
modelrequired | string |
Query parameters
organizationId | string (uuid) |
workspaceId | string (uuid) |
q | stringLength 0–200 · Default "" |
field | stringLength 0–60 |
value | stringLength 0–500 |
sort | stringLength 0–60 |
dir | enumOne of: asc, desc · Default "desc" |
page | integerRange 1–9007199254740991 · Default 1 |
pageSize | integerRange 1–200 · Default 50 |
curl -X GET "https://app.example.com/api/v1/platform/data/$MODEL" \
-b cookies.txt -H "X-CSRF-Token: $CSRF"/api/v1/platform/data/{model}/{recordId}One record with links to related records (viewing is audited)
Path parameters
modelrequired | string |
recordIdrequired | string |
curl -X GET "https://app.example.com/api/v1/platform/data/$MODEL/$RECORD_ID" \
-b cookies.txt -H "X-CSRF-Token: $CSRF"/api/v1/platform/data/{model}/{recordId}Change fields of a record (reason required; before/after audited)
Path parameters
modelrequired | string |
recordIdrequired | string |
Request body (JSON)
changesrequired | object |
reasonrequired | stringLength 5–500 |
curl -X PATCH "https://app.example.com/api/v1/platform/data/$MODEL/$RECORD_ID" \
-b cookies.txt -H "X-CSRF-Token: $CSRF" \
-H "Content-Type: application/json" \
-d '{
"changes": {},
"reason": "string"
}'/api/v1/platform/data/{model}/{recordId}Delete a record (reason required; the record is kept in the audit trail)
Path parameters
modelrequired | string |
recordIdrequired | string |
Request body (JSON)
reasonrequired | stringLength 5–500 |
curl -X DELETE "https://app.example.com/api/v1/platform/data/$MODEL/$RECORD_ID" \
-b cookies.txt -H "X-CSRF-Token: $CSRF" \
-H "Content-Type: application/json" \
-d '{
"reason": "string"
}'