Actions27
- App Actions
- Account Actions
- Channel Actions
- Message Actions
- Template Actions
- Contact Actions
- Chat Actions
- Tag Actions
- User Actions
- Team Actions
- Webhook Actions
Webhook → Create Webhook
AI-generatedOverview
This node operation creates a webhook in the Poli API. It is useful for setting up event-driven integrations where external systems can notify your application about specific events such as changes in organizations, chats, contacts, users, or applications. For example, you can create a webhook to receive real-time updates when a new chat message arrives or when a contact is updated.
Use Case Examples
- Creating a webhook to listen for new chat messages and trigger a workflow in n8n.
- Setting up a webhook to monitor changes in user data and automate user management tasks.
Properties
| Name | Meaning |
|---|---|
| Application UUID | The unique identifier of the application for which the webhook is being created. This is required to associate the webhook with the correct application. |
| Webhook URL | The URL where the webhook notifications will be sent. This must be a valid endpoint that can receive HTTP POST requests from the Poli API. |
| Subscriptions | The list of event types the webhook will subscribe to. These include organizations, chats, contacts, users, and applications. The webhook will trigger when events related to these subscriptions occur. |
Output
JSON
id- The unique identifier of the created webhook.url- The URL of the webhook that was created.subscriptions- The list of event types the webhook is subscribed to.createdAt- Timestamp indicating when the webhook was created.
Dependencies
- Requires an API key credential for authenticating with the Poli API.
Troubleshooting
- Ensure the Application UUID is correct and corresponds to an existing application in the Poli system.
- Verify that the Webhook URL is accessible and can receive POST requests from the Poli API.
- Make sure at least one subscription type is selected; otherwise, the webhook will not trigger.
- Common error messages include missing required parameters or invalid URLs, which can be resolved by verifying input values.