post https://api.omnisend.com/v3/batches
Examples
Batch post contacts
{
"method": "POST",
"endpoint": "contacts",
"items": [
{
"identifiers": [
{
"type":"email",
"id": "[email protected]",
"channels": {
"email": {
"status": "subscribed",
"statusDate": "2019-05-30T14:11:12Z"
}
}
}
]
},
{
"identifiers": [
{
"type":"email",
"id": "[email protected]",
"channels": {
"email": {
"status": "subscribed",
"statusDate": "2019-05-30T14:11:12Z"
}
}
}
],
"firstName":"Vanessa"
}
]
}
Batch post events (trigger event)
{
"method": "POST",
"endpoint": "events",
"eventID":"5a3a57235ff78f4307346af5",
"items": [
{
"email": "[email protected]",
"phone": "+12025550142",
"fields": {
"size": "M",
"bust": 100,
"waterproof": true,
"packageWeight": 12.2,
"manualUrl": "http://www.example.com/uploads/prodManual.pdf",
"validUntil": "2017-05-30T14:11:12Z"
}
},
{
"email": "[email protected]",
"fields": {
"size": "M",
"bust": 100,
"waterproof": true,
"packageWeight": 12.2,
"manualUrl": "http://www.example.com/uploads/prodManual.pdf",
"validUntil": "2017-05-30T14:11:12Z"
}
}
]
}