Events
Create Event
Events
Create Event
Submit a custom event for an entry
POST
/
projects
/
{projectId}
/
events
curl --request POST \
--url https://api.embeddables.com/projects/{projectId}/events \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <x-api-key>' \
--data '{
"embeddable_id": "flow_myexampleflow",
"timestamp": "2022-01-01T00:00:00.000Z",
"custom_event_name": "my_custom_event",
"custom_event_props": "{ \"my_prop\": \"my_val\" }",
"identifiers": [
{
"key": "email",
"value": "\"test@test.com\""
}
]
}'
{
"group_id": "group_myexamplegroup",
"project_id": "pr_myexampleproject",
"embeddable_id": "flow_myexampleflow",
"embeddable_version_number": 1,
"contact_id": "contact_myexamplecontact",
"entry_id": "entry_myexampleentry",
"timestamp": "2022-01-01T00:00:00Z",
"event_type": "custom_event:triggered",
"custom_event_name": "my_custom_event",
"custom_event_props": "{ \"my_prop\": \"my_val\" }"
}
Headers
Path Parameters
The unique identifier for a Project in the database
Body
application/json
Response
200
application/json
The response is of type object
.
Was this page helpful?
curl --request POST \
--url https://api.embeddables.com/projects/{projectId}/events \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <x-api-key>' \
--data '{
"embeddable_id": "flow_myexampleflow",
"timestamp": "2022-01-01T00:00:00.000Z",
"custom_event_name": "my_custom_event",
"custom_event_props": "{ \"my_prop\": \"my_val\" }",
"identifiers": [
{
"key": "email",
"value": "\"test@test.com\""
}
]
}'
{
"group_id": "group_myexamplegroup",
"project_id": "pr_myexampleproject",
"embeddable_id": "flow_myexampleflow",
"embeddable_version_number": 1,
"contact_id": "contact_myexamplecontact",
"entry_id": "entry_myexampleentry",
"timestamp": "2022-01-01T00:00:00Z",
"event_type": "custom_event:triggered",
"custom_event_name": "my_custom_event",
"custom_event_props": "{ \"my_prop\": \"my_val\" }"
}