cURL
curl --request POST \ --url https://brew.new/api/contacts/import \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "contacts": [ { "email": "[email protected]", "firstName": "John", "lastName": "Doe", "subscribed": true, "customFields": { "company": "Acme Inc", "role": "Developer" } }, { "email": "[email protected]", "firstName": "Jane", "lastName": "Smith" } ], "triggerAutomations": false } '
{ "success": true, "data": { "importId": "<string>", "stats": { "total": 123, "valid": 123, "invalid": 123 }, "automations": { "triggered": 123, "evaluated": 123, "timedOut": true, "errors": [ "<string>" ] }, "errors": [ { "index": 123, "email": "<string>", "error": "<string>" } ] }, "message": "<string>", "meta": { "requestId": "<string>" } }
Import multiple contacts via API. Contacts are queued for processing and can optionally trigger automations.
Permission required: contacts or all
contacts
all
Use Authorization: Bearer brew_xxxxx header
Authorization: Bearer brew_xxxxx
10000
Show child attributes
Whether to trigger automations for imported contacts
Import queued successfully
true
false
Was this page helpful?