Skip to content

Conventions

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.

Send the Authorization: Bearer slzp_… header and the client certificate bound to that key (mTLS). See API keys and client certificates.

  • 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 as application/pem-certificate-chain text.
  • Request bodies can be up to 2 MB.

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"

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

600 calls per minute per key. Beyond that you get 429 RATE_LIMITED with Retry-After (seconds). Retry after that time.

All errors look the same.

{ "statusCode": 409, "code": "CERTIFICATE_EXISTS", "message": "The device already has a valid certificate. Renew it instead. (serial=5f0c…)" }
  • code is stable. Programs should branch on code. See Errors.
  • message is for people. With Accept-Language: en it is English, otherwise Korean. The part in parentheses names the field or object.
  • /v1 in 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 /v1 support is announced in advance in the Changelog, by email, and with a Deprecation response header.

The API definition is available as OpenAPI 3.1. Server validation and these docs come from the same definition.