Skip to content

Certificate API

One API for the TLS certificate lifecycle.

A normalized REST API for issuing, validating, downloading, renewing and revoking DV certificates — with order state, signed webhooks and organization-scoped keys. An API alone is not the product; the lifecycle around it is.

Build this in 5 minutes

  1. Create an account at /register. An organization is created for you.
  2. Mint a key — POST /api/v1/api-keys. Store the plaintext. It is shown once. Scope certificates:write.
  3. Request a certificate — POST /api/v1/certificates with a name you control. Test mode returns an official Let’s Encrypt Staging leaf after validation.
  4. Read the order — GET /api/v1/certificate-orders/{id} for challenge rows.
  5. Hook your app — POST /api/v1/webhooks then POST /webhooks/{id}/test. Verify HMAC before you trust the body.

This page proves the developer experience. The broader platform (OpenAPI, SDKs, errors, rate limits) lives on Developer platform. The operating manual is Developers solution.

API request to webhook sequence POST certificates returns 202 with an order. Validate moves the order. Issued emits a signed webhook. X-Request-Id correlates the HTTP call. POST /certificates 202 order + challenges GET /certificate-orders/{id} tokens + TXT/HTTP POST …/validate order status webhook issued HMAC + event id Every response includes X-Request-Id

Certificate creation

curl https://sslcertificates.io/api/v1/certificates \
  -H "Authorization: Bearer $SSL_CERTIFICATES_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: demo-issue-1" \
  -d '{"domains":["example.com"],"validation":"dns-01","auto_renew":true}'

HTTP 202. Body includes order_id, status, optional certificate_id (Test) and challenges[] with record_name / record_value or HTTP token. Optional fields from the live controller: provider, key_mode (platform_generated | customer_csr), csr_pem, idempotency_key.

Order state and validation

curl https://sslcertificates.io/api/v1/certificate-orders/$ORDER_ID \
  -H "Authorization: Bearer $SSL_CERTIFICATES_API_KEY"

curl https://sslcertificates.io/api/v1/certificate-orders/$ORDER_ID/validate \
  -X POST \
  -H "Authorization: Bearer $SSL_CERTIFICATES_API_KEY"

Call validate after you published records. Test and Live both wait for the challenge to exist in DNS or on port 80. The environment is taken from the API key, not from a JSON override.

Download, renew, revoke

curl https://sslcertificates.io/api/v1/certificates/$CERT_ID/download \
  -H "Authorization: Bearer $SSL_CERTIFICATES_API_KEY"

curl https://sslcertificates.io/api/v1/certificates/$CERT_ID/renew \
  -X POST \
  -H "Authorization: Bearer $SSL_CERTIFICATES_API_KEY"

curl https://sslcertificates.io/api/v1/certificates/$CERT_ID/revoke \
  -X POST \
  -H "Authorization: Bearer $SSL_CERTIFICATES_API_KEY"

Private key is included on download only for platform-generated keys, and that download is audited. Revoke requires certificates:revoke. Already-revoked leaves return certificate_already_revoked.

Webhook

curl https://sslcertificates.io/api/v1/webhooks \
  -H "Authorization: Bearer $SSL_CERTIFICATES_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://app.example.com/hooks/sslcertificates"}'

Events that actually fire: certificate.order.created, certificate.validation_required, certificate.issued, certificate.renewed, certificate.renewal_failed, certificate.revoked. See Webhooks for the payload and HMAC.

Provider abstraction, async, idempotency, keys, request IDs, test mode, errors

Related Solutions and Integrations

Solutions this product surface is built for:

Customer-facing integrations to open next:

Questions people actually ask

What is the first call I make?

Create a Test API key, then POST /api/v1/certificates with a domains array and validation dns-01 or http-01. The response is 202 with order_id, challenges and environment: test.

How do I know the order finished?

GET /certificate-orders/{id} or subscribe to certificate.issued. Do not busy-loop validate from a browser tab. Use X-Request-Id to correlate support.

How do scoped API keys work?

Keys belong to an organization. Abilities include domains:read/write, certificates:read/write/revoke, webhooks:read/write and integrations:read/write. Missing scopes return 403 insufficient_scope. The plaintext token is shown once.

What does test mode mean?

Test is the default customer environment. It runs a real ACME workflow against official Let’s Encrypt Staging. Certificates are not publicly trusted. Live uses Let’s Encrypt Production with separate credentials, inventory and rate limits.

Which SDKs exist?

Official PHP, TypeScript, Python and Go clients generated from the OpenAPI document. They send Authorization: Bearer and optional X-Organization-Id.

How do I revoke?

POST /api/v1/certificates/{id}/revoke with certificates:revoke. The certificate is marked revoked, an audit event is written, and certificate.revoked is dispatched. Already-revoked certificates return certificate_already_revoked.

Where is the authoritative contract?

/openapi.yaml and /openapi.json. Documentation pages describe those paths; they do not invent extra ones.

How is this different from ZeroSSL’s REST+ACME?

An API alone is not the product. This platform adds organization inventory, custom hostnames, signed webhooks, optional deploy-and-verify, and provider-neutral delivery. You can still connect a ZeroSSL account as a CA.

Issue a Test certificate in one sitting.

The request shape does not change when you later enable staging ACME.

Start free Open the API reference

Sources