POST
/
environments
/
{environmentId}
/
webhooks
curl --request POST \
  --url https://app.dynamicauth.com/api/v0/environments/{environmentId}/webhooks \
  --header 'Content-Type: application/json' \
  --data '{
  "url": "https://website-sample.com",
  "isEnabled": true,
  "events": [
    "<string>"
  ]
}'
{
  "environmentId": "95b11417-f18f-457f-8804-68e361f9164f",
  "webhookId": "95b11417-f18f-457f-8804-68e361f9164f",
  "url": "https://website-sample.com",
  "secret": "<string>",
  "events": [
    "<string>"
  ],
  "isEnabled": true,
  "enabledAt": "2023-11-07T05:31:56Z",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Path Parameters

environmentId
string
required

ID of the environment

Required string length: 36

Body

application/json
url
string
required
isEnabled
boolean
required
events
string[]
required

Response

201
application/json
Successfully created
environmentId
string
required
Required string length: 36
webhookId
string
required
Required string length: 36
url
string
required
events
string[]
required
isEnabled
boolean
required
createdAt
string
required
updatedAt
string
required
secret
string
enabledAt
string