Skip to main content
GET
Returns every document in the system across all employees, with support for filtering by employee ID, document file type, or specific document IDs. Use this for company-wide document reporting. To list documents for a single employee, use List Employee Documents instead.

Query Parameters

Full-text search across document names.
integer
default:"1"
Page number to return. Starts at 1.
integer
default:"10"
Number of results per page. Maximum is 100.
string
default:"desc"
Sort direction. Allowed values: asc, desc.
string
default:"id"
Field to sort results by. Allowed values: id, employeeId, createdAt, updatedAt.
integer[]
Filter to a specific set of document IDs.
integer[]
Filter to documents belonging to specific employee IDs.
string[]
Filter by file extension, e.g. pdf.

Response

object
required

Authorizations

Authorization
string
header
required

HTTP Basic Auth using your API key credentials. Use the username and password issued from the Developer Portal. Encode them as Base64(username:password) and pass in the Authorization: Basic <token> header.

Query Parameters

search
string | null

Full-text search across document names.

page
integer | null
default:1

Page number to return. Starts at 1.

Required range: x >= 0
perPage
integer | null
default:10

Number of results per page. Maximum is 100.

Required range: 0 <= x <= 100
sortOrder
enum<string> | null
default:desc

Sort direction — asc for ascending, desc for descending.

Available options:
asc,
desc
sortField
enum<string> | null
default:id

Field to sort results by.

Available options:
id,
employeeId,
createdAt,
updatedAt
ids
integer[] | null

Filter to a specific set of document IDs.

Required range: x >= 0
employeeIds
integer[] | null

Filter to documents belonging to specific employee IDs.

Required range: x >= 0
documentFileTypes
string[] | null

Filter by document file type (e.g. contract, payslip).

Response

200 - application/json

A paginated list of employee documents.

data
object
required