curl --request POST \
--url https://app.dynamicauth.com/api/v0/environments/{environmentId}/webhooks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://website-sample.com",
"isEnabled": true,
"events": [
"An example name"
]
}
'{
"environmentId": "95b11417-f18f-457f-8804-68e361f9164f",
"webhookId": "95b11417-f18f-457f-8804-68e361f9164f",
"url": "https://website-sample.com",
"events": [
"<string>"
],
"isEnabled": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"secret": "<string>",
"version": "<string>",
"enabledAt": "2023-11-07T05:31:56Z"
}curl --request POST \
--url https://app.dynamicauth.com/api/v0/environments/{environmentId}/webhooks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://website-sample.com",
"isEnabled": true,
"events": [
"An example name"
]
}
'{
"environmentId": "95b11417-f18f-457f-8804-68e361f9164f",
"webhookId": "95b11417-f18f-457f-8804-68e361f9164f",
"url": "https://website-sample.com",
"events": [
"<string>"
],
"isEnabled": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"secret": "<string>",
"version": "<string>",
"enabledAt": "2023-11-07T05:31:56Z"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
ID of the environment
36"95b11417-f18f-457f-8804-68e361f9164f"
Successfully created
36"95b11417-f18f-457f-8804-68e361f9164f"
36"95b11417-f18f-457f-8804-68e361f9164f"
"https://website-sample.com"
Was this page helpful?