Sign in

Create webhook

documented

Create a webhook for a space.

POST /spaces/{space_id}/webhooksWebhooksno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://api.contentful.com/spaces/{{$space_id}}/webhook_definitions" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Content-Type: application/vnd.contentful.management.v1+json" \
  -H "Accept: application/json" \
  -d '{"name": "{{$name}}", "url": "{{$url}}", "topics": ["ContentManagement.Entry.publish"], "filters": [ {"equals": [ {"doc": "sys.environment.sys.id"}, "{{$environment_id}}" ] } ], "headers": [ { "key": "X-Notify", "value": "{{$notify_value}}" } ] }'
Create webhook · Contentful · OpenIntegrations