N8N Tools Snapchat icon

N8N Tools Snapchat

Interact with Snapchat API

Overview

The node "N8N Tools Snapchat" enables interaction with the Snapchat Ads API, providing a variety of operations across multiple resources such as ads, campaigns, creatives, audiences, pixels, webhooks, and reports. Specifically, for the Webhooks resource with the Get Webhooks operation, this node retrieves the list of configured webhooks associated with a specified Snapchat Ad Account.

This functionality is useful for marketers and developers who want to programmatically manage or audit their Snapchat webhook configurations within automated workflows. For example, you might use this node to fetch all active webhooks to verify their status or to integrate webhook data into reporting dashboards.

Properties

Name Meaning
Ad Account ID The unique identifier of the Snapchat Ad Account from which to retrieve webhooks. This is a required string input.

Output

The output of the Get Webhooks operation is a JSON object representing the list of webhooks retrieved from the Snapchat Ads API for the specified Ad Account. Each item in the output array corresponds to one webhook's details, including its configuration and status as provided by the API.

The node does not output binary data for this operation.

Example structure (simplified):

[
  {
    "id": "webhook_id_1",
    "url": "https://example.com/webhook1",
    "status": "active",
    "events": ["event_type_1", "event_type_2"],
    ...
  },
  {
    "id": "webhook_id_2",
    "url": "https://example.com/webhook2",
    "status": "inactive",
    "events": ["event_type_3"],
    ...
  }
]

Dependencies

  • Requires an API key credential for the N8N Tools API to validate subscription and access.
  • Requires OAuth2 credentials for authenticating with the Snapchat Ads API.
  • The node makes HTTP requests to the Snapchat Ads API endpoint https://adsapi.snapchat.com.
  • Proper configuration of these credentials in n8n is necessary before using the node.

Troubleshooting

  • Invalid subscription or API key error: If the node throws an error indicating invalid subscription or API key, verify that the API key credential for the N8N Tools API is correctly set up and active.
  • Permission errors: Ensure that the OAuth2 credentials used have sufficient permissions to access the Snapchat Ad Account and its webhooks.
  • Missing or incorrect Ad Account ID: The Ad Account ID is required; ensure it is correctly provided and corresponds to an existing account.
  • Network or API downtime: Temporary network issues or Snapchat API outages can cause request failures; retry after some time.
  • Malformed JSON inputs: For other operations requiring JSON input, ensure the JSON is valid. Although not applicable for Get Webhooks, this is relevant for create/update operations.

Links and References

Discussion