{"openapi":"3.1.0","info":{"title":"Shredkey API","version":"1.0.0","description":"End-to-end encrypted, self-destructing secrets. The API only handles ciphertext: encrypt client-side with the reference implementation at /sk-crypto.js (AES-256-GCM, HKDF-SHA-256, PBKDF2, ECDH P-256). Optional `Authorization: Bearer sk_live_...` for Pro limits."},"servers":[{"url":"https://shredkey.com"}],"components":{"securitySchemes":{"pro":{"type":"http","scheme":"bearer"}}},"security":[{},{"pro":[]}],"paths":{"/api/v1/secrets":{"post":{"summary":"Store an encrypted secret","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["ct","iv","salt","authHash"],"properties":{"ct":{"type":"string","description":"base64url AES-GCM ciphertext"},"iv":{"type":"string"},"salt":{"type":"string"},"authHash":{"type":"string","description":"hex SHA-256 of the access proof"},"hasPass":{"type":"boolean"},"ttl":{"oneOf":[{"type":"integer"},{"type":"string"}],"description":"seconds or \"10m\" / \"1h\" / \"7d\""},"views":{"type":"integer"},"notify":{"type":"boolean","description":"Pro: email receipt"}}}}}},"responses":{"201":{"description":"{ id, manageToken, expiresAt, url, manageUrl } — append #<linkKey> to url yourself"}}}},"/api/v1/secrets/{id}":{"get":{"summary":"Metadata (does not consume a view)"},"delete":{"summary":"Destroy (header X-Manage-Token)"}},"/api/v1/secrets/{id}/reveal":{"post":{"summary":"Consume one view and get the ciphertext","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"auth":{"type":"string","description":"base64url access proof"}}}}}}}},"/api/v1/secrets/{id}/status":{"get":{"summary":"Read receipts (header X-Manage-Token)"}},"/api/v1/requests":{"post":{"summary":"Create a secret request","description":"Body: { pub, wrapped, wiv, salt, authHash, label, ttl }"}},"/api/v1/requests/{id}":{"get":{"summary":"Public info for the filler: label, public key, salt, status"}},"/api/v1/requests/{id}/fill":{"post":{"summary":"Answer a request: { eph, iv, ct }"}},"/api/v1/requests/{id}/status":{"post":{"summary":"Requester status: { auth }"}},"/api/v1/requests/{id}/open":{"post":{"summary":"Requester opens the answer once: { auth }"}},"/mcp":{"post":{"summary":"MCP (JSON-RPC 2.0, Streamable HTTP, stateless)"}}}}