Comprehensive REST API documentation for integrating Password Pusher into your applications
Pushes enable secure, one-way transmission of sensitive data to recipients. Create a push with a secret URL containing text, files, QR codes, or URLs, then share it with anyone—all without exposing sensitive data in email, chat, or logs.
Perfect for employee onboarding, sending account credentials, transmitting confidential documents, or sharing any sensitive information. Pushes automatically expire after a specified duration or number of views, and full lifecycle tracking is available in the audit logs of each push.
POST /api/v2/pushes
GET /api/v2/pushes/:url_token
POST POST /api/v2/pushes
Creates a new push with the provided payload.
acct_oxQdpMWVm). Legacy account_id and raw numeric ids are still accepted for backward compatibility.
expire_after_duration
Pro and pwpush.com use expire_after_duration (enum 0–17 above). The open-source edition uses expire_after_days (integer days) instead — expire_after_duration is not supported there and is ignored. Legacy expire_after_days is still accepted on Pro and mapped to a duration enum.
The following fields are returned in the response when creating a push. Note: payload and files are NOT returned on create—they are only available when retrieving a push via GET.
{
"push": {
"payload": "secret_password_123",
"expire_after_duration": 6,
"expire_after_views": 5,
"passphrase": "optional_passphrase",
"name": "Database Credentials",
"note": "Internal note",
"deletable_by_viewer": true,
"retrieval_step": true,
"kind": "text"
},
"workspace_id": "acct_oxQdpMWVm"
}
curl -X POST https://au.pwpush.com/api/v2/pushes \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-F "push[payload]=secret_password_123" \
-F "push[expire_after_duration]=6" \
-F "push[expire_after_views]=5" \
-F "push[name]=Database Credentials" \
-F "push[files][]=@/path/to/file1.pdf" \
-F "push[files][]=@/path/to/file2.txt"
Note: When attaching files, use multipart/form-data format and set kind: "file". Multiple files can be attached using push[files][].
curl -X POST https://au.pwpush.com/api/v2/pushes \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"push": {
"payload": "MySecretPassword123",
"expire_after_duration": 6,
"expire_after_views": 3
}
}'
require 'net/http'
require 'json'
require 'uri'
uri = URI('https://au.pwpush.com/api/v2/pushes')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Post.new(uri.path)
request['Authorization'] = 'Bearer YOUR_API_TOKEN'
request['Content-Type'] = 'application/json'
request.body = {
push: {
payload: 'MySecretPassword123',
expire_after_duration: 6,
expire_after_views: 3
}
}.to_json
response = http.request(request)
puts response.body
import requests
import json
url = 'https://au.pwpush.com/api/v2/pushes'
headers = {
'Authorization': 'Bearer YOUR_API_TOKEN',
'Content-Type': 'application/json'
}
data = {
'push': {
'payload': 'MySecretPassword123',
'expire_after_duration': 6,
'expire_after_views': 3
}
}
response = requests.post(url, headers=headers, json=data)
print(response.json())
$headers = @{
'Authorization' = 'Bearer YOUR_API_TOKEN'
'Content-Type' = 'application/json'
}
$body = @{
push = @{
payload = 'MySecretPassword123'
expire_after_duration = 6
expire_after_views = 3
}
} | ConvertTo-Json -Depth 10
$response = Invoke-RestMethod -Uri 'https://au.pwpush.com/api/v2/pushes' `
-Method Post `
-Headers $headers `
-Body $body
$response | ConvertTo-Json
{
"expire_after_duration": 6,
"expire_after_views": 5,
"expired": false,
"url_token": "fkwjfvhall92",
"deletable_by_viewer": true,
"retrieval_step": false,
"expired_on": null,
"passphrase": null,
"created_at": "2025-02-17T10:00:00.000Z",
"updated_at": "2025-02-17T10:00:00.000Z",
"expire_after_days": 1,
"views_remaining": 5,
"deleted": false,
"days_remaining": 1,
"expires_at": "2025-02-18T10:00:00.000Z",
"expires_in": 86400,
"json_url": "https://example.com/p/fkwjfvhall92.json",
"html_url": "https://example.com/p/fkwjfvhall92",
"account_id": "acct_oxQdpMWVm",
"note": null,
"name": "Database Credentials"
}
GET GET /api/v2/pushes/:url_token
Retrieves the secret payload of a push. This increments the view count and may expire the push.
The following fields are returned when retrieving a push. This endpoint returns the payload and files which are not available on other endpoints.
Note: If the push has a passphrase, send it with the X-Passphrase header (preferred). The passphrase parameter is still accepted for compatibility, but avoid putting secrets in URLs. Retrieving a push counts as a view and may expire the push if it reaches its view limit.
curl -X GET https://au.pwpush.com/api/v2/pushes/fkwjfvhall92
curl -X GET "https://au.pwpush.com/api/v2/pushes/fkwjfvhall92" -H "X-Passphrase: your_passphrase"
{
"expire_after_duration": 6,
"expire_after_views": 3,
"expired": false,
"url_token": "fkwjfvhall92",
"deletable_by_viewer": false,
"retrieval_step": false,
"expired_on": null,
"passphrase": null,
"created_at": "2025-02-17T10:00:00.000Z",
"updated_at": "2025-02-17T10:00:00.000Z",
"expire_after_days": 1,
"views_remaining": 2,
"deleted": false,
"days_remaining": 1,
"expires_at": "2025-02-18T10:00:00.000Z",
"expires_in": 86400,
"json_url": "https://au.pwpush.com/p/fkwjfvhall92.json",
"html_url": "https://au.pwpush.com/p/fkwjfvhall92",
"payload": "MySecretPassword123",
"files": []
}
GET GET /api/v2/pushes/:url_token/preview
Returns the fully qualified secret URL of a push without retrieving the payload.
curl -X GET https://au.pwpush.com/api/v2/pushes/fkwjfvhall92/preview
{
"url": "https://au.pwpush.com/p/fkwjfvhall92"
}
GET GET /api/v2/pushes/:url_token/audit
Returns the audit log for a push. Requires authentication and ownership.
1 (first page)1 to 200?page=2 to retrieve the second pageLink, X-Page, X-Per-Page, X-Total, X-Total-Pages
Note: The kind field indicates the type of action logged. Common values include: creation, view, expire, failed_passphrase, and failed_view.
curl -X GET https://au.pwpush.com/api/v2/pushes/fkwjfvhall92/audit \
-H "Authorization: Bearer YOUR_API_TOKEN"
{
"logs": [
{
"ip": "192.168.1.100",
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36",
"referrer": null,
"kind": "creation",
"created_at": "2023-10-27T10:00:00.000Z",
"updated_at": "2023-10-27T10:00:00.000Z"
},
{
"ip": "192.168.1.101",
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36",
"referrer": "https://example.com",
"kind": "view",
"created_at": "2023-10-27T10:05:00.000Z",
"updated_at": "2023-10-27T10:05:00.000Z"
}
]
}
DELETE DELETE /api/v2/pushes/:url_token
Immediately expires a push and permanently deletes all sensitive data, including the payload and any attached files. This action is irreversible and cannot be undone. Requires authentication and ownership, or the push must have been created with deletable_by_viewer: true.
curl -X DELETE https://au.pwpush.com/api/v2/pushes/fkwjfvhall92 \
-H "Authorization: Bearer YOUR_API_TOKEN"
{
"expire_after_duration": 7,
"expire_after_views": 5,
"expired": true,
"url_token": "fkwjfvhall92",
"deletable_by_viewer": false,
"retrieval_step": false,
"expired_on": "2023-10-27T10:15:00.000Z",
"passphrase": null,
"created_at": "2023-10-27T10:00:00.000Z",
"updated_at": "2023-10-27T10:15:00.000Z",
"expire_after_days": 7,
"days_remaining": 0,
"expires_at": null,
"expires_in": 0,
"views_remaining": 0,
"deleted": true,
"json_url": "https://au.pwpush.com/p/fkwjfvhall92.json",
"html_url": "https://au.pwpush.com/p/fkwjfvhall92",
"account_id": "acct_oxQdpMWVm",
"note": null,
"name": null
}
GET GET /api/v2/pushes/active
GET /api/v2/pushes/active
Returns a paginated list of your active (non-expired) pushes. Requires authentication.
GET /api/v2/pushes/expired
Returns a paginated list of your expired pushes. Requires authentication.
1 (first page)1 to 200?page=2 to retrieve the second pageLink, X-Page, X-Per-Page, X-Total, X-Total-Pagescurl -X GET https://au.pwpush.com/api/v2/pushes/active \
-H "Authorization: Bearer YOUR_API_TOKEN"
curl -X GET https://au.pwpush.com/api/v2/pushes/expired \
-H "Authorization: Bearer YOUR_API_TOKEN"
[
{
"expire_after_duration": 7,
"expire_after_views": 5,
"expired": false,
"url_token": "abc123xyz789",
"deletable_by_viewer": false,
"retrieval_step": false,
"expired_on": null,
"passphrase": null,
"created_at": "2023-10-27T10:00:00.000Z",
"updated_at": "2023-10-27T10:00:00.000Z",
"expire_after_days": 7,
"days_remaining": 7,
"expires_at": "2023-10-29T10:00:00.000Z",
"expires_in": 172800,
"views_remaining": 5,
"deleted": false,
"json_url": "https://au.pwpush.com/p/abc123xyz789.json",
"html_url": "https://au.pwpush.com/p/abc123xyz789",
"account_id": "acct_oxQdpMWVm",
"note": null,
"name": null
},
{
"expire_after_duration": 1,
"expire_after_views": 3,
"expired": false,
"url_token": "def456uvw012",
"deletable_by_viewer": true,
"retrieval_step": false,
"expired_on": null,
"passphrase": null,
"created_at": "2023-10-26T15:30:00.000Z",
"updated_at": "2023-10-26T15:30:00.000Z",
"expire_after_days": 1,
"days_remaining": 0,
"expires_at": "2023-10-26T16:00:00.000Z",
"expires_in": 1200,
"views_remaining": 2,
"deleted": false,
"json_url": "https://au.pwpush.com/p/def456uvw012.json",
"html_url": "https://au.pwpush.com/p/def456uvw012",
"account_id": "acct_oxQdpMWVm",
"note": null,
"name": null
}
]