API v2
The next generation REST API for Password Pusher.
π Beta Release β API v2 is currently in beta. While weβve made every effort to ensure stability, there may be breaking changes before the final release.
Overview
API v2 is the next generation REST API for Password Pusher, providing a comprehensive interface for creating, retrieving, and managing secure password pushes and requests.
Key Features
- Bearer Token Authentication β Secure API access with token-based authentication
- JSON-Only Responses β Consistent JSON format across all endpoints
- RESTful Design β Intuitive REST endpoints following best practices
- Pushes & Requests β Full support for one-way pushes and two-way requests
- Collections Support β Organize and manage pushes in collections
- Comprehensive Audit Logs β Access detailed audit trails via API
Availability
API v2 is currently available on:
| Platform | Status |
|---|---|
| pwpush.com | β Available |
| Self-Hosted Pro | β Available |
| Open Source Edition | π Coming after beta |
The API will be added to the open-source edition after it exits beta.
Documentation
Complete API v2 documentation is available at:
The documentation includes:
- Authentication β How to obtain and use API tokens
- Pushes β Create, retrieve, preview, and expire pushes
- Requests β Create and manage two-way secure requests
- Accounts β List and manage accounts (where applicable)
- Error Handling β Standard HTTP status codes and error responses
- Rate Limits β Usage limits and best practices
- Complete Examples β Working curl examples for all endpoints
Quick Example
Hereβs a quick example of creating a push with API v2:
curl -X POST https://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
}
}'
API v1 vs v2
| Feature | API v1 | API v2 |
|---|---|---|
| Authentication | Bearer Token | Bearer Token |
| Response Format | JSON | JSON |
| Pushes | β | β |
| Requests | Limited | β Full Support |
| Collections | β | β |
| Audit Logs via API | β | β |
| Rate Limiting | Basic | Advanced |
For existing integrations, API v1 continues to work and will be supported for the foreseeable future.
Feedback
We welcome your feedback on API v2! If you encounter any issues or have suggestions, please reach out through our support channels.