{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/knoxcall/json-schema/knoxcall-certificate-secret-created-schema.json",
  "title": "CertificateSecretCreated",
  "description": "Response after creating a certificate secret.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/knoxcall-secrets-api-openapi.yml#/components/schemas/CertificateSecretCreated",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "The new secret's ID."
    },
    "name": {
      "type": "string",
      "description": "Normalized secret name."
    },
    "secret_type": {
      "type": "string",
      "enum": [
        "certificate"
      ]
    },
    "certificate_type": {
      "type": "string"
    },
    "base_environment": {
      "type": "string"
    },
    "collection_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "metadata": {
      "type": "object",
      "description": "Parsed certificate metadata (for PEM, CRT, CER, PKCS#7 formats). Null fields\nindicate the value could not be extracted from the certificate.\n",
      "properties": {
        "subject": {
          "type": [
            "string",
            "null"
          ],
          "description": "Certificate subject distinguished name."
        },
        "issuer": {
          "type": [
            "string",
            "null"
          ],
          "description": "Certificate issuer distinguished name."
        },
        "expires_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "description": "Certificate expiry date/time."
        },
        "has_private_key": {
          "type": "boolean",
          "description": "Whether a private key was stored alongside the certificate."
        },
        "has_passphrase": {
          "type": "boolean",
          "description": "Whether a passphrase was stored for the private key. The platform never returns the passphrase itself; this boolean is the only confirmation that one was received and stored."
        }
      }
    }
  }
}