Skip to main content
POST
Create a webhook subscription

Authorizations

X-API-Key
string
header
required

Your workspace public key (pk_test_… or pk_live_…).

X-HMAC-Signature
string
header
required

HMAC-SHA256, hex-encoded, keyed with a workspace secret key, of "{X-Timestamp}." followed by the canonical request (or of the canonical request alone, accepted for workspaces that do not require X-Timestamp). See API authentication.

X-Timestamp
string
header
required

Current Unix time in seconds, signed as "{X-Timestamp}." + the canonical request. Recommended on every signed request and required when the workspace requires it; accepted within 300 seconds of the server clock, and a timestamped request other than GET is accepted once.

Headers

Idempotency-Key
string

Optional, up to 255 printable ASCII characters (a UUID is a good choice). A retry with the same key and the same request within 24 hours returns the first response, with the header Idempotent-Replayed: true, instead of creating a second resource. 5xx responses are not kept.

Body

application/json
url
string<uri>
required

Where ProofAge POSTs the decision webhooks, signed like the workspace webhook. It must be a public URL: private, local and cloud-metadata addresses are refused.

Maximum string length: 2048
statuses
enum<string>[] | null

Only send these statuses: approved, declined, resubmission_requested, review, abandoned, expired. Omit it, or send null, for all of them.

Available options:
approved,
declined,
resubmission_requested,
abandoned,
expired,
review
include_document_data
boolean
default:false

Include the document read from the identity document (names, date of birth, document number), the fingerprint signals (IP address, timezones) and the name and email of the operator who moderated. Off by default, so personal data stays out of the subscriber's logs.

Response

The subscription. statuses is null when it receives every decision status.

id
string
required
url
string
required
statuses
string[] | null
required
include_document_data
boolean
required
created_at
string
required