REST API v2.0

REST API v2.0 is a complete redesign of the Password Depot Enterprise Server REST interface, available from server version 19.1.0. It introduces standard Bearer token authentication, covers the full scope of server administration, and delivers a more consistent, predictable API – running alongside the existing v1.0 API on the same server and port, no reconfiguration needed.


What is the REST API used for?

In addition to its internal TCP-based client/server protocol, Password Depot Enterprise Server provides a RESTful HTTPS interface for lightweight programmatic access. This implementation adheres to REST principles and makes it possible to access server data and functions using standard web technologies.

The REST API is used in particular for the following purposes:

  • Custom REST-based applications and integrations
    Using the documented endpoints, custom tools, scripts, and web interfaces can access server databases, read, create, modify, or delete entries, and integrate Password Depot functions into your own applications.

  • Full server administration
    v2.0 adds comprehensive administration endpoints for managing users, groups, database permissions, alert rules, and shared secrets — all accessible programmatically without the Server Manager UI.

  • Automation with long-lived tokens
    Service accounts can authenticate using long-lived tokens (up to 2 years) generated in the Server Manager, or via Windows SSO (Negotiate/Kerberos) — no stored passwords required. Ideal for scheduled tasks, CI/CD pipelines, and monitoring scripts.

  • Web client connectivity
    The REST service also powers the Password Depot web client.

Communication via the REST API is encrypted using SSL/TLS, analogous to the secured connection used by the Password Depot client application.


What's New in v2.0

API v2.0 introduces significant changes compared to v1.0:

Feature v1.0 v2.0
Authentication Custom access_token + client_id headers Standard Authorization: Bearer <token> header; Negotiate SSO, OIDC, WebAuthn/Passkey
Windows SSO Not supported HTTP Negotiate (SPNEGO/Kerberos) – passwordless auth for gMSA and service accounts
Long-lived tokens Not supported Server Manager can generate tokens valid for 180 days to 2 years
IP lockout Not supported IP address locked out after repeated failed login attempts; 429 Too Many Requests with Retry-After header (loopback addresses exempt)
Session scope Not available "client" (default) for database access; "admin" for full server administration
URL structure Verb-based: /login, /list, /read, /add, /modify Noun-based resources: /databases, /entries/{id}, /users
Case-sensitive routes Case-insensitive Case-sensitive per RFC 3986; clients migrating from v1.0 must use exact lowercase paths
Data types String-encoded: "1", "0" Native JSON types: true, false, 42
Administration Password operations only Full server administration: users, groups, permissions, alerts, secrets
Folders Mixed with entries via itemclass field First-class resource with dedicated CRUD endpoints
Document content Not supported Upload and download document BLOBs up to 64 MB
Pagination Not supported All list endpoints support ?offset=0&limit=100
Error format {"code": 401, "error": "..."} {"error": {"code": 401, "message": "..."}}

Enabling the REST Web Service

The server configuration for v2.0 is identical to v1.0. If the REST web service is already enabled, no additional setup is required. Both API versions run simultaneously on the same server and port.

To enable the REST web service for the first time:

  1. Open the Server Manager and connect to your running Password Depot Enterprise Server.

  2. Navigate to: Manage → Server Settings → Connections → Supported Clients.

  3. Enable the Web Client option and confirm with OK.

The REST service starts automatically on port 8714. To use a different port, edit the PortREST value in pdserver.ini and restart the server.

SSL Certificate

A valid SSL certificate is mandatory (required since v18.0.0). Two options are supported:

  • Trusted CA certificate — Issued by a trusted Certificate Authority. Clients connect without certificate warnings. The certificate's commonName or subjectAltName must match the server's domain name or IP address.
  • Self-signed certificate — Can be generated directly in Server Manager using the built-in Create Certificate Wizard. Clients must either explicitly trust the certificate or disable certificate verification (-k in curl, -SkipCertificateCheck in PowerShell).

Firewall and Network

Port 8714 (or your custom port) must be open in the server's firewall and reachable from all machines that will call the API. The REST service accepts HTTPS only — plain HTTP connections are not supported.

Verifying the Setup

To confirm the service is running, send a request to any endpoint without a token. You should receive a 401 Unauthorized JSON response:

GET https://<YOUR_SERVER>:8714/v2.0/databases

A response of {"error": {"code": 401, "message": "Authorization header required"}} confirms the service is active and ready to accept authenticated requests.


Base URL

All v2.0 endpoints are available under:

https://<YOUR_SERVER>:8714/v2.0/

Replace <YOUR_SERVER> with your Password Depot Enterprise Server's hostname or IP address. The default port is 8714.

A machine-readable OpenAPI specification (openapi.yaml) is available at https://<YOUR_SERVER>:8714/openapi.yaml and can be imported into tools such as Postman, Insomnia, or Swagger UI.

Entry Icons

Entry icons are served at a separate path outside the API version prefix:

https://<YOUR_SERVER>:8714/file/<filename>

Each entry has an icon field (e.g., "ico12.svg"). To display the icon, request it from this URL. No authentication is required for icon requests.

Example: https://127.0.0.1:8714/file/ico12.svg

