Skip to main content
POST
/
organizations
/
{organization_id}
/
contacts
/
list
Create multiple contacts in bulk
curl --request POST \
  --url https://dev.intermezzo.ai/organizations/{organization_id}/contacts/list \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
[
  {
    "name": "<string>",
    "email": "jsmith@example.com",
    "phone": {
      "phoneNumber": "<string>",
      "phoneType": "mobile"
    },
    "roles": []
  }
]
'
{
  "total": 123,
  "succeeded": 123,
  "failed": 123,
  "unprocessed": 123,
  "data": [
    {
      "name": "<string>",
      "id": "<string>",
      "email": "jsmith@example.com",
      "phone": {
        "phoneNumber": "<string>",
        "phoneType": "mobile"
      },
      "roles": []
    }
  ],
  "errors": [
    {
      "inputIndex": 123,
      "errors": [
        {
          "code": "ADDRESS_NOT_FOUND",
          "message": "<string>",
          "field": "<string>",
          "params": {}
        }
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

Get token from Auth0 and paste it here

Path Parameters

organization_id
required

Body

application/json
name
string
required
email
string<email> | null
phone
DEPhoneNumber · object
roles
string[]

Response

Successful Response

total
integer
required

Total number of records in the request

succeeded
integer
required

Number of successfully processed records

failed
integer
required

Number of failed records

unprocessed
integer
required

Number of records that passed validation but were not processed

data
ContactResponse · object[]

Successfully processed records

errors
OperationError · object[]

Failed records with error details