Skip to main content

POST /send/:event/routing

POSThttps://api.courier.com/send/:event/routing
PATH PARAMS
eventstringrequired
A unique identifier representing the event that was used to send the event.
BODY PARAM
recipientsarray
Responses
AUTH TOKEN
curl --request POST \
--url https://api.courier.com/send/:event/routing \
--header 'Accept: application/json'
Response Example
{
"results": [
[
{
"recipient": "0460766e-8463-4905-ae98-b72c7aef41d6",
"routing": {
"reason": "UNMAPPED",
"selected": false
}
}
]
]
}

Example

Method: POST

URL: https://api.courier.com/send/abcdefgh12345678/routing

Body: ​

{
"recipients": [
{
"recipient": "abcdefgh12345678",
"data": {
"name": "Jane Smith",
"age": 27
},
"profile": {
"phone_number": "2025550125",
"email": "jane.smith@example.com"
}
}
]
}