Open a one-time secret
Changed onSpends one view and returns the ciphertext and iv to decrypt with the fragment key. The last view deletes the ciphertext on the server. With the creator's X-Owner-Token no view is spent (sender: true). No request body.
Request
- Base URLhttps://brewpage.app
- Auth
- none
- or API key in header X-Owner-Token
Path parameters
22-character secret id
Headers
Optional: the creator's owner token. It answers sender: true and spends no view; any other or no token reads as the recipient
Response
Ciphertext of this view
base64url AES-GCM output as created
base64url 12-byte nonce as created
Views left after this one; 0 = this was the last, the server no longer holds the secret
true when X-Owner-Token proves you created it: no view was spent; absent otherwise
Changes
- info
the endpoint scheme security
OwnerTokenwas added to the API - info
added the new optional
headerrequest parameterX-Owner-Token - info
added the optional property
senderto the response with the status
- info