Webooks for Virtual Numbers
Overview
LimePhone's Virtual Number Webhooks allow you to receive real-time updates on calls, SMS, voicemails, and status changes associated with your virtual numbers. This feature enables seamless integration with your CRM, helpdesk, or other business tools for better workflow automation.
You can configure webhooks for each virtual number in your LimePhone account via: β‘ Dashboard > Numbers > Manage > Webhooks
Key Features
β Event-Based Notifications β Get instant updates on incoming/missed calls, SMS, and voicemails. β Number-Specific Webhooks β Configure unique webhook URLs for different virtual numbers. β Customizable Data Capture β Include call details, customer info, timestamps, and more. β Secure and Reliable β Authenticate webhook requests with HMAC signatures and HTTPS encryption.
Supported Events
Virtual Number Webhooks can trigger on the following events:
Event
Description
incoming_call
Triggered when a call is received.
missed_call
Triggered when a call goes unanswered.
call_completed
Triggered when a call is successfully completed.
voicemail_received
Triggered when a voicemail is left.
sms_sent
Triggered when an SMS is sent from the virtual number.
sms_received
Triggered when an SMS is received.
call_status_update
Triggered when a callβs status changes (e.g., ringing, answered, failed).
How to Set Up Virtual Number Webhooks
Step 1: Configure Webhook for a Virtual Number
Log in to LimePhone at app.limephone.io.
Go to Dashboard > Numbers.
Click Manage next to the virtual number you want to configure.
Select the Webhooks tab.
Click "Create Webhook" and enter:
Webhook URL β The endpoint where LimePhone will send data.
Event Types β Select which events will trigger the webhook.
Security Settings β Enable authentication to verify webhook requests.
Click Save to activate the webhook.
Step 2: Test Your Webhook
Click "Test Webhook" in the LimePhone dashboard.
Send a sample payload to your configured endpoint.
Verify that your system receives and processes the data correctly.
Check the Webhook Logs in LimePhone for detailed request history.
Step 3: Manage Webhooks
Edit Webhooks β Modify the webhook URL, event triggers, or security settings.
Delete Webhooks β Remove unused webhooks to optimize performance.
Monitor Logs β View webhook logs to debug and track requests.
Webhook Request Format
HTTP Request
LimePhone sends a POST request to your webhook URL whenever an event occurs.
Example Endpoint:
POST https://yourapp.com/webhook-endpoint
Request Headers
Header
Value
Description
Content-Type
application/json
Specifies the payload format.
Authorization
Bearer {token}
API token for authentication.
X-LimePhone-Signature
{hash}
HMAC-SHA256 signature for request validation.
Request Payloads (Examples)
Incoming Call Event
Missed Call Event
Voicemail Received Event
SMS Sent Event
SMS Received Event
Response Handling
Your application should respond with a 200 OK status code to acknowledge the webhook. If LimePhone doesnβt receive a success response, it will retry according to the following schedule:
Retry after 1 minute.
Retry after 5 minutes.
Retry after 15 minutes.
Retry after 30 minutes.
Securing Your Webhooks
Verify the Request Signature
Use the
X-LimePhone-Signature
header to validate the request.The signature is an HMAC-SHA256 hash of the request body using your webhook secret.
Use HTTPS
Ensure your webhook URL uses HTTPS for secure data transmission.
Validate Input Data
Sanitize and validate all incoming webhook data before processing.
Use Cases
β CRM Integration: Automatically log calls, messages, and voicemails in your CRM. β Real-Time Alerts: Send missed call or voicemail notifications via Slack or email. β Call Routing Automation: Route calls based on virtual number, caller ID, or predefined logic. β SMS Follow-Ups: Automate SMS responses based on received messages. β Analytics & Reporting: Track virtual number activity for call and message insights. β AI-Powered Workflows: Use webhooks to trigger AI-based lead qualification or automated workflows.
Best Practices
β Test Before Deployment: Use the "Test Webhook" feature to ensure proper integration. β Monitor Webhook Logs: Regularly check webhook logs for request history and errors. β Implement Retry Handling: Ensure your system can handle duplicate or retried requests. β Optimize API Response Times: Your webhook endpoint should respond within 5 seconds to prevent retries.
Need Help?
For support, reach out to support@limephone.io or visit our documentation at docs.limephone.io.
Last updated
Was this helpful?