POST
/
campaigns
/
{campaignId}
/
contacts
curl --request POST \
  --url https://api.voxia.ai/campaigns/{campaignId}/contacts \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '[
  {
    "name": "<string>",
    "phoneNumber": "<string>",
    "data": {},
    "archived": false
  }
]'
{
  "status": "success",
  "data": {
    "requested": 123,
    "added": 123,
    "modified": 123,
    "contactIds": [
      "<string>"
    ]
  }
}

Authorizations

Authorization
string
header
required

Path Parameters

campaignId
string
required

Query Parameters

fixUSPhoneNumber
boolean

Will add 1 to the phone number if it doesn't starts with 1

Body

application/json · object[]
name
string
required
Minimum length: 1
phoneNumber
string
required
Required string length: 7 - 20
data
object
required
archived
boolean
default:false

Response

200
application/json
status
enum<string>
Available options:
success
data
object