Skip to main content

POST /send/list

URL: https://api.courier.com/send/list

Method: POST

Body Parameters

+ Show Properties

Responses

status: 200 OK

messageIdstring
A unique identifier associated with the messages sent to a list's subscribers.

status: 400 Bad Request

messagestring
A message describing the error that occurred.
typestring
[invalid_request_error] The type of error that occurred.

Request Example

curl --request POST \
--url https://api.courier.com/send/list \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '
{
"undefined": {
"list": "ExampleListId",
"event": "EXAMPLE_NOTIFICATION",
"brand": "W50NC77P524K14M5300PGPEK4JMJ",
"data": {
"name": "Jane Doe",
"age": 27
}
}
}
'

Responses Example

{
"messageId": "1-5e2b2615-05efbb3acab9172f88dd3f6f"
}
{
"message": "Error Message",
"type": "invalid_request_error"
}