NOTE: Both API versions run simultaneously. v1.0 endpoints remain available at /v1.0/ while v2.0 endpoints are served at /v2.0/. Both versions share the same server process, port, and SSL certificate.


Authentication

v2.0 uses standard Bearer token authentication. All endpoints require an Authorization: Bearer <token> header, except the following, which are used to obtain a token:

  • POST /v2.0/auth/login – obtain a token (standard, sspi, negotiate, oidc, azure)
  • POST /v2.0/auth/webauthn/begin – begin WebAuthn/Passkey authentication
  • POST /v2.0/auth/webauthn/complete – complete WebAuthn/Passkey authentication
  • GET /v2.0/auth/oidc – discover available OIDC providers

A session begins with a login request that returns an access_token, which must be included as an Authorization header in all subsequent requests.

Change from v1.0: v1.0 required two custom headers per request (access_token and client_id). v2.0 uses the single industry-standard Authorization: Bearer <token> header. The login response no longer includes a client_id.

Login Endpoint

POST /v2.0/auth/login

The request body is a JSON object. The auth field selects the authentication method (defaults to standard if omitted). The optional scope field determines the session type:

  • "client" (default) – Access to databases, folders, entries, and search.
  • "admin" – All client access plus server administration endpoints (users, groups, permissions, alerts, secrets, database management).

Authentication Methods

Method auth value Required fields
Standard (default) standard user, pass
SSPI (Kerberos / NTLM) sspi user, pass
Negotiate (Windows SSO) negotiate None – uses the process identity
OIDC oidc idp, id_token
Azure AD (deprecated) azure id_token
WebAuthn / Passkey – Separate endpoints: POST /v2.0/auth/webauthn/begin and /complete

Standard Authentication

Normal username and password login. The auth field can be omitted. The tfacode field is only required when 2FA is enabled for the account – in that case the server first responds with 460 TFA Code Required.

{
  "user": "<USERNAME>",
  "pass": "<PASSWORD>",
  "tfacode": "<2FA_CODE>"  // Only when 2FA is enabled
}

SSPI Authentication

Validates Windows domain credentials against Active Directory via SSPI. The username must be in UPN format (user@domain.com) or down-level format (DOMAIN\username).

{
  "auth": "sspi",
  "user": "DOMAIN\\<USERNAME>",
  "pass": "<WINDOWS_PASSWORD>"
}

Negotiate Authentication (Windows SSO)

Passwordless authentication using the caller's Windows process identity via HTTP Negotiate (SPNEGO/Kerberos). No username or password is sent in the request body. This is ideal for Group Managed Service Accounts (gMSA), scheduled tasks, and CI/CD pipelines.

{
  "auth": "negotiate"
}

The HTTP client library handles the Kerberos handshake automatically. In PowerShell, add -UseDefaultCredentials to Invoke-RestMethod; in curl, add --negotiate -u :.

Prerequisites: Negotiate authentication requires the following:
• In the Server Manager, go to Server Settings and enable Integrated Windows Authentication (IWA).
• The Password Depot user account must have IWA enabled as an authentication method, and either a SAM account name (DOMAIN\username) or a UPN (user@domain.com) must be filled in.
• The machine calling the API must be a member of the same Active Directory domain, or a domain that it trusts.

OIDC Authentication

Authentication via a registered OIDC identity provider. Use GET /v2.0/auth/oidc to retrieve the list of available providers.

{
  "auth": "oidc",
  "idp": "<PROVIDER_ID>",
  "id_token": "<TOKEN_FROM_OIDC_FLOW>"
}

NOTE: The id_token field must carry either (a) a signed OIDC id_token JWT or (b) an opaque OAuth access token usable as a Bearer credential at the provider's userinfo_endpoint. It must not carry a bare authorization code. The server validates the supplied value directly and never performs an authorization-code exchange. A provider configured for code-flow only (e.g. a Google-style preset) is supported only if the client performs the code-to-token exchange itself before calling this endpoint; the recommended client configuration is response_type=id_token.

Successful Login Response

{
  "access_token": "<ACCESS_TOKEN>"
}

Token Lifetime

The access_token expires after 10 minutes of inactivity. Each successful API request resets the timer, so active sessions remain alive indefinitely. If a request returns 401 Unauthorized, the client must re-authenticate.

For automation and service accounts (scheduled tasks, CI/CD pipelines, monitoring scripts), the Password Depot Server Manager can generate long-lived tokens with configurable lifetimes (6 months, 1 year, 18 months, or 2 years). Long-lived tokens do not expire on inactivity and remain valid until their expiration date is reached, they are explicitly revoked by an administrator, or the corresponding API Token record is deleted in the Server Manager. Each token is managed in the user's properties dialog under the API Tokens tab – it has a descriptive name, scope, expiry date, and last-used timestamp.

Security recommendation: Store long-lived tokens in a secure vault (e.g., Windows Credential Manager, Azure Key Vault, HashiCorp Vault). Never embed them in source code or commit them to version control. Use the minimum required scope ("client" unless admin access is needed). Revoke tokens immediately when they are no longer needed.

Token Structure (JWT Claims)

The access token is a standard JWT signed with HMAC-SHA256. Clients should treat it as an opaque Bearer credential, but the claims are documented here for debugging purposes:

