{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/thanks-io/json-schema/thanks-io-creative-schema.json",
  "title": "creative",
  "description": "A creative from your Creatives library: a saved pairing of an image template and a message template, sent exactly as saved by passing its `id` as `creative_id` to any send or estimate endpoint.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thanks-io-creatives-library-api-openapi.yml#/components/schemas/creative",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "description": "Pass this as `creative_id` to send the creative."
    },
    "name": {
      "type": "string"
    },
    "mailer_type": {
      "type": [
        "string",
        "null"
      ],
      "description": "The type the creative sends as. `postcard` is 4x6."
    },
    "postcard_size": {
      "type": [
        "string",
        "null"
      ]
    },
    "sub_account_id": {
      "type": [
        "integer",
        "null"
      ]
    },
    "source": {
      "type": [
        "string",
        "null"
      ]
    },
    "hidden": {
      "type": "boolean"
    },
    "default": {
      "type": "boolean"
    },
    "preview_image_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "thumbnail_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "share_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "is_complete": {
      "type": "boolean",
      "description": "Whether the creative can be sent: both sides present and not deleted (letters need only a message)."
    },
    "needs": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "front",
          "message"
        ]
      },
      "description": "The sides an incomplete creative is missing."
    },
    "image_template": {
      "type": [
        "object",
        "null"
      ],
      "description": "The front. `deleted` is true when the template was deleted after the creative was made. `tracked_qr_url` is set when the front prints a tracked thanks.io QR code over the one in your uploaded design, and is the address its scans go to."
    },
    "message_template": {
      "type": [
        "object",
        "null"
      ],
      "description": "The message. `deleted` is true when the template was deleted after the creative was made."
    },
    "back_background": {
      "type": [
        "object",
        "null"
      ]
    },
    "created_at": {
      "type": "string"
    },
    "updated_at": {
      "type": "string"
    }
  }
}