Skip to main content

Base URL

Authentication

All API requests require authentication using an API key. Include your API key in the request headers:

Getting Your API Key

  1. Log into your Whappy Account
  2. Navigate to Integrations → Zapier
  3. Copy your unique API Key from the integration panel
Keep your API key secure and never share it publicly. Treat it like a password.

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.
Request Body:
Headers:
Response Codes:
  • 200 OK: URL successfully configured
  • 304 Not Modified: URL update failed
  • 400 Bad Request: Invalid request data
  • 401 Unauthorized: Missing or invalid API key
  • 500 Internal Server Error: Server error
Example Request:

Set Close Event Webhook URL

Configure where to send data when a lead reaches a “close” step in the conversation.
Request Body:
Example Request:

Remove Appointment Webhook URL

Remove the configured webhook URL for appointment events.
Response Codes:
  • 200 OK: URL successfully removed
  • 304 Not Modified: URL removal failed
  • 401 Unauthorized: Missing or invalid API key
  • 500 Internal Server Error: Server error
Example Request:

Remove Close Event Webhook URL

Remove the configured webhook URL for close events.
Example Request:

Test Integration

Test Connection

Test your API connection and authentication. Use this endpoint to verify your integration is working correctly.
Response Codes:
  • 200 OK: Connection successful
  • 401 Unauthorized: Authentication failed
Example Request:
Success Response:

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.
Parameters:
  • event_name: Either appointment or close
Example Request:
Example Response:

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

Error Response:
Solution: Verify your API key is copied correctly from the Whappy dashboard.
Error Response:
Solution: Ensure the webhook URL is properly formatted and accessible.
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:

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:
Ready to build your Zapier integration? Start by testing your API connection and exploring the sample data endpoints!