create_push
Create a self-destructing secret link for passwords or messages, returning a shareable URL. Set expiration, view limits, and passphrase to control access.
Instructions
Create a Password Pusher secret link and return its sharing URL. The secret payload is NOT echoed back. Share the returned html_url with the recipient. A token is sent if PWPUSH_API_TOKEN is set; some instances also allow anonymous push creation. Pass file_paths to attach one or more local files (a file push). For a text/url/qr push, set payload and kind.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | Push type: 'text', 'url', or 'qr'. Ignored when file_paths are given (forced to 'file'). On v1 (legacy) instances 'qr' is created as a text push. | text |
| name | No | Optional name for the push. | |
| note | No | Optional private note, visible only to the creator. | |
| payload | No | The secret to push (text, a URL, or QR content). Optional when file_paths are given. | |
| duration | No | Time before the push expires. Accepts a label (15m, 30m, 45m, 1h, 6h, 12h, 1d, 2d, 3d, 4d, 5d, 6d, 1w, 2w, 3w, 1mo, 2mo, 3mo) or the raw enum index 0..17. | 7d |
| file_paths | No | Local file path(s) to attach as a file push (multipart upload). | |
| passphrase | No | Optional passphrase required to view the secret. | |
| retrieval_step | No | Require an extra click before the secret is revealed. | |
| expire_after_views | No | Number of views before expiry (1-100). | |
| deletable_by_viewer | No | Allow the recipient to delete the push. |