Webhook payload reference
Structure and fields of the HTTP POST payload Harness sends to your webhook endpoint when an artifact event fires, including signature verification.
When a webhook fires, Harness sends an HTTP POST request to the configured payload URL. The request body is a JSON object describing the event, the artifact involved, and the registry context.
Request headers
Every webhook delivery includes the following HTTP headers:
Content-Type
application/json
X-Harness-Event
The event type: artifact.created or artifact.deleted
X-Harness-Delivery
A unique UUID for this delivery attempt
X-Hub-Signature-256
HMAC-SHA256 signature of the payload body, prefixed with sha256=. Present only when a secret is configured on the webhook.
Any custom headers you added when creating the webhook are also included.
Signature verification
When you configure a webhook secret, Harness signs the raw request body using HMAC-SHA256 with your secret as the key. The signature is sent in the X-Hub-Signature-256 header.
To verify the signature on your server:
Compute
HMAC-SHA256(secret, raw_request_body).Compare the result (hex-encoded, prefixed with
sha256=) to the value inX-Hub-Signature-256.Reject the request if the values do not match.
Use a constant-time string comparison to prevent timing attacks.
Payload structure
Field reference
Top-level fields
event
string
The event type. One of: artifact.created, artifact.deleted.
deliveryId
string
A UUID that uniquely identifies this delivery attempt. Use it to deduplicate retries.
timestamp
string
ISO 8601 UTC timestamp of when the event was generated.
account, org, project
id
string
The Harness identifier for the account, organization, or project scope where the registry lives.
registry
name
string
The registry name as shown in the Harness UI.
type
string
The registry format in uppercase: DOCKER, MAVEN, NPM, PYTHON, HELM_OCI, and so on.
artifact
name
string
The artifact name within the registry.
version
string
The version identifier: a tag for most formats, or a digest for Docker and OCI images when the version has no tag.
digest
string
The content-addressable digest of the artifact. For Docker and OCI images, this is the manifest digest (sha256:…). For other formats, this is a checksum of the artifact content.
size
integer
The size of the artifact in bytes.
format
string
The artifact format. Matches registry.type.
labels
object
Key-value labels attached to the artifact, if any.
metadata
object
Custom metadata key-value pairs attached to the artifact version, if any.
trigger
type
string
How the event was produced. push for a direct client push; upstream_cache for an artifact fetched through an upstream proxy; delete for a manual or lifecycle-rule deletion.
actor
string
The email address or service account identifier of the user or automation that triggered the event.
Artifact Creation payload example
Artifact Deletion payload example
Delivery retries
Harness retries failed webhook deliveries when your endpoint returns a non-2xx HTTP status or does not respond within the timeout. Retries use an exponential backoff schedule. Use the deliveryId field to identify and deduplicate retried deliveries on your endpoint.
Next steps
Last updated
Was this helpful?