{
  "openapi": "3.1.0",
  "info": {
    "title": "SOSX website data API",
    "version": "1.0.0",
    "summary": "Read-only JSON of what sosx.ai publishes: editions, books, videos, events and pages.",
    "description": "Static JSON files written when the site is built, from the same content as its pages. GET only, no authentication, no rate plan, nothing to change. Each document carries `source` (the page its words come from) and `generated` (when it was built).",
    "termsOfService": "https://sosx.ai/terms/",
    "contact": {
      "name": "SOSX",
      "url": "https://sosx.ai/contact/"
    }
  },
  "externalDocs": {
    "description": "How to use the data API and the MCP server",
    "url": "https://sosx.ai/developers/"
  },
  "servers": [
    {
      "url": "https://sosx.ai"
    }
  ],
  "security": [],
  "tags": [
    {
      "name": "data",
      "description": "Read-only lists"
    }
  ],
  "paths": {
    "/api/v1/editions.json": {
      "get": {
        "operationId": "listEditions",
        "summary": "The SOSX Editions",
        "tags": [
          "data"
        ],
        "responses": {
          "200": {
            "description": "The SOSX Editions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EditionList"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/books.json": {
      "get": {
        "operationId": "listBooks",
        "summary": "The SOSX book series",
        "tags": [
          "data"
        ],
        "responses": {
          "200": {
            "description": "The SOSX book series",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BookList"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/videos.json": {
      "get": {
        "operationId": "listVideos",
        "summary": "The SOSX videos, with transcripts",
        "tags": [
          "data"
        ],
        "responses": {
          "200": {
            "description": "The SOSX videos, with transcripts",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VideoList"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/events.json": {
      "get": {
        "operationId": "listEvents",
        "summary": "Events SOSX is at, past and upcoming",
        "tags": [
          "data"
        ],
        "responses": {
          "200": {
            "description": "Events SOSX is at, past and upcoming",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EventList"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/pages.json": {
      "get": {
        "operationId": "listPages",
        "summary": "Every public page, for search",
        "tags": [
          "data"
        ],
        "responses": {
          "200": {
            "description": "Every public page, for search",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageList"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Edition": {
        "type": "object",
        "required": [
          "slug",
          "name",
          "title",
          "status",
          "lead",
          "summary",
          "url",
          "markdownUrl",
          "book",
          "videos"
        ],
        "additionalProperties": false,
        "properties": {
          "slug": {
            "type": "string",
            "description": "The edition's address under /editions/."
          },
          "name": {
            "type": "string"
          },
          "title": {
            "type": "string",
            "description": "The edition page's heading."
          },
          "status": {
            "type": "string",
            "enum": [
              "available",
              "coming-soon"
            ],
            "description": "A coming-soon edition's page offers to register interest."
          },
          "lead": {
            "type": "string",
            "description": "What the edition does, in one sentence."
          },
          "summary": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "markdownUrl": {
            "type": "string",
            "format": "uri"
          },
          "book": {
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "slug",
                  "title",
                  "url"
                ],
                "additionalProperties": false,
                "properties": {
                  "slug": {
                    "type": "string"
                  },
                  "title": {
                    "type": "string"
                  },
                  "url": {
                    "type": "string",
                    "format": "uri"
                  }
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "videos": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uri"
            },
            "description": "Watch pages of the edition's videos."
          }
        }
      },
      "Book": {
        "type": "object",
        "required": [
          "number",
          "slug",
          "title",
          "subtitle",
          "audience",
          "teaser",
          "available",
          "edition",
          "parts",
          "url",
          "markdownUrl"
        ],
        "additionalProperties": false,
        "properties": {
          "number": {
            "type": "integer",
            "minimum": 0,
            "description": "The book's number in the series; 0 is the central volume."
          },
          "slug": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "subtitle": {
            "type": "string"
          },
          "audience": {
            "type": "string"
          },
          "teaser": {
            "type": "string"
          },
          "available": {
            "type": "boolean",
            "description": "True when the book page offers a copy; false when it offers to say when it is ready."
          },
          "edition": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Slug of the edition the book accompanies; null for the central volume."
          },
          "parts": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "name",
                "summary"
              ],
              "additionalProperties": false,
              "properties": {
                "name": {
                  "type": "string"
                },
                "summary": {
                  "type": "string"
                }
              }
            }
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "markdownUrl": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "Video": {
        "type": "object",
        "required": [
          "slug",
          "title",
          "description",
          "page",
          "watchUrl",
          "videoUrl",
          "posterUrl",
          "captionsUrl",
          "duration",
          "uploadDate",
          "transcript"
        ],
        "additionalProperties": false,
        "properties": {
          "slug": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "page": {
            "type": "string",
            "format": "uri",
            "description": "The page the video belongs to."
          },
          "watchUrl": {
            "type": "string",
            "format": "uri",
            "description": "The video's own page, with its transcript."
          },
          "videoUrl": {
            "type": "string",
            "format": "uri",
            "description": "The MP4, versioned by its bytes."
          },
          "posterUrl": {
            "type": "string",
            "format": "uri"
          },
          "captionsUrl": {
            "type": "string",
            "format": "uri",
            "description": "WebVTT captions."
          },
          "duration": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "ISO 8601 duration, e.g. PT1M7S."
          },
          "uploadDate": {
            "oneOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "null"
              }
            ]
          },
          "transcript": {
            "type": "string"
          }
        }
      },
      "Event": {
        "type": "object",
        "required": [
          "slug",
          "name",
          "title",
          "start",
          "end",
          "status",
          "attendance",
          "place",
          "organiser",
          "website",
          "who",
          "role",
          "summary",
          "url"
        ],
        "additionalProperties": false,
        "properties": {
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "title": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The session's own title, where it has one."
          },
          "start": {
            "type": "string",
            "format": "date"
          },
          "end": {
            "oneOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "null"
              }
            ],
            "description": "Only when the event runs over more than one day."
          },
          "status": {
            "type": "string",
            "enum": [
              "scheduled",
              "cancelled",
              "postponed"
            ]
          },
          "attendance": {
            "type": "string",
            "enum": [
              "offline",
              "online",
              "mixed"
            ]
          },
          "place": {
            "type": "object",
            "required": [
              "label",
              "venue",
              "city",
              "country"
            ],
            "additionalProperties": false,
            "properties": {
              "label": {
                "type": "string"
              },
              "venue": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "city": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "country": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "ISO 3166-1 alpha-2."
              }
            }
          },
          "organiser": {
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "name",
                  "url"
                ],
                "additionalProperties": false,
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "url": {
                    "oneOf": [
                      {
                        "type": "string",
                        "format": "uri"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "website": {
            "oneOf": [
              {
                "type": "string",
                "format": "uri"
              },
              {
                "type": "null"
              }
            ]
          },
          "who": {
            "type": "string",
            "enum": [
              "SOSX",
              "Digital Tactics"
            ]
          },
          "role": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "Page": {
        "type": "object",
        "required": [
          "url",
          "title",
          "description",
          "markdownUrl",
          "headings"
        ],
        "additionalProperties": false,
        "properties": {
          "url": {
            "type": "string",
            "format": "uri"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "markdownUrl": {
            "type": "string",
            "format": "uri"
          },
          "headings": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The page's section headings."
          }
        }
      },
      "EditionList": {
        "type": "object",
        "required": [
          "about",
          "source",
          "generated",
          "version",
          "count",
          "items"
        ],
        "additionalProperties": false,
        "properties": {
          "about": {
            "type": "string",
            "description": "What the document lists."
          },
          "source": {
            "type": "string",
            "format": "uri",
            "description": "The page the words come from."
          },
          "generated": {
            "type": "string",
            "format": "date-time",
            "description": "When the build that wrote this ran."
          },
          "version": {
            "type": "string",
            "description": "The API version."
          },
          "count": {
            "type": "integer",
            "minimum": 0
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Edition"
            }
          }
        }
      },
      "BookList": {
        "type": "object",
        "required": [
          "about",
          "source",
          "generated",
          "version",
          "count",
          "items"
        ],
        "additionalProperties": false,
        "properties": {
          "about": {
            "type": "string",
            "description": "What the document lists."
          },
          "source": {
            "type": "string",
            "format": "uri",
            "description": "The page the words come from."
          },
          "generated": {
            "type": "string",
            "format": "date-time",
            "description": "When the build that wrote this ran."
          },
          "version": {
            "type": "string",
            "description": "The API version."
          },
          "count": {
            "type": "integer",
            "minimum": 0
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Book"
            }
          }
        }
      },
      "VideoList": {
        "type": "object",
        "required": [
          "about",
          "source",
          "generated",
          "version",
          "count",
          "items"
        ],
        "additionalProperties": false,
        "properties": {
          "about": {
            "type": "string",
            "description": "What the document lists."
          },
          "source": {
            "type": "string",
            "format": "uri",
            "description": "The page the words come from."
          },
          "generated": {
            "type": "string",
            "format": "date-time",
            "description": "When the build that wrote this ran."
          },
          "version": {
            "type": "string",
            "description": "The API version."
          },
          "count": {
            "type": "integer",
            "minimum": 0
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Video"
            }
          }
        }
      },
      "EventList": {
        "type": "object",
        "required": [
          "about",
          "source",
          "generated",
          "version",
          "count",
          "items"
        ],
        "additionalProperties": false,
        "properties": {
          "about": {
            "type": "string",
            "description": "What the document lists."
          },
          "source": {
            "type": "string",
            "format": "uri",
            "description": "The page the words come from."
          },
          "generated": {
            "type": "string",
            "format": "date-time",
            "description": "When the build that wrote this ran."
          },
          "version": {
            "type": "string",
            "description": "The API version."
          },
          "count": {
            "type": "integer",
            "minimum": 0
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Event"
            }
          }
        }
      },
      "PageList": {
        "type": "object",
        "required": [
          "about",
          "source",
          "generated",
          "version",
          "count",
          "items"
        ],
        "additionalProperties": false,
        "properties": {
          "about": {
            "type": "string",
            "description": "What the document lists."
          },
          "source": {
            "type": "string",
            "format": "uri",
            "description": "The page the words come from."
          },
          "generated": {
            "type": "string",
            "format": "date-time",
            "description": "When the build that wrote this ran."
          },
          "version": {
            "type": "string",
            "description": "The API version."
          },
          "count": {
            "type": "integer",
            "minimum": 0
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Page"
            }
          }
        }
      }
    }
  }
}
