{"openapi":"3.1.0","info":{"title":"jsonstorage.com","version":"1.0.0","description":"JSON in, URL out. The simplest JSON storage API on the internet. No signup: POST any JSON to create a bin, receive a URL and a one-time secret edit key."},"servers":[{"url":"https://jsonstorage.com"}],"paths":{"/":{"post":{"operationId":"createBin","summary":"Create a bin from any JSON value","requestBody":{"required":true,"content":{"application/json":{"schema":{}}}},"responses":{"201":{"description":"Bin created","content":{"application/json":{"schema":{"type":"object","required":["id","url","key","expiresAt"],"properties":{"id":{"type":"string"},"url":{"type":"string"},"key":{"type":"string","description":"Secret edit key, shown once. Send as X-Bin-Key for PUT/DELETE."},"expiresAt":{"type":"string","format":"date-time"}}}}}},"400":{"$ref":"#/components/responses/Problem"},"413":{"$ref":"#/components/responses/Problem"},"429":{"$ref":"#/components/responses/Problem"}}}},"/waitlist":{"post":{"operationId":"joinWaitlist","summary":"Join the Pro waitlist (permanent bins, 1 MB size, higher limits)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["email"],"properties":{"email":{"type":"string","format":"email"}}}}}},"responses":{"201":{"description":"Joined (idempotent; rejoining is fine)"},"400":{"$ref":"#/components/responses/Problem"},"429":{"$ref":"#/components/responses/Problem"}}}},"/{id}":{"parameters":[{"$ref":"#/components/parameters/binId"}],"get":{"operationId":"readBin","summary":"Read a bin","parameters":[{"$ref":"#/components/parameters/binId"}],"responses":{"200":{"description":"The exact JSON stored in the bin","content":{"application/json":{"schema":{}}}},"404":{"$ref":"#/components/responses/Problem"}}},"put":{"operationId":"overwriteBin","summary":"Overwrite a bin (resets its 30-day expiration)","parameters":[{"$ref":"#/components/parameters/binId"},{"$ref":"#/components/parameters/binKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{}}}},"responses":{"200":{"description":"Bin overwritten"},"400":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"404":{"$ref":"#/components/responses/Problem"}}},"delete":{"operationId":"deleteBin","summary":"Delete a bin","parameters":[{"$ref":"#/components/parameters/binId"},{"$ref":"#/components/parameters/binKey"}],"responses":{"200":{"description":"Bin deleted"},"403":{"$ref":"#/components/responses/Problem"},"404":{"$ref":"#/components/responses/Problem"}}}}},"components":{"parameters":{"binId":{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{14}$"}},"binKey":{"name":"X-Bin-Key","in":"header","required":true,"schema":{"type":"string"},"description":"The secret key returned at bin creation"}},"responses":{"Problem":{"description":"Error, always shaped as { \"error\": \"what happened\", \"fix\": \"what to do\", \"docs\": \"https://jsonstorage.com/llms.txt\" }","content":{"application/json":{"schema":{"type":"object","required":["error","docs"],"properties":{"error":{"type":"string","description":"What went wrong, in one sentence"},"fix":{"type":"string","description":"A literal instruction for correcting the request. Present when actionable."},"docs":{"type":"string","description":"Always https://jsonstorage.com/llms.txt"}}}}}}}}}