Documentation menu

Project Environment Webhooks

9 operations.

List environment webhook subscriptions

GET/api/v1/projects/{projectId}/environments/{environmentId}/webhooks

Parameters

path

NameTypeRequiredDescription
projectIdstringrequiredIdentifies the Project that owns the addressed resource. Applies to List environment webhook subscriptions.
environmentIdstringrequiredIdentifies the Project environment addressed by the operation. Applies to List environment webhook subscriptions.

query

NameTypeRequiredDescription
cursorstringoptionalOpaque cursor returned by the previous page; omit it to read the first page. Applies to List environment webhook subscriptions.
limitintegeroptionalSets the maximum number of resources returned in this page. Applies to List environment webhook subscriptions.

Responses

StatusDescriptionBody
200Response for status 200
application/json
object
  • data (required): object
  • pagination (required): object
400The request is malformed or cannot be processed.
application/json
PublicApiError
  • error (required): object
401Authentication failed. Possible reasons: - Authorization header is not provided - Invalid API key - Session expired
application/json
PublicApiError
  • error (required): object
403Access denied. The authenticated user does not have permission to perform this action.
application/json
PublicApiError
  • error (required): object
404Resource not found.
application/json
PublicApiError
  • error (required): object
422Request validation failed. Check the request body, query parameters, or path parameters.
application/json
PublicApiError
  • error (required): object
500The server could not complete the request.
application/json
PublicApiError
  • error (required): object

Create an environment webhook subscription

POST/api/v1/projects/{projectId}/environments/{environmentId}/webhooks

Parameters

path

NameTypeRequiredDescription
projectIdstringrequiredIdentifies the Project that owns the addressed resource. Applies to Create an environment webhook subscription.
environmentIdstringrequiredIdentifies the Project environment addressed by the operation. Applies to Create an environment webhook subscription.

Request body

required — Request body for: Create an environment webhook subscription.

application/json

NameTypeRequiredDescription
endpointUrlstringrequired
eventTypesarray<"operation.approval.status_changed" | "operation.invocation.status_changed" | "deployment.queued" | "deployment.validating" | "deployment.provisioning" | "deployment.materializing" | "deployment.ready" | "deployment.failed" | "deployment.canceled" | "activation.changed" | "run.created" | "run.started" | "run.completed" | "run.failed" | "run.canceled" | "run.expired" | "system_agent.published" | "system_agent.policy_changed" | "domain.entity.created" | "domain.entity.updated" | "domain.entity.transitioned" | "domain.entity.deleted">required

Responses

StatusDescriptionBody
200Response for status 200
application/json
object
  • data (required): object
400The request is malformed or cannot be processed.
application/json
PublicApiError
  • error (required): object
401Authentication failed. Possible reasons: - Authorization header is not provided - Invalid API key - Session expired
application/json
PublicApiError
  • error (required): object
403Access denied. The authenticated user does not have permission to perform this action.
application/json
PublicApiError
  • error (required): object
404Resource not found.
application/json
PublicApiError
  • error (required): object
422Request validation failed. Check the request body, query parameters, or path parameters.
application/json
PublicApiError
  • error (required): object
500The server could not complete the request.
application/json
PublicApiError
  • error (required): object

Get an environment webhook subscription

GET/api/v1/projects/{projectId}/environments/{environmentId}/webhooks/{webhookId}

Parameters

path

NameTypeRequiredDescription
projectIdstringrequiredIdentifies the Project that owns the addressed resource. Applies to Get an environment webhook subscription.
environmentIdstringrequiredIdentifies the Project environment addressed by the operation. Applies to Get an environment webhook subscription.
webhookIdstringrequiredIdentifies the Project webhook being addressed. Applies to Get an environment webhook subscription.

Responses

StatusDescriptionBody
200Response for status 200
application/json
object
  • data (required): object
400The request is malformed or cannot be processed.
application/json
PublicApiError
  • error (required): object
401Authentication failed. Possible reasons: - Authorization header is not provided - Invalid API key - Session expired
application/json
PublicApiError
  • error (required): object
403Access denied. The authenticated user does not have permission to perform this action.
application/json
PublicApiError
  • error (required): object
404Resource not found.
application/json
PublicApiError
  • error (required): object
422Request validation failed. Check the request body, query parameters, or path parameters.
application/json
PublicApiError
  • error (required): object
500The server could not complete the request.
application/json
PublicApiError
  • error (required): object

Update an environment webhook subscription

PATCH/api/v1/projects/{projectId}/environments/{environmentId}/webhooks/{webhookId}

Parameters

path

