content/guides/12.integrations/2.clay/use-directus-webhooks-with-clay.md
Send data automatically from Directus to Clay when content changes, items are created, or statuses update.
← Back to Directus + Clay Overview
Directus Flows trigger automatically on data changes and POST to Clay webhook URLs. This enables real-time data sync without any manual intervention.
Common use cases:
For detailed instructions on setting up webhooks in Clay, see the Clay Webhook Integration Guide.
See this webhook flow setup in action with our interactive demo or skip to the steps below:
<!--ARCADE EMBED START--><div style="position: relative; padding-bottom: calc(50.4167% + 41px); height: 0px; width: 100%;"><iframe src="https://demo.arcade.software/jiBsuEdLSgp5MZawe3iR?embed&embed_mobile=tab&embed_desktop=inline&show_copy_link=true" title="Create an Automated Webhook Flow for New Posts in Directus" frameborder="0" loading="lazy" webkitallowfullscreen mozallowfullscreen allowfullscreen allow="clipboard-write" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; color-scheme: light;" ></iframe></div><!--ARCADE EMBED END-->items.create - When new items are createditems.update - When items are updateditems.delete - When items are deletedContent-Typeapplication/jsonRequest Body: Choose one of these approaches:
Option 1: Full Payload (Recommended)
{{ $trigger }}
This sends all item data automatically.
Option 2: Custom Mapping
{
"title": "{{ $trigger.payload.title }}",
"content": "{{ $trigger.payload.content }}",
"status": "{{ $trigger.payload.status }}",
"author": "{{ $trigger.payload.author }}",
"date_created": "{{ $trigger.payload.date_created }}",
"directus_id": "{{ $trigger.payload.id }}"
}
This gives you control over exactly which fields to send.