{"openapi":"3.1.0","info":{"title":"raehyeon.com content API","version":"1.0.0","summary":"Read-only access to the published pages of the portfolio of Raehyeon (Neo) Jeong.","description":"Everything published on this portfolio is also available in machine-readable form. All of it is read-only and public: no account, no API key, no sign-up. Each route below returns the same published content as the web pages, so cite the canonical page URL included in every result.\n\nVersioning: There are no keys or per-client quotas. Responses are cacheable, so please cache them; Vercel may throttle abusive traffic at the platform level. The API is versioned in the path. Changes to /api/v1 are additive only. A breaking change would ship as /api/v2, with v1 kept running for at least 90 days and marked with Deprecation and Sunset headers.","contact":{"name":"Raehyeon (Neo) Jeong","url":"https://raehyeon.com/en/contact"}},"servers":[{"url":"https://raehyeon.com","description":"Production"}],"externalDocs":{"description":"For agents & developers","url":"https://raehyeon.com/en/developers"},"security":[],"tags":[{"name":"content","description":"Published pages"},{"name":"ask","description":"NLWeb v0.55 natural-language retrieval"}],"paths":{"/api/v1/search":{"get":{"operationId":"searchPages","tags":["content"],"summary":"Search published pages","description":"Keyword search over every published page (profile, project case studies, essays, contact). Returns ranked matches with a snippet. Use the returned path with getPage for the full text.","parameters":[{"name":"q","in":"query","required":true,"description":"Keywords or a natural-language question, in English or Korean.","schema":{"type":"string","minLength":1,"maxLength":300},"example":"payments platform"},{"name":"language","in":"query","required":false,"description":"Content language. Omit for both.","schema":{"type":"string","enum":["en","ko"]}},{"name":"type","in":"query","required":false,"description":"Page type to return.","schema":{"type":"string","enum":["home","profile","contact","privacy","developers","project-index","essay-index","project","essay"]}},{"name":"limit","in":"query","required":false,"description":"Maximum number of results.","schema":{"type":"integer","minimum":1,"maximum":25,"default":8}}],"responses":{"200":{"description":"Ranked matches. An empty data array means nothing matched.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResponse"}}}},"400":{"description":"A parameter is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":{"code":"invalid_parameter","message":"limit must be an integer from 1 to 100.","hint":"Fix the named parameter and retry.","docs":"https://raehyeon.com/en/developers"}}}}}}}},"/api/v1/pages":{"get":{"operationId":"listPages","tags":["content"],"summary":"List published pages","description":"Lists published pages in a stable order with cursor pagination. Pass next_cursor back as cursor until has_more is false.","parameters":[{"name":"language","in":"query","required":false,"description":"Content language. Omit for both.","schema":{"type":"string","enum":["en","ko"]}},{"name":"type","in":"query","required":false,"description":"Page type to return.","schema":{"type":"string","enum":["home","profile","contact","privacy","developers","project-index","essay-index","project","essay"]}},{"name":"limit","in":"query","required":false,"description":"Page size.","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"cursor","in":"query","required":false,"description":"Opaque cursor from a previous response.","schema":{"type":"string"}}],"responses":{"200":{"description":"One page of results.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageListResponse"}}}},"400":{"description":"A parameter is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":{"code":"invalid_parameter","message":"limit must be an integer from 1 to 100.","hint":"Fix the named parameter and retry.","docs":"https://raehyeon.com/en/developers"}}}}}}}},"/api/v1/page":{"get":{"operationId":"getPage","tags":["content"],"summary":"Read one page as Markdown","description":"Returns one published page with its metadata and full Markdown text.","parameters":[{"name":"path","in":"query","required":true,"description":"Site path or full raehyeon.com URL of the page.","schema":{"type":"string","maxLength":300},"example":"/en/projects-log/parentlyze"}],"responses":{"200":{"description":"The page.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageResponse"}}}},"400":{"description":"A parameter is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":{"code":"invalid_parameter","message":"limit must be an integer from 1 to 100.","hint":"Fix the named parameter and retry.","docs":"https://raehyeon.com/en/developers"}}}}},"404":{"description":"No published page at that path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":{"code":"not_found","message":"No published page at \"/en/nope\".","hint":"List valid paths with GET /api/v1/pages.","docs":"https://raehyeon.com/en/developers"}}}}}}}},"/ask":{"post":{"operationId":"askSite","tags":["ask"],"summary":"Ask a question (NLWeb)","description":"NLWeb v0.55 /ask. Retrieves the published pages that match a natural-language question and returns them as schema.org items. It does not generate text. Set prefer.streaming to true to receive Server-Sent Events (start, result, complete).","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskRequest"},"example":{"query":{"text":"What did he build at Parentlyze?"},"prefer":{"streaming":false}}}}},"responses":{"200":{"description":"An answer with results, or a failure such as NO_RESULTS. With prefer.streaming, the same content as an event stream.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/AskAnswer"},{"$ref":"#/components/schemas/AskFailure"}]}},"text/event-stream":{"schema":{"type":"string","description":"Events: start, result ({index, item}), error, complete."}}}},"400":{"description":"The question is missing or too long.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFailure"},"example":{"_meta":{"response_type":"failure","version":"0.55"},"error":{"code":"INVALID_QUERY","message":"Send the question as query.text in a JSON body."}}}}}}}}},"components":{"schemas":{"Page":{"type":"object","description":"A published page.","properties":{"path":{"type":"string","description":"Stable page identifier: the site path.","example":"/en/projects-log/parentlyze"},"type":{"type":"string","enum":["home","profile","contact","privacy","developers","project-index","essay-index","project","essay"]},"language":{"type":"string","enum":["en","ko"]},"title":{"type":"string"},"summary":{"type":"string"},"url":{"type":"string","format":"uri","description":"Canonical HTML page. Cite this URL."},"markdownUrl":{"type":"string","format":"uri"},"updated":{"type":"string","format":"date","description":"Last update, when published."}},"required":["path","type","language","title","summary","url","markdownUrl"]},"PageWithMarkdown":{"type":"object","description":"A published page with its text.","properties":{"path":{"type":"string","description":"Stable page identifier: the site path.","example":"/en/projects-log/parentlyze"},"type":{"type":"string","enum":["home","profile","contact","privacy","developers","project-index","essay-index","project","essay"]},"language":{"type":"string","enum":["en","ko"]},"title":{"type":"string"},"summary":{"type":"string"},"url":{"type":"string","format":"uri","description":"Canonical HTML page. Cite this URL."},"markdownUrl":{"type":"string","format":"uri"},"updated":{"type":"string","format":"date","description":"Last update, when published."},"markdown":{"type":"string","description":"Full page text as Markdown with YAML front matter."}},"required":["path","type","language","title","summary","url","markdownUrl","markdown"]},"SearchHit":{"type":"object","description":"A page that matched a search.","properties":{"path":{"type":"string","description":"Stable page identifier: the site path.","example":"/en/projects-log/parentlyze"},"type":{"type":"string","enum":["home","profile","contact","privacy","developers","project-index","essay-index","project","essay"]},"language":{"type":"string","enum":["en","ko"]},"title":{"type":"string"},"summary":{"type":"string"},"url":{"type":"string","format":"uri","description":"Canonical HTML page. Cite this URL."},"markdownUrl":{"type":"string","format":"uri"},"updated":{"type":"string","format":"date","description":"Last update, when published."},"score":{"type":"number","description":"Relevance; higher is better."},"snippet":{"type":"string","description":"Text around the first match."}},"required":["path","type","language","title","summary","url","markdownUrl","score","snippet"]},"SearchResponse":{"type":"object","properties":{"query":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/SearchHit"}},"total":{"type":"integer"}},"required":["query","data","total"]},"PageListResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Page"}},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"],"description":"Pass as cursor to get the next page; null on the last page."},"total":{"type":"integer"}},"required":["data","has_more","next_cursor","total"]},"PageResponse":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PageWithMarkdown"}},"required":["data"]},"Error":{"type":"object","description":"Every non-2xx API response has this shape.","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["invalid_parameter","not_found","method_not_allowed"],"description":"Stable machine-readable code."},"message":{"type":"string","description":"What went wrong."},"hint":{"type":"string","description":"How to fix the request."},"docs":{"type":"string","format":"uri"}},"required":["code","message","hint"]}},"required":["error"]},"AskRequest":{"type":"object","properties":{"query":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":500,"description":"The question."}},"required":["text"]},"prefer":{"type":"object","properties":{"streaming":{"type":"boolean","default":false},"mode":{"type":"string","enum":["list"],"default":"list"},"accept-language":{"type":"string","description":"\"en\" or \"ko\" to restrict results."}}},"meta":{"type":"object","properties":{"version":{"type":"string","example":"0.55"}}}},"required":["query"]},"AskMeta":{"type":"object","properties":{"response_type":{"type":"string","enum":["answer","failure"]},"response_format":{"type":"string"},"version":{"type":"string"}},"required":["response_type","version"]},"AskResult":{"type":"object","description":"A schema.org item for one matching page.","properties":{"@type":{"type":"string"},"@id":{"type":"string","format":"uri"},"name":{"type":"string"},"url":{"type":"string","format":"uri"},"description":{"type":"string"},"inLanguage":{"type":"string"},"dateModified":{"type":"string"},"site":{"type":"string"},"score":{"type":"number"},"grounding":{"type":"object","properties":{"snippet":{"type":"string"},"source":{"type":"string","format":"uri"}}}},"required":["@type","name","url"]},"AskAnswer":{"type":"object","properties":{"_meta":{"$ref":"#/components/schemas/AskMeta"},"results":{"type":"array","items":{"$ref":"#/components/schemas/AskResult"}}},"required":["_meta","results"]},"AskFailure":{"type":"object","properties":{"_meta":{"$ref":"#/components/schemas/AskMeta"},"error":{"type":"object","properties":{"code":{"type":"string","enum":["INVALID_QUERY","NO_RESULTS","UNSUPPORTED_MODE"]},"message":{"type":"string"}},"required":["code"]}},"required":["_meta","error"]}}}}