Stashbase
Webhooks (env. scope)

Create

Create a new webhook.

POST
/v1/environment/webhooks/

Create a new webhook.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/environment/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
    }
  }
}