Record contact events in a batch (Preview)
Preview · Available to selected organizations. Validates the full request shape, contact references, and event names before processing.
Validates the full request shape, contact references, and event names before processing. A schema failure rejects the entire batch without writes. Between 1 and 100 valid entries are then processed in input order, with independent indexed results for properties limits, contact resolution, and domain validation. An optional Idempotency-Key header scopes the batch; retries reuse each entry's original receipt by its position in the batch.
apiKeyx-api-key<token>idempotency-key?string1 <= length <= 255application/json- body
events*array<>1 <= items <= 100BatchEventsResult
application/json- response
total*integer-9007199254740991 <= value <= 9007199254740991accepted*integer-9007199254740991 <= value <= 9007199254740991errors*integer-9007199254740991 <= value <= 9007199254740991results*array<>import { createClient } from "samva";const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });const result = await samva.events.batch({ "events": [ { "contact": { "id": "example" }, "name": "example" } ]});{ "total": -9007199254740991, "accepted": -9007199254740991, "errors": -9007199254740991, "results": [ { "index": -9007199254740991, "status": "accepted", "event": { "id": "string", "contactId": "string", "name": "string", "source": "api", "properties": { "property1": "string", "property2": "string" }, "occurredAt": "string", "recordedAt": "string" }, "error": "string" } ]}Related documentation
Update a topic form
Updates only the supplied form fields. allowedOrigins replaces the complete exact-origin allowlist; redirectUrl null clears the success redirect.
Record a contact event (Preview)
Preview · Available to selected organizations. Records a custom contact event. Identify the contact by exactly one ID, external ID, or email.