Create an event
Create a conversation or add a customer message to one.
POST
/api/v1/developer/eventsDeveloper API keyRequest body
| Field | Type | Description |
|---|---|---|
| event · required | string | conversation.created or message.created |
| external_id · required | string | Your stable, unique ID for this event, 1–200 characters |
| conversation_id | string | Required for message.created |
| customer_email | string | Customer email |
| customer_name | string | Display name, up to 160 characters |
| subject | string | Subject, up to 240 characters |
| body | string | Message text, up to 100,000 characters |
| body_html | string | Optional HTML version of the message |
| attachments | object[] | Attachment details, up to 100,000 characters serialised |
| metadata | object | Your own context, up to 32,000 characters serialised |
Create a conversation
curl https://api.pingback.live/api/v1/developer/events \
-H "Authorization: Bearer $PINGBACK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"event": "conversation.created",
"external_id": "order-123-support",
"customer_email": "[email protected]",
"customer_name": "Amara",
"subject": "Delivery question",
"body": "Can I update my delivery address?"
}'Add a message
{
"event": "message.created",
"external_id": "order-123-follow-up",
"conversation_id": "conv_example",
"body": "The new address is 42 Example Road."
}Response
{
"status": "accepted",
"event": "conversation.created",
"resource_id": "conv_example",
"event_id": "dev_evt_example"
}{
"status": "duplicate",
"event": "conversation.created",
"resource_id": "conv_example"
}