Campaigns By Bot icon

Campaigns By Bot

Calls Campaign API to fetch campaigns for a given bot via GET /api/campaigns/by-bot?bot_external_id=... Uses Strapi API credentials (same base URL).

Campaigns By Bot

AI-generated

Summary

Fetches campaigns for each input item by making a GET request to /api/campaigns/by-bot with the bot ID as the bot_external_id query parameter. Uses the configured Strapi API URL and bearer token.

Inputs

  • Telegram Bot ID (required) — Bot ID sent as bot_external_id. Defaults to the first available value from tg_id_bot, bot_external_id, or external_id on the incoming item.

Output shape

One output item per input item, containing the parsed API response body as JSON.

The request uses required Strapi API credentials. If the response body is not valid JSON, it is returned as an error object. With Continue On Fail enabled, failures produce an item containing an error string and, for HTTP errors, a status code.

Links

Discussion