adsum API, documents package (1.0.0)

Download OpenAPI specification:

License: GPL-2.0-or-later

The operations of the documents package, merged into the published contract when the package is installed (see WebVision\Adsum\Core\Shared\Api\Contract\OpenApiDocument). Linted on its own.

Documents

Document types, the documents of employees with their review and expiry, and document requests with an item per recipient.

List the document types of the company

Every employee reads the active types, named in their language; HR reads all of them with every field, inactive ones too, and may narrow the list with active. Sorted by name.

Authorizations:
bearerAuthsessionCookie
query Parameters
active
boolean

Only active (true) or only inactive (false) types; HR only, others always read active types.

category
string (TypeCategory)
Enum: "identity" "permit" "licence" "qualification" "contract" "health" "other"

What kind of document a type is; reports count permits by it.

header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Add a document type

HR only, as the data category of a type decides who reads its documents; an admin without HR receives 403. The code is unique in the company (code), the data category is not directory (dataCategory), the formats are a non-empty subset of the document formats.

Authorizations:
bearerAuthsessionCookie
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Idempotency-Key
string <uuid>

Client-generated key (UUID) making a POST safe to retry. A repeated key with an identical body returns the original response; with a different body it yields 422. While the first request with the key still runs, a repetition yields 409 (idempotency-request-in-progress) and does nothing; after a server error the key is free again.

Request Body schema: application/json
required
code
required
string^[A-Z][A-Z0-9_]{1,39}$
required
object (LocalisedNames)

The name per language; English is required, German optional, English is the fallback.

category
required
string (TypeCategory)
Enum: "identity" "permit" "licence" "qualification" "contract" "health" "other"

What kind of document a type is; reports count permits by it.

dataCategory
required
string (DocumentDataCategory)
Enum: "workData" "personal" "hrInternal"

Who reads the documents of a type: workData the employee, managers in scope and HR, personal the employee and HR, hrInternal HR alone; the employee does not learn that such a document exists.

formats
required
Array of strings (DocumentFormat) non-empty unique
Items Enum: "pdf" "png" "jpeg" "txt" "docx" "xlsx" "odt" "ods"
maxMegabytes
integer [ 1 .. 25 ]
Default: 10
expiryRule
required
string (ExpiryRule)
Enum: "none" "optional" "required"

Whether documents of the type have an expiry date - never, if known, or always.

reminderLeadDays
integer [ 0 .. 365 ]
Default: 30

Responses

Request samples

Content type
application/json
{
  • "code": "string",
  • "names": {
    },
  • "category": "identity",
  • "dataCategory": "workData",
  • "formats": [
    ],
  • "maxMegabytes": 10,
  • "expiryRule": "none",
  • "reminderLeadDays": 30
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "code": "WORK_PERMIT",
  • "name": "string",
  • "names": {
    },
  • "category": "identity",
  • "dataCategory": "workData",
  • "formats": [
    ],
  • "maxMegabytes": 1,
  • "expiryRule": "none",
  • "reminderLeadDays": 0,
  • "active": true
}

Read a document type

An inactive type is HR's alone to read; to anybody else it does not exist.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "code": "WORK_PERMIT",
  • "name": "string",
  • "names": {
    },
  • "category": "identity",
  • "dataCategory": "workData",
  • "formats": [
    ],
  • "maxMegabytes": 1,
  • "expiryRule": "none",
  • "reminderLeadDays": 0,
  • "active": true
}

Change or deactivate a document type

Narrower formats or a smaller size apply to new uploads only; stored documents stay valid. A changed data category decides at once who reads every document of the type, and the change history records the old and the new category. active: false takes the type out of new documents and requests.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

If-Match
required
string

ETag of the representation being modified (optimistic locking). A stale value yields 412.

Request Body schema: application/json
required
object (LocalisedNames)

The name per language; English is required, German optional, English is the fallback.

category
string (TypeCategory)
Enum: "identity" "permit" "licence" "qualification" "contract" "health" "other"

What kind of document a type is; reports count permits by it.

dataCategory
string (DocumentDataCategory)
Enum: "workData" "personal" "hrInternal"

Who reads the documents of a type: workData the employee, managers in scope and HR, personal the employee and HR, hrInternal HR alone; the employee does not learn that such a document exists.

