Skip to content
Dashboard
Theme
Theme

Add an IdP certificate for rollover

POST /v1/connections/{conn}/certificates: Add an IdP certificate for rollover.

View Markdown

POST /v1/connections/{conn}/certificates

Scope
connections:write
Auth
Secret key (sk_…)
Since
1.0
  • conn string Required

  • OhAuthCat-Version string

    Minor version; defaults to the environment’s pin.

  • Idempotency-Key string

    Honoured for 24 h; a replay returns the original response.

    min length 1 · max length 255

  • certificate_pem string Required

    min length 1

Errors share one shape; see the error code catalogue.

curl -X POST \
"https://api.ohauthcat.com/v1/connections/conn_01J9Z3K5V7W8X9Y0Z1A2B3C4D5/certificates" \
-H "Authorization: Bearer $OHAUTHCAT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"certificate_pem": "example_certificate_pem"
}'
Response 201
{
"fingerprint": "example_fingerprint",
"object": "certificate",
"subject": "example_subject",
"not_before": "2026-01-15T09:30:00Z",
"not_after": "2026-01-15T09:30:00Z",
"created_at": "2026-01-15T09:30:00Z"
}