API v2 Documentation

Password Pusher API v2

Comprehensive REST API documentation for integrating Password Pusher into your applications

Workspaces

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.

List Workspaces
GET /api/v2/workspaces

List Workspaces Auth Required

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.

Response Fields

id string
Prefixed workspace id (for example acct_oxQdpMWVm). Pass this value as workspace_id when creating pushes or requests. Legacy numeric ids are still accepted as input for backward compatibility.
name string
Display name of the workspace
created_at string (ISO 8601)
When the workspace was created
updated_at string (ISO 8601)
When the workspace was last updated
Targeting a workspace

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.

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