Keitaro icon

Keitaro

Работа с API Keitaro

Overview

This node integrates with the Keitaro API to manage various resources such as bots, campaigns, streams, and more. Specifically, for the resource "Бот" (Bot) with the operation "Создать" (Create), it allows users to create a new bot by sending JSON-formatted bot data to the Keitaro API. This is useful for automating the creation and management of bots within the Keitaro platform, enabling streamlined campaign and traffic management.

Use Case Examples

  1. Creating a new bot by providing its configuration in JSON format to automate traffic filtering or bot detection in marketing campaigns.
  2. Automating bot creation as part of a larger workflow to dynamically adjust campaign parameters based on traffic sources.

Properties

Name Meaning
Данные Бота JSON-formatted data representing the bot's configuration and attributes to be created in Keitaro.

Output

JSON

  • request
    • url - The URL of the API request made to Keitaro.
    • method - HTTP method used for the API request.
    • headers - Headers sent with the API request, including API key and content type.
  • resource - The resource type involved in the operation, e.g., 'bot'.
  • operation - The operation performed, e.g., 'create'.
  • success - Indicates if the operation was successful (true/false).
  • data - The response data from the Keitaro API after creating the bot.

Dependencies

  • Requires an API key credential for Keitaro API access and the domain URL of the Keitaro instance.

Troubleshooting

  • Ensure the API key and domain are correctly set in the credentials; missing or incorrect credentials will cause authentication errors.
  • The bot data must be valid JSON and include all required fields; otherwise, the API will return an error.
  • For the 'stats' resource, only the 'getAll' operation is supported; using other operations will throw an error.
  • Network issues or incorrect API endpoint URLs can cause request failures; verify the domain and resource paths.

Discussion