[{
"destination_name": "Disposition Middleware",
"destination_type": "custom",
"agent_id":98,
"api_url": "https://api-v2.formi.co.in/api/v1/post-call-analytics/middleware",
"api_method": "POST",
"api_headers": {},
"api_body": {}
}]curl --location 'https://staging-api.formi.co.in/v2/post_call/data/destinations' \
--header 'token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxNDg3IiwianRpIjoiMGNlYzA1YjkzODZmNDU0Yzg3NzQ2NmZiZjExY2E4OWYiLCJ2ZXIiOjIsImlhdCI6MTc4NTM4OTc5MywiZXhwIjoxNzg1Mzk2OTkzLCJ0eXBlIjoiT1VUTEVUIn0.rqB5vtnE4ElVrUXo8iRISdJmQiruBvI7m8VVmpweEhI' \
--header 'Content-Type: application/json' \
--data '[{
"destination_name": "Disposition Middleware",
"destination_type": "custom",
"agent_id":98,
"api_url": "https://api-v2.formi.co.in/api/v1/post-call-analytics/middleware",
"api_method": "POST",
"api_headers": {},
"api_body": {}
}]'{
"destination": [
{
"destination_name": "CRM Webhook",
"destination_type": "webhook",
"api_url": "https://crm.example.com/webhook",
"api_method": "POST",
"api_headers": {
"Authorization": "Bearer abcdef123456",
"Content-Type": "application/json"
},
"api_body": {
"lead_name": "John Doe",
"contact_email": "johndoe@example.com",
"phone_number": "+919876543210",
"call_summary": "Customer interested in product demo",
"location": "Bengaluru"
}
},
{
"destination_name": "Salesforce CRM",
"destination_type": "crm",
"api_url": "https://salesforce.example.com/api/leads",
"api_method": "PUT",
"api_headers": {
"Authorization": "Bearer sf_token_987654",
"Content-Type": "application/json",
"X-Custom-Header": "custom-value"
},
"api_body": {
"full_name": "Jane Smith",
"email": "janesmith@example.com",
"phone": "+918765432109",
"lead_score": "85",
"source": "Inbound call"
}
}
],
"type": "string"
}