Claim Type Description
iss string Server title (set in Server Manager)
sub string (UUID) User ID – primary identifier for the token owner
aud string https://<server-host>:<port>/
iat int (Unix) Token creation time
exp int (Unix) Expiry time. For session tokens: rolling (extended on each call). For long-lived tokens: fixed.
admin boolean true if the token was issued with "scope": "admin"
refresh boolean true for session tokens (inactivity-based renewal); false for long-lived tokens
jti string (UUID) Present only on long-lived API tokens. UUID of the API Token record – used server-side for revocation. Session tokens do not carry jti.

Using the Token

Include the Authorization header in every subsequent request:

Authorization: Bearer <ACCESS_TOKEN>

Two-Factor Authentication (2FA)

The 2FA flow is identical to v1.0. If two-factor authentication is enabled, the login endpoint may respond with:

  • 459 – TFA Not Activated – 2FA is enabled but not yet initialized. The error.message field contains the URL of a QR code. The user must scan it with an authenticator app and resend the login request with the resulting 6-digit code as tfacode.

  • 460 – TFA Code Required – 2FA is initialized. Prompt the user for their code and resend the login request including tfacode.

NOTE: The REST API does not support trusted devices. Users must supply a valid 2FA code on every login.


Logout

POST /v2.0/auth/logout

Include the Authorization: Bearer header. The behavior depends on the token type:

  • Session tokens (issued by POST /auth/login) – invalidated immediately. The server returns 204 No Content. The token is rejected on any subsequent use.
  • Long-lived API tokens (issued by the Server Manager) – not revoked by this endpoint. The server returns 200 OK with {"revoked": false, "token_type": "api_token", "message": "..."}. The token remains valid. To revoke a long-lived token, use the Password Depot Server Manager.

Request Format

  • All request bodies must be JSON with Content-Type: application/json
  • Character encoding: UTF-8
  • Query parameters are passed in the URL
  • Supported HTTP methods: GET, POST, PUT, PATCH, DELETE

Response Format and Error Codes

Success

On success, the response structure depends on the endpoint. List endpoints return a paginated envelope:

{
  "data": [ ... ],
  "total": 125,
  "offset": 0,
  "limit": 100
}

NOTE: The maximum value for limit is 1000. Higher values are silently clamped to 1000.

Data Types

  • Booleans: true / false (not "1" / "0" as in v1.0)
  • Integers: 42 (not "42")
  • Dates: ISO 8601 / RFC 3339 format (e.g., "2024-11-20T16:45:00.000Z") – all timestamp fields are true UTC instants with trailing Z; inbound timestamp fields (e.g. expires_at) are interpreted as UTC. Note: Prior to server version 19.x, these fields emitted the server's local time mislabeled as UTC (e.g. a server at UTC+2 showing T14:00:00Z instead of the correct T12:00:00Z). Clients that relied on the old values will see times shift by the server's UTC offset.
  • Null/missing values: null (not empty string "" or dates before 1901 as in v1.0)

Error Format

On error, all endpoints return:

{
  "error": {
    "code": <HTTP_ERROR_CODE>,
    "message": "<DESCRIPTION>"
  }
}

Change from v1.0: The error structure is now nested under an error object. The field previously called "error" (a string) is now "error.message".

NOTE: error.code usually equals the HTTP status code, but may carry an application sub-code (≥ 1000) that conveys a finer machine-readable reason. Example: a wrong or missing second password returns HTTP 403 with error.code = 4031 (PD_ERRCODE_INVALID_SECOND_PASS). The HTTP status is always authoritative for the response class. Always match the numeric code — never the localized message string.

Common Error Codes

  • 400 – Bad Request (malformed request or invalid parameters)

  • 401 – Unauthorized (missing, invalid, or expired token)

  • 429 – Too Many Requests (IP address locked out after too many failed login attempts; the Retry-After header carries the remaining lockout in seconds)

  • 403 – Forbidden (insufficient permissions)

  • 4031 – Wrong or missing second password on a protected entry or folder (HTTP 403; body error.code = 4031, i.e. PD_ERRCODE_INVALID_SECOND_PASS). Detect via HTTP 403 && error.code == 4031 to re-prompt the user for the second password.

  • 404 – Not Found (resource does not exist)

  • 409 – Conflict (duplicate name, concurrent modification, or FIDO2 second factor — FIDO2 is not supported via REST; switch to TOTP or email 2FA instead)

  • 459 – TFA Not Activated (QR code URL returned in error.message)

  • 460 – TFA Code Required (additional authentication needed)

  • 500 – Internal Server Error

Cache Headers

Every API response includes Cache-Control: no-store and Pragma: no-cache. This applies to all /v2.0 endpoints, file and temporary downloads, OPTIONS preflight responses, and JSON error responses. Because API responses can carry plaintext secrets (passwords, second-password-decrypted fields), they must never be written to a shared or browser disk cache.


Endpoint Overview

v2.0 provides 78 endpoints across 11 resource types, divided into client and admin scopes.

Client Endpoints

Accessible with any session (scope: client or admin):

