WaAPI icon

WaAPI

Interact with WaAPI API

Actions85

Overview

This node allows you to create a new Channel in the WaAPI system. Channels can be used to organize and manage communication streams or content groups within the platform. This operation is useful when you want to programmatically set up new channels with specific names, descriptions, and images.

Practical examples include:

  • Automatically creating a channel for a new project or team.
  • Setting up channels for different topics or departments in an organization.
  • Creating branded channels with custom images and descriptions for marketing campaigns.

Properties

Name Meaning
Id The instance ID where the channel will be created (required number).
Name The name of the channel to create.
Description A description text for the channel.
Picture Url URL of the image to associate with the channel, e.g., a logo or banner image.

Output

The node outputs JSON data representing the newly created channel object as returned by the WaAPI service. This typically includes details such as the channel's unique identifier, name, description, picture URL, and any other metadata provided by the API.

No binary data output is indicated.

Dependencies

  • Requires an active connection to the WaAPI service via its REST API.
  • Needs an API authentication token configured in n8n credentials to authorize requests.
  • The base URL for API calls is https://waapi.app/api/v1.
  • The node sends JSON payloads with appropriate headers (Accept: application/json, Content-Type: application/json).

Troubleshooting

  • Common issues:
    • Invalid or missing instance ID may cause the creation to fail.
    • Incorrect or expired API authentication token will result in authorization errors.
    • Providing invalid URLs for the picture may lead to warnings or ignored images.
  • Error messages:
    • Authorization errors usually indicate problems with the API key; verify and update credentials.
    • Validation errors on input fields suggest missing required properties or wrong data types; ensure all required fields are correctly filled.
    • Network errors might occur if the API endpoint is unreachable; check internet connectivity and API status.

Links and References

Discussion