{
  "openapi": "3.1.0",
  "info": {
    "title": "Paletoo API",
    "version": "1.1.0",
    "summary": "Public, read-only, free: the template catalogue, effects and Mixes, and the font library of the Paletoo design editor.",
    "description": "Paletoo is a free online graphic design editor. This API answers what it offers, as JSON, for agents and developers:\n1702 templates (search, sizes, editable text slots, previews, the link that opens one in the editor), 61 effects and 46 Mixes with names and descriptions in English, Ukrainian and Polish, and 2065 font families.\n\n**Authentication: none.** No key, no account, no cookies. The API is free and public; it never reads anyone's designs or account.\n\n**Rate limit:** 60 requests a minute per IP address. Over it, `429` with `Retry-After` (seconds). Answers may be cached for 5 minutes.\n\n**Errors** are RFC 9457 problem documents (`application/problem+json`): `type`, `title`, `status`, `detail`, `instance`, plus `code`, `hint` and `docs`, with the HTTP status (400, 404, 405, 410, 429, 500). Every 4xx and 5xx in this description uses the one `Problem` schema.\n\n**Versioning:** the major version is in the path (`/api/v1`). New endpoints, fields, optional parameters and enum values may appear in the same version (clients ignore fields they do not know); a breaking change ships as a new major version. A deprecated route answers with `Deprecation` (RFC 9745) and `Sunset` (RFC 8594) headers and a `successor-version` link, at least 365 days before it is switched off (then `410 Gone`). Policy: https://paletoo.com/developers/api#versioning. Changelog: https://paletoo.com/api/v1/changelog.\n\n**To make or change designs** (the person's own files, with their consent), use the Paletoo MCP server: https://paletoo.com/mcp (Streamable HTTP, OAuth 2.1). Docs: https://paletoo.com/developers/mcp.",
    "termsOfService": "https://paletoo.com/terms",
    "contact": {
      "name": "Paletoo",
      "email": "support@paletoo.com",
      "url": "https://paletoo.com/contact"
    },
    "license": {
      "name": "Proprietary — free to call; the templates and fonts keep their own licences",
      "url": "https://paletoo.com/terms"
    },
    "x-rate-limit": {
      "requestsPerMinute": 60,
      "per": "ip"
    },
    "x-auth": "none",
    "x-free-tier": true,
    "x-api-lifecycle": {
      "majorVersion": "v1",
      "status": "stable",
      "deprecationNoticeDays": 365,
      "policy": "https://paletoo.com/developers/api#versioning",
      "changelog": "https://paletoo.com/api/v1/changelog"
    },
    "x-mcp-server": "https://paletoo.com/mcp"
  },
  "externalDocs": {
    "description": "Paletoo API documentation",
    "url": "https://paletoo.com/developers/api"
  },
  "servers": [
    {
      "url": "https://paletoo.com",
      "description": "Production"
    }
  ],
  "security": [],
  "tags": [
    {
      "name": "templates",
      "description": "The template catalogue"
    },
    {
      "name": "effects",
      "description": "The Effects tab: effects and Mixes"
    },
    {
      "name": "fonts",
      "description": "The font library"
    },
    {
      "name": "meta",
      "description": "Health and limits"
    },
    {
      "name": "mcp",
      "description": "Making and editing designs is the MCP server's job",
      "externalDocs": {
        "url": "https://paletoo.com/developers/mcp"
      }
    }
  ],
  "paths": {
    "/api/v1/templates": {
      "get": {
        "operationId": "searchTemplates",
        "tags": [
          "templates"
        ],
        "summary": "Search the template catalogue by words, kind and language",
        "description": "Searches the templates of the Templates browser. Every word of `q` must match the title (English or Ukrainian), the series or what it is for, the kind or a text slot. With `lang`, the templates written in that language and the language-neutral ones (which take any words). Best matches first; page with `limit` and `offset` (or follow `next`).",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Words to search for (up to 100 characters)",
            "schema": {
              "type": "string",
              "maxLength": 100
            },
            "example": "fresh"
          },
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "description": "The kind of thing",
            "schema": {
              "type": "string",
              "enum": [
                "post",
                "story",
                "square",
                "carousel",
                "poster",
                "presentation",
                "logo",
                "card",
                "banner",
                "youtube",
                "invitation",
                "menu",
                "cover",
                "other"
              ]
            },
            "example": "post"
          },
          {
            "name": "lang",
            "in": "query",
            "required": false,
            "description": "The language of the template's words",
            "schema": {
              "type": "string",
              "enum": [
                "en",
                "uk",
                "pl"
              ]
            },
            "example": "en"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many to answer, 1–100",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            },
            "example": 20
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "How many to skip (for the next page; the answer's `next` has it already)",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0
            },
            "example": 0
          }
        ],
        "responses": {
          "200": {
            "description": "Matching templates, best first",
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "Access-Control-Allow-Origin": {
                "$ref": "#/components/headers/CORS"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemplateList"
                },
                "example": {
                  "query": {
                    "q": "fresh",
                    "kind": "post",
                    "lang": null,
                    "limit": 20,
                    "offset": 0
                  },
                  "total": 1,
                  "count": 1,
                  "next": null,
                  "templates": [
                    {
                      "id": "tolva/01-fresh-roast-post",
                      "pack": "tolva",
                      "slug": "01-fresh-roast-post",
                      "title": "Fresh roast weekly",
                      "titles": {
                        "en": "Fresh roast weekly",
                        "uk": "Свіже обсмаження щотижня"
                      },
                      "series": "TOLVA",
                      "kind": "post",
                      "width": 1080,
                      "height": 1350,
                      "pages": 1,
                      "language": null,
                      "photo": false,
                      "preview": "https://paletoo.com/templates/tolva/01-fresh-roast-post.webp",
                      "pro": false,
                      "open": "https://paletoo.com/t/tolva/01-fresh-roast-post",
                      "url": "https://paletoo.com/api/v1/templates/tolva/01-fresh-roast-post"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "405": {
            "$ref": "#/components/responses/MethodNotAllowed"
          },
          "410": {
            "$ref": "#/components/responses/Gone"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/Internal"
          }
        }
      }
    },
    "/api/v1/templates/{pack}/{slug}": {
      "get": {
        "operationId": "getTemplate",
        "tags": [
          "templates"
        ],
        "summary": "One template: size, editable text slots, preview pictures and its open link",
        "description": "One template: its size, the names of its editable text slots, its preview pictures, its own page on the site, and `open` — the link that opens it in the Paletoo editor (free, no account).",
        "parameters": [
          {
            "name": "pack",
            "in": "path",
            "required": true,
            "description": "The template's series id (from a search)",
            "schema": {
              "type": "string",
              "pattern": "^[a-z0-9][a-z0-9-]{0,95}$"
            },
            "example": "tolva"
          },
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "The template's id in its series",
            "schema": {
              "type": "string",
              "pattern": "^[a-z0-9][a-z0-9-]{0,95}$"
            },
            "example": "01-fresh-roast-post"
          }
        ],
        "responses": {
          "200": {
            "description": "The template",
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "Access-Control-Allow-Origin": {
                "$ref": "#/components/headers/CORS"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Template"
                },
                "example": {
                  "id": "tolva/01-fresh-roast-post",
                  "pack": "tolva",
                  "slug": "01-fresh-roast-post",
                  "title": "Fresh roast weekly",
                  "titles": {
                    "en": "Fresh roast weekly",
                    "uk": "Свіже обсмаження щотижня"
                  },
                  "series": "TOLVA",
                  "kind": "post",
                  "width": 1080,
                  "height": 1350,
                  "pages": 1,
                  "language": null,
                  "photo": false,
                  "preview": "https://paletoo.com/templates/tolva/01-fresh-roast-post.webp",
                  "pro": false,
                  "open": "https://paletoo.com/t/tolva/01-fresh-roast-post",
                  "url": "https://paletoo.com/api/v1/templates/tolva/01-fresh-roast-post",
                  "seriesNames": {
                    "en": "TOLVA",
                    "uk": "TOLVA"
                  },
                  "seriesNote": {
                    "en": "Brand pack: a coffee roastery",
                    "uk": "Бренд-пак: обсмажувальня кави"
                  },
                  "sizes": [
                    {
                      "width": 1080,
                      "height": 1350,
                      "unit": "px"
                    }
                  ],
                  "slots": [
                    {
                      "name": "Logo wordmark",
                      "type": "text"
                    },
                    {
                      "name": "Header note",
                      "type": "text"
                    },
                    {
                      "name": "Site",
                      "type": "text"
                    },
                    {
                      "name": "Handle",
                      "type": "text"
                    },
                    {
                      "name": "Eyebrow",
                      "type": "text"
                    },
                    {
                      "name": "Headline",
                      "type": "text"
                    },
                    {
                      "name": "Body",
                      "type": "text"
                    },
                    {
                      "name": "Button label",
                      "type": "text"
                    }
                  ],
                  "previews": {
                    "card": "https://paletoo.com/templates/tolva/01-fresh-roast-post.webp",
                    "small": "https://paletoo.com/templates/tolva/01-fresh-roast-post.sm.webp",
                    "large": "https://paletoo.com/store/templates/tolva/01-fresh-roast-post.lg.webp",
                    "share": "https://paletoo.com/store/templates/tolva/01-fresh-roast-post.og.jpg"
                  },
                  "page": {
                    "en": "https://paletoo.com/templates/social/tolva-fresh-roast-post",
                    "uk": "https://paletoo.com/uk/templates/social/tolva-fresh-roast-post"
                  },
                  "editor": "https://paletoo.com/#/t/tolva/01-fresh-roast-post",
                  "howToUse": "Open the «open» link: the template opens in the Paletoo editor in the browser, free and without an account; every slot is live text a person edits there. An AI agent can fill it for the person through the MCP server (create_design)."
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "405": {
            "$ref": "#/components/responses/MethodNotAllowed"
          },
          "410": {
            "$ref": "#/components/responses/Gone"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/Internal"
          }
        }
      }
    },
    "/api/v1/effects": {
      "get": {
        "operationId": "listEffects",
        "tags": [
          "effects"
        ],
        "summary": "The effects and Mixes of the Effects tab, with names and descriptions",
        "description": "The Effects tab's catalogue: the groups, every effect (with the surfaces it takes and whether it animates) and every Mix (a ready-made set of effects). `name` and `description` are in `lang`; `names` and `descriptions` carry all three languages.",
        "parameters": [
          {
            "name": "group",
            "in": "query",
            "required": false,
            "description": "Only one group (`looks` = the Mixes)",
            "schema": {
              "type": "string",
              "enum": [
                "looks",
                "shadow-glow",
                "blur-motion",
                "retro-print",
                "glitch-glass"
              ]
            },
            "example": "retro-print"
          },
          {
            "name": "lang",
            "in": "query",
            "required": false,
            "description": "The language of `name` and `description`",
            "schema": {
              "type": "string",
              "enum": [
                "en",
                "uk",
                "pl"
              ]
            },
            "example": "en"
          }
        ],
        "responses": {
          "200": {
            "description": "The effects and Mixes",
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "Access-Control-Allow-Origin": {
                "$ref": "#/components/headers/CORS"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EffectsCatalog"
                },
                "example": {
                  "language": "en",
                  "groups": [
                    {
                      "id": "retro-print",
                      "name": "Retro & print",
                      "count": 40
                    }
                  ],
                  "effects": [
                    {
                      "id": "halftone",
                      "kind": "effect",
                      "group": "retro-print",
                      "name": "Halftone",
                      "description": "A printer’s screen of dots, lines or squares sized by tone",
                      "names": {
                        "en": "Halftone",
                        "uk": "Растр",
                        "pl": "Raster"
                      },
                      "descriptions": {
                        "en": "A printer’s screen of dots, lines or squares sized by tone",
                        "uk": "Друкарський растр із точок, ліній або квадратів, розмір яких залежить від тону",
                        "pl": "Drukarski raster z kropek, linii lub kwadratów o wielkości zależnej od tonu"
                      },
                      "appliesTo": [
                        "text",
                        "image",
                        "material",
                        "element",
                        "group",
                        "artboard"
                      ],
                      "animatable": false,
                      "heavy": true
                    }
                  ],
                  "mixes": [
                    {
                      "id": "photocopy",
                      "kind": "mix",
                      "group": "looks",
                      "name": "Photocopy",
                      "description": "Dense toner blacks, greys in scan lines, light grey paper",
                      "names": {
                        "en": "Photocopy",
                        "uk": "Фотокопія",
                        "pl": "Fotokopia"
                      },
                      "descriptions": {
                        "en": "Dense toner blacks, greys in scan lines, light grey paper",
                        "uk": "Щільний чорний тонер, сірі смуги сканування, світло-сірий папір",
                        "pl": "Gęsta czerń tonera, szarości w liniach skanu, jasnoszary papier"
                      },
                      "steps": [
                        "adjust",
                        "torn-edges",
                        "grain",
                        "texture",
                        "levels"
                      ]
                    }
                  ],
                  "note": "Effects are applied in the Paletoo editor (the Effects tab) or by an AI agent through the MCP server (apply_effect, apply_style_recipe). AI materials use credits and are not listed here."
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "405": {
            "$ref": "#/components/responses/MethodNotAllowed"
          },
          "410": {
            "$ref": "#/components/responses/Gone"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/Internal"
          }
        }
      }
    },
    "/api/v1/fonts": {
      "get": {
        "operationId": "listFonts",
        "tags": [
          "fonts"
        ],
        "summary": "The font library: family, styles, variable axes, Cyrillic yes or no",
        "description": "The fonts a design in Paletoo can use: the Google Fonts library, the hosted open-source families and Paletoo's own bundled faces — each family with its styles, variable axes and whether it has Cyrillic letters.",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Part of the family name",
            "schema": {
              "type": "string",
              "maxLength": 100
            },
            "example": "montserrat"
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "The kind of type",
            "schema": {
              "type": "string",
              "enum": [
                "display",
                "grotesk",
                "handwriting",
                "mono",
                "monospace",
                "sans-serif",
                "serif"
              ]
            },
            "example": "serif"
          },
          {
            "name": "cyrillic",
            "in": "query",
            "required": false,
            "description": "Only families with (true) or without (false) Cyrillic",
            "schema": {
              "type": "boolean"
            },
            "example": true
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many to answer, 1–100",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "example": 50
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "How many to skip (for the next page; the answer's `next` has it already)",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0
            },
            "example": 0
          }
        ],
        "responses": {
          "200": {
            "description": "Matching families",
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "Access-Control-Allow-Origin": {
                "$ref": "#/components/headers/CORS"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FontList"
                },
                "example": {
                  "query": {
                    "q": "montserrat",
                    "category": null,
                    "cyrillic": null,
                    "limit": 50,
                    "offset": 0
                  },
                  "total": 1,
                  "count": 1,
                  "next": null,
                  "fonts": [
                    {
                      "family": "Montserrat",
                      "category": "sans-serif",
                      "styles": [
                        "Italic"
                      ],
                      "variable": {
                        "axes": [
                          {
                            "tag": "wght",
                            "min": 100,
                            "max": 900
                          }
                        ]
                      },
                      "cyrillic": true,
                      "source": "google"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "405": {
            "$ref": "#/components/responses/MethodNotAllowed"
          },
          "410": {
            "$ref": "#/components/responses/Gone"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/Internal"
          }
        }
      }
    },
    "/api/v1/changelog": {
      "get": {
        "operationId": "getChangelog",
        "tags": [
          "meta"
        ],
        "summary": "The API changelog and its versioning and deprecation policy: what changed, what is deprecated, when it is switched off",
        "description": "The API's changelog as a JSON Feed 1.1 (newest first), with the versioning and deprecation policy and the list of deprecated routes under `_paletoo`. A deprecated route also says so in every answer: `Deprecation`, `Sunset` and a `successor-version` link; the notice comes at least 365 days before the switch-off.",
        "responses": {
          "200": {
            "description": "The changelog (JSON Feed 1.1)",
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "Access-Control-Allow-Origin": {
                "$ref": "#/components/headers/CORS"
              }
            },
            "content": {
              "application/feed+json": {
                "schema": {
                  "$ref": "#/components/schemas/ChangelogFeed"
                },
                "example": {
                  "version": "https://jsonfeed.org/version/1.1",
                  "title": "Paletoo API changelog",
                  "home_page_url": "https://paletoo.com/developers/api#changelog",
                  "feed_url": "https://paletoo.com/api/v1/changelog",
                  "description": "What changed in the public Paletoo API, newest first.",
                  "language": "en",
                  "items": [
                    {
                      "id": "https://paletoo.com/api/v1#1.1.0",
                      "url": "https://paletoo.com/developers/api#changelog",
                      "title": "1.1.0 — Problem-details errors, versioning policy, changelog",
                      "content_text": "Changed: Every error is now an RFC 9457 problem document (application/problem+json: type, title, status, detail, instance, plus code, hint and docs). The earlier {\"error\": {…}} wrapper is gone. This is the one change to a published shape inside v1, made a day after v1 launched, before any client existed; from now on a changed shape means a new major version.\nAdded: Versioning and deprecation policy: at least 12 months between a deprecation notice and a switch-off; Deprecation (RFC 9745) and Sunset (RFC 8594) headers on any deprecated route; 410 Gone after the Sunset date.\nAdded: GET /api/v1/changelog: this changelog as a JSON Feed, with the policy and the list of deprecated routes (none today). Every answer carries API-Version: v1.",
                      "date_published": "2026-11-10T00:00:00Z",
                      "tags": [
                        "changed",
                        "added"
                      ]
                    }
                  ],
                  "_paletoo": {
                    "currentVersion": "1.1.0",
                    "majorVersion": "v1",
                    "policy": {
                      "url": "https://paletoo.com/developers/api#versioning",
                      "supportDays": 365,
                      "breakingChange": "A breaking change needs a new major version in the path (/api/v2); the previous one keeps working for at least supportDays after the deprecation notice.",
                      "additiveChange": "New endpoints, fields, optional parameters and enum values may appear in the same major version; clients ignore fields they do not know.",
                      "signals": {
                        "deprecation": "Deprecation: @<unix seconds> (RFC 9745)",
                        "sunset": "Sunset: <HTTP-date> (RFC 8594)",
                        "links": [
                          "rel=\"deprecation\"",
                          "rel=\"successor-version\""
                        ],
                        "afterSunset": "410 Gone (application/problem+json)"
                      }
                    },
                    "deprecated": []
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "405": {
            "$ref": "#/components/responses/MethodNotAllowed"
          },
          "410": {
            "$ref": "#/components/responses/Gone"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/Internal"
          }
        }
      }
    },
    "/api/v1/status": {
      "get": {
        "operationId": "getStatus",
        "tags": [
          "meta"
        ],
        "summary": "Whether the API is up, what it holds and its limits",
        "responses": {
          "200": {
            "description": "Up",
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "Access-Control-Allow-Origin": {
                "$ref": "#/components/headers/CORS"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Status"
                },
                "example": {
                  "status": "ok",
                  "api": "Paletoo public API",
                  "version": "1.1.0",
                  "time": "2026-11-10T09:00:00.000Z",
                  "counts": {
                    "templates": 1702,
                    "effects": 61,
                    "mixes": 46,
                    "fonts": 2065
                  },
                  "auth": {
                    "required": false,
                    "note": "…"
                  },
                  "limits": {
                    "requestsPerMinute": 60,
                    "per": "IP address",
                    "maxPageSize": 100
                  },
                  "versioning": {
                    "major": "v1",
                    "deprecationNoticeDays": 365,
                    "changelog": "https://paletoo.com/api/v1/changelog",
                    "policy": "https://paletoo.com/developers/api#versioning"
                  },
                  "docs": "https://paletoo.com/developers/api",
                  "openapi": "https://paletoo.com/openapi.json",
                  "mcp": {
                    "url": "https://paletoo.com/mcp",
                    "status": "https://paletoo.com/mcp/status",
                    "docs": "https://paletoo.com/developers/mcp"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "405": {
            "$ref": "#/components/responses/MethodNotAllowed"
          },
          "410": {
            "$ref": "#/components/responses/Gone"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/Internal"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Problem": {
        "type": "object",
        "description": "An RFC 9457 problem document (application/problem+json). The same shape for every 4xx and 5xx.",
        "required": [
          "type",
          "title",
          "status",
          "detail",
          "code"
        ],
        "properties": {
          "type": {
            "type": "string",
            "format": "uri",
            "description": "A stable address for the kind of problem (the docs page has an anchor for each `code`)"
          },
          "title": {
            "type": "string",
            "description": "A short summary of the kind of problem; the same for every occurrence of a `type`"
          },
          "status": {
            "type": "integer",
            "description": "The HTTP status"
          },
          "detail": {
            "type": "string",
            "description": "What went wrong this time"
          },
          "instance": {
            "type": "string",
            "description": "The path that was asked"
          },
          "code": {
            "type": "string",
            "enum": [
              "bad_request",
              "not_found",
              "method_not_allowed",
              "gone",
              "rate_limited",
              "internal"
            ],
            "description": "The same kind of problem as a short machine-readable word"
          },
          "hint": {
            "type": "string",
            "description": "What to do about it"
          },
          "docs": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "ChangelogFeed": {
        "type": "object",
        "required": [
          "version",
          "title",
          "items"
        ],
        "properties": {
          "version": {
            "const": "https://jsonfeed.org/version/1.1"
          },
          "title": {
            "type": "string"
          },
          "home_page_url": {
            "type": "string",
            "format": "uri"
          },
          "feed_url": {
            "type": "string",
            "format": "uri"
          },
          "description": {
            "type": "string"
          },
          "language": {
            "type": "string"
          },
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "id",
                "title"
              ],
              "properties": {
                "id": {
                  "type": "string"
                },
                "url": {
                  "type": "string",
                  "format": "uri"
                },
                "title": {
                  "type": "string"
                },
                "content_text": {
                  "type": "string"
                },
                "date_published": {
                  "type": "string",
                  "format": "date-time"
                },
                "tags": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "added",
                      "changed",
                      "deprecated",
                      "removed",
                      "fixed"
                    ]
                  }
                }
              }
            }
          },
          "_paletoo": {
            "type": "object",
            "description": "The versioning and deprecation policy and the deprecated routes",
            "properties": {
              "currentVersion": {
                "type": "string"
              },
              "majorVersion": {
                "type": "string"
              },
              "policy": {
                "type": "object"
              },
              "deprecated": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "path": {
                      "type": "string"
                    },
                    "deprecatedAt": {
                      "type": "string",
                      "format": "date"
                    },
                    "sunsetAt": {
                      "type": "string",
                      "format": "date"
                    },
                    "successor": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      },
      "Said": {
        "type": "object",
        "description": "The same words in English, Ukrainian and Polish",
        "properties": {
          "en": {
            "type": "string"
          },
          "uk": {
            "type": "string"
          },
          "pl": {
            "type": "string"
          }
        },
        "required": [
          "en",
          "uk"
        ]
      },
      "TemplateSummary": {
        "type": "object",
        "required": [
          "id",
          "pack",
          "slug",
          "title",
          "kind",
          "width",
          "height",
          "open",
          "url"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "`pack/slug`"
          },
          "pack": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "title": {
            "type": "string",
            "description": "In English"
          },
          "titles": {
            "type": "object",
            "properties": {
              "en": {
                "type": "string"
              },
              "uk": {
                "type": "string"
              }
            }
          },
          "series": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": [
              "post",
              "story",
              "square",
              "carousel",
              "poster",
              "presentation",
              "logo",
              "card",
              "banner",
              "youtube",
              "invitation",
              "menu",
              "cover",
              "other"
            ]
          },
          "width": {
            "type": "integer",
            "description": "Pixels"
          },
          "height": {
            "type": "integer",
            "description": "Pixels"
          },
          "pages": {
            "type": "integer",
            "description": "Artboards (a carousel or a deck has several)"
          },
          "language": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "en",
              "uk",
              null
            ],
            "description": "The template's own language; null for a language-neutral one"
          },
          "photo": {
            "type": "boolean",
            "description": "Has a photo frame to put a picture in"
          },
          "preview": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri"
          },
          "open": {
            "type": "string",
            "format": "uri",
            "description": "Opens the template in the Paletoo editor (free, no account)"
          },
          "url": {
            "type": "string",
            "format": "uri",
            "description": "This template in the API"
          }
        }
      },
      "Template": {
        "allOf": [
          {
            "$ref": "#/components/schemas/TemplateSummary"
          },
          {
            "type": "object",
            "properties": {
              "seriesNames": {
                "type": "object",
                "properties": {
                  "en": {
                    "type": "string"
                  },
                  "uk": {
                    "type": "string"
                  }
                }
              },
              "seriesNote": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "What the series is for",
                "properties": {
                  "en": {
                    "type": "string"
                  },
                  "uk": {
                    "type": "string"
                  }
                }
              },
              "sizes": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "width": {
                      "type": "integer"
                    },
                    "height": {
                      "type": "integer"
                    },
                    "unit": {
                      "const": "px"
                    }
                  }
                }
              },
              "slots": {
                "type": "array",
                "description": "The editable text slots, by the name the editor shows",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "const": "text"
                    }
                  }
                }
              },
              "previews": {
                "type": "object",
                "properties": {
                  "card": {
                    "type": "string",
                    "format": "uri"
                  },
                  "small": {
                    "type": "string",
                    "format": "uri"
                  },
                  "large": {
                    "type": "string",
                    "format": "uri"
                  },
                  "share": {
                    "type": "string",
                    "format": "uri"
                  }
                }
              },
              "page": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The template's own page on the site",
                "properties": {
                  "en": {
                    "type": "string",
                    "format": "uri"
                  },
                  "uk": {
                    "type": "string",
                    "format": "uri"
                  }
                }
              },
              "editor": {
                "type": "string",
                "format": "uri"
              },
              "howToUse": {
                "type": "string"
              }
            }
          }
        ]
      },
      "TemplateList": {
        "type": "object",
        "required": [
          "total",
          "count",
          "templates"
        ],
        "properties": {
          "query": {
            "type": "object"
          },
          "total": {
            "type": "integer"
          },
          "count": {
            "type": "integer"
          },
          "next": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri"
          },
          "templates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TemplateSummary"
            }
          }
        }
      },
      "Effect": {
        "type": "object",
        "required": [
          "id",
          "group",
          "name"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "kind": {
            "const": "effect"
          },
          "group": {
            "type": "string",
            "enum": [
              "looks",
              "shadow-glow",
              "blur-motion",
              "retro-print",
              "glitch-glass"
            ]
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "names": {
            "type": "object",
            "description": "The same words in English, Ukrainian and Polish",
            "properties": {
              "en": {
                "type": "string"
              },
              "uk": {
                "type": "string"
              },
              "pl": {
                "type": "string"
              }
            },
            "required": [
              "en",
              "uk"
            ]
          },
          "descriptions": {
            "type": "object",
            "description": "The same words in English, Ukrainian and Polish",
            "properties": {
              "en": {
                "type": "string"
              },
              "uk": {
                "type": "string"
              },
              "pl": {
                "type": "string"
              }
            },
            "required": [
              "en",
              "uk"
            ]
          },
          "appliesTo": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "animatable": {
            "type": "boolean"
          },
          "heavy": {
            "type": "boolean",
            "description": "Slow on large pictures"
          }
        }
      },
      "Mix": {
        "type": "object",
        "required": [
          "id",
          "name",
          "steps"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "kind": {
            "const": "mix"
          },
          "group": {
            "const": "looks"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "names": {
            "type": "object",
            "description": "The same words in English, Ukrainian and Polish",
            "properties": {
              "en": {
                "type": "string"
              },
              "uk": {
                "type": "string"
              },
              "pl": {
                "type": "string"
              }
            },
            "required": [
              "en",
              "uk"
            ]
          },
          "descriptions": {
            "oneOf": [
              {
                "type": "object",
                "description": "The same words in English, Ukrainian and Polish",
                "properties": {
                  "en": {
                    "type": "string"
                  },
                  "uk": {
                    "type": "string"
                  },
                  "pl": {
                    "type": "string"
                  }
                },
                "required": [
                  "en",
                  "uk"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "steps": {
            "type": "array",
            "description": "The effects it is made of",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "EffectsCatalog": {
        "type": "object",
        "properties": {
          "language": {
            "type": "string",
            "enum": [
              "en",
              "uk",
              "pl"
            ]
          },
          "groups": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "count": {
                  "type": "integer"
                }
              }
            }
          },
          "effects": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Effect"
            }
          },
          "mixes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Mix"
            }
          },
          "note": {
            "type": "string"
          }
        }
      },
      "Font": {
        "type": "object",
        "required": [
          "family",
          "styles",
          "cyrillic"
        ],
        "properties": {
          "family": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "styles": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "variable": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "axes": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "tag": {
                      "type": "string"
                    },
                    "min": {
                      "type": "number"
                    },
                    "max": {
                      "type": "number"
                    }
                  }
                }
              }
            }
          },
          "cyrillic": {
            "type": "boolean"
          },
          "source": {
            "type": "string",
            "enum": [
              "google",
              "open",
              "paletoo"
            ]
          }
        }
      },
      "FontList": {
        "type": "object",
        "required": [
          "total",
          "count",
          "fonts"
        ],
        "properties": {
          "query": {
            "type": "object"
          },
          "total": {
            "type": "integer"
          },
          "count": {
            "type": "integer"
          },
          "next": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri"
          },
          "fonts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Font"
            }
          }
        }
      },
      "Status": {
        "type": "object",
        "required": [
          "status",
          "version"
        ],
        "properties": {
          "status": {
            "const": "ok"
          },
          "api": {
            "type": "string"
          },
          "version": {
            "type": "string"
          },
          "time": {
            "type": "string",
            "format": "date-time"
          },
          "counts": {
            "type": "object",
            "additionalProperties": {
              "type": "integer"
            }
          },
          "auth": {
            "type": "object"
          },
          "limits": {
            "type": "object"
          },
          "docs": {
            "type": "string",
            "format": "uri"
          },
          "openapi": {
            "type": "string",
            "format": "uri"
          },
          "mcp": {
            "type": "object"
          }
        }
      }
    },
    "headers": {
      "RateLimitPolicy": {
        "description": "The limit: 60 requests in a 60-second window per IP (draft-ietf-httpapi-ratelimit-headers)",
        "schema": {
          "type": "string"
        },
        "example": "\"per-ip\";q=60;w=60"
      },
      "RetryAfter": {
        "description": "Seconds to wait",
        "schema": {
          "type": "integer"
        }
      },
      "CORS": {
        "description": "Any origin may call the API from a browser",
        "schema": {
          "const": "*"
        }
      }
    },
    "responses": {
      "BadRequest": {
        "description": "A query parameter is unknown or out of range",
        "headers": {
          "RateLimit-Policy": {
            "$ref": "#/components/headers/RateLimitPolicy"
          }
        },
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            },
            "example": {
              "type": "https://paletoo.com/developers/api#error-bad_request",
              "title": "Bad request",
              "status": 400,
              "detail": "«limit» must be a whole number from 1 to 100.",
              "instance": "/api/v1/templates",
              "code": "bad_request",
              "hint": "…",
              "docs": "https://paletoo.com/developers/api#errors"
            }
          }
        }
      },
      "NotFound": {
        "description": "No such template (or no such endpoint)",
        "headers": {
          "RateLimit-Policy": {
            "$ref": "#/components/headers/RateLimitPolicy"
          }
        },
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            },
            "example": {
              "type": "https://paletoo.com/developers/api#error-not_found",
              "title": "Not found",
              "status": 404,
              "detail": "No template tolva/no-such-template.",
              "instance": "/api/v1/templates",
              "code": "not_found",
              "hint": "…",
              "docs": "https://paletoo.com/developers/api#errors"
            }
          }
        }
      },
      "MethodNotAllowed": {
        "description": "The API is read-only: GET, HEAD and OPTIONS only",
        "headers": {
          "RateLimit-Policy": {
            "$ref": "#/components/headers/RateLimitPolicy"
          },
          "Allow": {
            "schema": {
              "type": "string"
            },
            "example": "GET, HEAD, OPTIONS"
          }
        },
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            },
            "example": {
              "type": "https://paletoo.com/developers/api#error-method_not_allowed",
              "title": "Method not allowed",
              "status": 405,
              "detail": "POST is not allowed here: the API is read-only.",
              "instance": "/api/v1/templates",
              "code": "method_not_allowed",
              "hint": "…",
              "docs": "https://paletoo.com/developers/api#errors"
            }
          }
        }
      },
      "Gone": {
        "description": "The route was deprecated and its Sunset date has passed (no route is switched off today)",
        "headers": {
          "RateLimit-Policy": {
            "$ref": "#/components/headers/RateLimitPolicy"
          }
        },
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            },
            "example": {
              "type": "https://paletoo.com/developers/api#error-gone",
              "title": "Gone",
              "status": 410,
              "detail": "/api/v1/example was switched off on 2027-12-01.",
              "instance": "/api/v1/templates",
              "code": "gone",
              "hint": "…",
              "docs": "https://paletoo.com/developers/api#errors"
            }
          }
        }
      },
      "RateLimited": {
        "description": "Over 60 requests a minute from this IP",
        "headers": {
          "RateLimit-Policy": {
            "$ref": "#/components/headers/RateLimitPolicy"
          },
          "Retry-After": {
            "$ref": "#/components/headers/RetryAfter"
          }
        },
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            },
            "example": {
              "type": "https://paletoo.com/developers/api#error-rate_limited",
              "title": "Too many requests",
              "status": 429,
              "detail": "More than 60 requests a minute from this address.",
              "instance": "/api/v1/templates",
              "code": "rate_limited",
              "hint": "…",
              "docs": "https://paletoo.com/developers/api#errors"
            }
          }
        }
      },
      "Internal": {
        "description": "Our fault; try again",
        "headers": {
          "RateLimit-Policy": {
            "$ref": "#/components/headers/RateLimitPolicy"
          }
        },
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            },
            "example": {
              "type": "https://paletoo.com/developers/api#error-internal",
              "title": "Internal error",
              "status": 500,
              "detail": "Something went wrong on our side.",
              "instance": "/api/v1/templates",
              "code": "internal",
              "hint": "…",
              "docs": "https://paletoo.com/developers/api#errors"
            }
          }
        }
      }
    }
  }
}
