Skip to content

API reference

Base URL: https://sslcertificates.io/api/v1. Authenticate with a bearer token. All resources are organization-scoped. Machine-readable spec: OpenAPI 3 JSON.

MethodPathScopePurpose
GET /domains domains:read List domains
POST /domains domains:write Create a domain
GET /domains/{id} domains:read Show a domain
PATCH /domains/{id} domains:write Update tags/status
DELETE /domains/{id} domains:write Delete a domain
GET /certificates certificates:read List certificates
POST /certificates certificates:write Request issuance
GET /certificates/{id} certificates:read Certificate detail
GET /certificates/{id}/download certificates:read Download PEM
POST /certificates/{id}/renew certificates:write Force renewal
POST /certificates/{id}/revoke certificates:revoke Revoke
GET /certificate-orders certificates:read List orders
GET /certificate-orders/{id} certificates:read Order status
POST /certificate-orders/{id}/validate certificates:write Complete validation
GET /api-keys session List keys
POST /api-keys session Create key (plaintext once)
DELETE /api-keys/{id} session Revoke key
GET /webhooks webhooks:read List endpoints
POST /webhooks webhooks:write Create endpoint
POST /webhooks/{id}/test webhooks:write Send test event
GET /integrations/dns integrations:read List DNS integrations
POST /integrations/dns integrations:write Store DNS credentials
GET /custom-hostnames domains:read List SaaS custom hostnames
POST /custom-hostnames domains:write Create a custom hostname
GET /custom-hostnames/{id} domains:read Show a custom hostname
DELETE /custom-hostnames/{id} domains:write Delete a custom hostname

Auth, idempotency and rate limits

Send Authorization: Bearer and optional X-Organization-Id. POST issuance accepts Idempotency-Key. A replay with a different body returns idempotency_conflict. Per-plan request limits apply; CA limits return ca_rate_limited.

curl

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

PHP

$response = Http::withToken(getenv('SSL_CERTIFICATES_API_KEY'))
    ->withHeaders(['Idempotency-Key' => 'order-1'])
    ->post('https://sslcertificates.io/api/v1/certificates', [
        'domains' => ['example.com'],
        'validation' => 'dns-01',
    ]);

TypeScript

await fetch('https://sslcertificates.io/api/v1/certificates', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.SSL_CERTIFICATES_API_KEY}`,
    'Content-Type': 'application/json',
    'Idempotency-Key': 'order-1',
  },
  body: JSON.stringify({ domains: ['example.com'], validation: 'dns-01' }),
});

Python

import os, requests
requests.post(
    "https://sslcertificates.io/api/v1/certificates",
    headers={
        "Authorization": f"Bearer {os.environ['SSL_CERTIFICATES_API_KEY']}",
        "Idempotency-Key": "order-1",
    },
    json={"domains": ["example.com"], "validation": "dns-01"},
)

Go

req, _ := http.NewRequest("POST", "https://sslcertificates.io/api/v1/certificates",
    strings.NewReader(`{"domains":["example.com"],"validation":"dns-01"}`))
req.Header.Set("Authorization", "Bearer " + os.Getenv("SSL_CERTIFICATES_API_KEY"))
req.Header.Set("Idempotency-Key", "order-1")

Expected response: HTTP 202 with order_id, environment, and challenges. Let’s Encrypt Staging and Production stay pending until challenges complete. Machine contract: /openapi.json.

Error codes · Authentication · SDKs