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
- Create an account at /register. An organization is created for you.
- Mint a key —
POST /api/v1/api-keys. Store the plaintext. It is shown once. Scopecertificates:write. - Request a certificate —
POST /api/v1/certificateswith a name you control. Test mode returns an official Let’s Encrypt Staging leaf after validation. - Read the order —
GET /api/v1/certificate-orders/{id}for challenge rows. - Hook your app —
POST /api/v1/webhooksthenPOST /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.
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
- Provider abstraction. Your app talks to sslcertificates.io. Optional
providerselects a connected CA at order time. Defaultautouses the platform driver. - Async lifecycle. Issuance is an order. ACME waits for challenges in both Test and Live.
- Idempotency. Header
Idempotency-Keyor bodyidempotency_key. Conflicts returnidempotency_conflict. - Scoped API keys. Organization-scoped bearer tokens with abilities. Shown once.
insufficient_scopeon 403. - Request IDs.
X-Request-Idon every response (ULID, or the value you sent). - Test mode. Default environment is Test (Let’s Encrypt Staging). Staging/production ACME is configuration, not a second incompatible API.
- Stable errors.
wildcard_requires_dns,domain_not_verified,ca_rate_limited,quota_exceededand the rest on /docs/errors. - OpenAPI. /openapi.yaml is authoritative. These examples were checked against
routes/api.phpand that document — no invented paths. - SDKs. PHP
composer require sslcertificates/sdk, TypeScriptnpm install @sslcertificates/sdk, Pythonpip install sslcertificates, Gogo get github.com/sslcertificates-io/sdk-go.
| id | 01JDEMOCERT0000000001 |
|---|---|
| status | active |
| auto_renew | true |
| next_renewal_at | 2026-10-20 |
| last request | X-Request-Id: 01JDEMOREQUESTID0001 |
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.