{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/serp-agent-com/json-schema/serp-agent-com-article-schema.json",
  "title": "Article",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/serp-agent-com-openapi.json#/components/schemas/Article",
  "type": "object",
  "required": [
    "article_id",
    "project_id",
    "status"
  ],
  "properties": {
    "article_id": {
      "type": "string"
    },
    "project_id": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "generating",
        "qa",
        "ready",
        "published",
        "failed"
      ],
      "description": "generating → qa → ready. \"published\" if/when the operator publishes it. Content fields appear at ready/published."
    },
    "title": {
      "type": [
        "string",
        "null"
      ]
    },
    "meta_description": {
      "type": [
        "string",
        "null"
      ]
    },
    "content_markdown": {
      "type": [
        "string",
        "null"
      ],
      "description": "Full article body as markdown."
    },
    "word_count": {
      "type": [
        "integer",
        "null"
      ]
    },
    "qa_score": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Internal QA score 0–100."
    },
    "language": {
      "type": "string"
    },
    "error": {
      "type": "string",
      "description": "Present only when failed."
    },
    "watermark": {
      "type": "object",
      "description": "Present on sandbox projects — the article is a draft-only trial output.",
      "properties": {
        "sandbox": {
          "type": "boolean",
          "const": true
        },
        "note": {
          "type": "string"
        }
      }
    }
  }
}