{"openapi":"3.1.0","info":{"title":"Zelvo API","version":"1.0.0","description":"Tools for humans and AI agents. Free during launch. MCP endpoint: /mcp."},"servers":[{"url":"https://zelvotools.com"}],"components":{"schemas":{"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"},"details":{"type":"object","additionalProperties":{}}},"required":["code","message","request_id"]}},"required":["error"]},"DownloadUrl":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"expiresIn":{"type":"integer"}},"required":["url","expiresIn"]},"CreateDropResult":{"type":"object","properties":{"dropId":{"type":"string"},"shareUrl":{"type":"string","format":"uri"},"deleteToken":{"type":"string","description":"Shown once. Needed to complete or delete the drop."},"expiresAt":{"type":"string","description":"ISO 8601"},"uploads":{"type":"array","items":{"type":"object","properties":{"fileId":{"type":"string"},"name":{"type":"string"},"url":{"type":"string","format":"uri","description":"PUT the file body here with exactly the given headers."},"headers":{"type":"object","additionalProperties":{"type":"string"}}},"required":["fileId","name","url","headers"]}}},"required":["dropId","shareUrl","deleteToken","expiresAt","uploads"]},"CreateDropRequest":{"type":"object","properties":{"files":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":4096,"example":"report.pdf","description":"Original filename; truncated to 255 characters."},"size":{"type":"integer","minimum":0,"maximum":104857600,"example":48213,"description":"Exact size in bytes."},"contentType":{"type":"string","maxLength":255,"example":"application/pdf"}},"required":["name","size"]},"minItems":1,"maxItems":10},"expiresIn":{"type":"string","enum":["1h","24h","7d"],"description":"How long the drop lives. Default 24h."},"maxDownloads":{"type":"integer","minimum":1,"maximum":1000,"description":"Per file: each file can be downloaded this many times. Omit for unlimited."},"password":{"type":"string","minLength":4,"maxLength":128},"turnstileToken":{"type":"string","maxLength":4096}},"required":["files"]},"DropView":{"type":"object","properties":{"dropId":{"type":"string"},"status":{"type":"string","enum":["active"]},"createdAt":{"type":"string"},"expiresAt":{"type":"string"},"passwordRequired":{"type":"boolean"},"downloadsLeft":{"type":["integer","null"]},"totalBytes":{"type":"integer"},"files":{"type":"array","items":{"type":"object","properties":{"fileId":{"type":"string"},"name":{"type":"string"},"size":{"type":"integer"},"contentType":{"type":"string"},"downloadsLeft":{"type":["integer","null"],"description":"Downloads left for this file; null when unlimited."}},"required":["fileId","name","size","contentType","downloadsLeft"]}}},"required":["dropId","status","createdAt","expiresAt","passwordRequired","downloadsLeft","totalBytes","files"]},"CreateClipResult":{"type":"object","properties":{"clipId":{"type":"string"},"shareUrl":{"type":"string"},"deleteToken":{"type":"string"},"expiresAt":{"type":"string"}},"required":["clipId","shareUrl","deleteToken","expiresAt"]},"CreateClip":{"type":"object","properties":{"body":{"type":"string","minLength":1},"title":{"type":"string","maxLength":200},"language":{"type":"string","minLength":1,"maxLength":32,"pattern":"^[a-z0-9+#-]+$"},"password":{"type":"string","minLength":4,"maxLength":128},"turnstileToken":{"type":"string","maxLength":4096}},"required":["body"]},"MyClips":{"type":"object","properties":{"clips":{"type":"array","items":{"$ref":"#/components/schemas/ClipMeta"}}},"required":["clips"]},"ClipMeta":{"type":"object","properties":{"clipId":{"type":"string"},"title":{"type":["string","null"]},"language":{"type":["string","null"]},"bytes":{"type":"integer"},"createdAt":{"type":"string"},"expiresAt":{"type":"string"},"passwordRequired":{"type":"boolean"}},"required":["clipId","title","language","bytes","createdAt","expiresAt","passwordRequired"]},"ClipText":{"type":"object","properties":{"clipId":{"type":"string"},"title":{"type":["string","null"]},"language":{"type":["string","null"]},"body":{"type":"string"},"expiresAt":{"type":"string"}},"required":["clipId","title","language","body","expiresAt"]},"LinkView":{"type":"object","properties":{"linkId":{"type":"string"},"shortUrl":{"type":"string"},"qrUrl":{"type":"string"},"targetUrl":{"type":"string"},"title":{"type":["string","null"]},"clicks":{"type":"integer"},"lastClickedAt":{"type":["string","null"]},"createdAt":{"type":"string"},"expiresAt":{"type":["string","null"]},"status":{"type":"string","enum":["active","expired","disabled"]}},"required":["linkId","shortUrl","qrUrl","targetUrl","title","clicks","lastClickedAt","createdAt","expiresAt","status"]},"CreateLink":{"type":"object","properties":{"url":{"type":"string","minLength":1,"maxLength":2048},"title":{"type":"string","maxLength":200},"expiresIn":{"type":"string","enum":["never","1d","7d","30d"]},"turnstileToken":{"type":"string","maxLength":4096}},"required":["url"]},"MyLinks":{"type":"object","properties":{"links":{"type":"array","items":{"$ref":"#/components/schemas/LinkView"}}},"required":["links"]},"SavedMemory":{"allOf":[{"$ref":"#/components/schemas/MemoryView"},{"type":"object","properties":{"duplicate":{"type":"boolean"}},"required":["duplicate"]}]},"MemoryView":{"type":"object","properties":{"memoryId":{"type":"string"},"content":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["memoryId","content","tags","createdAt","updatedAt"]},"SaveMemory":{"type":"object","properties":{"content":{"type":"string","maxLength":4000},"tags":{"type":"array","items":{"type":"string","maxLength":64},"maxItems":10}},"required":["content"]},"RecallResult":{"type":"object","properties":{"memories":{"type":"array","items":{"$ref":"#/components/schemas/MemoryView"}},"total":{"type":"integer"},"note":{"type":"string"}},"required":["memories","total","note"]},"MemoryExport":{"type":"object","properties":{"exportedAt":{"type":"string"},"memories":{"type":"array","items":{"$ref":"#/components/schemas/MemoryView"}}},"required":["exportedAt","memories"]},"UpdateMemory":{"type":"object","properties":{"content":{"type":"string","maxLength":4000},"tags":{"type":"array","items":{"type":"string","maxLength":64},"maxItems":10}}},"DeletedCount":{"type":"object","properties":{"deleted":{"type":"integer"}},"required":["deleted"]},"DeleteAllMemories":{"type":"object","properties":{"confirm":{"type":"string","enum":["delete all"]}},"required":["confirm"]},"AbuseReport":{"type":"object","properties":{"dropId":{"type":"string","minLength":1,"maxLength":64},"clipId":{"type":"string","minLength":1,"maxLength":64},"linkId":{"type":"string","minLength":1,"maxLength":64},"reason":{"type":"string","enum":["phishing","malware","copyright","illegal","other"]},"details":{"type":"string","maxLength":2000}},"required":["reason"]},"Tool":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"tagline":{"type":"string"},"status":{"type":"string","enum":["live","beta","soon"]},"pricing":{"type":"object","properties":{"unit":{"type":"string","enum":["call"]},"usd":{"type":"string"}},"required":["unit","usd"]}},"required":["id","name","tagline","status","pricing"]}},"parameters":{}},"paths":{"/v1/box/drops/{id}":{"delete":{"tags":["ZelvoBox"],"summary":"Delete a drop now","description":"Requires `Authorization: Bearer <deleteToken>`. Idempotent.","parameters":[{"schema":{"type":"string","minLength":1,"maxLength":64,"example":"aB3dE5gH7jK9"},"required":true,"name":"id","in":"path"}],"responses":{"204":{"description":"Deleted"},"403":{"description":"Invalid delete token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Drop not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"get":{"tags":["ZelvoBox"],"summary":"Get drop metadata","parameters":[{"schema":{"type":"string","minLength":1,"maxLength":64,"example":"aB3dE5gH7jK9"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"Drop metadata (no file URLs)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DropView"}}}},"404":{"description":"Drop not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Drop expired or download limit reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"451":{"description":"Drop taken down","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/box/drops/{id}/files/{fileId}":{"get":{"tags":["ZelvoBox"],"summary":"Download a file","description":"302-redirects to a short-lived download URL (always served as an attachment). Send `Accept: application/json` to get `{ url }` instead. Password-protected drops need the `X-Drop-Password` header. Each call counts as one download.","parameters":[{"schema":{"type":"string","minLength":1,"maxLength":64,"example":"aB3dE5gH7jK9"},"required":true,"name":"id","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":64,"example":"Xy12Ab34"},"required":true,"name":"fileId","in":"path"},{"schema":{"type":"string","maxLength":256},"required":false,"name":"x-drop-password","in":"header"}],"responses":{"200":{"description":"Download URL (JSON mode)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DownloadUrl"}}}},"302":{"description":"Redirect to the download URL"},"401":{"description":"Password required or wrong","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Drop or file not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Drop expired or download limit reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"451":{"description":"Drop taken down","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/box/drops":{"post":{"tags":["ZelvoBox"],"summary":"Create a drop and get upload URLs","description":"Creates a pending drop. PUT each file to its upload URL with the given headers, then call /complete with the delete token.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDropRequest"}}}},"responses":{"201":{"description":"Drop created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDropResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Human verification failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited or daily quota exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/box/drops/{id}/complete":{"post":{"tags":["ZelvoBox"],"summary":"Mark uploads as finished and activate the drop","description":"Requires `Authorization: Bearer <deleteToken>`. Idempotent.","parameters":[{"schema":{"type":"string","minLength":1,"maxLength":64,"example":"aB3dE5gH7jK9"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"Drop is active","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DropView"}}}},"403":{"description":"Invalid delete token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Drop not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Some uploads are missing or have the wrong size","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Drop expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/clip/clips":{"post":{"tags":["ZelvoClip"],"summary":"Save a text clip","description":"Stores text for 24 hours. Keep the delete token if you are not signed in.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateClip"}}}},"responses":{"201":{"description":"Clip created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateClipResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Human verification failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited or daily quota exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/clip/mine":{"get":{"tags":["ZelvoClip"],"summary":"List my clips","description":"Signed-in users only. Newest first, unexpired only.","parameters":[{"schema":{"type":"integer","minimum":1,"maximum":50},"required":false,"name":"limit","in":"query"}],"responses":{"200":{"description":"My clips","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MyClips"}}}},"401":{"description":"Not signed in","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/clip/clips/{id}":{"get":{"tags":["ZelvoClip"],"summary":"Get clip metadata","parameters":[{"schema":{"type":"string","minLength":1,"maxLength":64,"example":"aB3dE5gH7j"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"Clip metadata","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClipMeta"}}}},"404":{"description":"Clip not found or expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"tags":["ZelvoClip"],"summary":"Delete a clip now","description":"Requires `Authorization: Bearer <deleteToken>`, or the signed-in owner.","parameters":[{"schema":{"type":"string","minLength":1,"maxLength":64,"example":"aB3dE5gH7j"},"required":true,"name":"id","in":"path"}],"responses":{"204":{"description":"Deleted"},"403":{"description":"Invalid delete token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Clip not found or expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/clip/clips/{id}/text":{"get":{"tags":["ZelvoClip"],"summary":"Read a clip","description":"Password-protected clips need the `X-Clip-Password` header (the signed-in owner does not).","parameters":[{"schema":{"type":"string","minLength":1,"maxLength":64,"example":"aB3dE5gH7j"},"required":true,"name":"id","in":"path"},{"schema":{"type":"string","maxLength":256},"required":false,"name":"x-clip-password","in":"header"}],"responses":{"200":{"description":"Clip text","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClipText"}}}},"401":{"description":"Password required or wrong","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Clip not found or expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many attempts","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/link/links":{"post":{"tags":["ZelvoLink"],"summary":"Create a short link","description":"Signed-in users only.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateLink"}}}},"responses":{"201":{"description":"Link created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkView"}}}},"400":{"description":"Invalid request or unsafe URL","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Human verification failed or account blocked","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited or quota exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/link/mine":{"get":{"tags":["ZelvoLink"],"summary":"List my links","description":"Signed-in users only. Newest first.","parameters":[{"schema":{"type":"integer","minimum":1,"maximum":50},"required":false,"name":"limit","in":"query"}],"responses":{"200":{"description":"My links","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MyLinks"}}}},"401":{"description":"Not signed in","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/link/links/{id}":{"delete":{"tags":["ZelvoLink"],"summary":"Delete one of my links","parameters":[{"schema":{"type":"string","minLength":1,"maxLength":64,"example":"AbCdEf2"},"required":true,"name":"id","in":"path"}],"responses":{"204":{"description":"Deleted"},"401":{"description":"Not signed in","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Link not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/memory/memories":{"post":{"tags":["ZelvoMemory"],"summary":"Save a memory","description":"Signed-in users only. Saving the same text again returns the existing memory with `duplicate: true`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveMemory"}}}},"responses":{"201":{"description":"Saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedMemory"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited or quota exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"get":{"tags":["ZelvoMemory"],"summary":"Recall memories","description":"Signed-in users only. Without `q`, newest first.","parameters":[{"schema":{"type":"string","maxLength":200},"required":false,"name":"q","in":"query"},{"schema":{"type":"string","maxLength":64},"required":false,"name":"tag","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":50},"required":false,"name":"limit","in":"query"}],"responses":{"200":{"description":"Memories","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecallResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"tags":["ZelvoMemory"],"summary":"Delete all my memories","description":"Requires the JSON body `{ \"confirm\": \"delete all\" }`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteAllMemories"}}}},"responses":{"200":{"description":"Deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeletedCount"}}}},"400":{"description":"Missing or wrong confirmation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/memory/export":{"get":{"tags":["ZelvoMemory"],"summary":"Export all my memories","responses":{"200":{"description":"All memories, newest first","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemoryExport"}}}},"401":{"description":"Not signed in","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/memory/memories/{id}":{"patch":{"tags":["ZelvoMemory"],"summary":"Edit a memory","parameters":[{"schema":{"type":"string","pattern":"^[0-9A-Za-z]{10}$","example":"AbCdEf1234"},"required":true,"name":"id","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateMemory"}}}},"responses":{"200":{"description":"Updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemoryView"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Memory not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited or quota exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"tags":["ZelvoMemory"],"summary":"Delete a memory","parameters":[{"schema":{"type":"string","pattern":"^[0-9A-Za-z]{10}$","example":"AbCdEf1234"},"required":true,"name":"id","in":"path"}],"responses":{"204":{"description":"Deleted"},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Memory not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/reports":{"post":{"tags":["Trust & Safety"],"summary":"Report a drop, clip or link for abuse","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AbuseReport"}}}},"responses":{"202":{"description":"Report received","content":{"application/json":{"schema":{"type":"object","properties":{"reportId":{"type":"string"}},"required":["reportId"]}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools":{"get":{"tags":["Store"],"summary":"List every tool in the Zelvo store","responses":{"200":{"description":"Tool catalog","content":{"application/json":{"schema":{"type":"object","properties":{"tools":{"type":"array","items":{"$ref":"#/components/schemas/Tool"}}},"required":["tools"]}}}}}}}},"webhooks":{}}