Mailly文档

Report a workflow event

POST
/events

Stores the event idempotently, then triggers or exits workflows; a duplicate event returns 200 and a new event returns 201.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Mailly API key(Authorization: Bearer )

Request Body

application/json
  1. body

Workflow event input

event_id*string

Stable event ID (idempotency key); retries must reuse it

event_name*string

Event name (matched against trigger and exit conditions)

occurred_at*string

Event time, ISO-8601

contact*

Contact

properties?

Event properties, JSON up to 64KB

[key: string]?unknown

Response Body

Duplicate event (idempotent)

application/json
  1. response
success*boolean
duplicate*boolean
event*
[key: string]?unknown
curl -X POST 'https://api.mailly.site/events' \  -H 'Content-Type: application/json' \  -d '{  "event_id": "string",  "event_name": "string",  "occurred_at": "string",  "contact": {    "external_contact_id": "string",    "email": "string"  },  "property1": null,  "property2": null}'
{  "success": true,  "duplicate": true,  "event": {    "property1": null,    "property2": null  },  "property1": null,  "property2": null}