GET
/api/public/v1/vault-documents/{documentId}

Get a Vault document

One item, including a document’s or spreadsheet’s `content`. **Reading writes a VIEW audit event** — the Vault keeps a record of who opened what, and reaching a document through the API is no different from opening it in the console.

Required scope

The access token must carry this scope. A token missing it gets 403 Forbidden. Grant them to an API client under Settings → Company → API, and to a teammate under Employee → Permissions.

vault:admin

Path Parameters

NameTypeRequiredDescription
documentIdstringRequiredDocument ID.
GETExample request
curl
curl -X GET "https://www.pxb.app/api/public/v1/vault-documents/{documentId}" \
  -H "Authorization: Bearer your_access_token"
200Example response
json
{
  "message": "Vault document retrieved successfully!",
  "content": {
    "document": {
      "id": "vdoc_4410",
      "referenceId": 318,
      "name": "Q3 board pack.pdf",
      "type": "FILE",
      "parentId": "vdoc_0001",
      "description": null,
      "fileSize": 2418123,
      "mimeType": "application/pdf",
      "tags": [
        "board"
      ],
      "isSystem": false,
      "systemType": null,
      "createdById": "emp_12ab",
      "updatedById": null,
      "createdAt": "2026-08-12T11:00:00.000Z",
      "updatedAt": "2026-08-12T11:00:00.000Z",
      "archivedAt": null
    }
  }
}
403Example response
json
{
  "message": "You do not have access to that Vault item."
}

In the console

The same thing done by hand, for anyone comparing the API against the screen they already use.

Vault
/vault
  1. Open an item from the Vault.