POST
/
segment
/
contact
/
bulk-upload?id=
{id}
curl --request POST \
  --url 'https://api.precallai.com/api/v1/segment/contact/bulk-upload?id={id}' \
  --header 'Content-Type: multipart/form-data' \
  --header 'x-api-key: <api-key>'
{
  "message": "File uploaded successfully."
}

You can download sample file Here

“In the API request body, you need to include the file path prefixed with file=@, like this:”

Example: file=@"C:\Users\xyz\Downloads\SampleAudienceList.csv"

Authorizations

x-api-key
string
header
required

Path Parameters

id
string
required

The ID of the contact to get audiences

Body

multipart/form-data
file
file
required

The file to upload.

Response

200
application/json
Contact audiences response
message
string
Example:

"File uploaded successfully."