Resource Endpoints Description
Authentication 5 Login, logout, OIDC discovery, WebAuthn begin/complete
Profile (/me) 8 View and update own profile (PATCH /me), change password, manage own passkeys
Databases 2 List and read accessible databases
Folders 8 List, create, read, update, and delete folders; browse root-level and folder-level contents via /children and /folders/{id}/children
Entries 7 Full CRUD for password entries, move, and document content upload/download
Search 1 Search entries within a database
Users (read-only) 2 List and read users in compact representation (id, name, department, email)
Groups (read-only) 2 List and read groups in compact representation (id, name, description, email)
Secrets 7 Create and manage shared password links; approve, reject, revoke

Admin Endpoints

Require login with "scope": "admin":

Resource Endpoints Description
Databases (Admin) 5 Full database CRUD across all server databases
Permissions 5 Manage access rights per database
Users 8 User administration, password management, passkey revocation
Groups 5 Group administration
Alerts 5 Manage server alert rules and notification recipients
Secrets (Admin) 8 Full CRUD and workflow management for all secrets

Key Endpoints

Databases

GET /v2.0/databases – List all databases accessible to the authenticated user.

GET /v2.0/databases/{id} – Read details of a specific database.

Folders and Navigation

GET /v2.0/databases/{db}/folders – List all folders in a database.

GET /v2.0/databases/{db}/folders/{id} – Read a specific folder including its path breadcrumbs.

GET /v2.0/databases/{db}/children – Browse the root level of a database: returns both folders and entries in a single mixed response. Use ?parent=<FOLDER_ID> to browse a specific folder. This is the primary endpoint for building an explorer-style UI.

GET /v2.0/databases/{db}/folders/{id}/children – Browse the contents of a specific folder: returns all direct children (sub-folders and entries) of the given folder. The response envelope includes path (breadcrumb) alongside the paginated data array.

POST /v2.0/databases/{db}/folders – Create a new folder.

PATCH /v2.0/databases/{db}/folders/{id} – Update a folder.

DELETE /v2.0/databases/{db}/folders/{id} – Delete a folder and all its contents (sub-folders and entries).

POST /v2.0/databases/{db}/folders/{id}/move – Move a folder to a different parent folder within the same database. Pass {"target": "<FOLDER_ID>"} or {"target": null} to move to root. Returns 409 if a circular reference would result.

Path / Breadcrumb

Several endpoints return a path array that represents the ancestor chain from the database root down to the current item (not including the item itself). Elements are ordered from root to parent. For root-level items, path is an empty array.

"path": [
  { "id": "3BF225B7-48BC-4AA4-888D-605E61A0F2D4", "name": "Infrastructure" },
  { "id": "f1a2b3c4-d5e6-7890-abcd-ef1234567890", "name": "Servers" }
]

Endpoints that include path: GET /databases/{db}/children, GET /databases/{db}/folders/{id}/children, GET /databases/{db}/folders/{id}, GET /databases/{db}/entries/{id}.

Second Password

Entries and folders can be protected with an optional second password. When has_second_pass is true, retrieving or modifying protected content requires the X-Second-Password request header. Both headers must be Base64-encoded (UTF-8 bytes → Base64) to ensure reliable transport of passwords containing non-ASCII characters.

Header Description
X-Second-Password Base64-encoded current second password. Required and verified to read or update (PATCH) second-password-protected content. A missing or incorrect value on PATCH returns 403 with error.code = 4031.
X-New-Second-Password Base64-encoded new second password. Set, change, or remove the second password. When changing, the correct current X-Second-Password must also be sent. To remove protection, send X-New-Second-Password as an empty string (Base64-encoded) together with the correct X-Second-Password.

Security change: As of server version 19.x, PATCH on a second-password-protected entry or folder requires a correct X-Second-Password. A missing or wrong value returns HTTP 403 with {"error": {"code": 4031, "message": "..."}} (PD_ERRCODE_INVALID_SECOND_PASS), distinct from a generic access-denied 403 (which keeps error.code = 403). Previously, the current second password was not verified on update.

In compact representations (children/search results), login and url return null when the entry is second-pass protected and no correct header was provided.

Entries

GET /v2.0/databases/{db}/entries/{id} – Read all attributes of an entry, including password and custom fields.

POST /v2.0/databases/{db}/entries – Create a new entry. Specify parent to place the entry in a folder; omit for the root folder.

PATCH /v2.0/databases/{db}/entries/{id} – Update entry attributes.

DELETE /v2.0/databases/{db}/entries/{id} – Delete an entry.

POST /v2.0/databases/{db}/entries/{id}/move – Move one or more entries to a different folder.

GET /v2.0/databases/{db}/entries/{id}/content – Download the binary content of a document entry (up to 64 MB).

PUT /v2.0/databases/{db}/entries/{id}/content – Upload or replace the binary content of a document entry.

Entry Types and Type-Specific Fields

Each entry has a type field. For password and custom entries, the type-specific data is included in the top-level fields (e.g., login, pass, custom_fields). For all other types, the type-specific attributes are returned as a sub-object keyed by the entry type name (e.g., "credit_card": {...}, "rdp": {...}). This sub-object is only present in the full representation returned by GET /databases/{db}/entries/{id}.

Credit Card ("credit_card")

