One-time secrets

Edit my one-time secret's title, note or tags

Changed on

A missing field keeps its value; "" clears the note, [] clears the tags; the title can't be cleared.

patch/api/secrets/owner/{ref}

Request

  • Base URL
    https://brewpage.app
  • Auth
    • API key in header X-Owner-Token
    • or API key in header X-Manage-Key

Path parameters

ref, string required

10-character owner handle (ref) from create or the list

Headers

X-Owner-Token, unknown

Owner token

X-Manage-Key, unknown

Management key

Request body

SecretPatchRequest required
title, string

New title, 1-200 characters, one line; can't be cleared

note, string

Owner-only note, up to 500 characters; "" clears it

tags, string[]

Replaces the tags: up to 10, each 1-32 characters without commas; [] clears them

Response

The secret as now saved

SecretItem required
ref, string required

10-character owner handle; addresses the secret on owner routes, can't open it

title, string required

Title, shown to the recipient before opening

note, string

Owner-only note; absent when none

tags, string[] required

Owner-only tags

kind, 'text' | 'file' required

text or file

state, 'waiting' | 'opened' | 'spent' | 'expired' | 'deleted' | 'removed' required

waiting: not opened yet; opened: opened, views left; spent: last view used; expired; deleted by you; removed after a report

maxViews, integer required

Views allowed at creation

viewsLeft, integer required

Views still possible; 0 once ended

opens, string[] required

When each view was used, oldest first

createdAt, string date-time required
expiresAt, string date-time required

When it stops working

endedAt, string date-time

When it ended; absent while it can still be opened

removeAt, string date-time

When the ended record leaves your list; absent while it can still be opened

manageLink, string required

Management page of this secret (no key)

Changes