Skip to content

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.

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):

Terminal window
export BASE="https://acme.example.com"
export TOKEN="<your-api-token>"
# Read: the first 20 active employees in HR, newest first
curl -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 record
curl -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.

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 prefixArea
/apiCore data platform: entities, entries, views, queries, permissions
/api/commentsComments
/api/notificationNotifications and push tokens
/api/timelineTimeline posts
/api/workflowWorkflow execution and ownership
/api/reactionAutomation rules (reactions)
/api/functionsServer-side functions
/api/integrationsThird-party integrations
/api/dependencyDependency graph
/api/packagingPackages, export and import, publish requests, the in-app store, installations
/api/logsEmail, SMS and WhatsApp logs (read-only), and the WhatsApp status webhook Since 1.10
/api/storageFiles — see Working with files
/api/rtcAudio 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.

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}/entries
GET /api/v3/entities/{entity}/entries
POST /api/v1/entities/{entity}/entries
GET /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 v1 and v2 of “the same” operation return the same shape.
  • Use the highest version a resource offers unless you need a legacy shape.

Send one credential with every call:

CredentialHeaderGet it from
API tokenx-app-token: <token>Use an API token
OAuth access tokenAuthorization: Bearer <token>Authentication & OAuth

Which to choose: Choosing a credential.

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:

HeaderWhat happens to a value you send
x-shared-keyRemoved, then set by the gateway.
Other internal service-call headersRemoved.
x-serviceRemoved, then set by the gateway. Since 1.10
x-view-idCleared, 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-idCleared, then set from your validated credential.
x-space-idIgnored: 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.

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:

RequestBody on success
GET on a /api/v3/… path Since 1.10The bare payload, for example { "entries": [ … ], "tags": [ … ] }
POST, PATCH, PUT, DELETE on /api/v3/…Wrapped
Every v1, v2 and unversioned JSON callWrapped
File downloads and other streams, health checksThe raw bytes or stream
OpenAPI documents (…/openapi.json, …/openapi.yaml)The bare document

Errors are always wrapped, /v3 reads included.

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 500 is not always temporary. Many deterministic refusals still answer 500. Check the code against Errors and retries before you retry.
  • Some errors carry a details object. 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 in details.
  • A credential the platform cannot resolve to a user answers 401.
  • Files are the exception to this shape; see Working with files.
Statuserror.codeWhenWhat to do
404SPACE_ERRORThe host you called matches no space.Use a host registered for the space.
404TENANT_NOT_RESOLVEDMulti-tenant deployments: the host matches no active tenant.Use the tenant’s own host.
429RATE_LIMITED + Retry-AfterMulti-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.
503RATE_LIMIT_UNAVAILABLE + Retry-After: 1The rate limiter could not count the request and refused it.Retry after 1 second.
503TENANT_IN_MAINTENANCE + Retry-AfterMulti-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.
400SPACE_CONTEXT_MISSING, SPACE_NOT_RESOLVEDOnly 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.

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.

