Your first API call
Send an event from your server and see the conversation appear in your inbox.
Create an API key
- Open Channels › Developer API
Owners and admins can create keys.
- Create a key
Give it a name. The secret is shown once.
- Store it on your server
Save it as PINGBACK_API_KEY. Never put it in browser code.
Send an event
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?"
}'Keep the conversation ID
{
"status": "accepted",
"event": "conversation.created",
"resource_id": "conv_example",
"event_id": "dev_evt_example"
}Use resource_id as conversation_id when you add a message to this conversation later.