Base URL
Authentication
All API requests require authentication using an API key. Include your API key in the request headers:Getting Your API Key
- Log into your Whappy Account
- Navigate to Integrations → Zapier
- Copy your unique API Key from the integration panel
Endpoints
Configure Webhook URLs
Configure target URLs where Whappy AI will send data when specific events occur in your conversations.Set Appointment Webhook URL
Configure where to send data when a lead schedules an appointment.200 OK: URL successfully configured304 Not Modified: URL update failed400 Bad Request: Invalid request data401 Unauthorized: Missing or invalid API key500 Internal Server Error: Server error
Set Close Event Webhook URL
Configure where to send data when a lead reaches a “close” step in the conversation.Remove Appointment Webhook URL
Remove the configured webhook URL for appointment events.200 OK: URL successfully removed304 Not Modified: URL removal failed401 Unauthorized: Missing or invalid API key500 Internal Server Error: Server error
Remove Close Event Webhook URL
Remove the configured webhook URL for close events.Test Integration
Test Connection
Test your API connection and authentication. Use this endpoint to verify your integration is working correctly.200 OK: Connection successful401 Unauthorized: Authentication failed
Get Sample Data
Retrieve Sample Data
Get a sample of the data structure that will be sent to your webhook URLs. Essential for setting up Zapier workflows.event_name: Eitherappointmentorclose
Data Models
DataPayload
The main data structure sent to your webhook URLs when events occur:AppointmentPayload
Appointment-specific information included in appointment events:Parsed JSON Fields
The JSON string fields contain structured data that can be parsed:lead_info_json
collected_info_json
conversation_json
appointment_json
Webhook Payload Examples
Lead Closed Event
When a lead successfully completes the conversation funnel:Appointment Scheduled Event
When a lead books an appointment:Integration Workflow
1. Set Up Webhook Endpoints
Configure where Whappy should send event data:2. Test Your Integration
Verify your API connection:3. Get Sample Data
Understand the data structure you’ll receive:4. Handle Webhook Data
In your Zapier webhook handler, you’ll receive the DataPayload structure. Parse the JSON fields as needed:Common Use Cases
CRM Integration
Automatically create or update contacts in your CRM:Calendar Integration
Add appointments to scheduling systems:Email Marketing
Add leads to email sequences:Error Handling
Standard HTTP Status Codes
Error Response Format
Common Error Scenarios
Invalid API Key
Invalid API Key
Error Response:Solution: Verify your API key is copied correctly from the Whappy dashboard.
Invalid Webhook URL
Invalid Webhook URL
Error Response:Solution: Ensure the webhook URL is properly formatted and accessible.
Webhook URL Not Reachable
Webhook URL Not Reachable
Error Response:Solution: Verify the webhook endpoint is online and accepting POST requests.
Rate Limits
- General Rate Limit: 100 requests per minute per API key
- Webhook Configuration: 10 requests per minute
- Sample Data: 50 requests per minute
If you need higher rate limits for production use, contact our support team with your use case details.
Security Best Practices
API Key Management
- Store API keys securely using environment variables
- Never commit API keys to version control
- Rotate API keys periodically
- Use different API keys for development and production
Webhook Security
- Validate webhook payloads before processing
- Use HTTPS endpoints for webhooks
- Implement proper error handling and logging
- Set up monitoring for webhook failures
Data Handling
- Parse JSON fields safely with try-catch blocks
- Validate data types before processing
- Sanitize data before storing or forwarding
- Respect data privacy regulations (GDPR, CCPA)
Testing Your Integration
1. Test API Connection
2. Configure Test Webhooks
3. Validate Sample Data
4. Monitor Webhook Calls
Set up logging in your webhook handler to monitor incoming data:Support
For technical support or questions about the API:- Documentation: Check our Help Center
- Dashboard Support: Contact support through your Whappy AI dashboard
- Email: support@whappy.ai
- Status Page: status.whappy.ai
When Contacting Support
Include the following information:- Your API key (first 8 characters only)
- Request/response examples
- Error messages and HTTP status codes
- Timestamp of the issue
- Expected vs. actual behavior
Changelog
Version 1.0
- Initial release
- Support for appointment and close event webhooks
- Sample data endpoint
- Basic authentication via API key
- Webhook URL configuration and management
SDK and Libraries
Official Libraries
We’re working on official SDKs for popular languages. In the meantime, here are community examples:- Node.js
- Python
- PHP

