For AI agents: a documentation index is available at /llms.txt
Skip to main content

/certificates

POST 

/certificates

Uploads CA certificates for the requesting account under a name. Requires a paid cloud-unit plan. Pass the name, or the returned "id", in "caCertificates" when you connect or create a session, and that session trusts the certificates while every other certificate check stays on. A name that is already taken returns 409, unless "replace" is true: then the certificate of that name is replaced and keeps its ID. The response never includes the PEM.

Note: This endpoint is also available at: /management/certificates for backwards compatibility.

Request​

Body

    certificatestringrequired

    One or more CA certificates in PEM format, at most 10 certificates and 64 KB. Must not contain a private key.

    namestringrequired

    A name for the certificate, unique in the account. Sessions can pass it in "caCertificates" in place of the ID. At most 64 characters, without commas, "/", "?", "#" or surrounding whitespace, and not starting with "cert_" or a dot.

    replaceboolean

    Replace the certificate that already has this name. Its ID stays the same, so sessions that name it trust the new certificate at their next browser launch. Without it, a name that is taken returns 409.

Responses​

What the API returns: metadata only, never the PEM.

Schema
    idstringrequired

    Stays the same when the certificate is replaced under its name.

    namestringrequired

    The name given at upload, unique in the account. Pass it, or the ID, in "caCertificates" when you connect or create a session.

    certificates object[]required

    The CA certificates in the uploaded bundle.

  • Array [
  • subjectstringrequired

    Subject of the certificate, one attribute per line joined with ", ".

    fingerprintstringrequired

    SHA-256 fingerprint of the certificate, lowercase hex.

    expiresAtstringrequired

    When the certificate stops being valid, ISO 8601.

  • ]
  • expiresAtstringrequired

    The earliest expiry among them, ISO 8601.

    createdAtstringrequired
    updatedAtstringrequired
Was this page helpful?