cURL
curl --request POST \ --url https://{tenant}/api/hooks \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "header_map": { "another-value": "somevalue", "secret": "superscretkey" }, "method": "POST", "name": "Expired Keys webhook", "target_path": "https://httpbin.org/expired-keys" }'
{ "Message": "Webhook created", "Meta": null, "Status": "OK" }
Create a webhook. The webhook method and target_path fields are required. Method can either be DELETE,GET,PUT,POST or PATCH.
The Tyk Dashboard API Access Credentials
Webhook data.
Show child attributes
Webhook created.
Was this page helpful?