Two kinds of webhooks
Conto has two webhook systems. This page covers event webhooks.
Both sign with HMAC-SHA256 and send
X-Conto-Signature, but they sign different input, so each needs its own verifier.
Test a local handler
With the Conto CLI installed, use the same development signing secret in your handler and terminal:payment.confirmed event with data.test: true and a test_
payment ID. From CLI 0.9.0, it carries the same signature and delivery headers as a real delivery,
so a handler that checks either signature accepts it. It reports the HTTP status and latency,
creates no Conto payment, and requires no API key.
The command accepts only loopback URLs and does not follow redirects. It tests your handler’s
signature and payload processing, not whether hosted delivery can reach your endpoint.
If you installed the package globally, conto webhooks test <url> runs the same command.
Setup
A signed-in Owner sets this up. Admins can view it.- Go to Developers > Webhooks > All events.
- Enter your HTTPS endpoint URL and select Save.
- Copy the signing secret. It is shown once, when Conto creates it. Your handler uses it to verify payloads. If your organization already has a secret, such as one created when an agent callback URL was set, no secret is shown here. Select Regenerate to get a new one, then update every receiver that verifies Conto webhooks or agent callbacks.
Event types
Stopping all agent spending sends no
agent.frozen
or agent.unfrozen events. It raises one alert for the organization.
Alerts are not sent to this webhook. To receive HIGH and CRITICAL alerts off the dashboard,
subscribe a webhook notification channel to
alert.raised.
Governance events for SIEM and GRC
policy.*, approval.*, and governance.approval.decided stream policy and approval-decision
activity to your webhook for your own audit trail. Payloads differ by event family:
- Policy events (
policy.created/updated/deleted) carrypolicyId,name, andpolicyType, never the underlying rule values.policy.createdalso includesscope,priority,isActive, andrulesCount.policy.updatedincludesisActive. - Approval events (
approval.approved/approval.denied) carryapprovalRequestId,paymentRequestId,amount, anddecision(APPROVEDorDENIED). Agent callback deliveries addagentId. governance.approval.decided(separation-of-duties decisions on sensitive changes) carriesgovernanceApprovalRequestId,action,resource,resourceId, anddecision.
Payload format
Every webhook POST includes these headers and a JSON body:Headers
Body
organizationId to data. Agent callback deliveries add
agentId instead.
Verifying signatures
X-Conto-Signature is a hex HMAC-SHA256 of the raw request body, keyed with your signing secret.
Notification-channel webhooks sign different input. See two kinds of webhooks.
Recommended: verify the v2 signature
X-Conto-Signature-V2 signs ${X-Conto-Timestamp}.${rawBody} with the same secret. Because it covers
the timestamp, you can reject old deliveries, so a captured request cannot be replayed later. Conto
sends both headers on every delivery, so you can switch verifiers at any time.
X-Conto-Timestamp, and all three attempts finish
within about 35 seconds. Pair the timestamp check with X-Conto-Delivery-Id to drop a delivery you already handled.
Retry behavior
Each delivery gets up to 3 attempts in total. An attempt fails if your endpoint returns a non-2xx status or doesn’t respond within 10 seconds. Conto retries only failures that can succeed on replay: a network error, a timeout, or an HTTP408,
429, or 5xx response. Any other status (for example 400, 401, or 404) ends the delivery
after that attempt.
Agent callback URLs
An agent can also have its owncallbackUrl, set with POST /api/agents and changed or cleared
with PATCH /api/agents/{id}. Events for that agent then go to both the organization URL and the
callback URL, with the same payload format and signature headers. Policy and governance events go
only to the organization webhook.
Agent callbacks are signed with the same organization signing secret as the organization webhook.
When an Owner, signed in, first configures a callback URL or an organization webhook URL, the
response includes webhookSecret once. Store it to verify the X-Conto-Signature on callback
deliveries. Any other caller, such as an API key, an agent key or an agent registering itself, gets
webhookSecretSet: true instead, because the secret can sign every event the organization sends.
To get it, an Owner selects Regenerate in Developers > Webhooks > All events and
updates every receiver. Regenerate works with or without an organization webhook URL. Removing the
organization URL keeps the secret, so agent callbacks keep verifying.
Authenticated agent reads return webhookConfigured and the configured callbackUrl. Responses
replace query and fragment values with REDACTED because callback URLs commonly carry credentials.
Send the full URL again when rotating those values.
Settlement mode in payment events
Thepayment.executed payload includes settlementMode: test for simulated execution or live for an onchain transfer, including testnet. Simulated events omit transactionHash, so use the payment ID to read status. A payment.confirmed event represents onchain confirmation and reports live. Do not treat a simulated execution event as proof that funds moved.
Accounting settlement events
spend.settled goes to the organization’s All events endpoint. Its data contains the
same fields as an accounting export row, plus organizationId.
Amounts remain decimal strings. Use data.id as the payment identifier and the delivery ID
to deduplicate retries. Agent callback URLs do not receive this event because the row includes
organization accounting details.
The event is queued in the transaction that records settlement and delivered asynchronously.
The row, category, owner and team are read when delivery starts, then kept unchanged for retries.
A later export can reflect subsequent accounting changes. A row that is no longer completed
when delivery starts does not emit a settlement event. This event does not report refunds or
later adjustments to an already-settled payment. Reconcile those through the export.
Coverage includes managed wallet confirmations, internal wallet transfers, agent-to-agent simulations,
verified x402 and MPP records, recovered signed x402 settlements,
issuer card settlement, and paid checkout outcomes. A simulated payment still has no real
settlement. A reported checkout is the recorded outcome, not independent issuer verification.
Pending MPP records, card authorizations, issued credentials, and unknown checkout outcomes
do not emit it. Delivery uses the existing signed webhook mechanism and durable outbox.