webhooks
Creates a new Webhook for the project environment
POST
/
environments
/
{environmentId}
/
webhooks
Authorization
Path
Body
curl --request POST \
--url https://app.dynamicauth.com/api/v0/environments/{environmentId}/webhooks \
--header 'Content-Type: application/json' \
--data '{
"events": [
"<string>"
],
"isEnabled": true,
"url": "https://website-sample.com"
}'
{
"createdAt": "2023-11-07T05:31:56Z",
"enabledAt": "2023-11-07T05:31:56Z",
"environmentId": "95b11417-f18f-457f-8804-68e361f9164f",
"events": [
"<string>"
],
"isEnabled": true,
"secret": "<string>",
"updatedAt": "2023-11-07T05:31:56Z",
"url": "https://website-sample.com",
"webhookId": "95b11417-f18f-457f-8804-68e361f9164f"
}
Path Parameters
environmentId
string
requiredID of the environment
Body
application/json
events
string[]
requiredisEnabled
boolean
requiredurl
string
requiredResponse
201 - application/json
createdAt
string
requiredenabledAt
string
environmentId
string
requiredevents
string[]
requiredisEnabled
boolean
requiredsecret
string
updatedAt
string
requiredurl
string
requiredwebhookId
string
requiredWas this page helpful?
curl --request POST \
--url https://app.dynamicauth.com/api/v0/environments/{environmentId}/webhooks \
--header 'Content-Type: application/json' \
--data '{
"events": [
"<string>"
],
"isEnabled": true,
"url": "https://website-sample.com"
}'
{
"createdAt": "2023-11-07T05:31:56Z",
"enabledAt": "2023-11-07T05:31:56Z",
"environmentId": "95b11417-f18f-457f-8804-68e361f9164f",
"events": [
"<string>"
],
"isEnabled": true,
"secret": "<string>",
"updatedAt": "2023-11-07T05:31:56Z",
"url": "https://website-sample.com",
"webhookId": "95b11417-f18f-457f-8804-68e361f9164f"
}