{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/cloudflare/main/json-schema/cloudflare-tls-certificates-and-hostnames-schemas-certificate-response-collection-schema.json", "title": "tls-certificates-and-hostnames_schemas-certificate_response_collection", "x-generated": "2026-10-03", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/cloudflare-certificates-api-openapi.yml#/components/schemas/tls-certificates-and-hostnames_schemas-certificate_response_collection", "allOf": [ { "$ref": "#/$defs/tls-certificates-and-hostnames_api-response-collection" }, { "type": "object", "properties": { "result": { "type": "array", "items": { "$ref": "#/$defs/tls-certificates-and-hostnames_certificates" } } } } ], "$defs": { "tls-certificates-and-hostnames_api-response-collection": { "allOf": [ { "$ref": "#/$defs/tls-certificates-and-hostnames_api-response-common" }, { "properties": { "result": { "type": [ "array", "null" ], "items": {} }, "result_info": { "$ref": "#/$defs/tls-certificates-and-hostnames_result_info" } } } ], "type": "object" }, "tls-certificates-and-hostnames_api-response-common": { "type": "object", "required": [ "success", "errors", "messages", "result" ], "properties": { "errors": { "$ref": "#/$defs/tls-certificates-and-hostnames_messages" }, "messages": { "$ref": "#/$defs/tls-certificates-and-hostnames_messages" }, "result": { "anyOf": [ { "type": "object" }, { "type": "array", "items": {} }, { "type": "string" } ] }, "success": { "type": "boolean", "description": "Whether the API call was successful", "enum": [ true ] } } }, "tls-certificates-and-hostnames_certificates": { "type": "object", "required": [ "hostnames", "csr", "requested_validity", "request_type" ], "properties": { "certificate": { "$ref": "#/$defs/tls-certificates-and-hostnames_components-schemas-certificate" }, "csr": { "$ref": "#/$defs/tls-certificates-and-hostnames_csr" }, "expires_on": { "$ref": "#/$defs/tls-certificates-and-hostnames_schemas-expires_on" }, "hostnames": { "$ref": "#/$defs/tls-certificates-and-hostnames_hostnames" }, "id": { "$ref": "#/$defs/tls-certificates-and-hostnames_identifier" }, "request_type": { "$ref": "#/$defs/tls-certificates-and-hostnames_request_type" }, "requested_validity": { "$ref": "#/$defs/tls-certificates-and-hostnames_requested_validity" } } }, "tls-certificates-and-hostnames_components-schemas-certificate": { "type": "string", "description": "The Origin CA certificate. Will be newline-encoded.", "readOnly": true }, "tls-certificates-and-hostnames_csr": { "type": "string", "description": "The Certificate Signing Request (CSR). Must be newline-encoded." }, "tls-certificates-and-hostnames_hostnames": { "type": "array", "description": "Array of hostnames or wildcard names (e.g., *.example.com) bound to the certificate.", "items": {} }, "tls-certificates-and-hostnames_identifier": { "type": "string", "description": "Identifier", "readOnly": true, "maxLength": 32 }, "tls-certificates-and-hostnames_messages": { "type": "array", "items": { "type": "object", "uniqueItems": true, "required": [ "code", "message" ], "properties": { "code": { "type": "integer", "minimum": 1000 }, "message": { "type": "string" } } } }, "tls-certificates-and-hostnames_request_type": { "type": "string", "description": "Signature type desired on certificate (\"origin-rsa\" (rsa), \"origin-ecc\" (ecdsa), or \"keyless-certificate\" (for Keyless SSL servers).", "enum": [ "origin-rsa", "origin-ecc", "keyless-certificate" ] }, "tls-certificates-and-hostnames_requested_validity": { "type": "number", "description": "The number of days for which the certificate should be valid.", "enum": [ 7, 30, 90, 365, 730, 1095, 5475 ], "default": 5475 }, "tls-certificates-and-hostnames_result_info": { "type": "object", "properties": { "count": { "type": "number", "description": "Total number of results for the requested service" }, "page": { "type": "number", "description": "Current page within paginated list of results" }, "per_page": { "type": "number", "description": "Number of results per page of results" }, "total_count": { "type": "number", "description": "Total results available without any search parameters" } } }, "tls-certificates-and-hostnames_schemas-expires_on": { "type": "string", "format": "date-time", "description": "When the certificate will expire.", "readOnly": true } } }