Skip to main content
POST
Append a visitor entry through the gateway

Headers

X-Widgetic-Write-Token
string

Signed per-composition write token handed to the widget in widgetic:host as entries.writeToken (and returned by GET /embed/compositions/{compositionId} as entryWriteToken). Required when the request comes from the shared Widgetic artifact origin; verified whenever present.

X-Widgetic-Visitor-Id
string

A random id the widget's browser makes once and keeps (16 to 64 characters of A-Za-z0-9_-), sent so a table's per-visitor limit (declared in the widget database file) can count this browser. Not an identity and not a secret. Without it, or with a malformed value, the limit counts only by network address.

Pattern: ^[A-Za-z0-9_-]{16,64}$

Path Parameters

compositionId
string<uuid>
required
table
string
required

Body

application/json
values
object
required

Column values to insert (never id or time columns).

context
object | null

Host attribution from the embedding page. It is not authenticated unless the partner signs it (see the description of this operation): never use it for authorization on its own. At most 20 keys; string values up to 500 characters or finite numbers; 2048 bytes JSON total. A signed context carries two more keys, widgetic_exp and widgetic_sig: the gateway checks them and drops them, so they are neither stored nor announced.

writeToken
string | null

Optional per-composition write token (entries.writeToken from widgetic:host, or entryWriteToken from GET /embed/compositions/{compositionId}) when not passed in the X-Widgetic-Write-Token header.

Response

Entry stored

success
boolean
required
Example:

true

data
object
required