formats
Array of strings (DocumentFormat) non-empty unique
Items Enum: "pdf" "png" "jpeg" "txt" "docx" "xlsx" "odt" "ods"
maxMegabytes
integer [ 1 .. 25 ]
expiryRule
string (ExpiryRule)
Enum: "none" "optional" "required"

Whether documents of the type have an expiry date - never, if known, or always.

reminderLeadDays
integer [ 0 .. 365 ]
active
boolean

Responses

Request samples

Content type
application/json
{
  • "names": {
    },
  • "category": "identity",
  • "dataCategory": "workData",
  • "formats": [
    ],
  • "maxMegabytes": 1,
  • "expiryRule": "none",
  • "reminderLeadDays": 0,
  • "active": true
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "code": "WORK_PERMIT",
  • "name": "string",
  • "names": {
    },
  • "category": "identity",
  • "dataCategory": "workData",
  • "formats": [
    ],
  • "maxMegabytes": 1,
  • "expiryRule": "none",
  • "reminderLeadDays": 0,
  • "active": true
}

Delete a document type nobody uses

A type with documents or requests answers 409; deactivate it with active: false instead.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/problem+json
{
  • "type": "../dictionary",
  • "title": "string",
  • "status": 0,
  • "detail": "string",
  • "instance": "../dictionary",
  • "code": 0,
  • "correlationId": "string",
  • "violations": [
    ],
  • "dependents": [
    ]
}

Record a document of an employee

Records a document from an upload of the purpose documents.employeeDocument (fileId) with an active type. HR records every type for every employee, a manager in scope types of work data for their reports, an employee types of work data and personal data for themselves; another type is refused on typeId. The file must fit the type's formats and size (fileId), the expiry date its expiry rule and lie after the issue date (expiryDate). A document the employee records waits for its review (pendingReview) in an approval (approvalId): of subject type workDocument for work data, personalDocument, decided by HR alone, for personal data. When nobody may decide it, the response is 422 with the code noEligibleApprover and nothing is recorded. One HR or a manager records is verified at once. An employee the caller may not see answers 404 and nothing is recorded.

Authorizations:
bearerAuthsessionCookie
path Parameters
employeeId
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Idempotency-Key
string <uuid>

Client-generated key (UUID) making a POST safe to retry. A repeated key with an identical body returns the original response; with a different body it yields 422. While the first request with the key still runs, a repetition yields 409 (idempotency-request-in-progress) and does nothing; after a server error the key is free again.

Request Body schema: application/json
required
fileId
required
string <uuid> (Uuid)

An upload of the caller with the purpose documents.employeeDocument.

typeId
required
string <uuid> (Uuid)
title
string or null <= 200 characters

Free text, not translated; without it (or empty) the type's English name.

Date (string) or null
Date (string) or null
reminderLeadDays
integer or null [ 0 .. 365 ]

Without it the type's lead time.

note
string or null <= 2000 characters
digitalAsset
boolean
Default: false

Only where the assets package is installed (422 otherwise).

Responses

Request samples

Content type
application/json
{
  • "fileId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "typeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "title": "string",
  • "issueDate": "2026-10-01",
  • "expiryDate": "2026-10-01",
  • "reminderLeadDays": 0,
  • "note": "string",
  • "digitalAsset": false
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "employee": {
    },
  • "type": {
    },
  • "title": "string",
  • "status": "pendingReview",
  • "rejectionReason": "string",
  • "issueDate": "2026-10-01",
  • "expiryDate": "2026-10-01",
  • "expired": true,
  • "daysUntilExpiry": 0,
  • "reminderLeadDays": 0,
  • "note": "string",
  • "digitalAsset": true,
  • "file": {
    },
  • "approvalId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "requestItemId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "origin": "user",
  • "createdAt": "2026-10-01T08:15:00+02:00",
  • "updatedAt": "2026-10-01T08:15:00+02:00",
  • "allowedActions": [
    ]
}

List documents

The documents of the caller (scope=self), of their reports (team, work data only) or of the company (company, HR only; an admin without HR receives 403). With employeeId and without scope, the documents of that employee the caller may read by the data categories they read of them, as the profile shows them; 404 for an employee the caller may not see. Every filter, count and sort applies only to what the caller may read, so meta.totalItems counts every match the caller sees and nothing else; an HR-internal document is never listed for its employee. Any other query parameter answers 400.

Authorizations:
bearerAuthsessionCookie
query Parameters
scope
string (ListScope)
Default: "self"
Enum: "self" "team" "company"

