Create contact event
POST
https://api.flownally.com/v1/contacts/{contactId}/eventsRecords an event for the contact, such as a purchase, signup or plan change. name is the
name of a custom or predefined event type. Once the event is recorded, active journeys whose
trigger matches it can start a run for the contact, and the contact's runs waiting for this
event type continue.
- Fails with
404when the contact or the event type doesn't exist. - Fails with
400when the payload doesn't match the event type'spayloadSchema. - Fails with
409when the workspace already has an event with this idempotency key.
Authorization
Required scopes
- event:create
Allowed roles
- owner
- admin
- agent
Create an event for a contact.
Parameters
- Name
contactId- Type
- path · string
- required
Contact ID.- Name
Idempotency-Key- Type
- header · string
Key you generate so a retried request isn't applied twice. Use a new key for each new request and the same key for each retry of it.
Body parameters
Send a application/json body. The body is required.
- Name
name- Type
- string
- required
Name of the event type, for exampleorder.paid.- Name
payload- Type
- object
- Name
idempotencyKey- Type
- string
Same as theIdempotency-Keyheader. When both are sent, the header wins.
Responses
- 201Event createdapplication/json
- 409Event with this idempotency key already existsapplication/json
- defaultErrorapplication/json
Related schemas
Generated from the API spec.