Skip to main content
POST
Create webhook subscription

Authorizations

Authorization
string
header
required

A workspace API key.

Headers

idempotency-key
string
required

Required stable id for this logical write; reuse it after a timeout. Upload endpoints also require the same value in body.idempotencyKey.

Required string length: 1 - 255

Body

application/json
url
string<uri>
required

Public HTTPS callback endpoint.

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

Subscribed event set; only matching events are delivered.

Required array length: 1 - 8 elements
Available options:
job.awaiting_approval,
job.progressed,
job.completed,
job.failed,
job.cancelled,
artifact.ready,
publish.completed,
publish.failed
secret
string
required

Customer-owned HMAC secret. Encrypted at rest and never returned.

Required string length: 32 - 512

Callbacks

POST
{$request.body#/url}automationEvent

Body

application/json
schemaVersion
string
required
Allowed value: "automation-event.v1"
eventId
string
required
Pattern: ^awe_[a-f0-9]{48}$
event
enum<string>
required
Available options:
job.awaiting_approval,
job.progressed,
job.completed,
job.failed,
job.cancelled,
artifact.ready,
publish.completed,
publish.failed
occurredAt
string<date-time>
required
workspaceId
string
required
data
object
required

Response

2XX

Acknowledged; the delivery receipt may be removed.

Response

Success.

success
boolean
required
subscription
object
required
{key}
any