Comprehensive REST API documentation for integrating Password Pusher into your applications
Workspaces are how Password Pusher organizes pushes and requests for teams and individuals. A user can belong to multiple workspaces. When creating pushes or requests, target a specific workspace by passing the workspace_id parameter with the workspace id.
Note: This parameter was previously named account_id and renamed to workspace_id. The legacy account_id name is still accepted for backward compatibility. Workspace ids are returned as prefixed strings (for example acct_oxQdpMWVm); raw numeric ids are still accepted as input.
By default, you have one workspace. On pwpush.com, you can create additional workspaces for your team or organization. In Self-Hosted Pro, only one workspace is created for you.
List workspaces with GET /api/v2/workspaces or the equivalent GET /api/v1/workspaces. In API v1 and v2, the legacy paths GET /api/v1/accounts and GET /api/v2/accounts return the same JSON.
GET /api/v2/workspaces
GET GET /api/v2/workspaces
Legacy alias: GET /api/v2/accounts (identical response).
Returns every workspace the authenticated user belongs to. Use each item’s id as workspace_id when creating pushes or requests.
acct_oxQdpMWVm). Pass this value as workspace_id when creating pushes or requests. Legacy numeric ids are still accepted as input for backward compatibility.
When creating pushes or requests, you can optionally pass workspace_id to associate the resource with a specific workspace. If omitted, the resource is created in your default workspace.
Note: This parameter was previously named account_id and renamed to workspace_id. The legacy account_id name is still accepted for backward compatibility, but new integrations should use workspace_id.
Important: You may only use workspace ids that you belong to. Using another workspace’s id returns 401 Unauthorized.
curl -X GET https://au.pwpush.com/api/v2/workspaces \
-H "Authorization: Bearer YOUR_API_TOKEN"
require 'net/http'
require 'json'
require 'uri'
uri = URI('https://au.pwpush.com/api/v2/workspaces')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Get.new(uri.path)
request['Authorization'] = 'Bearer YOUR_API_TOKEN'
response = http.request(request)
puts JSON.pretty_generate(JSON.parse(response.body))
import requests
import json
url = 'https://au.pwpush.com/api/v2/workspaces'
headers = {
'Authorization': 'Bearer YOUR_API_TOKEN'
}
response = requests.get(url, headers=headers)
print(json.dumps(response.json(), indent=2))
$headers = @{
'Authorization' = 'Bearer YOUR_API_TOKEN'
}
$response = Invoke-RestMethod -Uri 'https://au.pwpush.com/api/v2/workspaces' `
-Method Get `
-Headers $headers
$response | ConvertTo-Json -Depth 10
[
{
"id": "acct_oxQdpMWVm",
"name": "My Personal Workspace",
"created_at": "2023-10-27T10:00:00.000Z",
"updated_at": "2023-10-27T10:00:00.000Z"
},
{
"id": "acct_k9Lm2nPqR",
"name": "Acme Corporation",
"created_at": "2023-10-20T08:00:00.000Z",
"updated_at": "2023-10-20T08:00:00.000Z"
}
]