Wasapi icon

Wasapi

Integration oficial of Wasapi API for n8n

Overview

This node integrates with the Wasapi API to manage labels within the Wasapi platform. Specifically, the "Label - Create" operation allows users to create a new label by specifying its title, description, and color. This is useful in scenarios where you want to organize or categorize entities (such as contacts, messages, or tickets) using custom labels for better management and filtering.

Practical examples include:

  • Automatically creating labels based on incoming data to tag conversations.
  • Setting up color-coded labels to visually distinguish different categories or priorities.
  • Adding descriptive labels to group related items for reporting or automation purposes.

Properties

Name Meaning
Title The name/title of the label to be created.
Description An optional text describing the label's purpose or details.
Color The color of the label in hexadecimal format (e.g., #FF0000 for red).

Output

The node outputs JSON data representing the newly created label object as returned by the Wasapi API. This typically includes fields such as the label's unique identifier, title, description, color, creation timestamp, and possibly other metadata.

If the node supports binary data output, it would relate to any associated media or attachments linked to the label, but this is not indicated in the provided code or properties.

Dependencies

  • Requires an active connection to the Wasapi API via an API key credential configured in n8n.
  • The base URL for API requests is https://api-ws.wasapi.io/api/v1.
  • No additional external dependencies are indicated beyond the Wasapi API access.

Troubleshooting

  • Common issues:

    • Missing required fields such as Title or Color will likely cause the API request to fail.
    • Invalid color format (not a hex code) may result in errors from the API.
    • Network connectivity problems or invalid API credentials will prevent successful label creation.
  • Error messages:

    • "Resource "labels" with operation "create" is not supported": This indicates that the node configuration does not recognize the requested resource-operation pair, possibly due to misconfiguration or outdated node version.
    • API errors related to authentication or validation will be passed through; ensure the API key is valid and input data meets API requirements.

Links and References

Discussion