{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/sendgrid/main/json-schema/sendgrid-transactional-template-version-output-schema.json", "title": "Transactional Templates: Version Output", "x-generated": "2026-10-12", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/sendgrid-templates-versions-api-openapi.yml#/components/schemas/TransactionalTemplateVersionOutput", "type": "object", "properties": { "warnings": { "type": "array", "items": { "$ref": "#/$defs/TransactionalTemplateWarning" } }, "active": { "type": "integer", "description": "Set the version as the active version associated with the template. Only one version of a template can be active. The first version created for a template will automatically be set to Active.", "$ref": "#/$defs/Active1" }, "name": { "type": "string", "description": "Name of the transactional template version.", "maxLength": 100 }, "html_content": { "type": "string", "description": "The HTML content of the Design." }, "plain_content": { "type": "string", "description": "Plain text content of the Design." }, "generate_plain_content": { "type": "boolean", "description": "If true, plain_content is always generated from html_content. If false, plain_content is not altered.", "default": true }, "subject": { "type": "string", "description": "Subject of the new transactional template version.", "maxLength": 255 }, "editor": { "type": "string", "description": "The editor used in the UI.", "$ref": "#/$defs/Editor1" }, "test_data": { "type": "string", "description": "For dynamic templates only, the mock json data that will be used for template preview and test sends." }, "id": { "type": "string", "description": "ID of the transactional template version.", "format": "uuid" }, "template_id": { "type": "string", "description": "ID of the transactional template." }, "updated_at": { "type": "string", "description": "The date and time that this transactional template version was updated." }, "thumbnail_url": { "type": "string", "description": "A Thumbnail preview of the template's html content." } }, "required": [ "name", "subject" ], "$defs": { "Active1": { "type": "integer", "enum": [ 0, 1 ] }, "Editor1": { "type": "string", "enum": [ "code", "design" ] }, "TransactionalTemplateWarning": { "title": "Warning", "type": "object", "properties": { "message": { "type": "string", "description": "Warning message for the user" } } } } }