Skip to content
PingbackDocs
DevelopersBuild

Your first API call

Send an event from your server and see the conversation appear in your inbox.

Find it in Channels › Developer APIScale

Create an API key

  1. Open Channels › Developer API

    Owners and admins can create keys.

  2. Create a key

    Give it a name. The secret is shown once.

  3. Store it on your server

    Save it as PINGBACK_API_KEY. Never put it in browser code.

Send an event

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?"
}'

Keep the conversation ID

200 OK
{
  "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.

Next steps