Sign in

Create hook

documented

Create a new hook for a site (or form linkage).

POST /api/v1/hooksHooksno 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.netlify.com/api/v1/hooks" \ 
  -X POST \ 
  -H "Authorization: Bearer {{NETLIFY_API_KEY}}" \ 
  -H "Content-Type: application/json" \ 
  -H "Accept: application/json" \ 
  -d '{"site_id": "{{$site_id}}", "type": "{{$type}}", "event": "{{$event}}", "data": {"email": "{{$email}}"}, "form_id": "{{$form_id}}", "form_name": "{{$form_name}}"}'