FieldDescription
cardCard brand: visa, master_card, discover, american_express, diners_club, jcb
holderCardholder name
numberCard number
valid_thruExpiration date in MM/YYYY format
cvvCVV/CVC security code
phoneCard hotline phone number
urlOnline banking/service URL
online_userOnline banking username
online_passOnline banking password
pinCard PIN

License ("license")

FieldDescription
productProduct name
versionProduct version
reg_nameRegistration name
key_1License key
key_2Additional key
urlLicense management URL
userLicense management username
passLicense management password
purchase_datePurchase date (ISO 8601)
order_numberOrder number
reg_emailRegistration email

Identity ("identity")

FieldDescription
accountAccount/username
emailEmail address
first_name / last_nameName
companyCompany
address_1, address_2Address lines
city, state, zip, countryLocation
phone, mobile, faxPhone numbers
websiteWebsite URL
birth_dateDate of birth (ISO 8601)
houseHouse number

Information ("information")

Single field: text (string) – the main text content.

Banking ("banking")

FieldDescription
urlOnline banking URL
user / passOnline banking credentials
holderAccount owner name
bank_nameBank name
bicBIC/SWIFT code
ibanIBAN
card_numberDebit card number
phoneBank hotline phone number
account_numberAccount number (legacy)
bank_idBank ID / routing number (legacy)
legitimation_idLegitimation ID
pinCard PIN

Document ("document")

FieldDescription
nameOriginal filename (e.g., "report.pdf")
typeMIME type derived from filename (read-only)
sizeSize of stored content in bytes (read-only)

Use GET /databases/{db}/entries/{id}/content to download the binary file and PUT .../content to upload. Maximum size: 64 MB. Document entries cannot have a second password.

RDP ("rdp")

FieldDescription
hostRemote host address
userUsername
passPassword
cmd_lineCommand line parameters

PuTTY ("putty")

FieldDescription
hostRemote host address
portPort number (default: 0)
protocolProtocol: ssh, telnet, rlogin, raw
userUsername
passPassword
key_filePath to private key file
key_passPassphrase for the key file
cmd_lineCommand line parameters

TeamViewer ("teamviewer")

FieldDescription
partner_idPartner/device ID
passPassword
modeConnection mode: remote_control, file_transfer, vpn

Passkey ("passkey")

FieldDescription
urlRelying party URL
userUsername
algCOSE algorithm identifier (default: -7 for ES256)
sign_countSignature counter (read-only)
cred_idCredential ID
rp_idRelying party ID (e.g., "github.com")
rp_nameRelying party display name
user_idUser handle
keyPublic and private key data

NOTE: Entry types encrypted_file and certificate are not exposed via the REST API.

Custom Fields

For password and custom entry types, the custom_fields array contains objects with:

FieldDescription
nameField display name
valueField value
input_idInput identifier (for browser form filling)

GET /v2.0/databases/{db}/search?q=<TERM> – Search entries and folders within a database. The search parameter is q (not query). Minimum query length is 3 characters; shorter terms return 400 Bad Request. The search is a case-insensitive substring match against entry name, login, URL, comments, and tags.

Optional parameters: &folder=<FOLDER_ID> to restrict the search to a specific folder and its subfolders. Pagination via &offset=0&limit=100.

NOTE: Search results use compact representations only. Sensitive fields such as pass, comments, and custom_fields are not included. Use GET /databases/{db}/entries/{id} to retrieve the full entry including the password.

NOTE: Entries of the desktop-only types encrypted_file and certificate are excluded from search results. The total count and pagination reflect this filtered set. Use the GET /databases/{db}/entries/{id} endpoint directly if you have the entry ID.

User Profile and Passkeys

GET /v2.0/me – Retrieve the authenticated user's own profile, including display name, roles, and group memberships.

POST /v2.0/me/password – Change own password (requires current password). Note: the built-in super-administrator password cannot be changed via the REST API; use the Server Manager instead.

PATCH /v2.0/me – Update own profile. Only display_name, department, and phone can be changed; any other field in the request body is rejected with 400.

Passkeys (WebAuthn)

These endpoints let users manage their own WebAuthn / FIDO2 passkeys:

GET /v2.0/me/passkeys – List own registered passkeys (id, name, transports, created_at, last_used_at).

POST /v2.0/me/passkeys/begin – Start the passkey registration ceremony. Returns a session_id and WebAuthn publicKey creation options. The browser passes these to navigator.credentials.create(). Pending sessions expire after the server's configured WebAuthn timeout (default: 120 seconds).

POST /v2.0/me/passkeys/complete – Complete passkey registration. Submit the session_id from /begin plus the authenticator's response. Returns the full passkey representation (HTTP 201).

PATCH /v2.0/me/passkeys/{id} – Rename a passkey (pass {"name": "Office YubiKey"}).

DELETE /v2.0/me/passkeys/{id} – Remove a passkey. The passkey can no longer be used to log in.

WebAuthn Login: Use POST /v2.0/auth/webauthn/begin (with {"user": "<USERNAME>"}) to get the challenge, then POST /v2.0/auth/webauthn/complete to finish authentication. These endpoints do not require a token.

Users and Groups (Directory – Client Scope)