Visibility scope of a collection request; the caller only ever receives what they may see.

employeeId
string <uuid> (Uuid)
Examples: employeeId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Only this employee, who must be in the scope (404 otherwise).

typeId
string <uuid> (Uuid)
Examples: typeId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
typeCategory
string (TypeCategory)
Enum: "identity" "permit" "licence" "qualification" "contract" "health" "other"

What kind of document a type is; reports count permits by it.

status
string (DocumentStatus)
Enum: "pendingReview" "verified" "rejected"

Waiting for its review, checked, or turned down with a reason.

expired
boolean

Only expired (true) or only valid (false) documents, by the expiry date in the company's time zone.

expiresBefore
string <date> (Date)
Examples: expiresBefore=2026-10-01

Only documents expiring before this day.

requestId
string <uuid> (Uuid)
Examples: requestId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Only documents submitted for this document request.

search
string <= 100 characters

Words in the title or the employee's name.

page
integer >= 1
Default: 1
perPage
integer [ 1 .. 200 ]
Default: 50
sort
string
Examples: sort=-expiryDate

title, issueDate, expiryDate or createdAt, with - for the descending order; by default the newest first.

header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "meta": {
    }
}

Read a document

Readable by whoever may read the data category of its type of its employee, at the time of reading, and by the approvers of its review. A colleague, a manager out of scope and an admin without HR receive 404.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "employee": {
    },
  • "type": {
    },
  • "title": "string",
  • "status": "pendingReview",
  • "rejectionReason": "string",
  • "issueDate": "2026-10-01",
  • "expiryDate": "2026-10-01",
  • "expired": true,
  • "daysUntilExpiry": 0,
  • "reminderLeadDays": 0,
  • "note": "string",
  • "digitalAsset": true,
  • "file": {
    },
  • "approvalId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "requestItemId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "origin": "user",
  • "createdAt": "2026-10-01T08:15:00+02:00",
  • "updatedAt": "2026-10-01T08:15:00+02:00",
  • "allowedActions": [
    ]
}

Change a document

HR changes every document, a manager in scope documents of work data of their reports, the employee their own documents while they wait for their review or were rejected (403 once verified). A new file or another type of the employee's own document withdraws its running approval and sends it to its review again under a new one that supersedes it. The status is never written: a body with status answers 400; approvers decide through the approval.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

If-Match
required
string

ETag of the representation being modified (optimistic locking). A stale value yields 412.

Request Body schema: application/json
required
fileId
string <uuid> (Uuid)
typeId
string <uuid> (Uuid)
title
string [ 1 .. 200 ] characters
Date (string) or null
Date (string) or null
reminderLeadDays
integer [ 0 .. 365 ]
note
string or null <= 2000 characters
digitalAsset
boolean

Responses

Request samples

Content type
application/json
{
  • "fileId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "typeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "title": "string",
  • "issueDate": "2026-10-01",
  • "expiryDate": "2026-10-01",
  • "reminderLeadDays": 0,
  • "note": "string",
  • "digitalAsset": true
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "employee": {
    },
  • "type": {
    },
  • "title": "string",
  • "status": "pendingReview",
  • "rejectionReason": "string",
  • "issueDate": "2026-10-01",
  • "expiryDate": "2026-10-01",
  • "expired": true,
  • "daysUntilExpiry": 0,
  • "reminderLeadDays": 0,
  • "note": "string",
  • "digitalAsset": true,
  • "file": {
    },
  • "approvalId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "requestItemId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "origin": "user",
  • "createdAt": "2026-10-01T08:15:00+02:00",
  • "updatedAt": "2026-10-01T08:15:00+02:00",
  • "allowedActions": [
    ]
}

Delete a document and its file

HR deletes every document; the employee their own while it waits for its review or was rejected and is not the current submission of a request item (403 otherwise). A running review is withdrawn; the file goes once the deletion committed, and the change history records type, title and file name.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/problem+json
{
  • "type": "../dictionary",
  • "title": "string",
  • "status": 0,
  • "detail": "string",
  • "instance": "../dictionary",
  • "code": 0,
  • "correlationId": "string",
  • "violations": [
    ],
  • "dependents": [
    ]
}

Read the file of a document

The file of a document the caller may read, delivered by the file storage like every stored file: streamed, with one byte range as 206, inline for PDF and images only. A preview loads this address, never the content as a data address. Reads by anybody but the employee are logged.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
query Parameters
disposition
string
Default: "attachment"
Enum: "attachment" "inline"

