POST
/
api
/
v1
/
audience
Create Audience List
curl --request POST \
  --url https://api.vodex.ai/api/v1/audience \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --header 'dburl: <dburl>' \
  --data '{
  "audienceName": "<string>",
  "source": "<string>",
  "projectId": "<string>",
  "audienceList": [
    {
      "firstName": "<string>",
      "lastName": "<string>",
      "phone": "<string>"
    }
  ]
}'
{
  "status": 123,
  "data": {
    "projectId": "<string>",
    "audienceName": "<string>",
    "source": "<string>",
    "audienceList": [
      {}
    ],
    "audienceHeader": [
      {}
    ],
    "_id": "<string>",
    "createdAt": "<string>",
    "updatedAt": "<string>",
    "__v": 123
  }
}

Authorizations

Authorization
string
header
required

API Key authentication. Pass your API key in the Authorization header.

Headers

Authorization
string
required

API Key

dburl
string
required

Database URL - unique key received from login API under account section as 'accountUrl'

Body

application/json

payload

The body is of type object.

Response

200
application/json

Audience list created successfully

The response is of type object.