{}
curl --location --request GET 'https://staging-api.formi.co.in/v2/post_call/data/destinations' \
--header 'Content-Type: application/json' \
--data-raw '{}'
{
"message": "Destinations fetched successfully",
"payload": [
{
"destination_name": "CRM Webhook",
"destination_type": "webhook",
"destination_id": 4,
"api_url": "https://crm.example.com/api/lead",
"api_method": "POST",
"api_header": {
"Authorization": "Bearer ABC123",
"Content-Type": "application/json"
}
},
{
"destination_name": "Internal Logger",
"destination_type": "internal",
"destination_id": 5,
"api_url": "https://internal.example.com/log",
"api_method": "PUT",
"api_header": {
"X-Internal-Key": "secure-key-999",
"Content-Type": "application/json"
}
},
{
"destination_name": "Salesforce CRM",
"destination_type": "crm",
"destination_id": 6,
"api_url": "https://salesforce.example.com/v1/leads",
"api_method": "POST",
"api_header": {
"Authorization": "Bearer SF123TOKEN",
"Content-Type": "application/json"
}
}
]
}