Docs

Reference

Publish the flow

Publish the draft graph as the running version. Refuses with code revision.not_tested until campaigns.test accepted the current draft.

View MarkdownThis page is generated from the source code on every release.

Publish the draft graph as the running version. Refuses with code revision.not_tested until campaigns.test accepted the current draft.

Overview

Name Value
Code campaigns.publish
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 → Flow → Publish

Input fields

Field Type Required Description
id uuid Yes

Example request

curl -X POST https://tlg.builera.app/api/public/v2/ops/campaigns.publish \
  -H "Authorization: Bearer $TELEGRAM_AUTO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"id":"00000000-0000-0000-0000-000000000000"}'

Output fields (data)

Field Type Required
ok true Yes

Example answer

{
  "data": {
    "ok": true
  }
}

Using it over MCP

Tool campaigns_publish is listed on the profiles: Automation setup (setup). On other profiles, find it with tools_search and run it with tools_run.

Was this page helpful?

Last checked: 10/24/2026 · build 2.0