Contact Batch in Test Environment


#1

I’m just starting on the integration and following the docs using an API key for the test environment.

When trying to create a batch of contacts using the https://api.hubapi.com/contacts/v1/contact/batch/ hook, the API returns a 200 (not 202) and the contacts do not show up. The payload is a modified version of what’s provided in https://developers.hubspot.com/docs/methods/contacts/batch_create_or_update. Instead of using vid, I’m using email as the unique id.

When using the api hook for creating individual contacts, it works fine.

Has anyone encountered a similar problem?


#2

I needed to add the content-type header to application/json. All good now!