API v2 Documentation

Password Pusher API v2

Comprehensive REST API documentation for integrating Password Pusher into your applications

Pushes

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.

Pushes
POST /api/v2/pushes
GET /api/v2/pushes/:url_token

Create a Push

POST POST /api/v2/pushes

Creates a new push with the provided payload.

Parameters

payload string required
The secret text to share
expire_after_duration integer (0-17) optional
Duration enum (0-17)
expire_after_views integer (1-100) optional
Number of views before expiration
passphrase string optional
Require passphrase to view
name string optional
A name for the push
note string optional
Internal note (only visible to creator)
deletable_by_viewer boolean optional
Allow viewers to delete the push
retrieval_step boolean optional
Require an extra step to retrieve
kind string optional
Type: "text", "file", "url", or "qr" (defaults to "text")
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 viewing. Requires notify_emails_to. Retrieval is browser-only when enabled (API retrieve 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 expire_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
OSS vs Pro: Expiration Fields

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.

Response Fields

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.

account_id string or null
Owner workspace id (prefixed). Returned only on create or when you can manage the push.
"acct_oxQdpMWVm"
created_at string
ISO 8601 creation time
"2025-02-17T10:00:00.000Z"
days_remaining integer Deprecated
Whole days left (0 when < 1 day); prefer expires_at / expires_in
1
deletable_by_viewer boolean
Whether the recipient may delete the push
true
deleted boolean
Whether the push was explicitly deleted
false
expire_after_days integer Deprecated
Approximate days (derived from duration)
1
expire_after_duration integer
Duration enum (0–17); see table above
6
expire_after_views integer
Max views before expiry
5
expired boolean
Whether the push has expired
false
expired_on string or null
ISO 8601 when the push expired; null if not expired
null
expires_at string or null
ISO 8601 time when the push expires; null if expired
"2025-02-18T10:00:00.000Z"
expires_in number
Seconds until expiration (0 if expired)
86400
html_url string
URL to open push in browser
"https://.../p/abc"
json_url string
URL to retrieve push as JSON
"https://.../p/abc.json"
name string or null
Optional name for the push
"Database credentials"
note string or null
Optional private note
null
notify_emails_to string or null
Recipient emails for Auto-Dispatch and/or Authenticated Recipients (premium only)
null
notify_emails_to_locale string or null
Language of those emails (premium only). Workspace default, then the application default, when omitted on create.
"en"
notify_recipients boolean
Whether Auto-Dispatch is enabled. This is the stored setting, not a delivery receipt.
true
passphrase string or null
Present only if push has a passphrase (value hidden)
null
retrieval_step boolean
Whether an extra step is required to retrieve
false
updated_at string
ISO 8601 last update time
"2025-02-17T10:00:00.000Z"
url_token string
Unique secret identifier for the push
"fkwjfvhall92"
views_remaining integer
Views left before expiry
5
Request Body (JSON)
{
  "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"
}
Request Body with Files (multipart/form-data)
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][].

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

Retrieve a Push

GET GET /api/v2/pushes/:url_token

Retrieves the secret payload of a push. This increments the view count and may expire the push.

Response Fields

The following fields are returned when retrieving a push. This endpoint returns the payload and files which are not available on other endpoints.

created_at string
ISO 8601 creation time
"2025-02-17T10:00:00.000Z"
days_remaining integer Deprecated
Whole days left (0 when < 1 day); prefer expires_at / expires_in
1
deletable_by_viewer boolean
Whether the recipient may delete the push
true
deleted boolean
Whether the push was explicitly deleted
false
expire_after_days integer Deprecated
Approximate days (derived from duration)
1
expire_after_duration integer
Duration enum (0–17)
6
expire_after_views integer
Max views before expiry
5
expired boolean
Whether the push has expired
false
expired_on string or null
ISO 8601 when the push expired; null if not expired
null
expires_at string or null
ISO 8601 time when the push expires; null if expired
"2025-02-18T10:00:00.000Z"
expires_in number
Seconds until expiration (0 if expired)
86400
files array
Attached file metadata with download URLs
[{ filename, content_type, url }]
html_url string
URL to open push in browser
"https://.../p/abc"
json_url string
URL to retrieve push as JSON
"https://.../p/abc.json"
passphrase string or null
Present only if push has a passphrase (value hidden)
null
payload string or null
The secret content; null when expired
"secret123"
retrieval_step boolean
Whether an extra step is required to retrieve
false
updated_at string
ISO 8601 last update time
"2025-02-17T10:00:00.000Z"
url_token string
Unique secret identifier for the push
"fkwjfvhall92"
views_remaining integer
Views left before expiry
2

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.

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

Preview a Push

GET GET /api/v2/pushes/:url_token/preview

Returns the fully qualified secret URL of a push without retrieving the payload.

Example Request
curl -X GET https://au.pwpush.com/api/v2/pushes/fkwjfvhall92/preview
Example Response
{
  "url": "https://au.pwpush.com/p/fkwjfvhall92"
}

Get Push Audit Log Auth Required

GET GET /api/v2/pushes/:url_token/audit

Returns the audit log for a push. 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, expire, failed_passphrase, and failed_view.

Example Request
curl -X GET https://au.pwpush.com/api/v2/pushes/fkwjfvhall92/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"
    }
  ]
}

Expire a Push

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.

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

Push Collections Auth Required

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.

Query Parameters:

page integer optional
Page number for pagination.
  • Default: 1 (first page)
  • Range: 1 to 200
  • Returns up to 50 pushes per page
  • Example: ?page=2 to retrieve the second page
  • Response headers: Link, X-Page, X-Per-Page, X-Total, X-Total-Pages
Example Request (Active)
curl -X GET https://au.pwpush.com/api/v2/pushes/active \
  -H "Authorization: Bearer YOUR_API_TOKEN"
Example Request (Expired)
curl -X GET https://au.pwpush.com/api/v2/pushes/expired \
  -H "Authorization: Bearer YOUR_API_TOKEN"
Example Response
[
  {
    "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
  }
]