NameTypeRequiredDescription
projectIdstringrequiredIdentifies the Project that owns the addressed resource. Applies to Update an environment webhook subscription.
environmentIdstringrequiredIdentifies the Project environment addressed by the operation. Applies to Update an environment webhook subscription.
webhookIdstringrequiredIdentifies the Project webhook being addressed. Applies to Update an environment webhook subscription.

Request body

required — Request body for: Update an environment webhook subscription.

application/json

NameTypeRequiredDescription
endpointUrlstringoptional
eventTypesarray<"operation.approval.status_changed" | "operation.invocation.status_changed" | "deployment.queued" | "deployment.validating" | "deployment.provisioning" | "deployment.materializing" | "deployment.ready" | "deployment.failed" | "deployment.canceled" | "activation.changed" | "run.created" | "run.started" | "run.completed" | "run.failed" | "run.canceled" | "run.expired" | "system_agent.published" | "system_agent.policy_changed" | "domain.entity.created" | "domain.entity.updated" | "domain.entity.transitioned" | "domain.entity.deleted">optional
enabledbooleanoptional

Responses

StatusDescriptionBody
200Response for status 200
application/json
object
  • data (required): object
400The request is malformed or cannot be processed.
application/json
PublicApiError
  • error (required): object
401Authentication failed. Possible reasons: - Authorization header is not provided - Invalid API key - Session expired
application/json
PublicApiError
  • error (required): object
403Access denied. The authenticated user does not have permission to perform this action.
application/json
PublicApiError
  • error (required): object
404Resource not found.
application/json
PublicApiError
  • error (required): object
422Request validation failed. Check the request body, query parameters, or path parameters.
application/json
PublicApiError
  • error (required): object
500The server could not complete the request.
application/json
PublicApiError
  • error (required): object

Delete an environment webhook subscription

DELETE/api/v1/projects/{projectId}/environments/{environmentId}/webhooks/{webhookId}

Parameters

path

NameTypeRequiredDescription
projectIdstringrequiredIdentifies the Project that owns the addressed resource. Applies to Delete an environment webhook subscription.
environmentIdstringrequiredIdentifies the Project environment addressed by the operation. Applies to Delete an environment webhook subscription.
webhookIdstringrequiredIdentifies the Project webhook being addressed. Applies to Delete an environment webhook subscription.

Responses

StatusDescriptionBody
200Response for status 200
application/json
object
  • data (required): object
400The request is malformed or cannot be processed.
application/json
PublicApiError
  • error (required): object
401Authentication failed. Possible reasons: - Authorization header is not provided - Invalid API key - Session expired
application/json
PublicApiError
  • error (required): object
403Access denied. The authenticated user does not have permission to perform this action.
application/json
PublicApiError
  • error (required): object
404Resource not found.
application/json
PublicApiError
  • error (required): object
422Request validation failed. Check the request body, query parameters, or path parameters.
application/json
PublicApiError
  • error (required): object
500The server could not complete the request.
application/json
PublicApiError
  • error (required): object

List environment webhook deliveries

GET/api/v1/projects/{projectId}/environments/{environmentId}/webhooks/{webhookId}/deliveries

Parameters

path

NameTypeRequiredDescription
projectIdstringrequiredIdentifies the Project that owns the addressed resource. Applies to List environment webhook deliveries.
environmentIdstringrequiredIdentifies the Project environment addressed by the operation. Applies to List environment webhook deliveries.
webhookIdstringrequiredIdentifies the Project webhook being addressed. Applies to List environment webhook deliveries.

query

NameTypeRequiredDescription
cursorstringoptionalOpaque cursor returned by the previous page; omit it to read the first page. Applies to List environment webhook deliveries.
limitintegeroptionalSets the maximum number of resources returned in this page. Applies to List environment webhook deliveries.

Responses

StatusDescriptionBody
200Response for status 200
application/json
object
  • data (required): object
  • pagination (required): object
400The request is malformed or cannot be processed.
application/json
PublicApiError
  • error (required): object
401Authentication failed. Possible reasons: - Authorization header is not provided - Invalid API key - Session expired
application/json
PublicApiError
  • error (required): object
403Access denied. The authenticated user does not have permission to perform this action.
application/json
PublicApiError
  • error (required): object
404Resource not found.
application/json
PublicApiError
  • error (required): object
422Request validation failed. Check the request body, query parameters, or path parameters.
application/json
PublicApiError
  • error (required): object
500The server could not complete the request.
application/json
PublicApiError
  • error (required): object

Replay an environment webhook delivery

POST/api/v1/projects/{projectId}/environments/{environmentId}/webhooks/{webhookId}/deliveries/{deliveryId}/replays

