Stashbase
Webhooks

List

List all webhooks in environment.

GET
/v1/projects/{project_identifier}/environments/{environment_identifier}/webhooks/

List all webhooks in environment.

Path Parameters

project_identifier*string

The name or the ID of the project.

environment_identifier*string

The name or the ID of the environment.

Query Parameters

sort_by?string

Sort webhooks by property, default: created_at.

Value in"created_at" | "updated_at" | "url" | "enabled"
order?string

Sort webhooks in ascending or descending order, default: desc.

Default"desc"
Value in"asc" | "desc"

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/projects/string/environments/string/webhooks/"
[
  {
    "id": "wh_pTFmJBTuEENNfFKtXzrMQG",
    "url": "https://api.example.com/v1/webhook",
    "enabled": false,
    "created_at": "2022-03-01T11:11:11Z",
    "updated_at": "2022-03-01T11:11:11Z"
  },
  {
    "id": "wh_9Ve7ijuUMuwh9fb1j7CyBq",
    "url": "https://example.com",
    "enabled": true,
    "created_at": "2022-03-01T12:11:11Z",
    "updated_at": "2022-03-01T12:11:11Z"
  }
]
{
  "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
    }
  }
}