{
  "openapi": "3.1.0",
  "jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
  "info": {
    "title": "NewsletterTools.com API",
    "version": "1.0.0",
    "summary": "Submit a newsletter tool for review, and read the directory as static JSON.",
    "description": "Submitting is free: no account, no API key, no CAPTCHA, no badge or backlink. A person reviews every submission before anything is published; `contact_email` is never published.\n\nSend one POST per product with an `Idempotency-Key` header (up to 100 printable ASCII characters, remembered for 24 hours) so a retry cannot queue it twice. Bodies over 32 KB are refused.\n\nThe read endpoints are static files rebuilt on every deploy. Guide for agents: https://www.newslettertools.com/submit.md.",
    "contact": {
      "name": "Contact form",
      "url": "https://www.newslettertools.com/contact/"
    }
  },
  "servers": [
    {
      "url": "https://www.newslettertools.com"
    }
  ],
  "externalDocs": {
    "description": "Submission guide (Markdown)",
    "url": "https://www.newslettertools.com/submit.md"
  },
  "tags": [
    {
      "name": "Submit",
      "description": "Send a tool for review."
    },
    {
      "name": "Contact",
      "description": "Report a wrong fact or ask for a removal."
    },
    {
      "name": "Read",
      "description": "Static JSON, no key."
    }
  ],
  "paths": {
    "/api/submissions": {
      "post": {
        "operationId": "submitTool",
        "summary": "Submit a tool for review",
        "tags": [
          "Submit"
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "Any unique string per product. A repeat with the same key and body returns the first result (200, `duplicate_request`); the same key with a different body is refused (422, `idempotency_key_reused`).",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[\\x21-\\x7e]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Submission"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/Submission"
              },
              "encoding": {
                "works_with": {
                  "style": "form",
                  "explode": true
                },
                "screenshot_urls": {
                  "style": "form",
                  "explode": true
                }
              }
            }
          },
          "description": "Form posts may also send `screenshot_urls` as one field with one URL per line, tri-state booleans as \"true\", \"false\" or \"\" (null), and numbers as strings. The form's hidden `company_website` field must stay empty."
        },
        "responses": {
          "200": {
            "description": "`duplicate_request`: Same Idempotency-Key and body as an earlier accepted request: the original result is returned and nothing new is queued.",
            "headers": {
              "Location": {
                "description": "The status URL of the submission.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              },
              "Idempotent-Replayed": {
                "description": "Always `true` on a replay.",
                "schema": {
                  "type": "string",
                  "enum": [
                    "true"
                  ]
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubmissionReplayed"
                }
              }
            }
          },
          "201": {
            "description": "`created`: Accepted into the review queue. The body has `submission_id`, `status` (`pending`) and `status_url`.",
            "headers": {
              "Location": {
                "description": "The status URL of the submission.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubmissionCreated"
                }
              }
            }
          },
          "303": {
            "description": "Form posts from a browser (application/x-www-form-urlencoded without `Accept: application/json`): accepted or replayed submissions redirect to /submit/thanks/. Other outcomes return a small HTML page with the status codes above.",
            "headers": {
              "Location": {
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            }
          },
          "400": {
            "description": "`invalid_json`: The body is not valid JSON or form data, or is not one object. `invalid_idempotency_key`: The Idempotency-Key header is empty, longer than 100 characters or not printable ASCII.",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Error"
                    }
                  ],
                  "properties": {
                    "code": {
                      "enum": [
                        "invalid_json",
                        "invalid_idempotency_key"
                      ]
                    }
                  }
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`: Use POST to submit.",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Error"
                    }
                  ],
                  "properties": {
                    "code": {
                      "enum": [
                        "method_not_allowed"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "`already_listed`: A tool with this URL is already listed or already in the queue. The body has `listing_url` (or `status_url` for a queued one).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AlreadyListed"
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: The body is over 32 KB.",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Error"
                    }
                  ],
                  "properties": {
                    "code": {
                      "enum": [
                        "too_large"
                      ]
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "`unsupported_media_type`: Send application/json or application/x-www-form-urlencoded.",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Error"
                    }
                  ],
                  "properties": {
                    "code": {
                      "enum": [
                        "unsupported_media_type"
                      ]
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "`validation_failed`: A field breaks the schema. `errors` lists each `{ field, problem }`. Nothing was saved. `idempotency_key_reused`: This Idempotency-Key was already used with a different body. Use a new key for a new submission.",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Error"
                    }
                  ],
                  "properties": {
                    "code": {
                      "enum": [
                        "validation_failed",
                        "idempotency_key_reused"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: Too many submissions from one address. Wait for the number of seconds in the Retry-After header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Error"
                    }
                  ],
                  "properties": {
                    "code": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`server_error`: Our fault. Try again later with the same Idempotency-Key.",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Error"
                    }
                  ],
                  "properties": {
                    "code": {
                      "enum": [
                        "server_error"
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/contact": {
      "post": {
        "operationId": "sendCorrection",
        "summary": "Report a wrong fact, ask for a removal, or message the editor",
        "description": "Emailed to a person; nothing is stored or published. For a wrong fact use topic `correction` and the page address. To add a tool, use POST /api/submissions instead.",
        "tags": [
          "Contact"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContactMessage"
              },
              "example": {
                "topic": "correction",
                "page": "https://www.newslettertools.com/tools/kit/",
                "message": "The starting price shown is the annual-billing rate. The monthly price is on https://kit.com/pricing.",
                "email": null
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/ContactMessage"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "`sent`: The message was emailed to the editor. Nothing is stored.",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Error"
                    }
                  ],
                  "properties": {
                    "code": {
                      "enum": [
                        "sent"
                      ]
                    }
                  }
                }
              }
            }
          },
          "303": {
            "description": "Form posts from a browser: a sent message redirects to /contact/thanks/. Other outcomes return a small HTML page with the status codes above.",
            "headers": {
              "Location": {
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            }
          },
          "400": {
            "description": "`invalid_json`: The body is not valid JSON or form data, or is not one object.",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Error"
                    }
                  ],
                  "properties": {
                    "code": {
                      "enum": [
                        "invalid_json"
                      ]
                    }
                  }
                }
              }
            }
          },
          "405": {
            "description": "`method_not_allowed`: Use POST.",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Error"
                    }
                  ],
                  "properties": {
                    "code": {
                      "enum": [
                        "method_not_allowed"
                      ]
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "`too_large`: The body is over 32 KB.",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Error"
                    }
                  ],
                  "properties": {
                    "code": {
                      "enum": [
                        "too_large"
                      ]
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "`unsupported_media_type`: Send application/json or application/x-www-form-urlencoded.",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Error"
                    }
                  ],
                  "properties": {
                    "code": {
                      "enum": [
                        "unsupported_media_type"
                      ]
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "`validation_failed`: A field breaks the schema. `errors` lists each `{ field, problem }`. Nothing was sent.",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Error"
                    }
                  ],
                  "properties": {
                    "code": {
                      "enum": [
                        "validation_failed"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: Too many messages from one address. Wait for the number of seconds in the Retry-After header.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Error"
                    }
                  ],
                  "properties": {
                    "code": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "`server_error`: Our fault. Nothing was sent. Try again later.",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Error"
                    }
                  ],
                  "properties": {
                    "code": {
                      "enum": [
                        "server_error"
                      ]
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "`unavailable`: Messages cannot be delivered right now (the daily email limit is reached, or email is not configured). Nothing was sent; try again tomorrow.",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Error"
                    }
                  ],
                  "properties": {
                    "code": {
                      "enum": [
                        "unavailable"
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/submissions/{id}": {
      "get": {
        "operationId": "getSubmission",
        "summary": "Review status of a submission",
        "tags": [
          "Submit"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^sub_[a-z2-9]{20}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubmissionStatus"
                }
              }
            }
          },
          "404": {
            "description": "`not_found`: no submission with that id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/index.json": {
      "get": {
        "summary": "List of endpoints and field names",
        "tags": [
          "Read"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/tools.json": {
      "get": {
        "summary": "Every tool, compact",
        "tags": [
          "Read"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "count",
                    "tools"
                  ],
                  "properties": {
                    "count": {
                      "type": "integer"
                    },
                    "tools": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "slug": {
                            "$ref": "#/components/schemas/Tool_slug"
                          },
                          "name": {
                            "type": "string"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri"
                          },
                          "page": {
                            "type": "string",
                            "format": "uri"
                          },
                          "json": {
                            "type": "string",
                            "format": "uri"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/tools/{slug}.json": {
      "get": {
        "summary": "One tool, every field",
        "tags": [
          "Read"
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Tool_slug"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolRecord"
                }
              }
            }
          },
          "404": {
            "description": "No tool with that slug."
          }
        }
      }
    },
    "/api/categories.json": {
      "get": {
        "summary": "Silos and categories with counts, and the platform list",
        "tags": [
          "Read"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Submission": {
        "title": "Tool submission",
        "description": "Body of POST /api/submissions (JSON) or the /submit/ form (application/x-www-form-urlencoded, same field names, arrays as repeated fields). Free, no account, no CAPTCHA, no badge or backlink required. A person reviews every submission before anything is published. contact_email is never published.",
        "type": "object",
        "additionalProperties": false,
        "required": [
          "name",
          "url",
          "tagline",
          "description",
          "category",
          "pricing_model",
          "contact_email"
        ],
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 80,
            "description": "Product name as the vendor writes it."
          },
          "url": {
            "type": "string",
            "format": "uri",
            "pattern": "^https?://",
            "maxLength": 300,
            "description": "Home page of the product."
          },
          "tagline": {
            "type": "string",
            "minLength": 3,
            "maxLength": 60,
            "description": "What it is, in one line. No superlatives."
          },
          "description": {
            "type": "string",
            "minLength": 20,
            "maxLength": 600,
            "description": "Plain text: what it does, who it is for. No HTML, Markdown or links."
          },
          "category": {
            "type": "string",
            "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
            "description": "Category slug. See /api/categories.json for names.",
            "enum": [
              "creator-platforms",
              "email-marketing-software",
              "ecommerce-email",
              "newsletter-templates",
              "newsletter-makers",
              "email-builders",
              "newsletter-examples",
              "email-code-frameworks",
              "dynamic-content",
              "writing-tools",
              "content-curation",
              "rss-to-email",
              "referral-programs",
              "recommendations",
              "signup-forms",
              "newsletter-websites",
              "newsletter-directories",
              "analytics",
              "ad-networks",
              "sponsorship-tools",
              "paid-subscriptions",
              "digital-products",
              "buy-and-sell",
              "email-verification",
              "spam-testing",
              "dmarc-tools",
              "email-warmup",
              "email-apis",
              "wordpress-plugins",
              "shopify-apps",
              "outlook-and-microsoft-365",
              "google-workspace-add-ons",
              "website-builders",
              "automation",
              "internal-newsletters",
              "newsletter-readers",
              "newsletter-to-rss",
              "unsubscribe-tools",
              "messaging"
            ]
          },
          "pricing_model": {
            "enum": [
              "free",
              "freemium",
              "paid",
              "open-source",
              "contact"
            ]
          },
          "starting_price_usd": {
            "type": [
              "number",
              "null"
            ],
            "minimum": 0,
            "description": "Lowest paid plan in US dollars per month, if public."
          },
          "open_source": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "repo_url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "pattern": "^https?://"
          },
          "works_with": {
            "type": "array",
            "maxItems": 20,
            "uniqueItems": true,
            "items": {
              "enum": [
                "beehiiv",
                "substack",
                "kit",
                "ghost",
                "mailchimp",
                "mailerlite",
                "buttondown",
                "brevo",
                "klaviyo",
                "hubspot",
                "amazon-ses",
                "resend"
              ]
            },
            "description": "Platform slugs. The published copy of this schema lists the allowed values."
          },
          "has_api": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "api_docs_url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "pattern": "^https?://"
          },
          "has_mcp": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Has an official Model Context Protocol server."
          },
          "mcp_url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "pattern": "^https?://"
          },
          "has_llms_txt": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "logo_url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "pattern": "^https://",
            "description": "Square logo, SVG or PNG. We copy it once after review; we do not hotlink."
          },
          "screenshot_urls": {
            "type": "array",
            "maxItems": 5,
            "items": {
              "type": "string",
              "format": "uri",
              "pattern": "^https://"
            }
          },
          "contact_email": {
            "type": "string",
            "format": "email",
            "maxLength": 200,
            "description": "For questions about this submission only. Never published, never added to a mailing list."
          },
          "submitter_role": {
            "enum": [
              "maker",
              "team",
              "agency",
              "agent"
            ],
            "description": "maker: built it. team: works there. agency: submitting for a client. agent: an AI agent acting for one of those."
          },
          "notes": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 1000,
            "description": "Anything the reviewer should know. Not published."
          }
        }
      },
      "ContactMessage": {
        "title": "Contact message",
        "description": "Body of POST /api/contact (JSON) or the /contact/ form (application/x-www-form-urlencoded, same field names). Use it to report a wrong fact, ask for a removal, or anything else. The message is emailed to the editor and not stored or published.",
        "type": "object",
        "additionalProperties": false,
        "required": [
          "message"
        ],
        "properties": {
          "topic": {
            "enum": [
              "correction",
              "removal",
              "other"
            ],
            "description": "correction: a fact on a page is wrong. removal: a vendor asks for its tool to be removed. other: anything else. Defaults to other."
          },
          "message": {
            "type": "string",
            "minLength": 10,
            "maxLength": 3000,
            "description": "Plain text. For a correction: what is wrong, and a link to the vendor's page that shows the right fact."
          },
          "email": {
            "type": [
              "string",
              "null"
            ],
            "format": "email",
            "maxLength": 200,
            "description": "Optional. Only used to reply to this message. Never published."
          },
          "page": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 500,
            "pattern": "^(https?://(www\\.)?newslettertools\\.com)?/(?!/)[\\x21-\\x7e]*$",
            "description": "Optional. The page on this site the message is about: a full https://www.newslettertools.com/ address or a path starting with /. One line, no spaces."
          }
        }
      },
      "Tool": {
        "title": "Newsletter tool listing",
        "description": "One record per tool, stored as src/data/tools/{slug}.json. A null value means the fact has not been checked and is shown as \"not checked\", never as \"no\". silo, category, categories[], works_with[], alternatives_to[] and successor must name entries that exist in the taxonomy, the platform list or the tool set; scripts/validate-data.mjs checks those references.",
        "type": "object",
        "additionalProperties": false,
        "required": [
          "slug",
          "name",
          "url",
          "tagline",
          "description",
          "silo",
          "category",
          "pricing",
          "status",
          "listing"
        ],
        "properties": {
          "slug": {
            "$ref": "#/components/schemas/Tool_slug",
            "description": "URL slug: /tools/{slug}/. Must match the file name."
          },
          "name": {
            "$ref": "#/components/schemas/Tool_plain",
            "minLength": 1,
            "maxLength": 80
          },
          "url": {
            "$ref": "#/components/schemas/Tool_url",
            "description": "The tool's home page."
          },
          "tagline": {
            "$ref": "#/components/schemas/Tool_plain",
            "minLength": 3,
            "maxLength": 60,
            "description": "What the tool is, in one line."
          },
          "description": {
            "$ref": "#/components/schemas/Tool_plain",
            "minLength": 20,
            "maxLength": 600,
            "description": "Plain text, no Markdown or HTML. Written by the editor, or by the vendor when listing.source is vendor."
          },
          "body": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 20000,
            "description": "Optional editorial Markdown shown under the facts. Never vendor-written."
          },
          "silo": {
            "$ref": "#/components/schemas/Tool_slug",
            "description": "Silo slug from src/data/taxonomy.json."
          },
          "category": {
            "$ref": "#/components/schemas/Tool_slug",
            "description": "Primary category: a sub-category slug of the silo, or the silo slug itself when the silo has no sub-categories."
          },
          "categories": {
            "type": "array",
            "maxItems": 3,
            "uniqueItems": true,
            "items": {
              "$ref": "#/components/schemas/Tool_slug"
            },
            "description": "Up to 3 extra taxonomy slugs (sub-categories, or silos without sub-categories)."
          },
          "pricing": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "model"
            ],
            "properties": {
              "model": {
                "enum": [
                  "free",
                  "freemium",
                  "paid",
                  "open-source",
                  "contact",
                  "unknown"
                ]
              },
              "starting_price_usd": {
                "type": [
                  "number",
                  "null"
                ],
                "minimum": 0,
                "description": "Lowest paid price in US dollars per billing period. null when not checked or not public."
              },
              "billing": {
                "enum": [
                  "month",
                  "year",
                  "one-time",
                  "usage",
                  null
                ]
              },
              "free_tier": {
                "$ref": "#/components/schemas/Tool_boolOrNull"
              },
              "free_trial": {
                "$ref": "#/components/schemas/Tool_boolOrNull"
              },
              "pricing_url": {
                "$ref": "#/components/schemas/Tool_urlOrNull"
              },
              "checked": {
                "$ref": "#/components/schemas/Tool_dateOrNull",
                "description": "Date the pricing was last checked."
              },
              "price_note": {
                "type": [
                  "string",
                  "null"
                ],
                "maxLength": 100,
                "pattern": "^[^<>\\n]*$",
                "description": "What the starting price is based on, when that is not obvious (for example \"billed monthly; $38 a month when billed yearly\"). Shown after the price."
              }
            }
          },
          "open_source": {
            "$ref": "#/components/schemas/Tool_boolOrNull"
          },
          "license": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 60,
            "description": "SPDX identifier where possible, for example MIT or AGPL-3.0."
          },
          "repo_url": {
            "$ref": "#/components/schemas/Tool_urlOrNull"
          },
          "self_hosted": {
            "$ref": "#/components/schemas/Tool_boolOrNull",
            "description": "Can be installed and run on your own server."
          },
          "works_with": {
            "type": "array",
            "uniqueItems": true,
            "items": {
              "$ref": "#/components/schemas/Tool_slug"
            },
            "description": "Platform slugs from src/data/platforms.json."
          },
          "audiences": {
            "type": "array",
            "uniqueItems": true,
            "items": {
              "enum": [
                "creator",
                "media-company",
                "internal-comms",
                "ecommerce",
                "developer"
              ]
            }
          },
          "agent": {
            "type": "object",
            "additionalProperties": false,
            "description": "What an AI agent or developer can use. Each boolean is null until someone checks it.",
            "properties": {
              "api": {
                "$ref": "#/components/schemas/Tool_boolOrNull"
              },
              "api_docs_url": {
                "$ref": "#/components/schemas/Tool_urlOrNull"
              },
              "openapi_url": {
                "$ref": "#/components/schemas/Tool_urlOrNull"
              },
              "mcp": {
                "$ref": "#/components/schemas/Tool_boolOrNull",
                "description": "Publishes a Model Context Protocol server (official, not a third-party wrapper)."
              },
              "mcp_url": {
                "$ref": "#/components/schemas/Tool_urlOrNull"
              },
              "llms_txt": {
                "$ref": "#/components/schemas/Tool_boolOrNull",
                "description": "Serves /llms.txt on its site or docs."
              },
              "webhooks": {
                "$ref": "#/components/schemas/Tool_boolOrNull"
              },
              "cli": {
                "$ref": "#/components/schemas/Tool_boolOrNull"
              }
            }
          },
          "compliance": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "gdpr": {
                "$ref": "#/components/schemas/Tool_boolOrNull",
                "description": "States GDPR compliance and offers a data processing agreement."
              },
              "eu_hosting": {
                "$ref": "#/components/schemas/Tool_boolOrNull",
                "description": "Can store subscriber data in the EU."
              }
            }
          },
          "languages": {
            "type": "array",
            "uniqueItems": true,
            "items": {
              "type": "string",
              "pattern": "^[a-z]{2,3}(-[A-Z]{2})?$"
            },
            "description": "Interface languages as language codes, for example en, de, pt-BR."
          },
          "company": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "maxLength": 120
              },
              "founded": {
                "type": [
                  "integer",
                  "null"
                ],
                "minimum": 1990,
                "maximum": 2100
              },
              "country": {
                "type": [
                  "string",
                  "null"
                ],
                "pattern": "^[A-Z]{2}$",
                "description": "ISO 3166-1 alpha-2 code."
              }
            }
          },
          "links": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "docs": {
                "$ref": "#/components/schemas/Tool_urlOrNull"
              },
              "changelog": {
                "$ref": "#/components/schemas/Tool_urlOrNull"
              },
              "github": {
                "$ref": "#/components/schemas/Tool_urlOrNull"
              },
              "x": {
                "$ref": "#/components/schemas/Tool_urlOrNull"
              },
              "linkedin": {
                "$ref": "#/components/schemas/Tool_urlOrNull"
              }
            }
          },
          "logo": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^/logos/[a-z0-9-]+\\.(svg|png|webp)$",
            "description": "Path to a logo file in public/logos/. null renders a monogram tile. No hotlinking."
          },
          "screenshots": {
            "type": "array",
            "maxItems": 5,
            "items": {
              "type": "string",
              "pattern": "^/screenshots/[a-z0-9-]+\\.(png|webp|jpg)$"
            }
          },
          "alternatives_to": {
            "type": "array",
            "uniqueItems": true,
            "items": {
              "$ref": "#/components/schemas/Tool_slug"
            },
            "description": "Slugs of tools this one is an alternative to."
          },
          "successor": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Tool_slug"
              },
              {
                "type": "null"
              }
            ],
            "description": "For a renamed or acquired tool: the slug of the tool that replaced it."
          },
          "status": {
            "enum": [
              "active",
              "beta",
              "renamed",
              "acquired",
              "shut-down"
            ]
          },
          "status_note": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 300,
            "pattern": "^[^<>\\n]*$"
          },
          "formerly": {
            "type": "array",
            "uniqueItems": true,
            "items": {
              "$ref": "#/components/schemas/Tool_plain",
              "maxLength": 80
            },
            "description": "Earlier names of this tool."
          },
          "listing": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "tier",
              "source",
              "added",
              "updated",
              "verified",
              "source_urls"
            ],
            "properties": {
              "tier": {
                "enum": [
                  "free",
                  "featured"
                ]
              },
              "source": {
                "enum": [
                  "editorial",
                  "vendor"
                ],
                "description": "Who wrote the description."
              },
              "added": {
                "$ref": "#/components/schemas/Tool_date"
              },
              "updated": {
                "$ref": "#/components/schemas/Tool_date"
              },
              "verified": {
                "$ref": "#/components/schemas/Tool_dateOrNull",
                "description": "Date a person or agent last checked the facts against source_urls, or null."
              },
              "source_urls": {
                "type": "array",
                "uniqueItems": true,
                "items": {
                  "$ref": "#/components/schemas/Tool_url"
                }
              }
            }
          },
          "notice": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 300,
            "pattern": "^[^<>\\n]*$",
            "description": "A dated public notice about a tool that still operates but is changing (for example closing on a known date). Shown as a banner on the tool page and its Markdown twin."
          }
        }
      },
      "ToolRecord": {
        "title": "Newsletter tool listing",
        "description": "A tool record as served at /api/tools/{slug}.json: the fields of /schema/tool.schema.json plus page, markdown and schema URLs.",
        "type": "object",
        "additionalProperties": false,
        "required": [
          "slug",
          "name",
          "url",
          "tagline",
          "description",
          "silo",
          "category",
          "pricing",
          "status",
          "listing"
        ],
        "properties": {
          "slug": {
            "$ref": "#/components/schemas/Tool_slug",
            "description": "URL slug: /tools/{slug}/. Must match the file name."
          },
          "name": {
            "$ref": "#/components/schemas/Tool_plain",
            "minLength": 1,
            "maxLength": 80
          },
          "url": {
            "$ref": "#/components/schemas/Tool_url",
            "description": "The tool's home page."
          },
          "tagline": {
            "$ref": "#/components/schemas/Tool_plain",
            "minLength": 3,
            "maxLength": 60,
            "description": "What the tool is, in one line."
          },
          "description": {
            "$ref": "#/components/schemas/Tool_plain",
            "minLength": 20,
            "maxLength": 600,
            "description": "Plain text, no Markdown or HTML. Written by the editor, or by the vendor when listing.source is vendor."
          },
          "body": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 20000,
            "description": "Optional editorial Markdown shown under the facts. Never vendor-written."
          },
          "silo": {
            "$ref": "#/components/schemas/Tool_slug",
            "description": "Silo slug from src/data/taxonomy.json."
          },
          "category": {
            "$ref": "#/components/schemas/Tool_slug",
            "description": "Primary category: a sub-category slug of the silo, or the silo slug itself when the silo has no sub-categories."
          },
          "categories": {
            "type": "array",
            "maxItems": 3,
            "uniqueItems": true,
            "items": {
              "$ref": "#/components/schemas/Tool_slug"
            },
            "description": "Up to 3 extra taxonomy slugs (sub-categories, or silos without sub-categories)."
          },
          "pricing": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "model"
            ],
            "properties": {
              "model": {
                "enum": [
                  "free",
                  "freemium",
                  "paid",
                  "open-source",
                  "contact",
                  "unknown"
                ]
              },
              "starting_price_usd": {
                "type": [
                  "number",
                  "null"
                ],
                "minimum": 0,
                "description": "Lowest paid price in US dollars per billing period. null when not checked or not public."
              },
              "billing": {
                "enum": [
                  "month",
                  "year",
                  "one-time",
                  "usage",
                  null
                ]
              },
              "free_tier": {
                "$ref": "#/components/schemas/Tool_boolOrNull"
              },
              "free_trial": {
                "$ref": "#/components/schemas/Tool_boolOrNull"
              },
              "pricing_url": {
                "$ref": "#/components/schemas/Tool_urlOrNull"
              },
              "checked": {
                "$ref": "#/components/schemas/Tool_dateOrNull",
                "description": "Date the pricing was last checked."
              },
              "price_note": {
                "type": [
                  "string",
                  "null"
                ],
                "maxLength": 100,
                "pattern": "^[^<>\\n]*$",
                "description": "What the starting price is based on, when that is not obvious (for example \"billed monthly; $38 a month when billed yearly\"). Shown after the price."
              }
            }
          },
          "open_source": {
            "$ref": "#/components/schemas/Tool_boolOrNull"
          },
          "license": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 60,
            "description": "SPDX identifier where possible, for example MIT or AGPL-3.0."
          },
          "repo_url": {
            "$ref": "#/components/schemas/Tool_urlOrNull"
          },
          "self_hosted": {
            "$ref": "#/components/schemas/Tool_boolOrNull",
            "description": "Can be installed and run on your own server."
          },
          "works_with": {
            "type": "array",
            "uniqueItems": true,
            "items": {
              "$ref": "#/components/schemas/Tool_slug"
            },
            "description": "Platform slugs from src/data/platforms.json."
          },
          "audiences": {
            "type": "array",
            "uniqueItems": true,
            "items": {
              "enum": [
                "creator",
                "media-company",
                "internal-comms",
                "ecommerce",
                "developer"
              ]
            }
          },
          "agent": {
            "type": "object",
            "additionalProperties": false,
            "description": "What an AI agent or developer can use. Each boolean is null until someone checks it.",
            "properties": {
              "api": {
                "$ref": "#/components/schemas/Tool_boolOrNull"
              },
              "api_docs_url": {
                "$ref": "#/components/schemas/Tool_urlOrNull"
              },
              "openapi_url": {
                "$ref": "#/components/schemas/Tool_urlOrNull"
              },
              "mcp": {
                "$ref": "#/components/schemas/Tool_boolOrNull",
                "description": "Publishes a Model Context Protocol server (official, not a third-party wrapper)."
              },
              "mcp_url": {
                "$ref": "#/components/schemas/Tool_urlOrNull"
              },
              "llms_txt": {
                "$ref": "#/components/schemas/Tool_boolOrNull",
                "description": "Serves /llms.txt on its site or docs."
              },
              "webhooks": {
                "$ref": "#/components/schemas/Tool_boolOrNull"
              },
              "cli": {
                "$ref": "#/components/schemas/Tool_boolOrNull"
              }
            }
          },
          "compliance": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "gdpr": {
                "$ref": "#/components/schemas/Tool_boolOrNull",
                "description": "States GDPR compliance and offers a data processing agreement."
              },
              "eu_hosting": {
                "$ref": "#/components/schemas/Tool_boolOrNull",
                "description": "Can store subscriber data in the EU."
              }
            }
          },
          "languages": {
            "type": "array",
            "uniqueItems": true,
            "items": {
              "type": "string",
              "pattern": "^[a-z]{2,3}(-[A-Z]{2})?$"
            },
            "description": "Interface languages as language codes, for example en, de, pt-BR."
          },
          "company": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "maxLength": 120
              },
              "founded": {
                "type": [
                  "integer",
                  "null"
                ],
                "minimum": 1990,
                "maximum": 2100
              },
              "country": {
                "type": [
                  "string",
                  "null"
                ],
                "pattern": "^[A-Z]{2}$",
                "description": "ISO 3166-1 alpha-2 code."
              }
            }
          },
          "links": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "docs": {
                "$ref": "#/components/schemas/Tool_urlOrNull"
              },
              "changelog": {
                "$ref": "#/components/schemas/Tool_urlOrNull"
              },
              "github": {
                "$ref": "#/components/schemas/Tool_urlOrNull"
              },
              "x": {
                "$ref": "#/components/schemas/Tool_urlOrNull"
              },
              "linkedin": {
                "$ref": "#/components/schemas/Tool_urlOrNull"
              }
            }
          },
          "logo": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^/logos/[a-z0-9-]+\\.(svg|png|webp)$",
            "description": "Path to a logo file in public/logos/. null renders a monogram tile. No hotlinking."
          },
          "screenshots": {
            "type": "array",
            "maxItems": 5,
            "items": {
              "type": "string",
              "pattern": "^/screenshots/[a-z0-9-]+\\.(png|webp|jpg)$"
            }
          },
          "alternatives_to": {
            "type": "array",
            "uniqueItems": true,
            "items": {
              "$ref": "#/components/schemas/Tool_slug"
            },
            "description": "Slugs of tools this one is an alternative to."
          },
          "successor": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Tool_slug"
              },
              {
                "type": "null"
              }
            ],
            "description": "For a renamed or acquired tool: the slug of the tool that replaced it."
          },
          "status": {
            "enum": [
              "active",
              "beta",
              "renamed",
              "acquired",
              "shut-down"
            ]
          },
          "status_note": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 300,
            "pattern": "^[^<>\\n]*$"
          },
          "formerly": {
            "type": "array",
            "uniqueItems": true,
            "items": {
              "$ref": "#/components/schemas/Tool_plain",
              "maxLength": 80
            },
            "description": "Earlier names of this tool."
          },
          "listing": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "tier",
              "source",
              "added",
              "updated",
              "verified",
              "source_urls"
            ],
            "properties": {
              "tier": {
                "enum": [
                  "free",
                  "featured"
                ]
              },
              "source": {
                "enum": [
                  "editorial",
                  "vendor"
                ],
                "description": "Who wrote the description."
              },
              "added": {
                "$ref": "#/components/schemas/Tool_date"
              },
              "updated": {
                "$ref": "#/components/schemas/Tool_date"
              },
              "verified": {
                "$ref": "#/components/schemas/Tool_dateOrNull",
                "description": "Date a person or agent last checked the facts against source_urls, or null."
              },
              "source_urls": {
                "type": "array",
                "uniqueItems": true,
                "items": {
                  "$ref": "#/components/schemas/Tool_url"
                }
              }
            }
          },
          "notice": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 300,
            "pattern": "^[^<>\\n]*$",
            "description": "A dated public notice about a tool that still operates but is changing (for example closing on a known date). Shown as a banner on the tool page and its Markdown twin."
          },
          "page": {
            "type": "string",
            "format": "uri"
          },
          "markdown": {
            "type": "string",
            "format": "uri"
          },
          "schema": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "Tool_slug": {
        "type": "string",
        "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
        "maxLength": 60
      },
      "Tool_url": {
        "type": "string",
        "format": "uri",
        "pattern": "^https?://[^\\s]+$"
      },
      "Tool_urlOrNull": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/Tool_url"
          },
          {
            "type": "null"
          }
        ]
      },
      "Tool_boolOrNull": {
        "type": [
          "boolean",
          "null"
        ],
        "description": "true, false, or null for not checked."
      },
      "Tool_date": {
        "type": "string",
        "format": "date"
      },
      "Tool_dateOrNull": {
        "oneOf": [
          {
            "type": "string",
            "format": "date"
          },
          {
            "type": "null"
          }
        ]
      },
      "Tool_plain": {
        "type": "string",
        "pattern": "^[^<>\\n]*$"
      },
      "SubmissionCreated": {
        "type": "object",
        "required": [
          "code",
          "submission_id",
          "status",
          "status_url",
          "message"
        ],
        "properties": {
          "code": {
            "const": "created"
          },
          "submission_id": {
            "type": "string",
            "pattern": "^sub_[a-z2-9]{20}$"
          },
          "status": {
            "const": "pending"
          },
          "status_url": {
            "type": "string",
            "format": "uri"
          },
          "message": {
            "type": "string"
          },
          "message_for_user": {
            "type": "string",
            "description": "A sentence an agent can pass to the person it acts for."
          }
        }
      },
      "SubmissionReplayed": {
        "allOf": [
          {
            "$ref": "#/components/schemas/SubmissionCreated"
          }
        ],
        "properties": {
          "code": {
            "const": "duplicate_request"
          },
          "original_code": {
            "const": "created"
          }
        }
      },
      "SubmissionStatus": {
        "type": "object",
        "required": [
          "code",
          "submission_id",
          "status"
        ],
        "properties": {
          "code": {
            "const": "ok"
          },
          "submission_id": {
            "type": "string"
          },
          "status": {
            "enum": [
              "pending",
              "approved",
              "rejected"
            ]
          },
          "submitted_at": {
            "type": "string",
            "format": "date-time"
          },
          "reviewed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "listing_url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "Set once the approved tool is live on the site."
          }
        }
      },
      "AlreadyListed": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Error"
          }
        ],
        "properties": {
          "code": {
            "const": "already_listed"
          },
          "listing_url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "The listed tool, or null when the match is a queued submission."
          },
          "status_url": {
            "type": "string",
            "format": "uri",
            "description": "Present when the match is a queued submission."
          },
          "existing": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "state": {
                "enum": [
                  "listed",
                  "in_review",
                  "approved"
                ]
              }
            }
          }
        }
      },
      "Error": {
        "type": "object",
        "required": [
          "code",
          "message"
        ],
        "properties": {
          "code": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "errors": {
            "type": "array",
            "description": "Only with `validation_failed`: one entry per field.",
            "items": {
              "type": "object",
              "required": [
                "field",
                "problem"
              ],
              "properties": {
                "field": {
                  "type": "string"
                },
                "problem": {
                  "type": "string"
                }
              }
            }
          },
          "retry_after": {
            "type": "integer",
            "description": "Only with `rate_limited`."
          }
        }
      }
    }
  }
}