{"openapi":"3.1.0","info":{"title":"Phoenix STS public content API","version":"1.0.0","x-api-versioning":{"header":"API-Version","current":"1","supported":["1"],"deprecation":"A version is announced as deprecated at least 6 months before it stops working, using the Deprecation (RFC 9745) and Sunset (RFC 8594) response headers. Additive changes do not need a new version.","documentation":"https://phoenixsts.ie/developers#versioning"},"description":"Read-only access to the published content of phoenixsts.ie: pages, news and articles, categories and site search. No authentication is needed. Responses carry API-Version and RateLimit-* headers; a 429 carries Retry-After. Pin the contract with the API-Version request header; breaking changes ship as a new version. The same content is available over MCP at /mcp. Guide: /developers.","contact":{"name":"Phoenix STS","email":"info@phoenixsts.ie","url":"https://phoenixsts.ie/contact-us"}},"servers":[{"url":"https://phoenixsts.ie"}],"externalDocs":{"description":"Developer guide","url":"https://phoenixsts.ie/developers"},"security":[{},{"anonymousAccess":["content:read"]}],"paths":{"/api/pages":{"get":{"operationId":"listPages","summary":"List published pages","description":"Returns published pages. Filter by slug with where[slug][equals]=fire-safety. Pages have a layout array of content blocks.","tags":["Pages"],"x-required-scopes":["content:read"],"parameters":[{"$ref":"#/components/parameters/ApiVersion"},{"name":"limit","in":"query","description":"Documents per page (default 10, use 0 for all).","schema":{"type":"integer","minimum":0,"default":10}},{"name":"page","in":"query","description":"Page number, starting at 1.","schema":{"type":"integer","minimum":1,"default":1}},{"name":"depth","in":"query","description":"How many levels of relationships to populate (0 returns ids only).","schema":{"type":"integer","minimum":0,"maximum":3,"default":0}},{"name":"sort","in":"query","description":"Field to sort by; prefix with - for descending, e.g. -publishedAt.","schema":{"type":"string"}},{"name":"where[slug][equals]","in":"query","description":"Return only the page with this slug.","schema":{"type":"string"}}],"responses":{"200":{"description":"A page of published pages.","headers":{"API-Version":{"$ref":"#/components/headers/ApiVersion"},"RateLimit-Limit":{"description":"Requests allowed in the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagePage"}}}},"429":{"description":"Rate limit exceeded. Wait Retry-After seconds before retrying.","headers":{"Retry-After":{"description":"Seconds to wait.","schema":{"type":"integer"}},"API-Version":{"$ref":"#/components/headers/ApiVersion"},"RateLimit-Limit":{"description":"Requests allowed in the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/pages/{id}":{"get":{"operationId":"getPage","summary":"Get one published page","description":"Returns a single published page by id.","tags":["Pages"],"x-required-scopes":["content:read"],"parameters":[{"$ref":"#/components/parameters/ApiVersion"},{"name":"id","in":"path","required":true,"description":"Numeric document id.","schema":{"type":"integer"}},{"name":"depth","in":"query","description":"How many levels of relationships to populate (0 returns ids only).","schema":{"type":"integer","minimum":0,"maximum":3,"default":0}}],"responses":{"200":{"description":"The page.","headers":{"API-Version":{"$ref":"#/components/headers/ApiVersion"},"RateLimit-Limit":{"description":"Requests allowed in the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page"}}}},"404":{"description":"No published document with that id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded. Wait Retry-After seconds before retrying.","headers":{"Retry-After":{"description":"Seconds to wait.","schema":{"type":"integer"}},"API-Version":{"$ref":"#/components/headers/ApiVersion"},"RateLimit-Limit":{"description":"Requests allowed in the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/posts":{"get":{"operationId":"listPosts","summary":"List published news and articles","description":"Returns published posts, newest first when sorted by -publishedAt. Filter by slug with where[slug][equals].","tags":["Posts"],"x-required-scopes":["content:read"],"parameters":[{"$ref":"#/components/parameters/ApiVersion"},{"name":"limit","in":"query","description":"Documents per page (default 10, use 0 for all).","schema":{"type":"integer","minimum":0,"default":10}},{"name":"page","in":"query","description":"Page number, starting at 1.","schema":{"type":"integer","minimum":1,"default":1}},{"name":"depth","in":"query","description":"How many levels of relationships to populate (0 returns ids only).","schema":{"type":"integer","minimum":0,"maximum":3,"default":0}},{"name":"sort","in":"query","description":"Field to sort by; prefix with - for descending, e.g. -publishedAt.","schema":{"type":"string"}},{"name":"where[slug][equals]","in":"query","description":"Return only the post with this slug.","schema":{"type":"string"}}],"responses":{"200":{"description":"A page of published posts.","headers":{"API-Version":{"$ref":"#/components/headers/ApiVersion"},"RateLimit-Limit":{"description":"Requests allowed in the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostPage"}}}},"429":{"description":"Rate limit exceeded. Wait Retry-After seconds before retrying.","headers":{"Retry-After":{"description":"Seconds to wait.","schema":{"type":"integer"}},"API-Version":{"$ref":"#/components/headers/ApiVersion"},"RateLimit-Limit":{"description":"Requests allowed in the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/posts/{id}":{"get":{"operationId":"getPost","summary":"Get one published post","description":"Returns a single published post by id.","tags":["Posts"],"x-required-scopes":["content:read"],"parameters":[{"$ref":"#/components/parameters/ApiVersion"},{"name":"id","in":"path","required":true,"description":"Numeric document id.","schema":{"type":"integer"}},{"name":"depth","in":"query","description":"How many levels of relationships to populate (0 returns ids only).","schema":{"type":"integer","minimum":0,"maximum":3,"default":0}}],"responses":{"200":{"description":"The post.","headers":{"API-Version":{"$ref":"#/components/headers/ApiVersion"},"RateLimit-Limit":{"description":"Requests allowed in the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Post"}}}},"404":{"description":"No published document with that id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded. Wait Retry-After seconds before retrying.","headers":{"Retry-After":{"description":"Seconds to wait.","schema":{"type":"integer"}},"API-Version":{"$ref":"#/components/headers/ApiVersion"},"RateLimit-Limit":{"description":"Requests allowed in the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/categories":{"get":{"operationId":"listCategories","summary":"List categories","description":"Returns the category taxonomy used to organise posts and online courses.","tags":["Categories"],"x-required-scopes":["content:read"],"parameters":[{"$ref":"#/components/parameters/ApiVersion"},{"name":"limit","in":"query","description":"Documents per page (default 10, use 0 for all).","schema":{"type":"integer","minimum":0,"default":10}},{"name":"page","in":"query","description":"Page number, starting at 1.","schema":{"type":"integer","minimum":1,"default":1}},{"name":"depth","in":"query","description":"How many levels of relationships to populate (0 returns ids only).","schema":{"type":"integer","minimum":0,"maximum":3,"default":0}},{"name":"sort","in":"query","description":"Field to sort by; prefix with - for descending, e.g. -publishedAt.","schema":{"type":"string"}}],"responses":{"200":{"description":"A page of categories.","headers":{"API-Version":{"$ref":"#/components/headers/ApiVersion"},"RateLimit-Limit":{"description":"Requests allowed in the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryPage"}}}},"429":{"description":"Rate limit exceeded. Wait Retry-After seconds before retrying.","headers":{"Retry-After":{"description":"Seconds to wait.","schema":{"type":"integer"}},"API-Version":{"$ref":"#/components/headers/ApiVersion"},"RateLimit-Limit":{"description":"Requests allowed in the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/search":{"get":{"operationId":"searchSite","summary":"Search pages and posts by title","description":"Searches the site index. Use where[title][like]=fire to match titles containing the term.","tags":["Search"],"x-required-scopes":["content:read"],"parameters":[{"$ref":"#/components/parameters/ApiVersion"},{"name":"limit","in":"query","description":"Documents per page (default 10, use 0 for all).","schema":{"type":"integer","minimum":0,"default":10}},{"name":"page","in":"query","description":"Page number, starting at 1.","schema":{"type":"integer","minimum":1,"default":1}},{"name":"depth","in":"query","description":"How many levels of relationships to populate (0 returns ids only).","schema":{"type":"integer","minimum":0,"maximum":3,"default":0}},{"name":"sort","in":"query","description":"Field to sort by; prefix with - for descending, e.g. -publishedAt.","schema":{"type":"string"}},{"name":"where[title][like]","in":"query","description":"Case-insensitive text to find in the title.","schema":{"type":"string"}}],"responses":{"200":{"description":"A page of search results.","headers":{"API-Version":{"$ref":"#/components/headers/ApiVersion"},"RateLimit-Limit":{"description":"Requests allowed in the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResultPage"}}}},"429":{"description":"Rate limit exceeded. Wait Retry-After seconds before retrying.","headers":{"Retry-After":{"description":"Seconds to wait.","schema":{"type":"integer"}},"API-Version":{"$ref":"#/components/headers/ApiVersion"},"RateLimit-Limit":{"description":"Requests allowed in the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"parameters":{"ApiVersion":{"name":"API-Version","in":"header","required":false,"description":"API version to use. Defaults to the current version (1). An unsupported value returns 400.","schema":{"type":"string","enum":["1"],"default":"1"}}},"headers":{"ApiVersion":{"description":"The API version that served the response.","schema":{"type":"string"}}},"securitySchemes":{"anonymousAccess":{"type":"http","scheme":"bearer","description":"No credential is required for these read-only operations; send none (the empty security requirement above). The scope names in x-required-scopes are the same ones the MCP endpoint and /.well-known/oauth-protected-resource advertise."}},"schemas":{"Error":{"type":"object","required":["errors"],"properties":{"errors":{"type":"array","items":{"type":"object","required":["message"],"properties":{"message":{"type":"string"}}}}}},"Page":{"type":"object","required":["id","title","slug"],"properties":{"id":{"type":"integer"},"title":{"type":"string"},"slug":{"type":"string"},"layout":{"type":"array","description":"Content blocks; each has a blockType.","items":{"type":"object","required":["blockType"],"properties":{"blockType":{"type":"string"}}}},"meta":{"$ref":"#/components/schemas/Meta"},"updatedAt":{"type":"string","format":"date-time"}}},"Post":{"type":"object","required":["id","title","slug"],"properties":{"id":{"type":"integer"},"title":{"type":"string"},"slug":{"type":"string"},"publishedAt":{"type":"string","format":"date-time"},"content":{"type":"object","description":"Lexical rich text document."},"categories":{"type":"array","items":{"type":"integer"}},"meta":{"$ref":"#/components/schemas/Meta"},"updatedAt":{"type":"string","format":"date-time"}}},"Category":{"type":"object","required":["id","title"],"properties":{"id":{"type":"integer"},"title":{"type":"string"},"slug":{"type":"string"}}},"SearchResult":{"type":"object","required":["id","title"],"properties":{"id":{"type":"integer"},"title":{"type":"string"},"slug":{"type":"string"},"doc":{"type":"object","properties":{"relationTo":{"type":"string"},"value":{"type":"integer"}}}}},"Meta":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"}}},"PagePage":{"type":"object","required":["docs","totalDocs","limit","page","totalPages","hasNextPage","hasPrevPage"],"properties":{"docs":{"type":"array","items":{"$ref":"#/components/schemas/Page"}},"totalDocs":{"type":"integer"},"limit":{"type":"integer"},"page":{"type":"integer"},"totalPages":{"type":"integer"},"hasNextPage":{"type":"boolean"},"hasPrevPage":{"type":"boolean"}}},"PostPage":{"type":"object","required":["docs","totalDocs","limit","page","totalPages","hasNextPage","hasPrevPage"],"properties":{"docs":{"type":"array","items":{"$ref":"#/components/schemas/Post"}},"totalDocs":{"type":"integer"},"limit":{"type":"integer"},"page":{"type":"integer"},"totalPages":{"type":"integer"},"hasNextPage":{"type":"boolean"},"hasPrevPage":{"type":"boolean"}}},"CategoryPage":{"type":"object","required":["docs","totalDocs","limit","page","totalPages","hasNextPage","hasPrevPage"],"properties":{"docs":{"type":"array","items":{"$ref":"#/components/schemas/Category"}},"totalDocs":{"type":"integer"},"limit":{"type":"integer"},"page":{"type":"integer"},"totalPages":{"type":"integer"},"hasNextPage":{"type":"boolean"},"hasPrevPage":{"type":"boolean"}}},"SearchResultPage":{"type":"object","required":["docs","totalDocs","limit","page","totalPages","hasNextPage","hasPrevPage"],"properties":{"docs":{"type":"array","items":{"$ref":"#/components/schemas/SearchResult"}},"totalDocs":{"type":"integer"},"limit":{"type":"integer"},"page":{"type":"integer"},"totalPages":{"type":"integer"},"hasNextPage":{"type":"boolean"},"hasPrevPage":{"type":"boolean"}}}}}}