Audience
Create audience with CSV upload
Create a new audience by uploading a CSV file containing phone numbers
POST
/
audience
Copy
curl --request POST \
--url https://atoms-api.smallest.ai/api/v1/audience \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form name=test_audience \
--form 'description=List of customers for marketing campaign' \
--form phoneNumberColumnName=phoneNumber \
--form identifierColumnName=Name
Copy
{
"status": true,
"data": {
"_id": "60d0fe4f5311236168a109ca",
"name": "My Customer List",
"description": "List of customers for marketing campaign",
"phoneNumberColumnName": "phoneNumber",
"identifierColumnName": "Name",
"organization": "60d0fe4f5311236168a109cb",
"createdBy": "60d0fe4f5311236168a109cc",
"createdAt": "2025-01-15T10:30:00.000Z",
"updatedAt": "2025-01-15T10:30:00.000Z"
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
multipart/form-data
Response
200
application/json
Audience created successfully
The response is of type object
.
Copy
curl --request POST \
--url https://atoms-api.smallest.ai/api/v1/audience \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form name=test_audience \
--form 'description=List of customers for marketing campaign' \
--form phoneNumberColumnName=phoneNumber \
--form identifierColumnName=Name
Copy
{
"status": true,
"data": {
"_id": "60d0fe4f5311236168a109ca",
"name": "My Customer List",
"description": "List of customers for marketing campaign",
"phoneNumberColumnName": "phoneNumber",
"identifierColumnName": "Name",
"organization": "60d0fe4f5311236168a109cb",
"createdBy": "60d0fe4f5311236168a109cc",
"createdAt": "2025-01-15T10:30:00.000Z",
"updatedAt": "2025-01-15T10:30:00.000Z"
}
}
Assistant
Responses are generated using AI and may contain mistakes.