Skip to main content
WEBHOOK

Headers

X-Pierre-Event
enum<string>
required

The event type for this delivery.

Available options:
push
X-Pierre-Signature
string
required

Signature in the form t=<unix_timestamp>,sha256=<hex_signature>. Verify HMAC-SHA256 with the subscription secret over the timestamp, a period, and the raw request body. Check the timestamp to reject old deliveries.

Body

application/json

The push event payload.

A Git ref update. The X-Pierre-Event header identifies this payload as push; the body has no type field.

after
string
required

The new commit SHA. All zeros for a deleted ref.

before
string
required

The previous commit SHA. All zeros for a newly created ref.

customer_id
string
required

The customer ID that owns the repository.

pushed_at
string<date-time>
required

When the push occurred, as an RFC 3339 timestamp.

ref
string
required

The full Git ref name, for example refs/heads/main.

repository
object
required

The repository that produced the event.

Response

2XX

The receiver accepted the delivery. Return any 2xx status to acknowledge it.