curl https://api.pamhq.com/v1/calls \
-X POST \
-H "Authorization: Bearer $PAM_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: call_01HV7K4ZD3Q9X8P1M8Y2K9A0BC" \
-d '{
"agentSlug": "voice-recall",
"toNumber": "+15555550199",
"fromNumber": "+15555550123",
"welcomeMessage": "Hi Ada, this is PAM Motors following up on your service recall.",
"dynamicVariables": {
"contact_first_name": "Ada",
"contact_last_name": "Lovelace",
"dealership_name": "PAM Motors",
"recall_id": "24V-123",
"service_ids": "RECALL_SERVICE",
"vin": "1HGBH41JXMN109186",
"vehicle_year": "2021",
"vehicle_make": "Honda",
"vehicle_model": "Accord"
}
}'