Sign in

Create webhook

documented

Create a new webhook for a store.

POST /webhooksStoresno 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.foxy.io/stores/{{$store_id}}/webhooks\" \
  -X POST \
  -H \"Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}\" \
  -H \"FOXY-API-VERSION: 1\" \
  -H \"Content-Type: application/json\" \
  -H \"Accept: application/hal+json\" \
  -d '{\"name\": \"{{$name}}\", \"format\": \"json\", \"version\": 2, \"url\": \"{{$url}}\", \"query\": \"{{$query}}\", \"encryption_key\": \"{{$encryption_key}}\", \"events\": [\"{{$event_1}}\", \"{{$event_2}}\"], \"is_active\": 1}''