inline to show the file in the page (a preview); honoured for PDF and raster images only, every other format is sent as an attachment.

header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Range
string^bytes=\d*-\d*$

One byte range (bytes=1048576- or bytes=0-65535) for a viewer that loads a large file in parts.

Responses

Response samples

Content type
application/problem+json
{
  • "type": "../dictionary",
  • "title": "string",
  • "status": 0,
  • "detail": "string",
  • "instance": "../dictionary",
  • "code": 0,
  • "correlationId": "string",
  • "violations": [
    ],
  • "dependents": [
    ]
}

Ask employees for a document

Creates a request for a document of an active type from 1 to 500 distinct employees of the company (recipientIds), with an optional description (free text, not translated), formats that narrow the type's and a maximum size below the type's. Every recipient gets an open item and the notification document.requested in their language. HR asks every employee for documents of work data and personal data; a manager asks the employees in their scope for documents of work data only, and a recipient out of scope is refused on recipientIds[n]. HR-internal types are never requested (typeId). An employee who manages nobody and is not HR receives 403.

Authorizations:
bearerAuthsessionCookie
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Idempotency-Key
string <uuid>

Client-generated key (UUID) making a POST safe to retry. A repeated key with an identical body returns the original response; with a different body it yields 422. While the first request with the key still runs, a repetition yields 409 (idempotency-request-in-progress) and does nothing; after a server error the key is free again.

Request Body schema: application/json
required
typeId
required
string <uuid> (Uuid)
recipientIds
required
Array of strings <uuid> (Uuid) [ 1 .. 500 ] items unique [ items <uuid > ]
description
string or null <= 2000 characters

Free text, not translated.

formats
Array of strings or null (DocumentFormat) non-empty
Enum: "pdf" "png" "jpeg" "txt" "docx" "xlsx" "odt" "ods"

Narrows the type's formats; a format the type does not accept is refused.

maxBytes
integer or null >= 1

At most the type's maximum size.

Responses

Request samples

Content type
application/json
{
  • "typeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "recipientIds": [
    ],
  • "description": "string",
  • "formats": [
    ],
  • "maxBytes": 1
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "type": {
    },
  • "description": "string",
  • "formats": [
    ],
  • "maxBytes": 0,
  • "createdBy": {
    },
  • "recipientIds": [
    ],
  • "counts": {
    },
  • "createdAt": "2026-10-01T08:15:00+02:00",
  • "updatedAt": "2026-10-01T08:15:00+02:00",
  • "allowedActions": [
    ]
}

List document requests

HR lists every request of the company; anybody else the requests they created, those with items of employees in their scope and those addressing themselves. The counts per item status cover only the items the caller may read: every item for HR and the requester, those of the reports for a manager, the own one for a recipient. Newest first. Any other query parameter answers 400.

Authorizations:
bearerAuthsessionCookie
query Parameters
typeId
string <uuid> (Uuid)
Examples: typeId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
page
integer >= 1
Default: 1
perPage
integer [ 1 .. 200 ]
Default: 50
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "meta": {
    }
}

Read a document request

Readable by HR, by its requester, by a manager with reports among its recipients and by a recipient, with the counts of the items the caller may read; a recipient never learns about the others. Anybody else receives 404.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "type": {
    },
  • "description": "string",
  • "formats": [
    ],
  • "maxBytes": 0,
  • "createdBy": {
    },
  • "recipientIds": [
    ],
  • "counts": {
    },
  • "createdAt": "2026-10-01T08:15:00+02:00",
  • "updatedAt": "2026-10-01T08:15:00+02:00",
  • "allowedActions": [
    ]
}

Change the recipients and settings of a request

The requester or HR changes the description, the formats, the maximum size and the recipients; recipientIds is the complete new list, under the rules of creating a request. Changed formats and size apply to items still open. An added recipient gets an open item and document.requested; a removed recipient's open item is cancelled with document.requestCancelled, while an item with a submitted or checked document stays as it is. Others who may read the request receive 403.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

If-Match
required
string

ETag of the representation being modified (optimistic locking). A stale value yields 412.

Request Body schema: application/json
required
recipientIds
Array of strings <uuid> (Uuid) [ 1 .. 500 ] items unique [ items <uuid > ]
description
string or null <= 2000 characters
formats
Array of strings or null (DocumentFormat) non-empty
Enum: "pdf" "png" "jpeg" "txt" "docx" "xlsx" "odt" "ods"
maxBytes
integer or null >= 1

