Conventions
Base URLs
Section titled “Base URLs”| Environment | Base URL |
|---|---|
| Live | https://api.pki.solar-on.org |
| Sandbox | https://api.pki-dev.solar-on.org |
All paths start with /v1. HTTPS (TLS 1.2 or later) and a client certificate are required.
Authentication
Section titled “Authentication”Send the Authorization: Bearer slzp_… header and the client certificate bound to that key (mTLS). See API keys and client certificates.
Formats
Section titled “Formats”- Requests and responses are JSON (
Content-Type: application/json) with camelCase names. - Times are ISO 8601 in UTC (
2026-12-01T09:00:00.000Z). - Certificate serials are lower-case hex.
- Only chains (
/chain) are returned asapplication/pem-certificate-chaintext. - Request bodies can be up to 2 MB.
Lists and pagination
Section titled “Lists and pagination”List endpoints return { "data": [...], "nextCursor": "…" }. For the next page, pass nextCursor as ?cursor=. On the last page nextCursor is null. limit is 1–1000 (default 100).
pki "$PKI_API/v1/devices?limit=500"pki "$PKI_API/v1/devices?limit=500&cursor=$NEXT"Idempotency-Key
Section titled “Idempotency-Key”Write endpoints (register, issue, batch, renew, revoke) accept an Idempotency-Key header (up to 255 characters, usually a UUID). If a network error hides the response, resend with the same key and the same body: you get the original response with an Idempotent-Replayed: true header, and nothing is done twice.
| Case | Response |
|---|---|
| Same key, same request | The original response (kept for 24 hours) |
| Same key, different request | 422 IDEMPOTENCY_KEY_REUSED |
| The original request is still running | 409 IDEMPOTENCY_IN_PROGRESS |
| The original request failed | Not kept. Resending processes it again |
Rate limit
Section titled “Rate limit”600 calls per minute per key. Beyond that you get 429 RATE_LIMITED with Retry-After (seconds). Retry after that time.
Errors
Section titled “Errors”All errors look the same.
{ "statusCode": 409, "code": "CERTIFICATE_EXISTS", "message": "The device already has a valid certificate. Renew it instead. (serial=5f0c…)" }codeis stable. Programs should branch oncode. See Errors.messageis for people. WithAccept-Language: enit is English, otherwise Korean. The part in parentheses names the field or object.
Versioning
Section titled “Versioning”/v1in the path is the version. Adding fields is backward compatible and happens within/v1, so ignore fields you do not know.- Breaking changes ship as
/v2. The end of/v1support is announced in advance in the Changelog, by email, and with aDeprecationresponse header.
OpenAPI
Section titled “OpenAPI”The API definition is available as OpenAPI 3.1. Server validation and these docs come from the same definition.
- openapi/en.json (English descriptions)
- openapi/ko.json (Korean descriptions)