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": [
    "An example name"
  ]
}'
{
  "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

Body

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

Response

201 - application/json
environmentId
string
required

ID of the environment

webhookId
string
required

ID of the environment

url
string
required
secret
string
events
string[]
required
isEnabled
boolean
required
enabledAt
string
createdAt
string
required
updatedAt
string
required