Calling the HTTP API
Section titled “Calling the HTTP API”This page is for developers who call the OSOS API from code. It covers the rules every call shares — where to send it, how to authenticate, how to read the answer and its errors, how to page and filter, and where to find the machine-readable specification. Read it once before you write a client; the Backend quickstart gets you to a first working call in minutes.
Your first two calls
Section titled “Your first two calls”Read a page of records, then create one. Replace the host, the token and the entity
name (the entity’s normalized name, for example employees):
export BASE="https://acme.example.com"export TOKEN="<your-api-token>"
# Read: the first 20 active employees in HR, newest firstcurl -s -G "$BASE/api/v2/entities/employees/entries" \ -H "x-app-token: $TOKEN" \ --data-urlencode 'filterCriteria={"limit":20,"skip":0,"order":["value.hireDate DESC"],"criteria":{"operator":"Equal","field":"value.department","args":[{"type":0,"value":"HR"}]}}'
# Write: create one recordcurl -s -X POST "$BASE/api/v1/entities/employees/entries" \ -H "x-app-token: $TOKEN" \ -H "Content-Type: application/json" \ -d '{"value": {"name": "Lina Haddad", "department": "HR"}}'Both answer with the standard envelope:
{ "success": true, "result": … }. The rest of this page explains each part.
Where to send requests
Section titled “Where to send requests”Send every call to the tenant’s own host, with paths starting /api. The gateway
on that host authenticates you, works out the tenant from the host name, checks
access, and forwards the call to the right part of the platform. You never call an
internal service directly and you never send a tenant id.
The path prefix selects the area:
| Path prefix | Area |
|---|---|
/api | Core data platform: entities, entries, views, queries, permissions |
/api/comments | Comments |
/api/notification | Notifications and push tokens |
/api/timeline | Timeline posts |
/api/workflow | Workflow execution and ownership |
/api/reaction | Automation rules (reactions) |
/api/functions | Server-side functions |
/api/integrations | Third-party integrations |
/api/dependency | Dependency graph |
/api/packaging | Packages, export and import, publish requests, the in-app store, installations |
/api/logs | Email, SMS and WhatsApp logs (read-only), and the WhatsApp status webhook Since 1.10 |
/api/storage | Files — see Working with files |
/api/rtc | Audio and video call tokens |
An operation documented for an area other than the core data platform — in the
Endpoint reference or in that area’s own
OpenAPI document — is relative to its prefix. For example, the WhatsApp template list
GET /v1/whatsapp/templates of the automation area is called as
/api/reaction/v1/whatsapp/templates.
View-scoped calls. Many reads and writes also exist in a form that goes through
a view: /api/v1/v/{viewId}/…. The view’s own access settings are checked first, so a
403 on such a path usually means the view does not allow that operation — not that
your credential is wrong.
Bodies are JSON in both directions (Content-Type: application/json,
Accept: application/json), except file uploads and downloads.
Versions
Section titled “Versions”The version is in the path, right after the prefix, and it belongs to each operation,
not to a whole area. One resource often has v1, v2 and v3 side by side:
GET /api/v1/entities/{entity}/entries (deprecated)GET /api/v2/entities/{entity}/entriesGET /api/v3/entities/{entity}/entriesPOST /api/v1/entities/{entity}/entriesGET /api/v1/entities/{entity}/entries/{id}- Old versions are marked deprecated in the OpenAPI document, not removed.
- A newer version usually adds capability; do not assume
v1andv2of “the same” operation return the same shape. - Use the highest version a resource offers unless you need a legacy shape.
Authenticate
Section titled “Authenticate”Send one credential with every call:
| Credential | Header | Get it from |
|---|---|---|
| API token | x-app-token: <token> | Use an API token |
| OAuth access token | Authorization: Bearer <token> | Authentication & OAuth |
Which to choose: Choosing a credential.
Headers you cannot set
Section titled “Headers you cannot set”The platform’s internal services trust identity headers that only the gateway may set. The gateway therefore removes or overwrites them on every client request:
| Header | What happens to a value you send |
|---|---|
x-shared-key | Removed, then set by the gateway. |
| Other internal service-call headers | Removed. |
x-service | Removed, then set by the gateway. Since 1.10 |
x-view-id | Cleared, then set only from the {viewId} of a /api/v1/v/{viewId}/… path after the view checks pass. Since 1.10 |
x-user-id, x-client-id, x-session-id | Cleared, then set from your validated credential. |
x-space-id | Ignored: the tenant and space come from the host. |
To act through a view, use the /api/v1/v/{viewId}/… form. To act for a colleague,
use delegation. Why these headers matter,
and the deployment rule that protects them, is in
The security boundary.
Read the response
Section titled “Read the response”Successful answers are wrapped in one envelope:
{ "success": true, "result": { "count": 42 } }result is null when an operation returns nothing. A few answers are not wrapped:
| Request | Body on success |
|---|---|
GET on a /api/v3/… path Since 1.10 | The bare payload, for example { "entries": [ … ], "tags": [ … ] } |
POST, PATCH, PUT, DELETE on /api/v3/… | Wrapped |
Every v1, v2 and unversioned JSON call | Wrapped |
| File downloads and other streams, health checks | The raw bytes or stream |
OpenAPI documents (…/openapi.json, …/openapi.yaml) | The bare document |
Errors are always wrapped, /v3 reads included.
Handle errors
Section titled “Handle errors”Every error has the same shape:
{ "success": false, "result": null, "error": { "code": "ENTITY_NOT_EXIST", // stable, machine-readable "message": { "en": "…", "ar": "…" }, // localized text for people "serviceName": "…", // which part of the platform answered "traceId": "…" // quote this when you report a problem }}- Branch on
error.code, never on the message text. Use the HTTP status for coarse handling. - A
500is not always temporary. Many deterministic refusals still answer500. Check the code against Errors and retries before you retry. - Some errors carry a
detailsobject. A validation failure (VALIDATION_FAILED) names the failing path and the rule — for an invalid choice, the allowed values. - A duplicate value in a unique field answers
400 UNIQUE_VALUE, with the field path and value indetails. - A credential the platform cannot resolve to a user answers
401. - Files are the exception to this shape; see Working with files.
Tenancy and capacity refusals Since 1.10
Section titled “Tenancy and capacity refusals Since 1.10”| Status | error.code | When | What to do |
|---|---|---|---|
404 | SPACE_ERROR | The host you called matches no space. | Use a host registered for the space. |
404 | TENANT_NOT_RESOLVED | Multi-tenant deployments: the host matches no active tenant. | Use the tenant’s own host. |
429 | RATE_LIMITED + Retry-After | Multi-tenant deployments: the tenant used up its per-second or per-minute request budget. details names the window and limit; RateLimit-* headers are usually present. | Wait Retry-After seconds. |
503 | RATE_LIMIT_UNAVAILABLE + Retry-After: 1 | The rate limiter could not count the request and refused it. | Retry after 1 second. |
503 | TENANT_IN_MAINTENANCE + Retry-After | Multi-tenant deployments: the tenant is being restored from a backup or moved. Every call is refused except the status reads of the backup API. | Wait Retry-After seconds (1–3600, default 30), then retry. |
400 | SPACE_CONTEXT_MISSING, SPACE_NOT_RESOLVED | Only when a service is called directly, not through the gateway. | Call through the gateway. |
Treat any 503 with Retry-After the same way: back off for the time it names, then
retry. A TENANT_IN_MAINTENANCE body has traceId NO-TRACE-ID and an empty Arabic
message. What happens to the tenant’s events meanwhile is in
Data model & events.
Refusals worth handling
Section titled “Refusals worth handling”These refusals of your input or of your access answer a 4xx with a stable code.
Rows marked Since 1.8 were also delivered in 1.8 updates; the others are 1.10.
| Status | error.code | Where | When |
|---|---|---|---|
422 | WORKFLOW_ACTION_EXECUTION_NOT_ALLOWED Since 1.8 | Executing a workflow action | The action is hidden on the entry. (Deliberately not 403.) |
422 | CURRENT_STEP_ALREADY_OWNED Since 1.8 | Taking ownership of a workflow step | The current step already has an owner. |
422 | ENTITY_ARCHIVE | DELETE /api/v1/entities/{id}, updating or moving an archived entity | The entity is already archived — often a double click or a retry. |
400 | INVALID_POINTER | Any filter or criteria with a pointer value, such as …/entries/count?whereCriteria= | The pointer is not a known pointer function, or not of the form @name, @name() or @name('<amount>'). @Today, @Me, @none and trailing code are refused. |
400 | DATA_VIEW_INVALID_ALLOWED_OPERATIONS | Saving a view | Entry editing is on but no supported edit operation is set. |
400 | MISSING_REQUIRED_PARAMETER | POST /api/v1/entities/{entity}/entries, …/entries/draft, POST /api/v1/views/{id}/entries, …/entries/draft | The request has no body at all. |
400 | MISSING_REQUIRED_PARAMETER Since dev | PATCH /api/v1/entities/{entity}/views/{id} | A view save with no body at all. A partial body is accepted. |
403 | ACCESS_OBJECT_NO_AUDIENCE | GET /api/v2/access-object/{id} | The view, page or report allows neither visitors nor signed-in users, so nobody can open it. |
403 | PERMISSION_GRANT_EXCEEDS_CALLER_ACCESS Since 1.8 | PUT /api/v1/permissions/{entitlementType}/{entitlementId}/{entitledEntityType}/{entitledEntityId} | Below system administrator, you tried to grant more than your own level on the target, or to change a grant already above it. details: callerLevel, requestedLevel, currentLevel. |
403 | RESOLVE_VALUE_PATH_NOT_STORED Since 1.8 | POST /api/v1/entities/{entityId}/expressions/resolve | The expression follows a relation path the entity does not store, or starts from another entity’s record. |
404 | QUERY_NOT_FOUND | Saving a query, view, summary or proxy view that names a query | The named query does not exist. (Reading a stored view whose query has since gone still answers 500.) |
404 | — | GET /api/v1/spaces/{id} | The space does not exist. |
400 | FILE_EXPIRED | Saves that attach uploaded temporary files: entries, entities, views, pages, reports, reactions | A temporary file expired before the save. details lists {fileId, fieldName?, path?, reason} per file. Upload again and save again. |
503 | STORAGE_SERVICE_UNAVAILABLE | The same saves, and file reads | File storage could not be reached and the save adds a new file. Retryable. |
403 | REACTION_AUTHORING_FORBIDDEN Since 1.8 | Creating, updating or deleting a reaction | You lack Developer-or-higher access on the entity. |
as relayed Since 1.8 | the other part’s code | Any operation that calls another part of the platform | A 4xx from that part keeps its own status and body. |
Plan-limit refusals are in Plan limits. The full catalogue, with retry advice per code, is in Errors and retries.
Avoid overwriting someone else’s change Since 1.10
Section titled “Avoid overwriting someone else’s change Since 1.10”Every entry carries an updateIdentifier that changes on every write. Reads
return it with the entry. Send it back with your change, and the write is refused
with 409 UPDATE_CONFLICT if someone else changed the entry since you read it.
The check is opt-in per request. Leave the token out and the write behaves as it
always did. There is no header form (no If-Match, no ETag):
| Operation | Where the token goes |
|---|---|
PATCH /api/v1/entities/{entity}/entries/{id} | Body property updateIdentifier |
PATCH /api/v2/entities/{entity}/entries/{id} | Query parameter updateIdentifier (the body is a JSON Patch array) |
PUT /api/v1/views/{id}/entries/{entryId} | Body property updateIdentifier |
An entry that has no token yet is never refused on this account; it gets one on that write. The read-keep-resend recipe, with the conflict body, is in Writing data.
Page and filter
Section titled “Page and filter”There are two filter dialects, one per generation of operations. The same filter model is used by saved queries, statistics, view filters and reaction conditions.
v1: the classic filter
Section titled “v1: the classic filter”v1 list and count operations take a filter object as a query parameter
(?filter={…}, JSON or URL-encoded); count operations take where:
| Key | Purpose |
|---|---|
where | Match condition |
fields | Include or exclude properties |
order | Sort: "<field> ASC" or "<field> DESC", or an array of them |
limit | Page size (at least 1) |
skip / offset | Rows to skip (aliases) |
include | Load related records |
where operators: eq, neq, gt, gte, lt, lte, inq (in), nin (not in),
between, like, nlike, regexp, and and / or grouping.
GET /api/v1/entities/employees/entries?filter={"where":{"value.active":true},"limit":50,"skip":100,"order":["value.name ASC"]}v2 and v3: the criteria filter {#v2—v3—structured-criteria-filter}
Section titled “v2 and v3: the criteria filter {#v2—v3—structured-criteria-filter}”v2 and v3 operations take a filterCriteria object (count operations take
whereCriteria) and a free-text search parameter. filterCriteria keeps limit,
skip, offset, order, fields, where and include, and adds a criteria tree.
Each node of the tree has:
| Field | Notes |
|---|---|
field | The field’s normalized name. Absent on And / Or nodes. |
operator | Required. One of: And, Or, Equal, NotEqual, LessThan, LessThanOrEqual, GreaterThan, GreaterThanOrEqual, In, NotIn, Contains, DoesNotContain, StartsWith, DoesNotStartWith, Like, IsNotLike, IsEmpty, IsNotEmpty, ElemMatch, Type, Under |
fieldOperator | Optional aggregate applied to the field first: Size, Sum, Avg, Min, Max, First, Last, Any |
args | Required. Child nodes (for And / Or) or values: { "type": <value type>, "value": … } |
// GET /api/v2/entities/employees/entries?filterCriteria=…&search=cairo{ "limit": 50, "skip": 0, "order": ["value.hireDate DESC"], "criteria": { "operator": "And", "args": [ { "field": "value.department", "operator": "Equal", "args": [ { "type": 0, "value": "HR" } ] }, { "field": "value.salary", "operator": "GreaterThanOrEqual", "args": [ { "type": 1, "value": 5000 } ] } ] }}Check a complex filter before you save it with POST /api/v1/queries/parser, which
reports whether the expression is well-formed. Counts, sums, minimums, maximums and
averages are expressed as statistic queries. Since 1.8 the tree-list operations
(…/entries/tree) also honour a where in the filter. The field-path rules are in
Criteria & field-path dialects, and choosing a
dialect is covered in Reading data.
Paging rules
Section titled “Paging rules”- Page with
limitplusskip/offset. There are no cursors. - The server sets no maximum page size. Choose a sensible
limityourself. - Counting is a separate call:
GET …/entries/count(v1,?where=) orGET /api/v2/entities/{entity}/entries/count(?whereCriteria=andsearch), answering{ "count": <n> }.
Other list parameters:
| Parameter | Applies to | Meaning |
|---|---|---|
search | v2, v3 | Free-text search across searchable fields |
appliedQuickFilters | list, count, kanban | Quick-filter ids to apply |
appliedTagsFilters | v3, tree, kanban | Tag-filter ids; the answer carries a matching tags map |
include_virtual | list, count | Include virtual (computed) entries |
fields | GET …/entries/{id} | Comma-separated projection, such as ?fields=value.name,value.email; still subject to the view’s access rules |
excludeResolved | GET …/entries/{id} | Skip resolving relations and categories, for a lighter read |
Useful operations
Section titled “Useful operations”- Bulk changes
Since 1.4—PATCH /api/v1/entities/{entity}/bulk-updateand…/bulk-upgrade(alsov2) take an explicit list of ids or a “select all matching” selector and return a result per row.Since 1.6there is a queued form and a second route,PATCH /api/v2/entities/{entity}/bulk-update. See Writing data. - Human verification
Since 1.6— creating an entry may require a passed verification challenge (for anonymous visitors). - Masked fields
Since 1.8— entry reads list the fields you may not read insensitiveMaskedFields, so you can show them as locked. - Aggregated records
Since 1.8— for an entity that aggregates other entities, each field’s locked state comes from the source record.
Reactions in a module Since 1.8 — GET /api/reaction/v1/reactions/module/{moduleId}
lists the reactions defined on any entity in a module. It accepts an optional filter
(where, fields, order, limit, skip, include) — for example to narrow by
eventType. Your where is combined with the module scope, which you cannot widen. A
module with no entities answers an empty list.
Small utility calls
Section titled “Small utility calls”| Call | Returns |
|---|---|
GET /api/v1/version | The backend version |
GET /api/v1/icons | The available icons |
GET /api/v1/configs | Organization-level configuration |
GET /api/v1/requests/{entity}/{id}/{mode} | Whether you may perform {mode} on that entry |
The sidebar of views (GET /api/v2/side-bar) is covered in
Pages and widgets.
Long-running work
Section titled “Long-running work”Some operations answer at once with a job handle; you then poll a status call until the job finishes. For live progress instead of polling, follow the job over the real-time channel.
| Operation | Start | Poll |
|---|---|---|
| Generic background job | (returns a messageId) | GET /api/v1/job/{messageId} |
| Package export | POST /api/packaging/v1/export → { jobId } | GET /api/packaging/v1/export/{jobId}/status |
| Package import | POST /api/packaging/v1/import/{sessionId}/execute | GET /api/packaging/v1/import/{sessionId}/status |
| Full dependency rebuild | POST /api/dependency/v1/rebuild → 202 { jobId } | GET /api/dependency/v1/rebuild/status/{jobId} |
Tenant backup Since 1.10 | POST /api/v1/admin/backups → 202 | GET /api/v1/admin/backups/{backupId} |
Tenant restore Since 1.10 | POST /api/v1/admin/restores → 202 | GET /api/v1/admin/restores/{restoreId} |
Tenant data export Since 1.10 | POST /api/v1/admin/exports → 202 | GET /api/v1/admin/exports/{exportId} |
- Only one full dependency rebuild runs at a time; a second answers
409. - Polling another space’s export or import job answers
403. - Some results are files, not JSON: data exports (XLSX, PDF), theme CSS, translation files and fonts. Handle them as downloads.
Status values, retention and cancellation per job type are in Long-running work.
Plan limits Since 1.10
Section titled “Plan limits Since 1.10”A tenant’s plan can limit entries, entities, spaces, storage and automation runs per month. A limit that is not set is not enforced.
What each limit refuses — all 403, with the tenant’s numbers in details:
error.code | Refuses | details |
|---|---|---|
ENTRY_CAP_EXCEEDED | Creating an entry (single, batch, draft, through a proxy) once the weighted total reaches the hard limit without overage. Reading, editing and exporting are never refused. | {cap, hardLimit, current} |
ENTITY_CAP_EXCEEDED | Creating an entity beyond the limit. Implicit and core entities do not count. | {cap, current} |
SPACE_CAP_EXCEEDED | Adding a space beyond the limit, restoring an archived one included. Archived spaces do not count; deactivated ones do. The default space is never refused. | {limit, current} |
STORAGE_CAP_EXCEEDED | An upload once stored bytes reach maxStorageGb, or when the upload would cross it. File storage answers in its own error shape. | {capBytes, usedBytes} |
A package install that would pass the entries limit is refused before it starts.
The monthly automation-run limit is not an HTTP error. A reaction run over the
limit fails no request: it is recorded with status refused (code
REACTION_RUN_CAP_EXCEEDED, with limit, used, period), and none of its actions
run. Find such runs with outcome=refused in the run history
(Reading data),
status=refused in the reaction logs, or refusedCount in the reaction list. A
single-tenant deployment does not meter automation runs.
Tenant backups, restores and exports Since 1.10
Section titled “Tenant backups, restores and exports Since 1.10”In a multi-tenant deployment, the tenant’s own system administrators can back up, restore and export its data through the API (reference: BackupAdmin). There is no screen for this yet.
- Who: the tenant’s system administrators only.
- Where: multi-tenant deployments only. Elsewhere every call answers
501 BACKUP_NOT_SUPPORTED_IN_SINGLE_MODE. - How: each start answers
202with a handle; poll the matchingGET.
| Call | Answers | Notes |
|---|---|---|
GET /api/v1/admin/backups | 200 {items, quotas} | Newest first. quotas: [{quota, used, limit, resetsAt}] for backupsPerDay, restoresPerDay, dumpDownloadsPerDay (UTC day) |
GET /api/v1/admin/backups/{backupId} | 200 | {backupId, reason, state, createdAt, restorePoint?, sizeBytes?, expiresAt?} |
POST /api/v1/admin/backups | 202 | Start a backup now. No body. |
POST /api/v1/admin/restores/preview | 200 | Body {backupId} or {pointInTime} (ISO-8601). Returns what the restore would do, warnings, and a single-use confirmationToken with confirmationExpiresAt. |
POST /api/v1/admin/restores | 202 | Body {backupId} or {pointInTime}, plus the confirmationToken. The tenant is under maintenance from here. |
GET /api/v1/admin/restores/{restoreId} | 200 | {restoreId, backupId, pointInTime?, state, step?, safetyBackupId?, startedAt, finishedAt?, error?, hint?, …} — poll this |
POST /api/v1/admin/exports | 202 | Start an export archive of the tenant’s data. User accounts are not included. |
GET /api/v1/admin/exports | 200 {items} | The tenant’s exports |
GET /api/v1/admin/exports/{exportId} | 200 | {exportId, state, createdAt, finishedAt?, expiresAt?, sizeBytes?, error?, linksLeft, manifest} |
POST /api/v1/admin/exports/{exportId}/link | 200 {url, expiresAt} | A single-use download link on the tenant’s own host, valid up to 10 minutes; at most 5 links per export |
During a restore, the tenant answers 503 TENANT_IN_MAINTENANCE to
everything except GET on /v1/admin/restores…, /v1/admin/backups… and
/v1/admin/exports…, so you can keep polling.
| Status | error.code |
|---|---|
400 | VALIDATION_FAILED (no backupId or pointInTime, or no confirmationToken), CONFIRMATION_INVALID, RESTORE_TARGET_INVALID |
404 | BACKUP_NOT_FOUND, RESTORE_NOT_FOUND, EXPORT_NOT_FOUND — another tenant’s id reads as not found |
409 | TENANT_IN_MAINTENANCE, TENANT_NOT_BACKUPABLE, TENANT_NOT_RESTORABLE, TENANT_NOT_EXPORTABLE, BACKUP_NOT_RESTORABLE, POINT_IN_TIME_NOT_RESTORABLE, RESTORE_IN_PROGRESS, EXPORT_IN_PROGRESS, EXPORT_NOT_READY, EXPORT_LINKS_EXHAUSTED |
429 | BACKUP_QUOTA_EXCEEDED, RESTORE_QUOTA_EXCEEDED, EXPORT_QUOTA_EXCEEDED, with Retry-After until the quota resets |
501 | BACKUP_NOT_SUPPORTED_IN_SINGLE_MODE |
502 | BACKUP_ENGINE_FAILED, EXPORT_LINK_FAILED |
503 | BACKUP_ENGINE_UNAVAILABLE, EXPORT_ENGINE_UNAVAILABLE, BACKUP_SERVICE_UNAVAILABLE, with Retry-After: 60 |
The operator side — retention and daily quotas — is in Tenant backup and restore.
More API families
Section titled “More API families”System settings
Section titled “System settings”GET /api/v1/system-settings/public needs no credential. It returns the
system-settings values marked public, as {block: {field: value}}, for the current
space. Saving a system-settings entry can be refused with 422:
SYSTEM_SETTINGS_SPACE_MISMATCH, SYSTEM_SETTINGS_TENANT_DEFAULT_ARCHIVE (the
tenant-wide entry cannot be archived) or SYSTEM_SETTINGS_DUPLICATE_PHONE_NUMBER
(another active entry already uses that WhatsApp number). Reference:
SystemSettings.
Since 1.10
WhatsApp Since 1.10
Section titled “WhatsApp Since 1.10”| Call | Who may call | Notes |
|---|---|---|
GET /api/reaction/v1/whatsapp/templates | System View or above | The approved templates of the space’s WhatsApp business account, for the Send WhatsApp action: [{name, language, category, bodyParameterCount}]. Authentication templates are left out. 409 whatsapp_not_configured when the account is not set up; 502 whatsapp_provider_error when the provider refuses (details {metaCode, metaStatus}). Reference: WhatsAppTemplates. |
GET /api/logs/v1/whatsapp/, GET /api/logs/v1/whatsapp/count | As the email and SMS logs | The WhatsApp message log, with a filter. Not in any OpenAPI document. |
GET / POST /api/logs/v1/whatsapp/webhook/{spaceId} | Public — Meta calls it | Meta’s subscription handshake (GET) and delivery-status callback (POST). |
The webhook is public because Meta cannot sign in. It is protected by the space’s verify token and a signature:
spaceIdmust beROOTor an existing space, otherwise404.GET:hub.modemust besubscribeandhub.verify_tokenmust equal the space’s verify token. Success answers200with the barehub.challengeas plain text; anything else is403.POST: the raw body must match theX-Hub-Signature-256header, signed with the space’s app secret. No secret, or a missing or wrong signature, is401; malformed JSON under a valid signature is400; otherwise200. Only delivery statuses (sent,delivered,read,failed) are recorded; incoming messages are not.
WhatsApp settings are fields of the System Settings entity, edited through the entry editor or the API. How the Send WhatsApp action behaves is in Reactions & automation.
Packages and the store
Section titled “Packages and the store”The packaging area (/api/packaging) has no OpenAPI document, so it is not in the
Endpoint reference. Its routes and who may call
each are in
Marketplace and store.
Since 1.10 it also covers package history, deleting an unpublished version, first
and grouped publish requests (approve, return, withdraw), publisher set-up and
renaming, the store’s publisher and topic lists, an install check, installation
updates, and export records (GET /api/packaging/v1/exports, GET / DELETE …/exports/{id}
— deleting an export record keeps its file; see
Export records).
Renaming installed views and pages Since 1.10
Section titled “Renaming installed views and pages Since 1.10”A view or page installed by a package is read-only through
PATCH /api/v1/entities/{entity}/views/{id} and PATCH /api/v1/generic-views/{id},
apart from publishing it — and, Since 1.10, renaming it: name, description and
icon are accepted and kept across package updates. A rename must carry the current
updateIdentifier, or it answers 409 UPDATE_CONFLICT. description: null clears
the description; icon: null clears the icon only with the query parameter
clearIcon=true. Any other change is refused.
Routes for the platform’s own services are not callable through the gateway and are not listed here; you may still see them in traces.
Machine-readable specifications
Section titled “Machine-readable specifications”Each area of the platform publishes its own OpenAPI 3 document; there is no merged document. Where your operator has the documents switched on, get them from the area’s prefix:
| Area | Document | Explorer |
|---|---|---|
| Core data platform | /api/openapi.json (or .yaml) | /api/explorer |
| Any other area | /api/<area>/openapi.json, for example /api/reaction/openapi.json | /api/<area>/explorer |
What to know before you generate a client from them:
- The documents describe the envelope.
Since 1.8each document declares the envelope schemas and states the rule; each operation’s success schema describes the innerresult, so generated types fit once your client unwrapsresult. A document exported before 1.8 describes bare bodies — regenerate it. - Some areas have no document: packaging, logs, dependency and integrations. Their routes are on this page and in their own guides.
- Internal operations are left out of every document.
How to generate and keep a client current is in Generating a client.
A document for one view Since 1.10
Section titled “A document for one view Since 1.10”A view can publish a small OpenAPI 3.0 document of its own. Turn on Swagger document in the view’s display options, then:
GET /api/v1/views/{viewId}/openapi.json| Answer | Meaning |
|---|---|
200 | The document (application/json) |
403 VIEW_ACCESS_DENIED | The view exists but you cannot open it |
404 DATA_VIEW_NOT_EXIST | The view does not exist, or its entity is archived |
It describes exactly five operations, each through the view:
| Documented operation | What it does |
|---|---|
GET /v1/v/{viewId}/v1/entities/{id} | The entity’s schema |
GET /v1/v/{viewId}/v3/entities/{entity}/entries | List entries |
GET /v1/v/{viewId}/v1/entities/{entity}/entries/{id} | Read one entry |
POST /v1/v/{viewId}/v1/entities/{entity}/entries | Create an entry |
PATCH /v1/v/{viewId}/v3/entities/{entity}/entries/{id} | Update an entry |
- The view id and entity id are already filled into each path, so the rows are
copy-pasteable; only the entry
{id}stays a placeholder. - Reading the entity schema always needs a credential, even on a view open to visitors. The four entry operations work anonymously when the view allows it.
- The entry
valueschema follows the view’s own field selection and types. It is not filtered by sensitivity: a sensitive field the view shows appears by name and type (never with a value).
To read the document as an interactive page, select the view’s API button: in the portal it appears on the view’s list and record menu when Swagger document is on; in Administration it is on each view in the entity’s Views tab. The page opens in a new tab, and requests you try from it run with your own access.
With the switch on, any signed-in user who can open the view can fetch its document; a user with system Developer, Edit or Admin can fetch it regardless of the switch. Do not build on anonymous access to the document itself. As a source for a client, this document is narrower and more stable than the full one — see Generating a client.
Quick reference
Section titled “Quick reference”- Host and paths: the tenant’s own host;
/apifor the core data platform,/api/<area>for the others; the version in the path; JSON in and out. - Credentials:
x-app-token: <token>orAuthorization: Bearer <token>. Never set identity headers yourself. - Success:
{ "success": true, "result": … }, exceptGET /api/v3/…(bare payloadSince 1.10), downloads and OpenAPI documents. Unwrap whensuccess: trueis present. - Errors:
{ "success": false, "error": { "code", "message": {en, ar}, "traceId" } }. Branch onerror.code; a500may be permanent;503withRetry-Aftermeans wait. - Paging:
limit+skip/offset; no cursors; no server maximum. - Filtering:
filter/where(v1) orfilterCriteria/whereCriteria+search(v2, v3). - Concurrency: send back the
updateIdentifieryou read;409 UPDATE_CONFLICTon a mismatch. - Long-running work: start, then poll a status call, or follow it live.
Platform 1.10.0 · Backend 1.11.0-alpha.11 · Frontend 1.11.0-alpha.6 · Mobile 1.10.2 · Chart 1.11.8 · Gateway 2.6.11 · MCP 0.2.0 · Grafana DS 1.2.0Docs build 2026-11-27