API Interaction - email

POST https://{{host}}/v1/Interactions/

Request Body

[{"name"=>"Routing", "value"=>"{\n        \"type\": \"TaskRouter\",\n        \"properties\": {\n            \"workspace_sid\": \"{{workspaceSid}}\",\n            \"workflow_sid\": \"{{workflowSid}}\",\n            \"queue_sid\": \"{{queueSid}}\",\n            \"worker_sid\":\"{{workerSid}}\",\n            \"task_channel_unique_name\": \"email\",\n            \"attributes\": {\n               \"customerName\":\"Nikita\",\n                \"customerAddress\": \"jtanwani@twilio.com\"\n            }\n        }\n    }", "datatype"=>"string"}, {"name"=>"Channel", "value"=>"{\n        \"type\": \"email\",\n        \"initiated_by\": \"agent\",\n        \"properties\": {\n            \"type\": \"email\",\n            \"from_name\": \"support\",\n            \"from\": \"agent@jtanwani.owlstore.email\"\n        },\n        \"participants\": [\n            {\n                \"level\": \"to\",\n                \"name\": \"Twilion\",\n                \"address\": \"jtanwani@twilio.com\",\n                \"type\": \"email\"\n            }\n        ]\n    }", "datatype"=>"string"}, {"name"=>"InteractionContextSid", "value"=>"HQ8b448e872fcff0c24553eec46f057480", "datatype"=>"string"}]

HEADERS

KeyDatatypeRequiredDescription
I-Twilio-Auth-Accountstring