Batch
This endpoint allows you to send a batch of actions for processing contacts.
Batch
Headers
Name
Type
Description
Request Body
Name
Type
Description
{
data: {
batchId: "1234asdf1234"
}
}{
errors: [
"siteId" is required,
"optoutEmail" must be a boolean
]
}{
errors: [
status: 401,
message: 'UNAUTHORIZED'
]
}Authorized Actions
{
"actions": [
{
"create": {
// At least one of the three identifiers is REQUIRED
// email, phoneNumber, accountId
email: String // The contact's email
phoneNumber: String // The contact's phone number
accountId: String //The contact's accountId on your platform
firstname: Optional (String) // The contact's first name
lastname: Optional (String) // The contact's last name
optoutEmail: Optional (Boolean) // true if they are opted out.
optoutSms: Optional (Boolean) // true if they are opted out.
addresses: Optional (Array of Objects) - Addresses of the contact.
ex:
[
{
title
line1
line2
city
zipcode
country - Required if passing in addresses.
}
]
}
}
]
}Code samples
Last updated