Overview
This node adds a webhook URL to the Avito service using a user-provided token. It is useful for integrating Avito notifications or events into an n8n workflow by registering a callback URL that Avito will call when certain events occur. For example, you might use this node to automatically receive updates about new messages or listings on Avito and trigger further automation in your workflow.
Properties
Name | Meaning |
---|---|
Avito Webhook | The URL of the webhook to register with Avito. This is where Avito will send event notifications. |
User Token | A user authentication token required to authorize the webhook registration request with Avito. |
Output
The node outputs a JSON object with a single field:
status
: A string indicating the result of the operation. If successful, it returns"ok"
.
Example output:
[
{
"status": "ok"
}
]
No binary data is produced by this node.
Dependencies
- Requires an API key credential for Avito (referred to generically as "an API key credential").
- Uses an external API method
messageAddWebHook
from the Avito API client to register the webhook. - The node expects valid network connectivity to Avito's API endpoint.
Troubleshooting
Common issues:
- Invalid or expired user token: The API call to add the webhook may fail if the provided token is incorrect or no longer valid.
- Incorrect webhook URL format: The webhook URL must be a valid and reachable URL; otherwise, Avito may reject it.
- Network connectivity problems: Failure to reach Avito's API will cause the node to error out.
Error messages:
- Errors returned from the Avito API will likely indicate authorization failures or invalid parameters. Verify the token and webhook URL.
- If the node fails silently or does not return
"ok"
, check the credentials and ensure the API client library is correctly configured.
Links and References
- Avito API Documentation (for details on webhook registration and authentication)
- n8n documentation on creating custom nodes