Overview

ASX Energy webhooks send market events to a configured HTTPS endpoint as POST requests. Current event types include custom market trades, RFQs, and options order updates.

Endpoints and event subscriptions are managed at Account → Webhooks. HMAC authentication is recommended; see Authentication.


Getting started

  1. Open Account → Webhooks and select Create.
  2. Enter an HTTPS URL, a display name, an authentication mode, and select one or more events.
  3. Select Test Webhook. The endpoint must return an HTTP 2xx status.
  4. Select Create. Creation remains unavailable until a successful test. Re-test is required if the URL or authentication credentials change.

See Test payload for the validation request format.


Request Structure

POST https://your-server.example/hooks/asx

Headers

Name Mandatory Description
Content-Type YES Always application/json
User-Agent YES ASXEnergy-Webhooks/<webhook-version>
X-Webhook-Timestamp YES Unix time in milliseconds; matches JSON timestamp
X-Webhook-Event-Id YES Idempotency identifier for each webhook event; matches JSON id
Format: wh_{uuid}
X-Webhook-Signature NO HMAC-SHA256 hex digest when authentication mode is hmac
{your custom header} NO Configured header name and value when authentication mode is token

Request body

Name Type Mandatory Description
type enum YES Event slug. See Events
data object YES Event payload; shape depends on type
See Custom market and RFQ and Options Orders
timestamp long YES Unix time in milliseconds; same value as X-Webhook-Timestamp
id string YES Same value as X-Webhook-Event-Id. Format: wh_{uuid}

Example:

{
  "type": "custom-au-electricity",
  "data": {},
  "timestamp": 1730000000000,
  "id": "wh_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Events

Slug Description
custom-au-electricity AU Electricity custom market (block trades & EFPs)
custom-nz-electricity NZ Electricity custom market (block trades & EFPs)
custom-environmental Environmental custom market (block trades & EFPs)
rfq-au AU Electricity RFQs
rfq-nz NZ Electricity RFQs
rfq-environmental Environmental RFQs
options-orders AU Electricity options order updates

Payload details: Custom market and RFQ, Options Orders.


Test payload

Sent when Test Webhook is selected in the account interface.

POST https://your-server.example/hooks/asx

Request body:

Name Type Mandatory Description
type enum YES Always webhook-check
data object YES Empty object {}
timestamp long YES Unix time in milliseconds
id string YES Format: wh_{uuid}

Example:

{
  "type": "webhook-check",
  "data": {}, // Always empty for test deliveries
  "timestamp": 1730000000000,
  "id": "wh_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Retries and failures

  • Return HTTP 2xx promptly after the event has been accepted.
  • Client errors are not retried. Temporary failures may be retried.
  • Repeated failures may disable the webhook. An email notification is sent when this occurs. Re-test and save the webhook to reactivate it.
  • Use the payload id for idempotency. Retries reuse the same id.

Limits

Rule Detail
Max webhooks 10 per account
Test rate 10 tests per 3 hours
Register rate 5 registrations per 3 hours

More

Authentication
Authentication modes and signature verification.

Custom market and RFQ
Payloads for block trades, EFPs, and RFQ messages.

Options Orders
Payloads for AU electricity options order updates.