Base URL
Authentication
All API requests require authentication using an API key header. Include the following header in every request:Example Request
Error Handling
The API uses standard HTTP status codes and returns structured error responses:Common Status Codes
Webhooks
SendPilot sends real-time notifications to your webhook endpoints for various events: Message Events:message.sent- When a message is sent to a leadmessage.received- When a lead replies to your message
connection.sent- When a connection request is sentconnection.accepted- When a connection request is accepted
campaign.started- When a campaign startscampaign.paused- When a campaign is pausedcampaign.resumed- When a campaign is resumed
lead.status.changed- When a lead’s status changes
Getting Started
1
Get Your API Key
Navigate to Integrations → API Keys in the SendPilot dashboard and create a new API key.
2
Make Your First Request
Test your API key by listing your campaigns:
3
Set Up Webhooks
Configure webhook subscriptions in the dashboard to receive real-time event notifications.