Skip to main content
POST
Create webhook endpoint
Required permission: environment.edit

Authorizations

Authorization
string
header
required

The Bearer Token generated on the Cloud UI.

Headers

Idempotency-Key
string

A unique value, such as a UUID, that identifies this operation. When you send the same request again with the same key, Laravel Cloud returns the first successful response from the last 24 hours instead of performing the action again. See Idempotent requests.

Required string length: 1 - 255

Path Parameters

environment
string
required

The environment identifier

Body

application/json
url
string
required

The HTTPS endpoint that receives the events. It must resolve to a public address.

Maximum string length: 2048
events
enum<string>[]
required

The deployment events to send.

Minimum array length: 1
Available options:
deployment.live,
deployment.succeeded,
deployment.failed,
deployment.post_deploy_failed
enabled
boolean

Whether Cloud sends events to the webhook. Defaults to true.

Response

WebhookEndpointResource

data
WebhookEndpointResource · object
required
included
(JsonApiResource · object | WebhookEndpointResource · object | EnvironmentResource · object)[]