Skip to main content
GET
Get Test Event Example

Overview

Get an example payload for a specific webhook event type. This endpoint returns a realistic sample of what your webhook endpoint will receive when the specified event occurs, helping you develop and test your webhook integration.

Path Parameters

event
string
required
The event type to get an example for (e.g., “prospect.qualified”, “campaign.completed”)

Use Cases

  • Integration Development: Understand the structure of webhook payloads
  • Testing Setup: Create test data for webhook endpoint development
  • Documentation: Generate examples for your own API documentation
  • Validation: Verify your webhook handler can process the expected data

Example Responses

Prospect Qualified Event

GET /webhooks/test/example/prospect.qualified

Campaign Completed Event

GET /webhooks/test/example/campaign.completed

Message Sent Event

GET /webhooks/test/example/message.sent

Testing Examples

Error Responses

Invalid Event Type

Common Event Examples

Agent Status Changed

Connection Accepted

Development Workflow

1. Explore Available Events

2. Get Event Examples

3. Develop Webhook Handler

Use the example payloads to develop your webhook endpoint handler.

4. Test Integration

Best Practices

  1. Schema Validation: Use examples to create JSON schemas for validation
  2. Error Handling: Plan for missing or unexpected fields
  3. Idempotency: Handle duplicate webhook deliveries gracefully
  4. Logging: Log webhook payloads for debugging and monitoring
  5. Testing: Use examples to create comprehensive test suites

Integration Tips

Create Type Definitions

Webhook Handler Template

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

event
string
required

The event type to get an example for

Response

Example event payload

event
string
Example:

"prospect.qualified"

timestamp
string<date-time>
Example:

"2024-01-20T15:30:00Z"

data
object

Event-specific data payload

team
object
Last modified on August 29, 2025