Loading...
Skip to main content

POST /send/:event/routing

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

Method: POST

Path Parameters

eventstringrequired
A unique identifier representing the event that was used to send the event.

Body Parameters

recipientsarray
+ Show Properties

Response

status: 200 OK

resultsarray

Request Example

curl --request POST \
--url https://api.courier.com/send/:event/routing \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '
{
"recipients": [
{
"recipient": "8ec8c99a-c5f7-455b-9f60-8222b8a27056",
"data": {
"name": "Jane Doe",
"age": 27
},
"profile": {
"phone_number": "2025550125",
"email": "hello@example.com"
}
}
]
}
'

Responses Example

{
"results": [
[
{
"recipient": "0460766e-8463-4905-ae98-b72c7aef41d6",
"routing": {
"reason": "UNMAPPED",
"selected": false
}
}
]
]
}