{"name":"TechTools Cloud","base":"/cloud-space-api","auth":"Same-origin shared TechTools session cookie. Browsing, renaming, uploads and Cloud sharing require Premium or an individual account quota grant.","limits":{"quota_bytes":5000000000,"chunk_bytes":4194304,"files_per_account":10000,"stale_upload_hours":24,"requests_per_minute_per_account":{"reservations":180,"chunks":1200}},"endpoints":{"GET /files":"List up to 100 files, quota_bytes for this account, used_bytes (complete), reserved_bytes (incomplete), cloud_access and storage availability. Pass next_before as ?before= for the next page.","GET /files/:id":"Metadata of one owned file, including a MIME hint from its name. Private file requests may send X-Expected-Account-Id to refuse a changed session.","POST /files":"Requires upload access through Premium or an account quota grant. JSON {name,size_bytes,upload_key}. Supply a new UUID per file. Repeating the same reservation returns its current uploaded_bytes. Zero-byte files complete immediately.","PATCH /files/:id":"Rename an owned file with JSON {name} and X-Expected-Account-Id. The name must be 1 to 255 bytes without path separators or control characters. Returns the updated file metadata. Existing download links, storage usage and published copies are preserved.","PUT /files/:id/chunks?offset=N":"Requires upload access. Send up to 4194304 raw bytes as application/octet-stream at the current offset. The last chunk completes the file. On 409, use uploaded_bytes to resume.","GET /files/:id/download":"Download your completed file as an attachment, including after Premium expires.","POST /files/:id/share":"Create a public Paste Share copy of this completed, nonempty file (up to 250 MiB). Requires X-Expected-Account-Id. Returns {url,expires_at}. The link expires in one year. Each request creates a new link.","DELETE /files/:id":"Delete your file or release its incomplete reservation, including after Premium expires. Returns 204."},"sharing":{"composer":"/paste-api/cloud-composer#cloud-file=\u003cfile_id\u003e\u0026account=\u003cowner_id\u003e","description":"Open the private Paste Share composer for a complete file of 1 to 262144000 bytes. Use the composer for custom options, or POST /files/:id/share for an immediate one-year link."},"premium":{"GET /premium-api/status":"View lifetime activation, existing paid entitlement and billing portal availability.","POST /premium-api/claim":"Activate free lifetime Premium and a 5 GB quota for the signed-in account. Send name and phone in a JSON body. X-Expected-Account-Id can bind the request to the account shown by status.","POST /premium-api/portal":"Open the Stripe portal to manage your subscription."},"mcp":{"url":"https://techtools.cz/mcp","tool":"cloud_space_list_files","read_only":true,"auth":"Shared account cookie with Cloud access. Lists only your file metadata and quota."},"examples":["curl -b cookies.txt https://techtools.cz/cloud-space-api/files","curl -b cookies.txt -H 'Content-Type: application/json' -d '{\"name\":\"hello.txt\",\"size_bytes\":5,\"upload_key\":\"a6fc3df2-47cc-4cca-82e7-a3ecb24734b3\"}' https://techtools.cz/cloud-space-api/files","curl -b cookies.txt -X PUT -H 'Content-Type: application/octet-stream' --data-binary hello 'https://techtools.cz/cloud-space-api/files/ID/chunks?offset=0'"],"status_codes":{"401":"Sign in","403":"PREMIUM_REQUIRED to browse, rename, upload or share from Cloud, or origin refused","404":"File unavailable to this account","409":"Cursor, reservation or file state conflict","413":"Chunk or quota exceeded","415":"Invalid media type","422":"Invalid metadata or chunk","429":"Slow down","503":"Volume unavailable","507":"Volume full"}}