{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/conduyt-com/json-schema/conduyt-com-email-signature-response-schema.json",
  "title": "EmailSignatureResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/conduyt-com-email-signature-api-openapi.yml#/components/schemas/EmailSignatureResponse",
  "type": "object",
  "properties": {
    "saved": {
      "type": "boolean"
    },
    "signature": {
      "type": "object",
      "properties": {
        "designId": {
          "type": "string"
        },
        "overrides": {
          "type": "object"
        },
        "options": {
          "type": "object"
        },
        "useInCompose": {
          "type": "boolean"
        },
        "html": {
          "type": [
            "string",
            "null"
          ],
          "description": "Rendered now from the live sources; null for an unsaved draft or with renderError"
        },
        "plain": {
          "type": [
            "string",
            "null"
          ]
        },
        "renderError": {
          "type": [
            "string",
            "null"
          ],
          "description": "Why the saved signature cannot be rendered from the current sources (too large)",
          "else null": null
        },
        "updatedAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      }
    },
    "fields": {
      "type": "object",
      "description": "Each field's value, source (profile, workspace, company, signature), whether it is custom, and its source value; the photo, logo, social links, disclaimer, brand colour and booking page in use."
    },
    "context": {
      "type": "object",
      "description": "What the signature is filled from (profile, membership, branding, Company details, the caller's own booking pages)."
    }
  }
}