{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/serp-agent-com/json-schema/serp-agent-com-project-schema.json",
  "title": "Project",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/serp-agent-com-openapi.json#/components/schemas/Project",
  "type": "object",
  "required": [
    "project_id",
    "url",
    "name",
    "status",
    "language",
    "country",
    "sandbox",
    "access",
    "created_at"
  ],
  "properties": {
    "project_id": {
      "type": "string"
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "name": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "setup",
        "running",
        "completed",
        "paused"
      ],
      "description": "Lifecycle of the project's background processing."
    },
    "language": {
      "type": "string"
    },
    "country": {
      "type": "string"
    },
    "sandbox": {
      "type": "boolean",
      "description": "True for projects created with a sandbox key (draft-only articles, trial budgets)."
    },
    "access": {
      "type": "string",
      "enum": [
        "active",
        "pending_payment",
        "sandbox"
      ],
      "description": "Billing gate: audits/articles require \"active\" or \"sandbox\". \"pending_payment\" projects return 402 on work endpoints."
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "counts": {
      "type": "object",
      "description": "Present on list/detail responses.",
      "properties": {
        "keywords": {
          "type": "integer"
        },
        "articles": {
          "type": "integer"
        },
        "audits": {
          "type": "integer"
        }
      }
    }
  }
}