Adding target audience to a task via API

Method for adding a CA to a task

add target audience

post

🇬🇧 Add target audience

🇷🇺 Добавить целевую аудиторию

🇺🇿 Maqsadli auditoriyani qo'shish

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
taskstringRequired

task_id

Example: 1827394658203x947362851049736284
targetstringRequired

phone, username, id (depending on the communication channel). For more than one, use "1111\n2222\n3333..."

Example: 79018510315
Responses
200Success

No content

post
/api/1.1/wf/add_target
POST /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