Comprehensive REST API documentation for integrating Password Pusher into your applications
Requests enable secure, two-way communication for collecting sensitive information. Create a request with a secret URL, share it with anyone, and receive secure responses containing text or files—all without exposing sensitive data in email, chat, or logs.
Perfect for collecting credentials, API keys, confidential documents, or any sensitive information from colleagues, clients, or customers. Responses are automatically encrypted and auto-delete after a specified duration to minimize data exposure. Full lifecycle tracking is available in the audit logs of each request.
POST /api/v2/requests
PATCH /api/v2/requests/:url_token/respond
POST POST /api/v2/requests
Creates a new request. Requires authentication.
acct_oxQdpMWVm). Legacy account_id and raw numeric ids are still accepted for backward compatibility.
close_after_duration{
"request": {
"request": "Please provide your hosting information here.",
"close_after_duration": 8,
"passphrase": "optional_passphrase",
"name": "Database Access Request",
"note": "Internal note",
"retrieval_step": true,
"include_requestor": false,
"response_file_attachments": true
}
}
curl -X POST https://au.pwpush.com/api/v2/requests \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-F "request[request]=Please provide your hosting information here." \
-F "request[close_after_duration]=8" \
-F "request[name]=Database Access Request" \
-F "request[files][]=@/path/to/document.pdf" \
-F "request[files][]=@/path/to/spreadsheet.xlsx"
Note: When attaching files, use multipart/form-data format. Multiple files can be attached using request[files][].
curl -X POST https://au.pwpush.com/api/v2/requests \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"request": {
"request": "Please provide your hosting information here.",
"close_after_duration": 8,
"passphrase": "optional_passphrase",
"name": "Database Access Request"
}
}'
require 'net/http'
require 'json'
require 'uri'
uri = URI('https://au.pwpush.com/api/v2/requests')
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 = {
request: {
request: 'Please provide your hosting information here.',
close_after_duration: 8,
passphrase: 'optional_passphrase',
name: 'Database Access Request'
}
}.to_json
response = http.request(request)
puts response.body
import requests
import json
url = 'https://au.pwpush.com/api/v2/requests'
headers = {
'Authorization': 'Bearer YOUR_API_TOKEN',
'Content-Type': 'application/json'
}
data = {
'request': {
'request': 'Please provide your hosting information here.',
'close_after_duration': 8,
'passphrase': 'optional_passphrase',
'name': 'Database Access Request'
}
}
response = requests.post(url, headers=headers, json=data)
print(response.json())
$headers = @{
'Authorization' = 'Bearer YOUR_API_TOKEN'
'Content-Type' = 'application/json'
}
$body = @{
request = @{
request = 'Please provide your hosting information here.'
close_after_duration = 8
passphrase = 'optional_passphrase'
name = 'Database Access Request'
}
} | ConvertTo-Json -Depth 10
$response = Invoke-RestMethod -Uri 'https://au.pwpush.com/api/v2/requests' `
-Method Post `
-Headers $headers `
-Body $body
$response | ConvertTo-Json
GET GET /api/v2/requests/:url_token
Retrieves the content of an open or ready request. This may close the request if it's configured to close after a certain number of views.
Note: If the request 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 request counts as a view and may close the request if it reaches its view limit.
curl -X GET https://au.pwpush.com/api/v2/requests/orpw2wkg00vpn0a
curl -X GET "https://au.pwpush.com/api/v2/requests/orpw2wkg00vpn0a" -H "X-Passphrase: your_passphrase"
{
"close_after_duration": 8,
"url_token": "orpw2wkg00vpn0a",
"retrieval_step": true,
"passphrase": "optional_passphrase",
"created_at": "2023-10-27T10:00:00.000Z",
"updated_at": "2023-10-27T10:00:00.000Z",
"state": "open",
"include_requestor": false,
"response_file_attachments": true,
"close_after_at": "2023-11-04T10:00:00.000Z",
"days_remaining": 8,
"json_url": "https://au.pwpush.com/r/orpw2wkg00vpn0a.json",
"html_url": "https://au.pwpush.com/r/orpw2wkg00vpn0a",
"request": "Please provide your hosting information here.",
"response": null,
"files": []
}
{
"close_after_duration": 8,
"url_token": "orpw2wkg00vpn0a",
"retrieval_step": true,
"passphrase": "optional_passphrase",
"created_at": "2023-10-27T10:00:00.000Z",
"updated_at": "2023-10-27T10:00:00.000Z",
"state": "ready",
"include_requestor": false,
"response_file_attachments": true,
"close_after_at": "2023-11-04T10:00:00.000Z",
"days_remaining": 8,
"json_url": "https://au.pwpush.com/r/orpw2wkg00vpn0a.json",
"html_url": "https://au.pwpush.com/r/orpw2wkg00vpn0a",
"request": null,
"response": "The API key is: sk_live_1234567890",
"files": []
}
PATCH PATCH /api/v2/requests/:url_token/respond
Responds to an open request, changing its state to 'ready'.
response_file_attachments: true on the request)
Note: Only requests in the "open" state can receive responses. Once a response is submitted, the request moves to the "ready" state and cannot accept additional responses.
{
"request": {
"response": "The API key is: sk_live_1234567890"
}
}
curl -X PATCH https://au.pwpush.com/api/v2/requests/orpw2wkg00vpn0a/respond \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-F "request[response]=The API key is: sk_live_1234567890" \
-F "request[files][]=@/path/to/response_doc.pdf"
Note: When attaching files, use multipart/form-data format. Multiple files can be attached using request[files][].
GET GET /api/v2/requests/:url_token/preview
Returns the fully qualified secret URL of a request without retrieving the content.
curl -X GET https://au.pwpush.com/api/v2/requests/orpw2wkg00vpn0a/preview
{
"url": "https://au.pwpush.com/r/orpw2wkg00vpn0a"
}
GET GET /api/v2/requests/:url_token/audit
Returns the audit log for a request. 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, response, close, failed_passphrase, and failed_view.
curl -X GET https://au.pwpush.com/api/v2/requests/orpw2wkg00vpn0a/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"
},
{
"ip": "192.168.1.102",
"user_agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 14_0 like Mac OS X) AppleWebKit/605.1.15",
"referrer": null,
"kind": "response",
"created_at": "2023-10-27T10:10:00.000Z",
"updated_at": "2023-10-27T10:10:00.000Z"
}
]
}
DELETE DELETE /api/v2/requests/:url_token
Immediately closes a request and permanently deletes all sensitive data associated with it. This action is irreversible and cannot be undone. Requires authentication and ownership.
curl -X DELETE https://au.pwpush.com/api/v2/requests/orpw2wkg00vpn0a \
-H "Authorization: Bearer YOUR_API_TOKEN"
{
"close_after_duration": null,
"url_token": "orpw2wkg00vpn0a",
"retrieval_step": false,
"passphrase": null,
"created_at": "2023-10-27T10:00:00.000Z",
"updated_at": "2023-10-27T10:15:00.000Z",
"state": "closed",
"include_requestor": false,
"response_file_attachments": false,
"close_after_at": null,
"days_remaining": null,
"json_url": "https://au.pwpush.com/r/orpw2wkg00vpn0a.json",
"html_url": "https://au.pwpush.com/r/orpw2wkg00vpn0a",
"account_id": "acct_oxQdpMWVm",
"note": null,
"name": null,
"request": null,
"response": null,
"files": []
}
GET GET /api/v2/requests/active
GET /api/v2/requests/active
Returns a paginated list of your active (open or ready) requests. Requires authentication.
GET /api/v2/requests/open
Returns a paginated list of your open requests. Requires authentication.
GET /api/v2/requests/ready
Returns a paginated list of your ready requests. Requires authentication.
GET /api/v2/requests/closed
Returns a paginated list of your closed requests. Requires authentication.
1 (first page)1 to 200?page=2 to retrieve the second pageLink, X-Page, X-Per-Page, X-Total, X-Total-PagesThe request has been created and is waiting for a response. The request text is visible, but no response has been provided yet.
The request has been responded to and now contains the response payload. The request text is no longer visible, but the response is available for retrieval.
The request has been handled and all sensitive data (both request and response) has been permanently deleted. This state is irreversible.
Note: The /active endpoint returns requests in both open and ready states. Use /open or /ready endpoints to filter by specific state.
curl -X GET https://au.pwpush.com/api/v2/requests/active \
-H "Authorization: Bearer YOUR_API_TOKEN"
curl -X GET https://au.pwpush.com/api/v2/requests/open \
-H "Authorization: Bearer YOUR_API_TOKEN"
curl -X GET https://au.pwpush.com/api/v2/requests/ready \
-H "Authorization: Bearer YOUR_API_TOKEN"
curl -X GET https://au.pwpush.com/api/v2/requests/closed \
-H "Authorization: Bearer YOUR_API_TOKEN"
[
{
"close_after_duration": 7,
"url_token": "abc123xyz789",
"retrieval_step": false,
"passphrase": null,
"created_at": "2023-10-27T10:00:00.000Z",
"updated_at": "2023-10-27T10:00:00.000Z",
"state": "open",
"include_requestor": false,
"response_file_attachments": false,
"close_after_at": "2023-11-03T10:00:00.000Z",
"days_remaining": 7,
"json_url": "https://au.pwpush.com/r/abc123xyz789.json",
"html_url": "https://au.pwpush.com/r/abc123xyz789",
"account_id": "acct_oxQdpMWVm",
"note": null,
"name": null
},
{
"close_after_duration": 7,
"url_token": "def456uvw012",
"retrieval_step": false,
"passphrase": null,
"created_at": "2023-10-26T15:30:00.000Z",
"updated_at": "2023-10-27T09:00:00.000Z",
"state": "ready",
"include_requestor": false,
"response_file_attachments": false,
"close_after_at": "2023-11-02T15:30:00.000Z",
"days_remaining": 6,
"json_url": "https://au.pwpush.com/r/def456uvw012.json",
"html_url": "https://au.pwpush.com/r/def456uvw012",
"account_id": "acct_oxQdpMWVm",
"note": null,
"name": null
}
]