Statuserror.codeWhereWhen
422WORKFLOW_ACTION_EXECUTION_NOT_ALLOWED Since 1.8Executing a workflow actionThe action is hidden on the entry. (Deliberately not 403.)
422CURRENT_STEP_ALREADY_OWNED Since 1.8Taking ownership of a workflow stepThe current step already has an owner.
422ENTITY_ARCHIVEDELETE /api/v1/entities/{id}, updating or moving an archived entityThe entity is already archived — often a double click or a retry.
400INVALID_POINTERAny 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.
400DATA_VIEW_INVALID_ALLOWED_OPERATIONSSaving a viewEntry editing is on but no supported edit operation is set.
400MISSING_REQUIRED_PARAMETERPOST /api/v1/entities/{entity}/entries, …/entries/draft, POST /api/v1/views/{id}/entries, …/entries/draftThe request has no body at all.
400MISSING_REQUIRED_PARAMETER Since devPATCH /api/v1/entities/{entity}/views/{id}A view save with no body at all. A partial body is accepted.
403ACCESS_OBJECT_NO_AUDIENCEGET /api/v2/access-object/{id}The view, page or report allows neither visitors nor signed-in users, so nobody can open it.
403PERMISSION_GRANT_EXCEEDS_CALLER_ACCESS Since 1.8PUT /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.
403RESOLVE_VALUE_PATH_NOT_STORED Since 1.8POST /api/v1/entities/{entityId}/expressions/resolveThe expression follows a relation path the entity does not store, or starts from another entity’s record.
404QUERY_NOT_FOUNDSaving a query, view, summary or proxy view that names a queryThe 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.
400FILE_EXPIREDSaves that attach uploaded temporary files: entries, entities, views, pages, reports, reactionsA temporary file expired before the save. details lists {fileId, fieldName?, path?, reason} per file. Upload again and save again.
503STORAGE_SERVICE_UNAVAILABLEThe same saves, and file readsFile storage could not be reached and the save adds a new file. Retryable.
403REACTION_AUTHORING_FORBIDDEN Since 1.8Creating, updating or deleting a reactionYou lack Developer-or-higher access on the entity.
as relayed Since 1.8the other part’s codeAny operation that calls another part of the platformA 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):

OperationWhere 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.

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 list and count operations take a filter object as a query parameter (?filter={…}, JSON or URL-encoded); count operations take where:

KeyPurpose
whereMatch condition
fieldsInclude or exclude properties
orderSort: "<field> ASC" or "<field> DESC", or an array of them
limitPage size (at least 1)
skip / offsetRows to skip (aliases)
includeLoad 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:

FieldNotes
fieldThe field’s normalized name. Absent on And / Or nodes.
operatorRequired. One of: And, Or, Equal, NotEqual, LessThan, LessThanOrEqual, GreaterThan, GreaterThanOrEqual, In, NotIn, Contains, DoesNotContain, StartsWith, DoesNotStartWith, Like, IsNotLike, IsEmpty, IsNotEmpty, ElemMatch, Type, Under
fieldOperatorOptional aggregate applied to the field first: Size, Sum, Avg, Min, Max, First, Last, Any
argsRequired. 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.

  • Page with limit plus skip / offset. There are no cursors.
  • The server sets no maximum page size. Choose a sensible limit yourself.
  • Counting is a separate call: GET …/entries/count (v1, ?where=) or GET /api/v2/entities/{entity}/entries/count (?whereCriteria= and search), answering { "count": <n> }.

Other list parameters:

ParameterApplies toMeaning
searchv2, v3Free-text search across searchable fields
appliedQuickFilterslist, count, kanbanQuick-filter ids to apply
appliedTagsFiltersv3, tree, kanbanTag-filter ids; the answer carries a matching tags map
include_virtuallist, countInclude virtual (computed) entries
fieldsGET …/entries/{id}Comma-separated projection, such as ?fields=value.name,value.email; still subject to the view’s access rules
excludeResolvedGET …/entries/{id}Skip resolving relations and categories, for a lighter read
  • Bulk changes Since 1.4 — PATCH /api/v1/entities/{entity}/bulk-update and …/bulk-upgrade (also v2) take an explicit list of ids or a “select all matching” selector and return a result per row. Since 1.6 there 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 in sensitiveMaskedFields, 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.

CallReturns
GET /api/v1/versionThe backend version
GET /api/v1/iconsThe available icons
GET /api/v1/configsOrganization-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.

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.

