Skip to content

What an integrator needs at hand, from Module 5 and Module 6. Replace the names in angle brackets.

CallerCredentialSent as
Your program, no person presentAn API token of its own application userx-app-token: <token>
A person in your appAuthorization code with PKCEAuthorization: Bearer <access token>
A visitor on a public pageAn anonymous token (POST /api/identity/v1/anonymous/token)Authorization: Bearer <token>
The live channelAn OAuth access token or an anonymous token, never an API tokenIn the Socket.IO handshake

Token lives: access 1 h · refresh 14 days, rotating, renewable up to a year · anonymous 10 min · API token until its expiry date. Revocation reaches every call within about five minutes. A regenerated API token overlaps the old one for 24 hours by default.

NeedCall
List through a viewGET /api/v1/v/<viewId>/v3/entities/<entity>/entries?filterCriteria=…
Read one through a viewGET /api/v1/v/<viewId>/v1/entities/<entity>/entries/<id>
Create through a viewPOST /api/v1/v/<viewId>/v1/entities/<entity>/entries with {"value": {…}}
A view’s own contractGET /api/v1/views/<viewId>/openapi.json (turn on Swagger document)
Upload a filePOST /api/storage/v2/files?temp=true, multipart field file; result is an array
The tenant’s sign-in providerGET /api/identity/v1/tenant-config, then the authority’s discovery document

filterCriteria: {"limit": 50, "skip": 0, "order": ["value.<field> ASC", "id ASC"], "criteria": {…}}; free text in search. No cursors and no server maximum.

  • Success: {"success": true, "result": …}, except a GET on v3, which is bare. Unwrap only when success is true.
  • Error: {"success": false, "error": {"code", "message": {"en", "ar"}, "traceId"}}; field details under result.details. Branch on error.code; quote traceId.
  • An empty plain list may mean “no access”: read one known record to tell.
StatusDo
400 403 404 422Never retry unchanged
401OAuth: refresh once, retry once. API token: stop
409Re-read, then re-apply
429 502 503 504Back off: random between 0 and min(60 s, 1 s × 2^attempt), at most 5; Retry-After is the floor
500 with a catalogued codeReport it; do not retry
A timeout after sending a writeReconcile before retrying

Public HTTP(S) addresses only · 30 seconds · 5 redirects · 10 MiB · 2xx is success · credential headers and Redact in history values stored as **** · a masking policy makes a protected value fail instead of being sent. Receivers: check the key, answer 2xx fast, deduplicate on the record id, re-read when in doubt.

Subscribe after every connect and wait for the acknowledgement: subscribeToNotifications, entries/subscribe-to-entry with {entityId, entryId}, subscribeToJobExecution with {messageId}. Events: entries/value-updated, entries/workflow-updated, entries/comments-updated, entries/archived, entries/restored, notification. Best-effort, no replay: re-read over HTTP after reconnecting.