Reference
Add people to a campaign
Add up to 5000 people to a campaign.
View MarkdownThis page is generated from the source code on every release.
Add up to 5000 people to a campaign.
Overview
| Name | Value |
|---|---|
| Code | campaigns.add_people |
| Scope needed | campaigns.write |
| Risk | Write |
| May need confirmation | No |
| Runs as | Answers right away |
Needs Idempotency-Key |
No |
| Member roles allowed | owner, manager |
| In the app | Campaigns → Recipients → Add |
Input fields
| Field | Type | Required | Description |
|---|---|---|---|
id |
uuid |
Yes | |
personIds |
uuid[] |
Yes |
Example request
curl -X POST https://tlg.builera.app/api/public/v2/ops/campaigns.add_people \
-H "Authorization: Bearer $TELEGRAM_AUTO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"id":"00000000-0000-0000-0000-000000000000","personIds":[]}'Output fields (data)
| Field | Type | Required |
|---|---|---|
draft |
true/false |
Yes |
added |
number |
Yes |
excluded |
number |
Yes |
ok |
true |
Yes |
Example answer
{
"data": {
"draft": true,
"added": 1,
"excluded": 1,
"ok": true
}
}Using it over MCP
Not listed on any profile: call tools_describe then tools_run with code: "campaigns.add_people". Tool name when listed: campaigns_add_people.