API and MCP

SSL events — webhook and feed for integrations

How an integration learns about the next subscription certificate, domain validation, issuance and failures: a signed webhook and the GET /v1/ssl/events feed.

A ZRAZU subscription certificate is renewed in pieces: when the time comes, we issue the next certificate, and it has to be installed on the server. So that your integration does not poll every certificate, ZRAZU reports each step itself. There are two ways: a webhook — we send the event to your server, and the feed GET /v1/ssl/events — your script picks up what is new when convenient. The events are the same in both; use either one or both.

Events

EventWhenWhat is in data
ssl.chunk_duethe next subscription certificate is coming upby: zrazu — we issue it ourselves, client — your new key and CSR are needed (POST /v1/ssl/certificates/{id}/piece); current_until — until when the current one is valid
ssl.dcv_requiredthe next certificate will not be issued without the domain validation recordnames — names without the record, current_until; the record itself is in GET /v1/ssl/certificates/{id}/status
ssl.issueda new version is issued: the first certificate, a reissue or the next piecenot_after — until when it is valid, piece — true for a subscription piece
ssl.failedthe certificate authority refused or the order was closedheld — true if the paid order was handed to the ZRAZU team: it will refund the money or resubmit
ssl.autopilot_silenta new certificate exists, but the server has not installed itvia: pull — the server did not fetch it by the link, acme — certbot did not renew; current_until — until when the one on the server is valid

Every event also has:

  • id — the permanent event number; use it to tell repeats apart;
  • seq — the sequence number in the organization's feed;
  • type — the event name from the table;
  • at — when it happened;
  • certificate_id — the subscription certificate, the same id as in GET /v1/ssl/certificates/{id};
  • version_id — the version the event is about. For ssl.issued it is the new certificate: files — GET /v1/ssl/certificates/{version_id}/pem;
  • domain — the main name of the certificate.

New events may appear later. Simply skip the ones your code does not know.

Webhook

The webhook is connected in the cabinet on the “Notifications” page, see notifications and alerts. The same webhook receives monitoring alerts and API order events. Nothing has to be switched on separately for SSL.

ZRAZU sends a POST with JSON:

{
  "event": "ssl.issued",
  "subject": "SSL kava.com.ua: сертифікат випущено",
  "text": "SSL kava.com.ua: сертифікат випущено",
  "sent_at": "2026-11-25T18:04:11+00:00",
  "data": {
    "event_id": "EVENT_ID", "id": "EVENT_ID", "seq": 42, "type": "ssl.issued",
    "at": "2026-11-25T18:04:09+00:00",
    "certificate_id": "CERTIFICATE_ID", "version_id": "VERSION_ID", "domain": "kava.com.ua",
    "data": {"not_after": "2027-03-01T23:59:59+00:00", "piece": true}
  }
}
  • The request is signed with the X-Zrazu-Signature: sha256=<hex> header: an HMAC-SHA256 of the string <X-Zrazu-Timestamp>.<request body> with the webhook signing secret. Check the signature before trusting the body, and reject requests with an old timestamp.
  • A 2xx response means the event is delivered. Any other response or silence — ZRAZU retries with a pause that grows up to an hour and keeps trying for up to three days. So an event may arrive twice: tell repeats apart by event_id.
  • The subject and text fields are for people (Slack and similar tools show them) and are in Ukrainian; machines should read event and data.
  • Delivery order is not guaranteed. If you need order, look at seq or reread the feed.
  • Webhook categories mute events like this: “Terms” — ssl.chunk_due and ssl.dcv_required, “Changes and plans” — ssl.issued, “Health” — ssl.failed and ssl.autopilot_silent. A muted event does not go to the webhook but stays in the feed.

The GET /v1/ssl/events feed

You need a key with the ssl.read right. A key for some of the domains sees only the events of its domains.

curl "https://api.zrazu.com/v1/ssl/events?after=0&limit=100" \
  -H "Authorization: Bearer zr_live_..."
{"data": [{"id": "EVENT_ID", "seq": 42, "type": "ssl.issued", "at": "2026-11-25T18:04:09+00:00",
           "certificate_id": "CERTIFICATE_ID", "version_id": "VERSION_ID", "domain": "kava.com.ua",
           "data": {"not_after": "2027-03-01T23:59:59+00:00", "piece": true}}],
 "next": 42}
  • after — the last seq you have already processed (0 at first); limit — from 1 to 100.
  • next — what to pass in after next time. An empty data means nothing new, and next stays the same.
  • Save next on your side after processing a page: then after a failure the script continues from the same place and misses nothing.
  • An event appears in the feed a minute or two after it happens. The feed keeps events for 30 days.
  • Polling more often than once a minute makes no sense. For cron, once every 5–15 minutes is plenty.

For AI agents

Through MCP with a key the same feed is the ssl_events tool with the same after and limit. The agent remembers next and on the next step asks only for what is new. A typical cycle:

  1. ssl.chunk_due with by: client — the agent prepares a new key and CSR on the server and calls ssl_next_piece.
  2. ssl.dcv_required — the agent takes the record from ssl_status and adds it to the zone.
  3. ssl.issued — the agent fetches the files with ssl_pem by version_id and installs the certificate on the server.
  4. ssl.autopilot_silent or ssl.failed — the agent tells a person: a decision is needed here.

This page in Markdown