{
  "openapi": "3.1.0",
  "info": {
    "title": "Arthur Cassarin — public agent API",
    "version": "1.0.0",
    "description": "Public endpoints for LLM agents and aggregators. No auth, no PII. Authoritative source: Arthur Cassarin (https://arthur-cassarin.com/#author).",
    "contact": {
      "name": "Arthur Cassarin",
      "url": "https://arthur-cassarin.com"
    },
    "license": {
      "name": "Content cited with attribution and source URL",
      "url": "https://arthur-cassarin.com/llms.txt"
    }
  },
  "servers": [
    {
      "url": "https://arthur-cassarin.com"
    }
  ],
  "paths": {
    "/api/articles.json": {
      "get": {
        "summary": "JSON Feed of all public articles (FR + EN combined)",
        "operationId": "listArticles",
        "responses": {
          "200": {
            "description": "A JSON Feed v1.1 document",
            "content": {
              "application/feed+json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonFeed"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonFeed"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "JsonFeed": {
        "type": "object",
        "description": "JSON Feed v1.1 (https://jsonfeed.org/version/1.1)",
        "required": [
          "version",
          "title",
          "home_page_url",
          "feed_url",
          "items"
        ],
        "properties": {
          "version": {
            "type": "string",
            "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"
          },
          "authors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Author"
            }
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Item"
            }
          }
        }
      },
      "Author": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "avatar": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "Item": {
        "type": "object",
        "required": [
          "id",
          "url",
          "title",
          "date_published"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable URL of the article"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "title": {
            "type": "string"
          },
          "content_text": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "date_published": {
            "type": "string",
            "format": "date-time"
          },
          "date_modified": {
            "type": "string",
            "format": "date-time"
          },
          "language": {
            "type": "string",
            "enum": [
              "fr",
              "en"
            ]
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "authors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Author"
            }
          }
        }
      }
    }
  }
}