POST
/
api
/
hooks
Create a webhook.
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"
}

Authorizations

Authorization
string
header
required

The Tyk Dashboard API Access Credentials

Body

application/json

Webhook data.

header_map
object | null
method
string
name
string
target_path
string

Response

Webhook created.

ID
string
Message
string
Meta
any
Status
string