POST
/
contacts
/
create_many
curl --request POST \
  --url https://api.indiepitcher.com/v1/contacts/create_many \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "contacts": [
    {
      "email": "john@acme.com",
      "userId": "1234567",
      "avatarUrl": "https://example.com/avatar.jpg",
      "name": "John Doe",
      "languageCode": "en_US",
      "updateIfExists": true,
      "ignoreListSubscriptionsWhenUpdating": true,
      "subscribedToLists": [
        "onboarding",
        "newsletter"
      ],
      "customProperties": {
        "company": "Acme",
        "age": 35
      }
    }
  ]
}'
{
  "success": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
contacts
object[]

The array of contacts to add.

Response

200 - application/json
A created or updated contact
success
boolean

Always true