{"openapi":"3.1.0","info":{"title":"Oratio — Prayer & Liturgy API","description":"Retrieve original Latin and English source passages by occasion using EmbeddingGemma 2 and a SQLite vector database. 0.05 USDC per search or passage on Base mainnet, paid via x402 v2. Responses are cited source excerpts, not newly composed prayers or assembled daily offices.","version":"0.1.0"},"paths":{"/health":{"get":{"tags":["Status"],"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/ready":{"get":{"tags":["Status"],"summary":"Ready","operationId":"ready_ready_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/sources":{"get":{"tags":["Sources"],"summary":"Sources","operationId":"sources_v1_sources_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/passages/{passage_id}":{"get":{"tags":["Passages"],"summary":"Passage","operationId":"passage_v1_passages__passage_id__get","parameters":[{"name":"passage_id","in":"path","required":true,"schema":{"type":"string","title":"Passage Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"402":{"description":"x402 payment required. Retry with PAYMENT-SIGNATURE."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/prayers/search":{"post":{"tags":["Retrieval"],"summary":"Search","operationId":"search_v1_prayers_search_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrayerRequest"},"example":{"prompt":"A prayer for peace before sleep","language":"en","body":"office","preferred_liturgy":"traditional-roman","limit":3}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"402":{"description":"x402 payment required. Retry with PAYMENT-SIGNATURE."},"422":{"description":"Invalid filters or unavailable source"},"429":{"description":"Rate limit or inference capacity exhausted"},"503":{"description":"Embedding model or index not ready"}}}}},"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"PrayerRequest":{"properties":{"prompt":{"type":"string","maxLength":1000,"minLength":2,"title":"Prompt","description":"An occasion or meaning to search for, such as a prayer for peace before sleep."},"language":{"type":"string","enum":["en","la"],"title":"Language","default":"en"},"source":{"type":"string","enum":["divinum-officium","ora-et-labora"],"title":"Source","default":"divinum-officium"},"body":{"type":"string","enum":["all","office","mass"],"title":"Body","default":"all"},"preferred_liturgy":{"type":"string","enum":["traditional-roman","monastic","dominican","cistercian"],"title":"Preferred Liturgy","default":"traditional-roman"},"version":{"type":"string","const":"source-text","title":"Version","default":"source-text"},"text_type":{"type":"string","enum":["prayer","psalm","hymn","reading","antiphon","response","other","all"],"title":"Text Type","default":"prayer"},"limit":{"type":"integer","maximum":5,"minimum":1,"title":"Limit","default":3}},"additionalProperties":false,"type":"object","required":["prompt"],"title":"PrayerRequest"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}