Available to all authenticated users (no admin scope required). Returns a compact read-only representation for use in sharing, permission assignment, and secret creation workflows.

GET /v2.0/users – List all users on the server (compact: id, name, display_name, department, email, disabled).

GET /v2.0/users/{id} – Read a specific user's compact profile.

GET /v2.0/groups – List all groups on the server (compact: id, name, description, department, email, disabled).

GET /v2.0/groups/{id} – Read a specific group's compact profile.


NOTE: The following endpoints require login with "scope": "admin".

Databases (Admin)

GET /v2.0/admin/databases – List all databases on the server (compact: id, name, description, updated_at).

POST /v2.0/admin/databases – Create a new database. See database name rules below.

GET /v2.0/admin/databases/{id} – Read the full representation of a specific database including: size (bytes), entries_count, icons_count, disabled, db_admins (UUID array), db_supervisors, and include_server_supervisors.

PATCH /v2.0/admin/databases/{id} – Update a database's name, description, or admin assignments.

DELETE /v2.0/admin/databases/{id} – Delete a database.

Database Name Rules

Database names are mapped directly to filenames on the server's filesystem. The following rules apply (violations return 400 Bad Request):

  • No path separators (/, \), drive letters, or .. sequences
  • No wildcards or shell metacharacters (* ? < > " |)
  • No control characters (bytes 0x00–0x1F, including tabs and newlines)
  • No leading or trailing dots or whitespace
  • No reserved Windows device names (CON, PRN, AUX, NUL, COM1–COM9, LPT1–LPT9)
  • Length: 1–200 characters

Permissions

GET /v2.0/admin/databases/{db}/permissions – List all access permissions for a database.

POST /v2.0/admin/databases/{db}/permissions – Grant a user or group access to a database.

GET /v2.0/admin/databases/{db}/permissions/{id} – Read a specific permission, including entry-level overrides and seal status.

PATCH /v2.0/admin/databases/{db}/permissions/{id} – Update permission rights. The caller must be the issuer, a designated seal approver, or a Database/Server Administrator.

DELETE /v2.0/admin/databases/{db}/permissions/{id} – Revoke a user's or group's access to a database.

Rights Values

The allow and deny arrays use the following string tokens. The effective rights are computed as allow AND NOT deny:

ValueDescription
useAccess the database (required for any other operation)
readRead entries and folders
updateModify existing entries and folders
createCreate new entries and folders
deleteDelete entries and folders
printPrint entries
exportExport the database
saveSave the database locally
auto_completeUse browser auto-complete
addon_fillUse browser add-on auto-fill
addon_offerAllow add-on to offer to save passwords
syncSynchronize the database
shareShare entries via shared secrets
sealManage seal protection on entries
second_passAccess entries protected by a second password

Entry-Level Rights Overrides

The full permission object also supports entry_allow and entry_deny arrays to grant or restrict specific rights on individual entries or folders, overriding the database-level defaults. Each element specifies the entry/folder id and a rights array:

"entry_allow": [
  { "id": "D4FEC05E-7866-4424-A998-4D96FF8B183E", "rights": ["use", "read", "share"] }
]

Seal Status

The seal_status field implements an approval workflow for sensitive entries: 0 = Unset (no seal), 1 = Set, 2 = Waiting (approval pending), 3 = Approved, 4 = Broken.

Users (Admin)

GET /v2.0/admin/users – List all users on the server with full profile details.

POST /v2.0/admin/users – Create a new user account.

GET /v2.0/admin/users/{id} – Read the full profile of a specific user.

PATCH /v2.0/admin/users/{id} – Update a user's profile, roles, group memberships, or authentication settings.

DELETE /v2.0/admin/users/{id} – Delete a user account.

POST /v2.0/admin/users/{id}/password – Reset a user's password (does not require the current password). The built-in super-administrator password cannot be changed via any REST endpoint; use the Server Manager.

GET /v2.0/admin/users/{id}/passkeys – List any user's passkeys (requires server administrator or user administrator role).

DELETE /v2.0/admin/users/{id}/passkeys/{pid} – Revoke a specific passkey for any user (useful when a user loses an authenticator).

User Object Fields

FieldDescription
idUUID (read-only)
nameUsername
auth_modesAllowed authentication methods (array): standard, sspi, iwa, azure, oidc, webauthn
display_nameDisplay name
departmentDepartment
emailEmail address. Required when the effective 2FA mode is email.
phonePhone number
two_factor_modePer-user 2FA mode: default (inherit server setting), disabled, totp, email, fido2. Set to disabled for service accounts.
sam / upn / dn / objectIdActive Directory binding fields (SAM account name, UPN, LDAP DN, AD GUID)
disabledWhether the account is disabled
must_change_passUser must change password on next login
cannot_change_passUser is not allowed to change their own password
rolesServer roles (modifiable only by server_admin): server_admin, db_admin, user_admin, group_admin, ad_operator, log_reader
member_ofArray of group UUIDs this user belongs to. To add a user to a group, include the group ID here via PATCH /admin/users/{id}.

NOTE: For service accounts used exclusively through the REST API, set two_factor_mode to "disabled" when creating or updating the account — these accounts cannot perform an interactive 2FA step.

Groups (Admin)

GET /v2.0/admin/groups – List all groups on the server.

POST /v2.0/admin/groups – Create a new group.

GET /v2.0/admin/groups/{id} – Read the full details of a specific group. The full representation includes AD fields (dn, objectId, ad_sync) and the computed members array.

PATCH /v2.0/admin/groups/{id} – Update a group's properties, member_of (nesting), or admins assignments.

DELETE /v2.0/admin/groups/{id} – Delete a group. Any users or child groups that had this group in their member_of will have the reference automatically removed.

Group Membership Model

The member_of field is the source of truth for group membership. To add a user to a group, include the group ID in the user's member_of array via PATCH /admin/users/{id}. To nest a group inside another group, update the child group's member_of. The members field on the group is read-only and automatically calculated from all users and groups that reference this group in their member_of. You cannot modify members directly.

Alerts

Alert rules trigger email notifications when specific server events occur. Each alert can be scoped to specific databases, users, or entries via filter toggles (filter_by_databases, filter_by_users, filter_by_entries) and corresponding UUID arrays. Recipients are bare email addresses (e.g., "admin@example.com"). Only Server Administrators can create, update, or delete alerts.

GET /v2.0/admin/alerts – List all configured server alert rules.

POST /v2.0/admin/alerts – Create a new alert rule.

GET /v2.0/admin/alerts/{id} – Read a specific alert rule including recipients and scope filters.

PATCH /v2.0/admin/alerts/{id} – Update an alert rule.

DELETE /v2.0/admin/alerts/{id} – Delete an alert rule.

Alert Types (type field)

ValueDescription
login_failed_adminFailed admin login attempt
login_failed_clientFailed client login attempt
login_adminSuccessful admin login
login_clientSuccessful client login
server_policy_modifiedServer password policy was modified
server_options_modifiedServer options were modified
database_addedA new database was added
database_deletedA database was deleted
database_modifiedA database was modified
database_exportedA database was exported/sent
database_size_changedA database size changed significantly
user_addedA new user was added
user_deletedA user was deleted
user_modifiedA user was modified
user_disabledA user account was disabled
group_addedA new group was added
group_deletedA group was deleted
group_modifiedA group was modified
alert_addedA new alert was added
alert_deletedAn alert was deleted
alert_modifiedAn alert was modified
password_addedA new password entry was added
password_deletedA password entry was deleted
password_modifiedA password entry was modified
password_accessedA password was accessed/viewed
folder_addedA new folder was added
folder_deletedA folder was deleted
folder_modifiedA folder was modified
entry_expiresAn entry is about to expire
bulk_deleteMultiple items were deleted at once
backup_createdA server backup was created
permission_addedA permission rule was added
permission_modifiedA permission rule was modified
permission_deletedA permission rule was deleted
shared_secret_createdA shared secret was created
shared_secret_updatedA shared secret was updated
shared_secret_deletedA shared secret was deleted
shared_secret_approvedA shared secret was approved
shared_secret_rejectedA shared secret was rejected
shared_secret_accessedA shared secret was accessed

Secrets

Secrets (shared links) allow a user to share access to a specific password entry with others, either via an HTTPS link (browser-accessible) or via the pd-server:// protocol (Password Depot client). The caller must have share permission on the referenced entry. Entries protected by a second password cannot be shared.

Client-Scope Endpoints (own secrets only)

GET /v2.0/secrets – List own secrets (only secrets the authenticated user created).

POST /v2.0/secrets – Create a new shared secret.

GET /v2.0/secrets/{id} – Read own secret.

DELETE /v2.0/secrets/{id} – Delete own secret.

POST /v2.0/secrets/{id}/approve – Approve a pending secret (caller must be listed in approver_ids).

POST /v2.0/secrets/{id}/reject – Reject a pending secret.

POST /v2.0/secrets/{id}/revoke – Revoke an active secret. Only the author can revoke.

Admin-Scope Endpoints (all secrets)

GET /v2.0/admin/secrets – List all shared secrets on the server.

POST /v2.0/admin/secrets – Create a shared secret.

GET /v2.0/admin/secrets/{id} – Read any secret.

PATCH /v2.0/admin/secrets/{id} – Update a secret (e.g., extend expiry, change access limit).

DELETE /v2.0/admin/secrets/{id} – Delete any secret.

POST /v2.0/admin/secrets/{id}/approve – Approve a pending secret request.

POST /v2.0/admin/secrets/{id}/reject – Reject a pending secret request.

POST /v2.0/admin/secrets/{id}/revoke – Revoke an active secret.

Secret Lifecycle (Statuses)

StatusDescription
pendingSecret created, not yet processed
pending_approvalWaiting for supervisor approval (when approval_required is true)
approvedApproved but not yet available
availableReady to be opened by recipients
consumedAll allowed accesses have been used (access_count >= access_max)
rejectedRejected by an approver
revokedRevoked by the author or an admin
expiredExpiration date has passed

Approval Workflow

Set approval_required: true when creating a secret to require supervisor approval before the secret becomes available. Use quorum_n (approvals required) and quorum_m (total approvers) to configure a quorum. When the number of approvals reaches quorum_n, the status transitions to available.

The full secret representation includes open_uuid and approve_uuid fields used to construct access links:

  • HTTPS: https://<server>:<port>/shared/<open_uuid>
  • PD Server: pd-server://<server>:<port>/shared/open/<open_uuid>

Quick Start

The following example walks through a complete CRUD workflow using the v2.0 API: Login → List Databases → Browse Contents → Read Entry → Create Entry → Update Entry → Delete Entry → Logout.

Step 1: Login

Authenticate and obtain a Bearer token:

curl -k -X POST "https://YOUR_SERVER:8714/v2.0/auth/login" \
  -H "Content-Type: application/json" \
  -d '{"user":"USERNAME","pass":"PASSWORD"}'

Response:

{
  "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}

Save the token for all subsequent requests:

TOKEN="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."

Step 2: List Databases

curl -k -X GET "https://YOUR_SERVER:8714/v2.0/databases" \
  -H "Authorization: Bearer $TOKEN"

Note the id of the database you want to work with and store it in a variable:

DB="550e8400-e29b-41d4-a716-446655440000"

Step 3: Browse Root Contents

List all folders and entries at the root level of the database using the /children endpoint:

curl -k -X GET "https://YOUR_SERVER:8714/v2.0/databases/$DB/children" \
  -H "Authorization: Bearer $TOKEN"

Step 4: Read an Entry

Retrieve the full details of a specific entry, including the password:

ENTRY="a1b2c3d4-e5f6-7890-abcd-ef1234567890"

curl -k -X GET "https://YOUR_SERVER:8714/v2.0/databases/$DB/entries/$ENTRY" \
  -H "Authorization: Bearer $TOKEN"

NOTE: The full entry response includes the plaintext password and other sensitive fields. Ensure your transport layer is secured with HTTPS.

Step 5: Create an Entry

curl -k -X POST "https://YOUR_SERVER:8714/v2.0/databases/$DB/entries" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Slack Workspace",
    "login": "admin@company.com",
    "pass": "Str0ng!P@ssword",
    "url": "https://company.slack.com"
  }'

The response returns the new entry's id (HTTP 201 Created).

Step 6: Update an Entry

Only include the fields you want to change:

curl -k -X PATCH "https://YOUR_SERVER:8714/v2.0/databases/$DB/entries/$ENTRY" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Slack Workspace (Admin)",
    "pass": "N3wStr0ng!P@ss"
  }'

