Skip to content

Server API: Server events

What people did, as your servers saw it, and the events your app defines.

What it doesRoute
Declare your eventsPUT /server/v1/event-definitions
Send eventsPOST /server/v1/events

PUT /server/v1/event-definitions

Adds the events your app sends, and their props, so the list lives with your code. It only adds: nothing is deleted or changed, and the same declaration again changes nothing.

Needs: a server key (Authorization: Bearer crm_sk_…). See Connect your backend.

Body (application/json): EventDefinitions

FieldTypeDescription
definitions (always)array of Definition

Answers

StatusBodyMeaning
200DeclaredEventsOK
400problemThe request could not be read: the problem names the field.
401problemNo credential, or one that is not right.
429problemToo many requests: wait for Retry-After.

POST /server/v1/events

Up to 500 events a request, each kept or refused on its own. An event’s id is your idempotency key: the same id sent again is kept once.

Needs: a server key (Authorization: Bearer crm_sk_…). See Connect your backend.

Body (application/json): ServerEvents

FieldTypeDescription
events (always)array of ServerEvent

Answers

StatusBodyMeaning
202ServerAcceptedAccepted
400problemThe request could not be read: the problem names the field.
401problemNo credential, or one that is not right.
409problemRefused as things stand: the problem says why.
413problemToo large.
429problemToo many requests: wait for Retry-After.