OperationStartPoll
Generic background job(returns a messageId)GET /api/v1/job/{messageId}
Package exportPOST /api/packaging/v1/export → { jobId }GET /api/packaging/v1/export/{jobId}/status
Package importPOST /api/packaging/v1/import/{sessionId}/executeGET /api/packaging/v1/import/{sessionId}/status
Full dependency rebuildPOST /api/dependency/v1/rebuild → 202 { jobId }GET /api/dependency/v1/rebuild/status/{jobId}
Tenant backup Since 1.10POST /api/v1/admin/backups → 202GET /api/v1/admin/backups/{backupId}
Tenant restore Since 1.10POST /api/v1/admin/restores → 202GET /api/v1/admin/restores/{restoreId}
Tenant data export Since 1.10POST /api/v1/admin/exports → 202GET /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.

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.codeRefusesdetails
ENTRY_CAP_EXCEEDEDCreating 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_EXCEEDEDCreating an entity beyond the limit. Implicit and core entities do not count.{cap, current}
SPACE_CAP_EXCEEDEDAdding 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_EXCEEDEDAn 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 202 with a handle; poll the matching GET.
CallAnswersNotes
GET /api/v1/admin/backups200 {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/backups202Start a backup now. No body.
POST /api/v1/admin/restores/preview200Body {backupId} or {pointInTime} (ISO-8601). Returns what the restore would do, warnings, and a single-use confirmationToken with confirmationExpiresAt.
POST /api/v1/admin/restores202Body {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/exports202Start an export archive of the tenant’s data. User accounts are not included.
GET /api/v1/admin/exports200 {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}/link200 {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.

Statuserror.code
400VALIDATION_FAILED (no backupId or pointInTime, or no confirmationToken), CONFIRMATION_INVALID, RESTORE_TARGET_INVALID
404BACKUP_NOT_FOUND, RESTORE_NOT_FOUND, EXPORT_NOT_FOUND — another tenant’s id reads as not found
409TENANT_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
429BACKUP_QUOTA_EXCEEDED, RESTORE_QUOTA_EXCEEDED, EXPORT_QUOTA_EXCEEDED, with Retry-After until the quota resets
501BACKUP_NOT_SUPPORTED_IN_SINGLE_MODE
502BACKUP_ENGINE_FAILED, EXPORT_LINK_FAILED
503BACKUP_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.

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

CallWho may callNotes
GET /api/reaction/v1/whatsapp/templatesSystem View or aboveThe 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/countAs the email and SMS logsThe WhatsApp message log, with a filter. Not in any OpenAPI document.
GET / POST /api/logs/v1/whatsapp/webhook/{spaceId}Public — Meta calls itMeta’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:

  • spaceId must be ROOT or an existing space, otherwise 404.
  • GET: hub.mode must be subscribe and hub.verify_token must equal the space’s verify token. Success answers 200 with the bare hub.challenge as plain text; anything else is 403.
  • POST: the raw body must match the X-Hub-Signature-256 header, signed with the space’s app secret. No secret, or a missing or wrong signature, is 401; malformed JSON under a valid signature is 400; otherwise 200. 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.

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.

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:

AreaDocumentExplorer
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.8 each document declares the envelope schemas and states the rule; each operation’s success schema describes the inner result, so generated types fit once your client unwraps result. 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 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
AnswerMeaning
200The document (application/json)
403 VIEW_ACCESS_DENIEDThe view exists but you cannot open it
404 DATA_VIEW_NOT_EXISTThe view does not exist, or its entity is archived

It describes exactly five operations, each through the view:

Documented operationWhat it does
GET /v1/v/{viewId}/v1/entities/{id}The entity’s schema
GET /v1/v/{viewId}/v3/entities/{entity}/entriesList entries
GET /v1/v/{viewId}/v1/entities/{entity}/entries/{id}Read one entry
POST /v1/v/{viewId}/v1/entities/{entity}/entriesCreate 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 value schema 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.

  • Host and paths: the tenant’s own host; /api for the core data platform, /api/<area> for the others; the version in the path; JSON in and out.
  • Credentials: x-app-token: <token> or Authorization: Bearer <token>. Never set identity headers yourself.
  • Success: { "success": true, "result": … }, except GET /api/v3/… (bare payload Since 1.10), downloads and OpenAPI documents. Unwrap when success: true is present.
  • Errors: { "success": false, "error": { "code", "message": {en, ar}, "traceId" } }. Branch on error.code; a 500 may be permanent; 503 with Retry-After means wait.
  • Paging: limit + skip / offset; no cursors; no server maximum.
  • Filtering: filter / where (v1) or filterCriteria / whereCriteria + search (v2, v3).
  • Concurrency: send back the updateIdentifier you read; 409 UPDATE_CONFLICT on 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