Step 7: Delete an Entry

curl -k -X DELETE "https://YOUR_SERVER:8714/v2.0/databases/$DB/entries/$ENTRY" \
  -H "Authorization: Bearer $TOKEN"

Returns HTTP 204 No Content on success.

Step 8: Logout

curl -k -X POST "https://YOUR_SERVER:8714/v2.0/auth/logout" \
  -H "Authorization: Bearer $TOKEN"

Returns HTTP 204 No Content. The token is immediately invalidated.

Complete Script (PowerShell)

The following script covers the entire workflow as a single copy-paste example:

$Server = "YOUR_SERVER"
$Port = 8714
$Base = "https://${Server}:${Port}/v2.0"

# Step 1: Login
$loginBody = @{ user = "USERNAME"; pass = "PASSWORD" } | ConvertTo-Json
$login = Invoke-RestMethod -Uri "$Base/auth/login" -Method POST `
  -Body $loginBody -ContentType "application/json"
$headers = @{ Authorization = "Bearer $($login.access_token)" }
Write-Host "Logged in successfully."

# Step 2: List databases
$dbs = Invoke-RestMethod -Uri "$Base/databases" -Headers $headers
$dbs.data | Format-Table name, id
$dbId = $dbs.data[0].id

# Step 3: Browse root contents
$children = Invoke-RestMethod -Uri "$Base/databases/$dbId/children" -Headers $headers
$children.data | Format-Table type, name

# Step 4: Read first non-folder entry
$entryId = ($children.data | Where-Object { $_.type -ne "folder" })[0].id
$detail = Invoke-RestMethod -Uri "$Base/databases/$dbId/entries/$entryId" -Headers $headers
$detail | ConvertTo-Json -Depth 5

# Step 5: Create a new entry
$newBody = @{ name = "Test Entry"; login = "testuser"; pass = "TestP@ss123"; url = "https://example.com" } | ConvertTo-Json
$new = Invoke-RestMethod -Uri "$Base/databases/$dbId/entries" -Method POST `
  -Headers $headers -Body $newBody -ContentType "application/json"
Write-Host "Created entry: $($new.id)"

# Step 6: Update the entry
$updateBody = @{ name = "Test Entry (Updated)"; pass = "UpdatedP@ss456" } | ConvertTo-Json
Invoke-RestMethod -Uri "$Base/databases/$dbId/entries/$($new.id)" `
  -Method PATCH -Headers $headers -Body $updateBody -ContentType "application/json"
Write-Host "Updated entry: $($new.id)"

# Step 7: Delete the entry
Invoke-RestMethod -Uri "$Base/databases/$dbId/entries/$($new.id)" -Method DELETE -Headers $headers
Write-Host "Deleted entry: $($new.id)"

# Step 8: Logout
Invoke-RestMethod -Uri "$Base/auth/logout" -Method POST -Headers $headers
Write-Host "Logged out."