Retrieves a push including it’s payload and details. If the push is still active, this will burn a view and the transaction will be logged in the push audit log.
curl -X GET \ -H "Authorization: Bearer MyAPIToken" \ https://pwpush.com/r/fk27vnslkd.json
{ "expire_after_days": 2, "expire_after_views": 5, "expired": false, "url_token": "quyul5r5w18", "payload": "https://example.com", ... }
Param name | Description |
---|---|
url_token
required |
Secret URL token of a previously created push. Validations:
|
Creates a new URL push with the given payload and details.
curl -X POST \
-H "Authorization: Bearer MyAPIToken" \ -d "url[payload]=https://example.com" \ -d "url[expire_after_days]=2" \ -d "url[expire_after_views]=10" \ https://pwpush.com/r.json
{ "url_token": "quyul5r5w18", "created_at": "2023-10-20T15:32:01Z", "expire_after_days": 2, "expire_after_views": 10, ... }
Param name | Description |
---|---|
url
required |
Push details Validations:
|
url[payload]
required |
The URL encoded URL to redirect to. Validations:
|
url[passphrase]
optional |
Require recipients to enter this passphrase to view the created push. Validations:
|
url[note]
optional , blank allowed |
If authenticated, the URL encoded note for this push. Visible only to the push creator. Validations:
|
url[expire_after_days]
optional |
Expire secret link and delete after this many days. Validations:
|
url[expire_after_views]
optional |
Expire secret link and delete after this many views. Validations:
|
url[retrieval_step]
optional |
Helps to avoid chat systems and URL scanners from eating up views. Validations:
|
Retrieves the fully qualified secret URL of a push.
curl -X GET \ -H "Authorization: Bearer MyAPIToken" \ https://pwpush.com/r/fk27vnslkd/preview.json
{ "url": "https://pwpush.com/r/fk27vnslkd" }
Param name | Description |
---|---|
url_token
required |
Secret URL token of a previously created push. Validations:
|
Retrieves the audit log for a push.
curl -X GET \ -H "Authorization: Bearer MyAPIToken" \ https://pwpush.com/r/fk27vnslkd/audit.json
[ { "ip": "127.0.0.1", "referrer": "https://example.com", "created_at": "2023-10-20T15:32:01Z", "successful": true, ... }, ... ]
Param name | Description |
---|---|
url_token
required |
Secret URL token of a previously created push. Validations:
|
Expires a push immediately. Must be authenticated & owner of the push or the push must have been created with deleteable_by_viewer.
curl -X DELETE \ -H "Authorization: Bearer MyAPIToken" \ https://pwpush.com/r/fkwjfvhall92.json
{ "expired": true, "expired_on": "2023-10-23T15:32:01Z", ... }
Param name | Description |
---|---|
url_token
required |
Secret URL token of a previously created push. Validations:
|
Returns the list of URL pushes that you previously pushed which are still active.
curl -X GET \ -H "Authorization: Bearer MyAPIToken" \ https://pwpush.com/r/active.json
[ { "url_token": "fkwjfvhall92", "created_at": "2023-10-20T15:32:01Z", "expires_on": "2023-10-23T15:32:01Z", ... }, ... ]
Returns the list of URL pushes that you previously pushed which have expired.
curl -X GET \ -H "Authorization: Bearer MyAPIToken" \ https://pwpush.com/r/expired.json
[ { "url_token": "fkwjfvhall92", "created_at": "2023-10-20T15:32:01Z", "expires_on": "2023-10-23T15:32:01Z", ... }, ... ]