mirror of
https://github.com/directus/directus.git
synced 2026-01-24 14:37:58 -05:00
1.3 KiB
1.3 KiB
Webhooks
In addition to writing custom code for more complex event hooks, Directus provides a way to quickly configure webhooks through the App. These send HTTP requests when a specific event is triggered within the project.
Creating Webhooks
- Navigate to Settings > Webhooks
- Click the Create Webhook action button in the header
- Complete the other webhook form fields outlined below
- Name — A name to help remember this webhooks purpose
- Method — Send as either a HTTP
GETorPOSTrequest - URL — The URL to send the request to
- Status — Whether the webhook is active (enabled) or inactive (disabled)
- Data — Whether the event's data should be sent along with the request
- Trigger Actions — The specific actions that will trigger the event
- Trigger Collections — The specific collections for which the above actions will trigger the event
Disabling Webhooks
- Navigate to Settings > Webhooks > [Webhook]
- Set the status field to inactive
Deleting Webhooks
- Navigate to Settings > Webhooks > [Webhook]
- Click the red Delete Webhook action button in the header
- Confirm this decision by clicking Delete in the dialog
:::danger Irreversible Change This action is permanent and can not be undone. Please proceed with caution. :::