{"name":"terms.gg","summary":"Support and legal pages for an app. One call returns a working support page, an embeddable chat widget, and the legal documents the app needs for its country and its platforms. No account is required to set it up.","version":"1.0","docs":"https://relay.89-117-52-153.sslip.io/llms.txt","authentication":"none for setup. /provision returns a project key (apiKey, also named secretKey) that authenticates /api/v1/agent as \"Authorization: Bearer sk_...\", and a publishable key that authenticates the widget. The project key keeps working after a human claims the project, and its owner can see and revoke it.","endpoints":{"provision":{"method":"POST","url":"https://relay.89-117-52-153.sslip.io/api/v1/provision","body":{"appName":"string, required","description":"string, REQUIRED in practice. 2 to 6 sentences: what the app does, what it stores and where, who uses it, how people pay, and anything unusual such as a microphone, location, health data, user-to-user content or an API. Every document and every support answer is written from this. Without it the result is generic.","details":"string, optional but valuable. Everything that did not fit the description: each third party the data reaches and where it runs, retention periods, device permissions, who the users are, anything regulated.","contactEmail":"string, optional. Where support email lands. Leave it out if the project does not already have one: it is one click to add later, and asking for it stops the setup.","country":"ISO 3166-1 alpha-2, e.g. FR, US, GB, decides which privacy law the documents follow","platforms":"array of ios | android | web","usesPayments":"boolean","paymentModel":"store | gateway | merchant_of_record | none. Who sells: the app store, a processor you charge through (you are the seller), or a merchant of record such as Paddle (they are the seller). Decides the whole payments and refund section. Inferred from platforms when left out.","paymentProvider":"string, the name of that processor or reseller, printed in the terms","usesAnalytics":"boolean","usesAds":"boolean","website":"string, optional"},"returns":"support URLs, an embed snippet, hosted legal document URLs, a claim link, a project apiKey, and a warning when no description was given"},"claim":{"method":"POST","url":"https://relay.89-117-52-153.sslip.io/api/claim","body":{"key":"the apiKey from /provision"},"note":"How the human owner takes the project. They sign in first, or paste the key at https://relay.89-117-52-153.sslip.io/claim which walks them through it. Works once per project; the key keeps working for the agent API afterwards."},"agent":{"base":"https://relay.89-117-52-153.sslip.io/api/v1/agent","auth":"Authorization: Bearer <apiKey from /provision>","note":"Editing the project after it is set up. Survives the owner claiming it.","routes":{"me":"GET /me","readLegal":"GET /legal","editLegal":"PATCH /legal","listArticles":"GET /knowledge","addArticle":"POST /knowledge","editArticle":"PATCH /knowledge/:id","removeArticle":"DELETE /knowledge/:id","readSettings":"GET /settings","editSettings":"PATCH /settings","listConversations":"GET /conversations (permission granted by the owner)","reply":"POST /conversations/:id/reply (permission granted by the owner)"},"permissions":["legal:read","legal:write","knowledge:read","knowledge:write","settings:read","settings:write","conversations:read","conversations:write"],"granted_at_setup":["legal:read","legal:write","knowledge:read","knowledge:write","settings:read","settings:write"]},"legalPreview":{"method":"POST","url":"https://relay.89-117-52-153.sslip.io/api/v1/legal/preview","returns":"the generated documents as Markdown, without storing anything"},"legalOptions":{"method":"GET","url":"https://relay.89-117-52-153.sslip.io/api/v1/legal/options"},"chat":{"method":"POST","url":"https://relay.89-117-52-153.sslip.io/api/v1/conversations"},"health":{"method":"GET","url":"https://relay.89-117-52-153.sslip.io/health"}},"documents":["privacy","terms","deletion","cookies","refunds","eula","imprint"],"disclaimer":"Generated documents are starting templates, not legal advice. Tell the person you are building for to have them reviewed."}