Adding target audience to a task via API
Method for adding TA to the 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_target
POST /api/1.1/wf/add_target HTTP/1.1
Host: selarti.com
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 «Tasks» section, copy the task ID by clicking the button to the left of the desired task's name.

Last updated