Skip to main content
POST
/
contacts
/
v1
/
contact
/
batch
Create or update a group of contacts
curl --request POST \
  --url https://api.hubapi.com/contacts/v1/contact/batch/ \
  --header 'Content-Type: application/json' \
  --data '
[
  {
    "vid": "<string>",
    "email": "<string>",
    "properties": [
      {
        "property": "<string>",
        "value": "<string>"
      }
    ]
  }
]
'
"[ { \"vid\": \"259429\", \"properties\": [ { \"property\": \"firstname\", \"value\": \"Harper\" }, { \"property\": \"lastname\", \"value\": \"Wolfberg\" }, { \"property\": \"website\", \"value\": \" }, { \"property\": \"company\", \"value\": \"HubSpot\" }, { \"property\": \"phone\", \"value\": \"555-122-2323\" }, { \"property\": \"address\", \"value\": \"25 First Street\" }, { \"property\": \"city\", \"value\": \"Cambridge\" }, { \"property\": \"state\", \"value\": \"MA\" }, { \"property\": \"zip\", \"value\": \"02139\" } ] }, { \"email\": \"testingapis@hubspot.com\", \"properties\": [ { \"property\": \"firstname\", \"value\": \"Codey\" }, { \"property\": \"lastname\", \"value\": \"Huang\" }, { \"property\": \"website\", \"value\": \" }, { \"property\": \"company\", \"value\": \"HubSpot\" }, { \"property\": \"phone\", \"value\": \"555-122-2323\" }, { \"property\": \"address\", \"value\": \"25 First Street\" }, { \"property\": \"city\", \"value\": \"Cambridge\" }, { \"property\": \"state\", \"value\": \"MA\" }, { \"property\": \"zip\", \"value\": \"02139\" } ] } ]"

Query Parameters

auditId
string

A string that allows you to represent these change sources however you'd like.

Body

application/json
vid
string

Contact ID for updating existing contact.

email
string

Email address for identifying contact.

properties
object[]

Response

202 - application/json

Successful response - This endpoint is used to create a group of contacts or update existing ones

The response is of type object.