Creates a new push (secret URL) containing the provided payload.
The push must be created with a payload parameter containing the secret content. All other parameters are optional and will use system defaults if not specified.
Pushes can be configured to expire after:
A number of views (expire_after_views)
A number of days (expire_after_days)
Both views and days (first trigger wins)
Passphrase protection requires viewers to enter a secret phrase
Retrieval step helps prevent automated URL scanners from burning views
Deletable by viewer allows recipients to manually expire the push
curl -X POST \ -H "Authorization: Bearer MyAPIToken" \ -H "Content-Type: application/json" \ -d '{"password": {"payload": "secret_text"}}' \ https://pwpush.com/p.json
{ "url_token": "fkwjfvhall92", "created_at": "2023-10-20T15:32:01Z", "expires_at": "2023-10-20T15:32:01Z", "views_remaining": 10, "passphrase": null, "note": null, ... }
Param name | Description |
---|---|
password
required |
Push details Validations:
|
password[payload]
required |
The URL encoded password or secret text to share. Validations:
|
password[passphrase]
optional |
Require recipients to enter this passphrase to view the created push. Validations:
|
password[note]
optional , blank allowed |
If authenticated, the URL encoded note for this push. Visible only to the push creator. Validations:
|
password[expire_after_days]
optional |
Expire secret link and delete after this many days. Validations:
|
password[expire_after_views]
optional |
Expire secret link and delete after this many views. Validations:
|
password[deletable_by_viewer]
optional |
Allow users to delete passwords once retrieved. Validations:
|
password[retrieval_step]
optional |
Helps to avoid chat systems and URL scanners from eating up views. Validations:
|
account_id
optional |
The account ID to associate the push with. See: docs.pwpush.com/docs/json-api/#multiple-accounts Validations:
|