ActiveCampaign Forum

Bulk Upload of Contacts

Hi Folks,
First you’ll have to forgive me, I’m relatively new to API Integrations.

So I’ve integrated to the point where I can add/remove a contact on a single basis. That was simple enough.

Now… I’m hoping to add a collection of contacts. Seems simple enough, based on the Schema portion of the Documentation, but when I push the upload, I get the following error response.

{
“errors”: [
{
“title”: “Email address is required.”,
“detail”: “”,
“code”: “field_missing”,
“error”: “contact_email_was_not_provided”,
“source”: {
“pointer”: “/data/attributes/email”
}
}
]
}

Here’s my JSON packet for reference;

{
“contacts” :
[
{
“email”: “example@email.com”,
“firstName”: “Maxwell”,
“lastName”: “Smart”
},
{
“email”: “agent99@control.com”,
“firstName”: “Agent”,
“lastName”: “Ninety9”
}
]
}