Events
Record customer moments that can trigger journeys and enrich contact history. 10 endpoints in this resource.
List event types
https://api.flownally.com/v1/event-typesReturns the predefined and custom event types you can record for contacts, newest first.
Open as its own pageAuthorization
- event_type:list
- owner
- admin
- agent
List event types in the workspace.
Parameters
- Name
pageSize- Type
- query · integer
Values above 100 are reduced to 100; 0 or omitted uses the default (50).- Name
pageToken- Type
- query · string
Responses
- 200List of event typesapplication/json
- defaultErrorapplication/json
Related schemas
curl "https://api.flownally.com/v1/event-types" \
-H "Authorization: Bearer $FLOWNALLY_API_TOKEN"{
"eventTypes": [
{
"id": "ety_d7pji5t0tajnmqt4a2rg",
"tenantId": "tn_d7phk42ge9t9t6324f20",
"name": "order.paid",
"description": "Customer paid for an order.",
"payloadSchema": {
"orderId": {
"type": "string"
},
"total": {
"type": "number"
},
"currency": {
"type": "string",
"required": false
}
},
"createdAt": "2026-04-30T09:30:00Z",
"updatedAt": "2026-04-30T09:30:00Z"
}
],
"nextPageToken": "string",
"totalSize": 0
}Create event type
https://api.flownally.com/v1/event-typesCreates a custom event type. With a payloadSchema, the payload of every event recorded
with this type must match it. A name the workspace already uses fails with 409.
Authorization
- event_type:create
- owner
- admin
- agent
Create an event type in the workspace.
Body parameters
Send a application/json body. The body is required.
- Name
name- Type
- string
- required
- Name
description- Type
- string
- Name
payloadSchema- Type
- object
Expected payload fields of events of this type, keyed by field name. This is a simplified format, not a full JSON Schema. Each field is an object with:type(required):string,number,integer,booleanornull.format:dateordate-time, forstringfields only.nullable:trueto also acceptnull.required:falseto make the field optional. Fields are required by default.
Responses
- 201Event type createdapplication/json
- defaultErrorapplication/json
Related schemas
curl -X POST "https://api.flownally.com/v1/event-types" \
-H "Authorization: Bearer $FLOWNALLY_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "order.paid",
"description": "Customer paid for an order.",
"payloadSchema": {
"orderId": {
"type": "string"
},
"total": {
"type": "number"
},
"currency": {
"type": "string",
"required": false
}
}
}'{
"id": "ety_d7pji5t0tajnmqt4a2rg",
"tenantId": "tn_d7phk42ge9t9t6324f20",
"name": "order.paid",
"description": "Customer paid for an order.",
"payloadSchema": {
"orderId": {
"type": "string"
},
"total": {
"type": "number"
},
"currency": {
"type": "string",
"required": false
}
},
"createdAt": "2026-04-30T09:30:00Z",
"updatedAt": "2026-04-30T09:30:00Z"
}Get event type
https://api.flownally.com/v1/event-types/{id}Authorization
- event_type:read
- owner
- admin
- agent
Read an event type in the workspace.
Parameters
- Name
id- Type
- path · string
- required
Event type ID.
Responses
- 200Event type detailsapplication/json
- defaultErrorapplication/json
Related schemas
curl "https://api.flownally.com/v1/event-types/$EVENT_TYPE_ID" \
-H "Authorization: Bearer $FLOWNALLY_API_TOKEN"{
"id": "ety_d7pji5t0tajnmqt4a2rg",
"tenantId": "tn_d7phk42ge9t9t6324f20",
"name": "order.paid",
"description": "Customer paid for an order.",
"payloadSchema": {
"orderId": {
"type": "string"
},
"total": {
"type": "number"
},
"currency": {
"type": "string",
"required": false
}
},
"createdAt": "2026-04-30T09:30:00Z",
"updatedAt": "2026-04-30T09:30:00Z"
}Update event type
https://api.flownally.com/v1/event-types/{id}Updates a custom event type. A new payloadSchema must keep every field of the current
one: you can add fields, but removing one fails with 400.
Authorization
- event_type:update
- owner
- admin
- agent
Update an event type in the workspace.
Parameters
- Name
id- Type
- path · string
- required
Event type ID.
Body parameters
Send a application/json body. The body is required.
- Name
name- Type
- string
- Name
description- Type
- string
- Name
payloadSchema- Type
- object
Replaces the payload schema, in the same format as on create. It must keep every field of the current schema.
Responses
- 200Event type updatedapplication/json
- defaultErrorapplication/json
Related schemas
curl -X PATCH "https://api.flownally.com/v1/event-types/$EVENT_TYPE_ID" \
-H "Authorization: Bearer $FLOWNALLY_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "order_ready",
"description": "string",
"payloadSchema": {}
}'{
"id": "ety_d7pji5t0tajnmqt4a2rg",
"tenantId": "tn_d7phk42ge9t9t6324f20",
"name": "order.paid",
"description": "Customer paid for an order.",
"payloadSchema": {
"orderId": {
"type": "string"
},
"total": {
"type": "number"
},
"currency": {
"type": "string",
"required": false
}
},
"createdAt": "2026-04-30T09:30:00Z",
"updatedAt": "2026-04-30T09:30:00Z"
}Delete event type
https://api.flownally.com/v1/event-types/{id}Deletes a custom event type. Predefined event types can't be deleted, and an event type
with recorded events fails with 409.
Authorization
- event_type:delete
- owner
- admin
- agent
Delete an event type in the workspace.
Parameters
- Name
id- Type
- path · string
- required
Event type ID.
Responses
- 204Event type deleted
- defaultErrorapplication/json
Related schemas
curl -X DELETE "https://api.flownally.com/v1/event-types/$EVENT_TYPE_ID" \
-H "Authorization: Bearer $FLOWNALLY_API_TOKEN"List events
https://api.flownally.com/v1/eventsReturns the events recorded in the workspace, newest first.
Open as its own pageAuthorization
- event:list
- owner
- admin
- agent
List events in the workspace.
Parameters
- Name
pageSize- Type
- query · integer
Values above 100 are reduced to 100; 0 or omitted uses the default (50).- Name
pageToken- Type
- query · string
- Name
eventTypeId- Type
- query · string
Only events of this event type.
Responses
- 200List of eventsapplication/json
- defaultErrorapplication/json
Related schemas
curl "https://api.flownally.com/v1/events" \
-H "Authorization: Bearer $FLOWNALLY_API_TOKEN"{
"events": [
{
"id": "evt_d7pjmuk9lfdk4tgvlnpg",
"tenantId": "tn_d7phk42ge9t9t6324f20",
"contactId": "con_d7pibvs6gljrc2pfdc1g",
"eventTypeId": "ety_d7pji5t0tajnmqt4a2rg",
"eventTypeName": "order.paid",
"payload": {
"orderId": "4827",
"total": 129.99,
"currency": "PLN"
},
"idempotencyKey": "order-4827-paid",
"createdAt": "2026-04-30T10:40:00Z"
}
],
"nextPageToken": "string",
"totalSize": 0
}Create event
https://api.flownally.com/v1/eventsRecords an event for the contact in contactId. Deprecated: use
POST /contacts/{contactId}/events, which behaves the same.
Authorization
- event:create
- owner
- admin
- agent
Create an event in the workspace.
Parameters
- 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
contactId- Type
- string
- required
- Name
eventTypeName- Type
- string
- required
- 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
curl -X POST "https://api.flownally.com/v1/events" \
-H "Authorization: Bearer $FLOWNALLY_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"contactId": "con_d7pibvs6gljrc2pfdc1g",
"eventTypeName": "order.paid",
"payload": {
"orderId": "4827",
"total": 129.99,
"currency": "PLN"
},
"idempotencyKey": "order-4827-paid"
}'{
"id": "evt_d7pjmuk9lfdk4tgvlnpg",
"tenantId": "tn_d7phk42ge9t9t6324f20",
"contactId": "con_d7pibvs6gljrc2pfdc1g",
"eventTypeId": "ety_d7pji5t0tajnmqt4a2rg",
"eventTypeName": "order.paid",
"payload": {
"orderId": "4827",
"total": 129.99,
"currency": "PLN"
},
"idempotencyKey": "order-4827-paid",
"createdAt": "2026-04-30T10:40:00Z"
}Get event
https://api.flownally.com/v1/events/{id}Returns a recorded event.
Open as its own pageAuthorization
- event:read
- owner
- admin
- agent
Read an event in the workspace.
Parameters
- Name
id- Type
- path · string
- required
Event ID.
Responses
- 200Event detailsapplication/json
- defaultErrorapplication/json
Related schemas
curl "https://api.flownally.com/v1/events/$EVENT_ID" \
-H "Authorization: Bearer $FLOWNALLY_API_TOKEN"{
"id": "evt_d7pjmuk9lfdk4tgvlnpg",
"tenantId": "tn_d7phk42ge9t9t6324f20",
"contactId": "con_d7pibvs6gljrc2pfdc1g",
"eventTypeId": "ety_d7pji5t0tajnmqt4a2rg",
"eventTypeName": "order.paid",
"payload": {
"orderId": "4827",
"total": 129.99,
"currency": "PLN"
},
"idempotencyKey": "order-4827-paid",
"createdAt": "2026-04-30T10:40:00Z"
}List contact events
https://api.flownally.com/v1/contacts/{contactId}/eventsReturns the events recorded for a contact, newest first.
Open as its own pageAuthorization
- event:list
- owner
- admin
- agent
List events for a contact.
Parameters
- Name
contactId- Type
- path · string
- required
Contact ID.- Name
pageSize- Type
- query · integer
Values above 100 are reduced to 100; 0 or omitted uses the default (50).- Name
pageToken- Type
- query · string
- Name
eventTypeId- Type
- query · string
Only events of this event type.
Responses
- 200List of eventsapplication/json
- defaultErrorapplication/json
Related schemas
curl "https://api.flownally.com/v1/contacts/$CONTACT_ID/events" \
-H "Authorization: Bearer $FLOWNALLY_API_TOKEN"{
"events": [
{
"id": "evt_d7pjmuk9lfdk4tgvlnpg",
"tenantId": "tn_d7phk42ge9t9t6324f20",
"contactId": "con_d7pibvs6gljrc2pfdc1g",
"eventTypeId": "ety_d7pji5t0tajnmqt4a2rg",
"eventTypeName": "order.paid",
"payload": {
"orderId": "4827",
"total": 129.99,
"currency": "PLN"
},
"idempotencyKey": "order-4827-paid",
"createdAt": "2026-04-30T10:40:00Z"
}
],
"nextPageToken": "string",
"totalSize": 0
}Create contact event
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
- event:create
- 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
curl -X POST "https://api.flownally.com/v1/contacts/$CONTACT_ID/events" \
-H "Authorization: Bearer $FLOWNALLY_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "order.paid",
"payload": {
"orderId": "4827",
"total": 129.99,
"currency": "PLN"
},
"idempotencyKey": "order-4827-paid"
}'{
"id": "evt_d7pjmuk9lfdk4tgvlnpg",
"tenantId": "tn_d7phk42ge9t9t6324f20",
"contactId": "con_d7pibvs6gljrc2pfdc1g",
"eventTypeId": "ety_d7pji5t0tajnmqt4a2rg",
"eventTypeName": "order.paid",
"payload": {
"orderId": "4827",
"total": 129.99,
"currency": "PLN"
},
"idempotencyKey": "order-4827-paid",
"createdAt": "2026-04-30T10:40:00Z"
}