Responses

Request samples

Content type
application/json
{
  • "recipientIds": [
    ],
  • "description": "string",
  • "formats": [
    ],
  • "maxBytes": 1
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "type": {
    },
  • "description": "string",
  • "formats": [
    ],
  • "maxBytes": 0,
  • "createdBy": {
    },
  • "recipientIds": [
    ],
  • "counts": {
    },
  • "createdAt": "2026-10-01T08:15:00+02:00",
  • "updatedAt": "2026-10-01T08:15:00+02:00",
  • "allowedActions": [
    ]
}

Close a document request

The requester or HR closes the request: every open item is cancelled with document.requestCancelled and the request is removed. Documents submitted or checked for it stay as documents of their employees, and the change history keeps the request with its type and description.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/problem+json
{
  • "type": "../dictionary",
  • "title": "string",
  • "status": 0,
  • "detail": "string",
  • "instance": "../dictionary",
  • "code": 0,
  • "correlationId": "string",
  • "violations": [
    ],
  • "dependents": [
    ]
}

List the items of document requests

The caller's own items (scope=self), the items of their reports and of the requests they created (team) or every item of the company (company, HR only; others receive 403). Filters, search and meta.totalItems cover only what the caller may read. Any other query parameter answers 400.

Authorizations:
bearerAuthsessionCookie
query Parameters
scope
string (ListScope)
Default: "self"
Enum: "self" "team" "company"

Visibility scope of a collection request; the caller only ever receives what they may see.

requestId
string <uuid> (Uuid)
Examples: requestId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
status
string (RequestItemStatus)
Enum: "open" "submitted" "fulfilled" "cancelled"

open waiting for a file, submitted under review, fulfilled by a checked document, cancelled because the recipient was removed, left the company or the request was closed.

employeeId
string <uuid> (Uuid)
Examples: employeeId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
typeId
string <uuid> (Uuid)
Examples: typeId=0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
search
string <= 100 characters

Words in the employee's name or the type's name in the caller's language.

page
integer >= 1
Default: 1
perPage
integer [ 1 .. 200 ]
Default: 50
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "meta": {
    }
}

Provide the requested document

Records a document of the request's type for the item's employee from an upload of the purpose documents.employeeDocument (fileId), whose content must fit the request's formats and size, with issue and expiry dates as the type demands. The recipient's own submission makes the item submitted and sends the document to its review; its approval makes the item fulfilled, its rejection open again with the reason. HR, and a manager in scope for work data, submit on the recipient's behalf, which records a checked document and fulfils the item at once. A cancelled or fulfilled item, or one waiting for its review, answers 409 and the upload stays unlinked. Somebody else's item answers 404.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Idempotency-Key
string <uuid>

Client-generated key (UUID) making a POST safe to retry. A repeated key with an identical body returns the original response; with a different body it yields 422. While the first request with the key still runs, a repetition yields 409 (idempotency-request-in-progress) and does nothing; after a server error the key is free again.

Request Body schema: application/json
required
fileId
required
string <uuid> (Uuid)

An upload of the caller with the purpose documents.employeeDocument.

title
string or null <= 200 characters

Free text; without it (or empty) the type's name.

Date (string) or null
Date (string) or null
note
string or null <= 2000 characters

Responses

Request samples

Content type
application/json
{
  • "fileId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "title": "string",
  • "issueDate": "2026-10-01",
  • "expiryDate": "2026-10-01",
  • "note": "string"
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "requestId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "employee": {
    },
  • "type": {
    },
  • "description": "string",
  • "formats": [
    ],
  • "maxBytes": 0,
  • "status": "open",
  • "document": {
    },
  • "lastRejectionReason": "string",
  • "createdAt": "2026-10-01T08:15:00+02:00",
  • "updatedAt": "2026-10-01T08:15:00+02:00",
  • "allowedActions": [
    ]
}

Documents expiring soon

The documents not yet expired whose expiry date lies within the next 30 days in the company's time zone, the soonest first and at most ten: of the work data of the caller's reports (scope=team, the default) or, for HR, of the company (scope=company; others receive 403). An employee without reports who is not HR receives 403.

Authorizations:
bearerAuthsessionCookie
query Parameters
scope
string
Default: "team"
Enum: "team" "company"
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}