đź“‘ Table of Contents
- What is an After-Call Webhook?
- Prerequisites for Adding an After-Call Webhook
- Step-by-Step Instructions
- Best Practices
- Testing the Webhook in Postman
- Troubleshooting
- Frequently Asked Questions (FAQs)
1. What is an After-Call Webhook?
An After-Call Webhook allows MyOperator to send real-time information about completed calls to an external system. This can be used for logging call data, triggering actions, or integrating with other applications once the call is completed.
⬆️ Back to Top
2. Prerequisites for Adding an After-Call Webhook
Before setting up the After-Call Webhook, ensure the following:
- Access to MyOperator Panel: You must have login credentials for MyOperator.
- Webhook URL: You need the Agent Hangup URL provided by your integrated system (e.g., KYLAS).
- HTTPS Security: The URL should use HTTPS for secure communication.
- Public Server: The receiving server must be publicly accessible and able to handle JSON POST requests.
⬆️ Back to Top
3. Step-by-Step Instructions
To add the After-Call Webhook in MyOperator, follow these steps:
- Log in to MyOperator Panel:
- Log in to your MyOperator account.
- Navigate to API Integration:
- Go to the “Manage” section and select “API Integration” from the menu.
- Select Webhooks:
- In the left-hand menu, click on “Calling Webhook” and then select “Webhooks”.
- Add New Webhook:
- Click the “Add New” button to create a new webhook.
- Configure the Webhook Settings:
- Webhook Type: Select “After Call” from the dropdown.
- Method: Choose POST.
- URL: Paste the Agent Hangup URL from your integrated system.
- Content-Type: Set to application/json.
- Save the Webhook:
- After filling in the necessary details, click “Save” to finalize the webhook configuration.
⬆️ Back to Top
4. Best Practices
To ensure successful webhook integration, follow these best practices:
- Use HTTPS URLs: Always use HTTPS to ensure secure data transmission.
- Test the Webhook: Before saving, test the webhook URL using tools like Postman to verify its functionality.
- Authentication: Use authentication headers or tokens for added security.
- Public Server: Ensure the receiving server is publicly accessible and can handle JSON POST requests.
⬆️ Back to Top
5. Testing the Webhook in Postman
To test the After-Call Webhook, follow these steps in Postman:
Step 1: Create a New Request in Postman
- Open Postman and click “New” > “Request”.
- Name the request (e.g., "Test After-Call Webhook") and select or create a collection.
Step 2: Set Up the Request
- Method: Set the method to POST.
- URL: Enter the webhook listener URL (e.g.,
https://yourdomain.com/myoperator-webhook).
Step 3: Add the Request Body
- Go to the Body tab and select raw.
- Set the format to JSON.
- Paste a sample payload like this:
{ "myoperator": { "_ai": "abc123", "_ci": "company_xyz", "_cl": "+919876543210", "_dr": "00:02:12", "_su": 1, "_dn": "Support", "_fn": "call_recording.mp3", "_fu": "https://yourlink.com/audio/call_recording.mp3" }}
Step 4: Set Headers
- Click on the Headers tab and add:
- Key:
Content-Type - Value:
application/json - Optional: Add an Auth Key if required.
Step 5: Send the Request
- Click “Send”.
- Your server should return a 200 OK status if it successfully processes the request.
Step 6: Check the Response and Logs
- Inspect the response body and status code in Postman.
- Check your server logs or database to confirm the webhook was received and parsed correctly.
⬆️ Back to Top
6. Troubleshooting
If you encounter issues during the webhook setup, try the following:
- Incorrect URL or Method:
Double-check the URL and method (POST) to ensure they are entered correctly. - Server Not Receiving Requests:
Ensure that the server is publicly accessible and can accept JSON POST requests. - Webhook Not Saving:
If the webhook isn’t saving, ensure that the URL and content type are properly configured, and that the method is POST.
⬆️ Back to Top
7. Frequently Asked Questions (FAQs)
Q1. What happens if I enter the wrong URL for the After-Call Webhook?
- If the URL is incorrect, MyOperator will not be able to send the After-Call data to your system. Ensure the URL is accurate before saving.
Q2. Can I test the After-Call Webhook before saving it?
- Yes, you can test the webhook using Postman to verify that the POST method and URL are working as expected.
Q3. Why do I need to use HTTPS for the webhook URL?
- HTTPS ensures that the data transmitted between MyOperator and your receiving system is encrypted and secure.
⬆️ Back to Top
📌 Keywords:
MyOperator, After-Call Webhook, API Integration, webhook setup, POST method, HTTPS, JSON, Postman, server configuration, troubleshooting.