Creates a new durable delivery for an existing, unexpired delivery using a required printable ASCII Idempotency-Key (1–64 characters). The replay is scoped to this Organization, Project, Environment, and webhook; a completed matching key returns its original result, while mismatched or in-progress keys return 409 and missing, foreign, or expired deliveries return 404. Signing secrets are never exposed.

Parameters

path

NameTypeRequiredDescription
projectIdstringrequiredIdentifies the Project that owns the addressed resource. Applies to Replay an environment webhook delivery.
environmentIdstringrequiredIdentifies the Project environment addressed by the operation. Applies to Replay an environment webhook delivery.
webhookIdstringrequiredIdentifies the Project webhook being addressed. Applies to Replay an environment webhook delivery.
deliveryIdstringrequiredIdentifies the webhook delivery being addressed. Applies to Replay an environment webhook delivery.

header

NameTypeRequiredDescription
Idempotency-Keystringrequired

Responses

StatusDescriptionBody
200Response for status 200
application/json
object
  • data (required): object
400The request is malformed or cannot be processed.
application/json
PublicApiError
  • error (required): object
401Authentication failed. Possible reasons: - Authorization header is not provided - Invalid API key - Session expired
application/json
PublicApiError
  • error (required): object
403Access denied. The authenticated user does not have permission to perform this action.
application/json
PublicApiError
  • error (required): object
404Resource not found.
application/json
PublicApiError
  • error (required): object
409Request conflicts with current state of the resource, including safe deployment conflict classifications.
application/json
PublicApiError
  • error (required): object
422Request validation failed. Check the request body, query parameters, or path parameters.
application/json
PublicApiError
  • error (required): object
500The server could not complete the request.
application/json
PublicApiError
  • error (required): object

Retry a dead environment webhook delivery

POST/api/v1/projects/{projectId}/environments/{environmentId}/webhooks/{webhookId}/deliveries/{deliveryId}/retry

Resets a dead-letter delivery to pending with a fresh attempt count of zero. Only dead-letter deliveries are eligible; pending, in-flight, retrying, and delivered deliveries return 409, while a missing or foreign delivery returns 404. No Idempotency-Key is required.

Parameters

path

NameTypeRequiredDescription
projectIdstringrequiredIdentifies the Project that owns the addressed resource. Applies to Retry a dead environment webhook delivery.
environmentIdstringrequiredIdentifies the Project environment addressed by the operation. Applies to Retry a dead environment webhook delivery.
webhookIdstringrequiredIdentifies the Project webhook being addressed. Applies to Retry a dead environment webhook delivery.
deliveryIdstringrequiredIdentifies the webhook delivery being addressed. Applies to Retry a dead environment webhook delivery.

Responses

StatusDescriptionBody
200Response for status 200
application/json
object
  • data (required): object
400The request is malformed or cannot be processed.
application/json
PublicApiError
  • error (required): object
401Authentication failed. Possible reasons: - Authorization header is not provided - Invalid API key - Session expired
application/json
PublicApiError
  • error (required): object
403Access denied. The authenticated user does not have permission to perform this action.
application/json
PublicApiError
  • error (required): object
404Resource not found.
application/json
PublicApiError
  • error (required): object
409Request conflicts with current state of the resource, including safe deployment conflict classifications.
application/json
PublicApiError
  • error (required): object
422Request validation failed. Check the request body, query parameters, or path parameters.
application/json
PublicApiError
  • error (required): object
500The server could not complete the request.
application/json
PublicApiError
  • error (required): object

Rotate an environment webhook secret

POST/api/v1/projects/{projectId}/environments/{environmentId}/webhooks/{webhookId}/secrets

Parameters

path

NameTypeRequiredDescription
projectIdstringrequiredIdentifies the Project that owns the addressed resource. Applies to Rotate an environment webhook secret.
environmentIdstringrequiredIdentifies the Project environment addressed by the operation. Applies to Rotate an environment webhook secret.
webhookIdstringrequiredIdentifies the Project webhook being addressed. Applies to Rotate an environment webhook secret.

Responses

StatusDescriptionBody
200Response for status 200
application/json
object
  • data (required): object
400The request is malformed or cannot be processed.
application/json
PublicApiError
  • error (required): object
401Authentication failed. Possible reasons: - Authorization header is not provided - Invalid API key - Session expired
application/json
PublicApiError
  • error (required): object
403Access denied. The authenticated user does not have permission to perform this action.
application/json
PublicApiError
  • error (required): object
404Resource not found.
application/json
PublicApiError
  • error (required): object
422Request validation failed. Check the request body, query parameters, or path parameters.
application/json
PublicApiError
  • error (required): object
500The server could not complete the request.
application/json
PublicApiError
  • error (required): object