Adding target audience to a task via API
Method for adding a CA to a task
🇬🇧 Add target audience
🇷🇺 Добавить целевую аудиторию
🇺🇿 Maqsadli auditoriyani qo'shish
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
taskstringRequiredExample:
task_id
1827394658203x947362851049736284targetstringRequiredExample:
phone, username, id (depending on the communication channel). For more than one, use "1111\n2222\n3333..."
79018510315Responses
200Success
No content
post
/api/1.1/wf/add_targetPOST /api/1.1/wf/add_target HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 66
{
"task": "1827394658203x947362851049736284",
"target": "79018510315"
}200Success
No content
To get the task, in the section "Tasks" copy the task ID; to do this click the button to the left of the desired task's name.

Last updated