Skip to main content
POST
/
v1
/
webhooks
/
subscriptions
/
{subscription_id}
/
test
Send a signed test webhook
curl --request POST \
  --url https://sandbox.api.byzantine.fi/v1/webhooks/subscriptions/{subscription_id}/test \
  --header 'X-Pubkey: <x-pubkey>' \
  --header 'X-Pubkey, X-Timestamp, X-Signature: <api-key>' \
  --header 'X-Signature: <x-signature>' \
  --header 'X-Timestamp: <x-timestamp>'
{
  "event": {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "eventType": "<string>",
    "sourceType": "<string>",
    "sourceId": "<string>",
    "payload": "<unknown>",
    "payloadVersion": 123,
    "sourceTransitionMetadata": "<unknown>",
    "createdAt": "2023-11-07T05:31:56Z"
  },
  "delivery": {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "subscriptionId": "550e8400-e29b-41d4-a716-446655440000",
    "eventId": "550e8400-e29b-41d4-a716-446655440000",
    "status": "pending",
    "attemptCount": 123,
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "nextAttemptAt": "2023-11-07T05:31:56Z",
    "terminalReason": "<string>",
    "lastResponseSummary": null
  },
  "attempt": {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "deliveryId": "550e8400-e29b-41d4-a716-446655440000",
    "attemptNumber": 123,
    "outcome": "succeeded",
    "signedAt": "2023-11-07T05:31:56Z",
    "signedTimestamp": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "signingKeyId": "550e8400-e29b-41d4-a716-446655440000",
    "statusCode": 123,
    "error": "<string>",
    "latencyMs": 123,
    "responseSummary": null,
    "actor": "<string>"
  }
}

Authorizations

X-Pubkey, X-Timestamp, X-Signature
string
header
required

Headers

X-Pubkey
string
required

Integrator's ECDSA public key (P-256 curve, compressed SEC1 format). Example: 0x038fedef7c12f93bbf342ad8943b7a825a3b41f61c9dc118b2c718efebabbf62fd

X-Timestamp
string
required

Unix timestamp in seconds (UTC). Must be within tolerance window (1 minute) to prevent replay attacks. Example: 1760375826

X-Signature
string
required

ECDSA signature (DER-encoded, hex with 0x prefix). Signs the message: {timestamp}{METHOD}{path_and_query}{json_body}. Example: 0x3045022100...

Response

Signed test webhook delivery attempted

event
object
required
delivery
object
required
attempt
object