API v2 Documentation

Password Pusher API v2

Comprehensive REST API documentation for integrating Password Pusher into your applications

Requests

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.

Requests have three states:

open The request has been created and is waiting for a response. Share the request URL with the recipient.
ready A response has been provided and is available for retrieval. The original requestor can now access the response.
closed The request has expired or been manually closed. All sensitive data has been permanently deleted.
Requests
POST /api/v2/requests
PATCH /api/v2/requests/:url_token/respond

Create a Request Auth Required

POST POST /api/v2/requests

Creates a new request. Requires authentication.

Parameters

request string required
The request text/message to share
close_after_duration integer (0-17) optional
Duration enum - when to close the request
passphrase string optional
Require recipients to enter this passphrase to view
name string optional
A name shown in the dashboard, notifications and emails
note string optional
Internal note (only visible to creator)
retrieval_step boolean optional
Helps to avoid chat systems and URL scanners from eating up views
include_requestor boolean optional
Include requestor information in the request
response_file_attachments boolean optional
Allow file attachments in responses
files array optional
File(s) to upload and attach to the request
notify_emails_to string optional
Recipient emails: Auto-Dispatch allowlist and/or Authenticated Recipients. Does not send email by itself when notify_recipients is false.
notify_emails_to_locale string optional
Locale (language) to send email notification(s) in. When omitted, the workspace default is used, then the application default language.
notify_recipients boolean optional
Email the secret link on create (Auto-Dispatch). When omitted, follows the workspace policy default. Anonymous creates default to true. Set false to keep notify_emails_to as an allowlist without sending the creation email.
authenticated_recipients boolean optional
Require email OTP verification before accessing. Requires notify_emails_to. Browser-only when enabled (API retrieve/respond returns 403). Independent of notify_recipients / Auto-Dispatch.
workspace_id string optional
Prefixed workspace id (for example acct_oxQdpMWVm). Legacy account_id and raw numeric ids are still accepted for backward compatibility.
Duration Values for close_after_duration
0: 15 minutes
1: 30 minutes
2: 45 minutes
3: 1 hour
4: 6 hours
5: 12 hours
6: 1 day
7: 2 days
8: 3 days
9: 4 days
10: 5 days
11: 6 days
12: 1 week
13: 2 weeks
14: 3 weeks
15: 1 month
16: 2 months
17: 3 months
Request Body (JSON)
{
  "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
  }
}
Request Body with Files (multipart/form-data)
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][].

Example Request
Example Request
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"
    }
  }'

Retrieve a Request

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.

Example Request
curl -X GET https://au.pwpush.com/api/v2/requests/orpw2wkg00vpn0a
Example Request with Passphrase
curl -X GET "https://au.pwpush.com/api/v2/requests/orpw2wkg00vpn0a" -H "X-Passphrase: your_passphrase"
Example Response (Open Request)
{
  "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": []
}
Example Response (Ready Request)
{
  "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": []
}

Respond to a Request

PATCH PATCH /api/v2/requests/:url_token/respond

Responds to an open request, changing its state to 'ready'.

Parameters

response string required
The response text/message to the request
files array optional
File(s) to attach to the response (requires 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 Body (JSON)
{
  "request": {
    "response": "The API key is: sk_live_1234567890"
  }
}
Request Body with Files (multipart/form-data)
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][].

Preview a Request

GET GET /api/v2/requests/:url_token/preview

Returns the fully qualified secret URL of a request without retrieving the content.

Example Request
curl -X GET https://au.pwpush.com/api/v2/requests/orpw2wkg00vpn0a/preview
Example Response
{
  "url": "https://au.pwpush.com/r/orpw2wkg00vpn0a"
}

Get Request Audit Log Auth Required

GET GET /api/v2/requests/:url_token/audit

Returns the audit log for a request. Requires authentication and ownership.

Query Parameters:

page integer optional
Page number for pagination.
  • Default: 1 (first page)
  • Range: 1 to 200
  • Returns up to 50 audit log entries per page
  • Example: ?page=2 to retrieve the second page
  • Response headers: Link, 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.

Example Request
curl -X GET https://au.pwpush.com/api/v2/requests/orpw2wkg00vpn0a/audit \
  -H "Authorization: Bearer YOUR_API_TOKEN"
Example Response
{
  "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"
    }
  ]
}

Close a Request Auth Required

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.

Example Request
curl -X DELETE https://au.pwpush.com/api/v2/requests/orpw2wkg00vpn0a \
  -H "Authorization: Bearer YOUR_API_TOKEN"
Example Response
{
  "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": []
}

Request Collections Auth Required

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.

Query Parameters:

page integer optional
Page number for pagination.
  • Default: 1 (first page)
  • Range: 1 to 200
  • Returns up to 50 requests per page
  • Example: ?page=2 to retrieve the second page
  • Response headers: Link, X-Page, X-Per-Page, X-Total, X-Total-Pages

Request States

open Open

The request has been created and is waiting for a response. The request text is visible, but no response has been provided yet.

ready Ready

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.

closed Closed

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.

Example Request (Active)
curl -X GET https://au.pwpush.com/api/v2/requests/active \
  -H "Authorization: Bearer YOUR_API_TOKEN"
Example Request (Open)
curl -X GET https://au.pwpush.com/api/v2/requests/open \
  -H "Authorization: Bearer YOUR_API_TOKEN"
Example Request (Ready)
curl -X GET https://au.pwpush.com/api/v2/requests/ready \
  -H "Authorization: Bearer YOUR_API_TOKEN"
Example Request (Closed)
curl -X GET https://au.pwpush.com/api/v2/requests/closed \
  -H "Authorization: Bearer YOUR_API_TOKEN"
Example Response
[
  {
    "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
  }
]