Webhooks
Create
Create a new webhook.
Create a new webhook.
Path Parameters
project_identifier*string
The name or the ID of the project.
environment_identifier*string
The name or the ID of the environment.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/projects/string/environments/string/webhooks/" \ -H "Content-Type: application/json" \ -d '{ "url": "http://example.com" }'{
"id": "wh_9Ve7ijuUMuwh9fb1j7CyBq",
"created_at": "2022-03-01T11:11:11Z",
"updated_at": "2022-03-01T11:11:11Z",
"signing_secret": "whsec_NZMwqUDDQDa5dyUuhV6PThIsZVaSKRGh",
"url": "https://example.com",
"description": null,
"enabled": true
}{
"error": {
"code": "string",
"message": "string",
"details": {
"property1": null,
"property2": null
}
}
}{
"error": {
"code": "string",
"message": "string",
"details": {
"property1": null,
"property2": null
}
}
}{
"error": {
"code": "string",
"message": "string",
"details": {
"property1": null,
"property2": null
}
}
}{
"error": {
"code": "string",
"message": "string",
"details": {
"property1": null,
"property2": null
}
}
}{
"error": {
"code": "string",
"message": "string",
"details": {
"property1": null,
"property2": null
}
}
}