Overview
Making requests
The API is served by the portal gateway at <portal-origin>/api. Every path in this reference is relative
to that base URL: GET /v1/uploads is a request to <portal-origin>/api/v1/uploads.
Send Authorization: Bearer {JWT_ACCESS_TOKEN} with every request and Content-Type: application/json for
JSON bodies; some operations take multipart parts instead. The authentication note of each operation tells
whether it accepts user tokens, technical tokens or both; the identity also
needs the role and scope of the operation.
URLs that the API returns, such as presigned S3 URLs and the OAuth token URL, are complete: call them exactly as returned, without the API base URL and without the API bearer token. A presigned upload also needs the headers returned with that URL.
Getting started with a technical integration
-
A human administrator calls Create technical access and stores the one-time credentials securely. Only
ROLE_CUSTOMER_UPLOADERis currently supported for technical clients. -
A Customer Admin calls Add targets to technical access to assign the targets the client needs. A new technical access starts with an empty target scope; obtaining a token alone does not grant access to a target. A PF Admin cannot perform this assignment.
-
Exchange the credentials using Technical authentication. Cache the access token until it needs renewal.
-
Follow Upload to send a document for processing, or Create technical download draft to supply a generated download file. Check the operation’s authentication note before each API call: accepting technical tokens on create does not imply that list, detail or download-link operations accept them.
-
When changing the secret, follow Start staged secret rotation and Complete staged secret rotation; switch the client to the new secret before completing rotation.
Example authenticated upload request
Set BASE_URL to the API base URL for your environment, ACCESS_TOKEN to the technical access token,
and TARGET_ID to an assigned target UUID. This example requests URLs for a 100-byte file; it does not
upload the file. Continue with the S3 steps in Upload.
curl --request PUT "$BASE_URL/v1/uploads" \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data "{\"targetId\":\"$TARGET_ID\",\"fileName\":\"test.txt\",\"fileSize\":100}"
The HTTP examples in the endpoint reference omit the bearer token. Supply your own token for every API request, and the requester-role header when using user authentication. They show illustrative identifiers and URLs rather than live credentials.
Reading field tables
Field paths describe the JSON structure: content[].id is the id of each page entry;
settings.ROLE_CUSTOMER_UPLOADER is a role-keyed object. Array and Object are JSON containers,
not Java class names. String (UUID) identifies a UUID-formatted string, String (date-time) an
ISO-8601 timestamp, and Number (integer) a whole number. Enum fields are strings with the allowed
values listed in their description.
Read the description and constraints together: a default applies when a field is omitted; null,
an empty string and an empty collection are different inputs. Conditional requirements are stated
in the field description. Only send the fields owned by the documented operation.
HTTP verbs
Each operation states its actual method. Existing command and upload-URL operations also use PUT; the method alone does not establish whether repeating a stateful command is safe.
| Verb | Usage |
|---|---|
|
Used to retrieve a resource |
|
Used to create a new resource |
|
Used to replace an existing resource |
|
Used to delete an existing resource |
Changing settings
Endpoints that change settings of a resource — for example PUT /v1/companies/{id}/settings,
PUT /v1/workflows/{id}/settings or PUT /v1/users/me/settings/… — always replace the complete
set of settings the endpoint owns. They are never partial updates.
-
Send the complete desired settings. Omitting a required field rejects the request. Omitting an optional field selects its documented default; it never means "leave unchanged".
-
Settings that must be changed independently of each other have their own endpoint. Within one endpoint the change is atomic — either all fields are applied or none.
-
Reading is not split the same way: a single
GETreturns the full set of settings of a resource.
Read each operation’s request-fields table for required values and defaults. Explicit null is not
interchangeable with omission: primitive boolean and numeric fields reject null, while nullable
fields may use it to clear a value.
HTTP status codes
The response example of each operation shows its successful status. A creation may return 200 or 201 depending on the operation; an update with a response body returns 200 rather than 204.
| Status code | Usage |
|---|---|
|
The request completed successfully |
|
A new resource has been created successfully. The resource’s URI is available from the response’s
|
|
The request was accepted. Workflow deletion returns this status; downstream visibility updates propagate asynchronously |
|
The request completed successfully without a response body |
|
The request failed validation or could not be applied. The application error body explains the reason |
|
Authentication failed or the current role/scope does not permit the operation. A valid token alone does not guarantee access; renewing it does not resolve a scope denial |
|
The requested resource does not exist or is not visible, where the operation uses this status |
|
The operation conflicts with the resource’s current state or a concurrent change |
|
The service could not complete the request |
Paged lists
List endpoints that return a page accept the following common query parameters. Each operation also documents its filters, allowed sort properties and default page size. The role/grant list and DW24 company catalog return plain arrays; they do not use this page wrapper.
| Parameter | Description |
|---|---|
|
Zero-based page number |
|
Requested page size; the server may cap it |
|
|
Repeat sort for multiple sort orders, for example ?sort=name,ASC&sort=status,DESC where both
properties are allowed. Repeat collection filters using the parameter name shown by the operation;
filters narrow the caller’s authorized scope and cannot grant access to another company or target.
The response is a page wrapper around the list. The entries are in content; the endpoint documents
their fields. Read the returned size, number and sort rather than assuming that every requested
paging value was accepted. If no records match, content is empty and totalPages = 0.
A page beyond the last page may have empty content while totalPages remains greater than zero.
| Path | Type | Description |
|---|---|---|
|
|
Total number of matching entries |
|
|
Total number of result pages; zero for an empty result |
|
|
Whether this is the last page |
|
|
Whether this is the first page |
|
|
Number of entries returned in this page |
|
|
Requested page size |
|
|
Zero-based page number |
|
|
Applied sort orders, each containing property and direction (ASC or DESC); empty when unsorted |
Authentication and Authorization
The API supports two authentication types. Every endpoint documents which type(s) it accepts with an Authentication note that links back to the matching subsection below:
-
User authentication — interactive access for human portal users.
-
Technical authentication — machine-to-machine access for technical clients.
An endpoint may accept only one of the two types or both.
User authentication
Interactive access used by human users signed in to the portal. A request authenticates with a Cognito
JWT access token and declares the acting role through the X-PF-DWC-Requester-Role header.
Authorization header
Send an access token, not an ID token, in the Authorization header. Example:
GET /v1/uploads HTTP/1.1
Authorization: Bearer {JWT_ACCESS_TOKEN}
X-PF-DWC-Requester-Role: ROLE_CUSTOMER_UPLOADER
Obtain the access token from Cognito. See Cognito authentication.
Example login request
POST https://cognito-idp.eu-central-1.amazonaws.com
Content-Type: application/x-amz-json-1.1
X-Amz-Target: AWSCognitoIdentityProviderService.InitiateAuth
{
"AuthParameters" : {
"USERNAME": "Some@Email",
"PASSWORD": "SecretPassword"
},
"AuthFlow": "USER_PASSWORD_AUTH",
"ClientId": "<CLIENT_ID>"
}
Obtain CLIENT_ID from support. This example shows a successful password-based login. Depending on
the account and configured authentication flow, Cognito may return a challenge instead of tokens;
complete that sign-in flow before calling the API. The portal handles interactive authentication.
Example login response
HTTP/1.1 200 OK
Content-Type: application/x-amz-json-1.1
{
"AuthenticationResult": {
"AccessToken":"JWT_ACCESS_TOKEN",
"ExpiresIn":3600,
"IdToken":"JWT_ID_TOKEN",
"RefreshToken":"JWT_REFRESH_TOKEN",
"TokenType":"Bearer"
},
"ChallengeParameters":{}
}
Requester-Role header
Operations that accept an acting user role require the X-PF-DWC-Requester-Role header. Use a role
assigned to the authenticated user; setting a different header does not grant that role or expand
its company, contract or target scope. The current user’s roles and grants are available through
Get current user roles and grants, which does not require this role header.
Example:
GET /v1/uploads HTTP/1.1
X-PF-DWC-Requester-Role: ROLE_CUSTOMER_UPLOADER
Technical authentication
Machine-to-machine access used by technical clients. A request authenticates with a technical JWT access token obtained through the OAuth client-credentials flow, using the one-time credentials issued by the Create technical access endpoint.
The acting role is derived from the token’s OAuth scope claim (for example tower/customer-uploader).
Technical requests therefore do not send the X-PF-DWC-Requester-Role header; the role is taken from
the token.
PUT /v1/uploads HTTP/1.1
Authorization: Bearer {JWT_ACCESS_TOKEN}
Technical clients and their scopes are managed through the Technical Access endpoints.
Exchanging the client secret for an access token
The Create technical access response returns an oauth descriptor with the one-time
clientId/clientSecret and the client-credentials metadata (tokenUrl, grantType,
tokenEndpointAuthMethod, supportedScopes). Exchange these credentials for an access token by
calling tokenUrl directly.
POST {tokenUrl} HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Authorization: Basic {base64({clientId}:{clientSecret})}
grant_type=client_credentials&scope=tower%2Fcustomer-uploader
HTTP/1.1 200 OK
Content-Type: application/json
{
"access_token": "JWT_ACCESS_TOKEN",
"expires_in": 86400,
"token_type": "Bearer"
}
The example requests the currently supported scope. If constructing the request from
supportedScopes, join its entries with scopeSeparator and URL-encode the result as a form value.
Base64-encode the client ID and secret together as clientId:clientSecret for the Basic authorization value.
Use the returned access_token as {JWT_ACCESS_TOKEN} in the Authorization: Bearer header of API requests.
Technical access tokens currently have a 24-hour lifetime; cache the token and use expires_in to
schedule renewal instead of requesting a token for every API call. Client credentials do not provide
a refresh token: renew through the same token endpoint.
After a completed secret rotation, use the new secret for future token exchanges. Completing rotation removes the old secret; it does not revoke already issued access tokens. Disabling or deleting a technical access denies API operations through its authorization state.
Errors
Application errors of the API use the following JSON object. Errors returned directly by Cognito, S3, the gateway or authentication middleware may have a different body; inspect the HTTP status and Content-Type before parsing a response as this error contract.
Use messageCode for programmatic classification, debugMessages to identify invalid fields and
id when reporting the failure to support. The numerical HTTP status is on the response line;
status in the JSON body is its name, such as BAD_REQUEST.
The error object has the following structure:
| Path | Type | Description |
|---|---|---|
|
|
Identifier for correlating this error |
|
|
HTTP status name, e.g. |
|
|
A description of the cause of the error, e.g. 'Validation error' |
|
|
Internal code of the cause of the error |
|
|
Diagnostic details, e.g. 'targetId: must not be null' |
|
|
The path to which the request was made |
|
|
Time of the error as a UTC ISO-8601 timestamp |
For example, an invalid request produces a 400 Bad Request response:
HTTP/1.1 400 Bad Request
Content-Type: application/json
{
"debugMessages" : [ "targetId: must not be null" ],
"id" : "0700efcd-3ade-4d16-94ff-1c381dd8215e",
"message" : "Validation error",
"messageCode" : "de.profiforms.docxworld.upload.error.client.validation",
"path" : "/v1/uploads",
"status" : "BAD_REQUEST",
"timestamp" : "2026-10-13T10:15:30Z"
}
User management service
User
Create user
Creates a user with no assigned roles or target/contract scope. Assign roles with Assign role to user
and configure their scope separately. companyId associates the user with a company; omitting it
creates a company-independent user. status defaults to ACTIVE.
Authentication: User authentication
Endpoint and parameters
POST /v1/users
Request fields
| Path | Type | Description | Constraints |
|---|---|---|---|
String |
Login email of the user. Must be unique |
Must be a well-formed email address. Must not be blank |
|
status |
String |
User status. Allowed values: [ACTIVE, INACTIVE]. Default: ACTIVE |
|
firstName |
String |
First name of the user |
|
lastName |
String |
Last name of the user |
|
companyId |
String (UUID) |
Company ID of the user |
Example request
POST /v1/users HTTP/1.1
Content-Type: application/json;charset=UTF8
X-PF-DWC-Requester-Role: ROLE_PF_ADMIN
{
"companyId" : "00000000-0000-0000-0000-000000000001",
"email" : "email@email.com",
"firstName" : "Max",
"lastName" : "Musterman",
"status" : "ACTIVE"
}
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"companyId" : "00000000-0000-0000-0000-000000000001",
"companyName" : "companyName",
"email" : "email@email.com",
"firstName" : "Max",
"id" : "123",
"lastLogin" : null,
"lastName" : "Musterman",
"roles" : [ ],
"scopedCustomerContracts" : { },
"scopedTargets" : { },
"status" : "ACTIVE",
"unassignedRoleScope" : {
"customerContracts" : { },
"targets" : { }
}
}
User response fields
| Path | Type | Description |
|---|---|---|
|
|
User ID |
|
|
First name of the user |
|
|
Last name of the user |
|
|
Login email of the user |
|
|
Set of roles assigned to the user |
|
|
User status |
|
|
Company ID of the user |
|
|
Company name of the user |
|
|
Last login of the user |
|
|
Object keyed by role. Each value is an array of customer-number objects with |
|
|
Object keyed by role. Each value is an array of target UUIDs in that role’s scope. |
|
|
Scope still stored for roles the user does not hold. Removing a role keeps its scope, which applies again when the role is assigned again. |
Get user
Authentication: User authentication
Example request
GET /v1/users/123 HTTP/1.1
X-PF-DWC-Requester-Role: ROLE_PF_ADMIN
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"companyId" : "00000000-0000-0000-0000-000000000001",
"companyName" : "companyName",
"email" : "123@profiforms.de",
"firstName" : "firstName_123",
"id" : "123",
"lastLogin" : "2007-12-03T10:15:30Z",
"lastName" : "lastName_123",
"roles" : [ "ROLE_PF_ADMIN" ],
"scopedCustomerContracts" : {
"ROLE_PF_ADMIN" : [ ]
},
"scopedTargets" : { },
"status" : "ACTIVE",
"unassignedRoleScope" : {
"customerContracts" : { },
"targets" : {
"ROLE_CUSTOMER_UPLOADER" : [ "00000000-0000-0000-0000-000000000001" ]
}
}
}
Response fields: see User response fields.
List users
For sorted requests, a page whose starting offset (page * size) is 10,000 or more returns an empty
content array while still reporting the full matching total. A page starting below 10,000 is returned
in full, even when its end exceeds that boundary. This result-window limit does not apply to unsorted requests.
Paged list; paging, sorting and the page wrapper are described in Paged lists. Each element of content has the fields of User response fields.
Authentication: User authentication
Endpoint and parameters
GET /v1/users
| Parameter | Description |
|---|---|
|
Case- and accent-insensitive substring search over id, last name, first name and email. Straße matches STRASSE; Müller matches Muller. Percent, underscore and backslash are literal characters. |
|
Filter and return users assigned to provided roles. Allowed values: [ROLE_SYS_ADMIN, ROLE_PF_ADMIN, ROLE_CUSTOMER_ADMIN, ROLE_CUSTOMER_USER, ROLE_CUSTOMER_UPLOADER, ROLE_CUSTOMER_DOWNLOADER_RESULTS, ROLE_CUSTOMER_DOWNLOADER_REPORTS, ROLE_CUSTOMER_APPROVER] and special value ROLE_NO_ROLE for users not assigned to any role. |
|
Filter and return users assigned to provided companies. Special value SYS_COMPANY for users not assigned to any company. |
|
Page number to return. [0,totalPages) |
|
Page size. Default 35 |
|
Sorting in format property[,property][,ASC|DESC]. Allowed values: [email, status]. Allowed direction: [ASC, DESC]. Default direction is ASC. |
Example request
GET /v1/users?sort=email&sort=status%2CDESC&page=0&size=10&freeSearch=email&roles=ROLE_NO_ROLE&roles=ROLE_CUSTOMER_USER&companyIds=SYS_COMPANY&companyIds=00000000-0000-0000-0000-000000000001 HTTP/1.1
X-PF-DWC-Requester-Role: ROLE_PF_ADMIN
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"content" : [ {
"companyId" : "00000000-0000-0000-0000-000000000001",
"companyName" : "companyName",
"email" : "email1",
"firstName" : "name1",
"id" : "123",
"lastLogin" : null,
"lastName" : "lastname",
"roles" : [ ],
"scopedCustomerContracts" : { },
"scopedTargets" : { },
"status" : "ACTIVE",
"unassignedRoleScope" : {
"customerContracts" : { },
"targets" : { }
}
}, {
"companyId" : "00000000-0000-0000-0000-000000000001",
"companyName" : "companyName",
"email" : "email2",
"firstName" : "name2",
"id" : "456",
"lastLogin" : null,
"lastName" : "lastname",
"roles" : [ ],
"scopedCustomerContracts" : { },
"scopedTargets" : { },
"status" : "ACTIVE",
"unassignedRoleScope" : {
"customerContracts" : { },
"targets" : { }
}
} ],
"totalElements" : 2,
"totalPages" : 1,
"last" : true,
"first" : true,
"numberOfElements" : 2,
"size" : 10,
"number" : 0,
"sort" : [ {
"property" : "email",
"direction" : "ASC"
}, {
"property" : "status",
"direction" : "DESC"
} ]
}
Count the users of a company
Counts the users of one company that List users lists for the caller with companyIds set to that company.
Authentication: User authentication
Parameters
| Parameter | Description |
|---|---|
|
Company whose users are counted |
Example request
GET /v1/users/statistics?companyId=00000000-0000-0000-0000-000000000001 HTTP/1.1
X-PF-DWC-Requester-Role: ROLE_PF_ADMIN
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"total" : 3,
"active" : 2,
"inactive" : 1,
"byRole" : {
"ROLE_CUSTOMER_ADMIN" : 1,
"ROLE_CUSTOMER_USER" : 2,
"ROLE_NO_ROLE" : 1
}
}
Response fields
| Path | Type | Description |
|---|---|---|
|
|
Users of the company; deleted users are not counted |
|
|
Of them, users with status ACTIVE |
|
|
Of them, users with status INACTIVE |
|
|
Users per customer role. A user can hold several roles and counts once in each of them, so the sum can exceed total; it answers "how many users hold this role", not "how are the users divided". Every customer role is listed, with 0 where no user holds it. ROLE_NO_ROLE counts users without a role. |
Update user
Authentication: User authentication
Request fields
| Path | Type | Description | Constraints |
|---|---|---|---|
firstName |
String |
First name of the user |
|
lastName |
String |
Last name of the user |
Example request
PUT /v1/users/123 HTTP/1.1
Content-Type: application/json;charset=UTF8
X-PF-DWC-Requester-Role: ROLE_PF_ADMIN
{
"firstName" : "Max",
"lastName" : "Musterman"
}
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"companyId" : "00000000-0000-0000-0000-000000000001",
"companyName" : "companyName",
"email" : "email@email.com",
"firstName" : "Max",
"id" : "123",
"lastLogin" : "2007-12-03T10:15:30Z",
"lastName" : "Musterman",
"roles" : [ "ROLE_PF_ADMIN" ],
"scopedCustomerContracts" : {
"ROLE_PF_ADMIN" : [ ]
},
"scopedTargets" : { },
"status" : "ACTIVE",
"unassignedRoleScope" : {
"customerContracts" : { },
"targets" : {
"ROLE_CUSTOMER_UPLOADER" : [ "00000000-0000-0000-0000-000000000001" ]
}
}
}
Response fields: see User response fields.
Update user state
Changes the user status independently of profile metadata.
Authentication: User authentication
Request fields
| Path | Type | Description | Constraints |
|---|---|---|---|
status |
String |
User status. Allowed values: [ACTIVE, INACTIVE] |
Must not be null |
Example request
PUT /v1/users/123/state HTTP/1.1
Content-Type: application/json;charset=UTF8
X-PF-DWC-Requester-Role: ROLE_PF_ADMIN
{
"status" : "ACTIVE"
}
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"companyId" : "00000000-0000-0000-0000-000000000001",
"companyName" : "companyName",
"email" : "email@email.com",
"firstName" : "Max",
"id" : "123",
"lastLogin" : "2007-12-03T10:15:30Z",
"lastName" : "Musterman",
"roles" : [ "ROLE_PF_ADMIN" ],
"scopedCustomerContracts" : {
"ROLE_PF_ADMIN" : [ ]
},
"scopedTargets" : { },
"status" : "ACTIVE",
"unassignedRoleScope" : {
"customerContracts" : { },
"targets" : {
"ROLE_CUSTOMER_UPLOADER" : [ "00000000-0000-0000-0000-000000000001" ]
}
}
}
Response fields: see User response fields.
Assign role to user
Authentication: User authentication
Request fields
| Path | Type | Description | Constraints |
|---|---|---|---|
role |
String |
The role that is assigned to the user. Allowed values: [ROLE_SYS_ADMIN, ROLE_PF_ADMIN, ROLE_CUSTOMER_ADMIN, ROLE_CUSTOMER_USER, ROLE_CUSTOMER_UPLOADER, ROLE_CUSTOMER_DOWNLOADER_RESULTS, ROLE_CUSTOMER_DOWNLOADER_REPORTS, ROLE_CUSTOMER_APPROVER] |
Must not be null |
Example request
PUT /v1/users/123/roles HTTP/1.1
Content-Type: application/json;charset=UTF8
X-PF-DWC-Requester-Role: ROLE_PF_ADMIN
{
"role" : "ROLE_PF_ADMIN"
}
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"companyId" : "00000000-0000-0000-0000-000000000001",
"companyName" : "companyName",
"email" : "email@email.com",
"firstName" : "Max",
"id" : "123",
"lastLogin" : "2007-12-03T10:15:30Z",
"lastName" : "Musterman",
"roles" : [ "ROLE_PF_ADMIN" ],
"scopedCustomerContracts" : {
"ROLE_PF_ADMIN" : [ ]
},
"scopedTargets" : { },
"status" : "ACTIVE",
"unassignedRoleScope" : {
"customerContracts" : { },
"targets" : {
"ROLE_CUSTOMER_UPLOADER" : [ "00000000-0000-0000-0000-000000000001" ]
}
}
}
Response fields: see User response fields.
Remove role from user
Authentication: User authentication
Request fields
| Path | Type | Description | Constraints |
|---|---|---|---|
role |
String |
Role to remove. Allowed values: [ROLE_SYS_ADMIN, ROLE_PF_ADMIN, ROLE_CUSTOMER_ADMIN, ROLE_CUSTOMER_USER, ROLE_CUSTOMER_UPLOADER, ROLE_CUSTOMER_DOWNLOADER_RESULTS, ROLE_CUSTOMER_DOWNLOADER_REPORTS, ROLE_CUSTOMER_APPROVER] |
Must not be null |
Example request
DELETE /v1/users/123/roles HTTP/1.1
Content-Type: application/json;charset=UTF8
X-PF-DWC-Requester-Role: ROLE_PF_ADMIN
{
"role" : "ROLE_PF_ADMIN"
}
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"companyId" : "00000000-0000-0000-0000-000000000001",
"companyName" : "companyName",
"email" : "email@email.com",
"firstName" : "Max",
"id" : "123",
"lastLogin" : "2007-12-03T10:15:30Z",
"lastName" : "Musterman",
"roles" : [ "ROLE_PF_ADMIN" ],
"scopedCustomerContracts" : {
"ROLE_PF_ADMIN" : [ ]
},
"scopedTargets" : { },
"status" : "ACTIVE",
"unassignedRoleScope" : {
"customerContracts" : { },
"targets" : {
"ROLE_CUSTOMER_UPLOADER" : [ "00000000-0000-0000-0000-000000000001" ]
}
}
}
Response fields: see User response fields.
Assign contracts to user role
Authentication: User authentication
Request fields
| Path | Type | Description | Constraints |
|---|---|---|---|
targetRole |
String |
Role to which the contracts are assigned. Allowed values: [ROLE_PF_ADMIN, ROLE_CUSTOMER_ADMIN] |
Must not be null |
customerContracts |
Array |
Customer contract numbers to assign to the role. |
Must not be empty |
Example request
PUT /v1/users/123/customer-contracts HTTP/1.1
Content-Type: application/json;charset=UTF8
X-PF-DWC-Requester-Role: ROLE_PF_ADMIN
{
"customerContracts" : [ "number1" ],
"targetRole" : "ROLE_PF_ADMIN"
}
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"companyId" : "00000000-0000-0000-0000-000000000001",
"companyName" : "companyName",
"email" : "email@email.com",
"firstName" : "Max",
"id" : "123",
"lastLogin" : "2007-12-03T10:15:30Z",
"lastName" : "Musterman",
"roles" : [ "ROLE_PF_ADMIN" ],
"scopedCustomerContracts" : {
"ROLE_PF_ADMIN" : [ ]
},
"scopedTargets" : { },
"status" : "ACTIVE",
"unassignedRoleScope" : {
"customerContracts" : { },
"targets" : {
"ROLE_CUSTOMER_UPLOADER" : [ "00000000-0000-0000-0000-000000000001" ]
}
}
}
Response fields: see User response fields.
Remove contracts from user role
Authentication: User authentication
Request fields
| Path | Type | Description | Constraints |
|---|---|---|---|
targetRole |
String |
Role from which the contracts are removed. Allowed values: [ROLE_PF_ADMIN, ROLE_CUSTOMER_ADMIN] |
Must not be null |
customerContracts |
Array |
Customer contract numbers to remove from the role. |
Must not be empty |
Example request
DELETE /v1/users/123/customer-contracts HTTP/1.1
Content-Type: application/json;charset=UTF8
X-PF-DWC-Requester-Role: ROLE_PF_ADMIN
{
"customerContracts" : [ "number1" ],
"targetRole" : "ROLE_PF_ADMIN"
}
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"companyId" : "00000000-0000-0000-0000-000000000001",
"companyName" : "companyName",
"email" : "email@email.com",
"firstName" : "Max",
"id" : "123",
"lastLogin" : "2007-12-03T10:15:30Z",
"lastName" : "Musterman",
"roles" : [ "ROLE_PF_ADMIN" ],
"scopedCustomerContracts" : {
"ROLE_PF_ADMIN" : [ ]
},
"scopedTargets" : { },
"status" : "ACTIVE",
"unassignedRoleScope" : {
"customerContracts" : { },
"targets" : {
"ROLE_CUSTOMER_UPLOADER" : [ "00000000-0000-0000-0000-000000000001" ]
}
}
}
Response fields: see User response fields.
Assign targets to user role
Authentication: User authentication
Request fields
| Path | Type | Description | Constraints |
|---|---|---|---|
targetRole |
String |
Role to which the targets are assigned. Allowed values: [ROLE_CUSTOMER_UPLOADER, ROLE_CUSTOMER_DOWNLOADER_RESULTS, ROLE_CUSTOMER_DOWNLOADER_REPORTS, ROLE_CUSTOMER_APPROVER] |
Must not be null |
targets |
Array |
Target UUIDs to assign to the role. |
Must not be empty |
Example request
PUT /v1/users/123/targets HTTP/1.1
Content-Type: application/json;charset=UTF8
X-PF-DWC-Requester-Role: ROLE_PF_ADMIN
{
"targetRole" : "ROLE_CUSTOMER_UPLOADER",
"targets" : [ "00000000-0000-0000-0000-000000000001" ]
}
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"companyId" : "00000000-0000-0000-0000-000000000001",
"companyName" : "companyName",
"email" : "email@email.com",
"firstName" : "Max",
"id" : "123",
"lastLogin" : "2007-12-03T10:15:30Z",
"lastName" : "Musterman",
"roles" : [ "ROLE_PF_ADMIN" ],
"scopedCustomerContracts" : {
"ROLE_PF_ADMIN" : [ ]
},
"scopedTargets" : { },
"status" : "ACTIVE",
"unassignedRoleScope" : {
"customerContracts" : { },
"targets" : {
"ROLE_CUSTOMER_UPLOADER" : [ "00000000-0000-0000-0000-000000000001" ]
}
}
}
Response fields: see User response fields.
Remove targets from user role
Authentication: User authentication
Request fields
| Path | Type | Description | Constraints |
|---|---|---|---|
targetRole |
String |
Role from which the targets are removed. Allowed values: [ROLE_CUSTOMER_UPLOADER, ROLE_CUSTOMER_DOWNLOADER_RESULTS, ROLE_CUSTOMER_DOWNLOADER_REPORTS, ROLE_CUSTOMER_APPROVER] |
Must not be null |
targets |
Array |
Target UUIDs to remove from the role. |
Must not be empty |
Example request
DELETE /v1/users/123/targets HTTP/1.1
Content-Type: application/json;charset=UTF8
X-PF-DWC-Requester-Role: ROLE_PF_ADMIN
{
"targetRole" : "ROLE_CUSTOMER_UPLOADER",
"targets" : [ "00000000-0000-0000-0000-000000000001" ]
}
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"companyId" : "00000000-0000-0000-0000-000000000001",
"companyName" : "companyName",
"email" : "email@email.com",
"firstName" : "Max",
"id" : "123",
"lastLogin" : "2007-12-03T10:15:30Z",
"lastName" : "Musterman",
"roles" : [ "ROLE_PF_ADMIN" ],
"scopedCustomerContracts" : {
"ROLE_PF_ADMIN" : [ ]
},
"scopedTargets" : { },
"status" : "ACTIVE",
"unassignedRoleScope" : {
"customerContracts" : { },
"targets" : {
"ROLE_CUSTOMER_UPLOADER" : [ "00000000-0000-0000-0000-000000000001" ]
}
}
}
Response fields: see User response fields.
Get current user roles and grants
Authentication: User authentication
Endpoint and parameters
GET /v1/users/grants
Example request
GET /v1/users/grants HTTP/1.1
Example response
HTTP/1.1 200 OK
Content-Type: application/json
[ {
"companies" : [ ".*" ],
"contracts" : null,
"grants" : [ {
"action" : "user:updateState"
}, {
"action" : "role:removeUser",
"target" : "ROLE_PF_ADMIN"
} ],
"role" : "ROLE_PF_ADMIN"
}, {
"companies" : [ "SYS_COMPANY" ],
"contracts" : null,
"grants" : [ {
"action" : "user:create"
}, {
"action" : "role:addUser",
"target" : "ROLE_PF_ADMIN"
} ],
"role" : "ROLE_SYS_ADMIN"
} ]
Response fields
| Path | Type | Description |
|---|---|---|
|
|
Role assigned to the user |
|
|
Companies scope, role is restricted to |
|
|
Contracts scope, role is restricted to |
|
|
Grants assigned to the role |
Reset user’s initial password
Resends the invitation with a temporary password only while the user has the Cognito status
FORCE_CHANGE_PASSWORD and has not completed the initial password change. Other Cognito statuses
reject this operation; it cannot reset an established password.
Authentication: User authentication
Example request
PUT /v1/users/123/reset-initial-password HTTP/1.1
Content-Type: application/json;charset=UTF8
X-PF-DWC-Requester-Role: ROLE_PF_ADMIN
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"companyId" : "00000000-0000-0000-0000-000000000001",
"companyName" : "companyName",
"email" : "email@email.com",
"firstName" : "Max",
"id" : "123",
"lastLogin" : "2007-12-03T10:15:30Z",
"lastName" : "Musterman",
"roles" : [ "ROLE_PF_ADMIN" ],
"scopedCustomerContracts" : {
"ROLE_PF_ADMIN" : [ ]
},
"scopedTargets" : { },
"status" : "ACTIVE",
"unassignedRoleScope" : {
"customerContracts" : { },
"targets" : {
"ROLE_CUSTOMER_UPLOADER" : [ "00000000-0000-0000-0000-000000000001" ]
}
}
}
Reset user’s second factor
Releases the authenticator app of a user who can no longer produce codes, for example after losing the phone. The user signs in with the password alone afterwards and can pair a new app from their account.
Authentication: User authentication
Example request
PUT /v1/users/123/reset-mfa HTTP/1.1
Content-Type: application/json;charset=UTF8
X-PF-DWC-Requester-Role: ROLE_PF_ADMIN
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"companyId" : "00000000-0000-0000-0000-000000000001",
"companyName" : "companyName",
"email" : "email@email.com",
"firstName" : "Max",
"id" : "123",
"lastLogin" : "2007-12-03T10:15:30Z",
"lastName" : "Musterman",
"roles" : [ "ROLE_PF_ADMIN" ],
"scopedCustomerContracts" : {
"ROLE_PF_ADMIN" : [ ]
},
"scopedTargets" : { },
"status" : "ACTIVE",
"unassignedRoleScope" : {
"customerContracts" : { },
"targets" : {
"ROLE_CUSTOMER_UPLOADER" : [ "00000000-0000-0000-0000-000000000001" ]
}
}
}
Delete user
The user must already be INACTIVE. Deactivate through Update user state first.
A PF Admin can delete users across companies; a Customer Admin can delete users within their company scope.
Self-deletion and deletion of a user holding ROLE_SYS_ADMIN are denied. Deletion removes access and
anonymizes the profile while preserving the user identifier on historical uploads and downloads.
Authentication: User authentication
Example request
DELETE /v1/users/123 HTTP/1.1
X-PF-DWC-Requester-Role: ROLE_PF_ADMIN
Example response
HTTP/1.1 204 No Content
User notification settings
A user manages their own notification settings through the /v1/users/me/... endpoints. Settings are
scoped per role: a user only has the settings that belong to the roles assigned to them. In the response the
settings are keyed by the role they belong to, using the same role identifier as roles and scopedTargets
(e.g. ROLE_CUSTOMER_UPLOADER). A role key is present only when the user actually has that role; its value
carries the role’s notification block(s), populated with defaults when nothing has been persisted yet.
Both notifications default to mode=NONE. The approver notification defaults to
deliveryMode=IMMEDIATE, empty scheduledTimes, and timeZone=Europe/Berlin.
Each notification block is updated by its own endpoint, and the request path mirrors the location of the block
in the response (settings.<ROLE>.<notification>) so that request and response stay symmetric. The field
reference and the possible value combinations are documented per endpoint below.
Get current user settings
Authentication: User authentication
Returns the caller’s profile together with the settings of every role the user holds. The example below is
for a user holding both the uploader and the approver role, so every notification block is present.
All response fields other than settings are the standard user profile fields, documented under
User response fields. The settings field is described below.
Endpoint and parameters
GET /v1/users/me/settings
Example request
GET /v1/users/me/settings HTTP/1.1
X-PF-DWC-Requester-Role: ROLE_CUSTOMER_UPLOADER
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"companyId" : "00000000-0000-0000-0000-000000000001",
"companyName" : "companyName",
"email" : "123@profiforms.de",
"firstName" : "firstName_123",
"id" : "123",
"lastLogin" : "2007-12-03T10:15:30Z",
"lastName" : "lastName_123",
"roles" : [ "ROLE_CUSTOMER_UPLOADER", "ROLE_CUSTOMER_APPROVER" ],
"scopedCustomerContracts" : { },
"scopedTargets" : {
"ROLE_CUSTOMER_UPLOADER" : [ "00000000-0000-0000-0000-000000000001" ],
"ROLE_CUSTOMER_APPROVER" : [ "00000000-0000-0000-0000-000000000001" ]
},
"settings" : {
"ROLE_CUSTOMER_APPROVER" : {
"newApprovalNotification" : {
"allowedTargets" : [ "00000000-0000-0000-0000-000000000001" ],
"deliveryMode" : "SCHEDULED",
"mode" : "SELECTED",
"scheduledTimes" : [ "09:00", "14:00" ],
"selectedTargets" : [ "00000000-0000-0000-0000-000000000001" ],
"timeZone" : "Europe/Berlin"
}
},
"ROLE_CUSTOMER_UPLOADER" : {
"approvalSuccessNotification" : {
"allowedTargets" : [ "00000000-0000-0000-0000-000000000001" ],
"mode" : "SELECTED",
"selectedTargets" : [ "00000000-0000-0000-0000-000000000001" ]
}
}
},
"status" : "ACTIVE",
"unassignedRoleScope" : {
"customerContracts" : { },
"targets" : { }
}
}
The notification settings are grouped under the role they belong to. Each block is managed by its own endpoint — follow the link for the field reference and the request examples:
| Notification | Managed by (PUT) — see |
|---|---|
|
|
|
|
Update the uploader approval-success notification
Authentication: User authentication
Manages settings.ROLE_CUSTOMER_UPLOADER.approvalSuccessNotification — the notification an uploader receives
when one of their uploads has been approved. The caller must have ROLE_CUSTOMER_UPLOADER.
Endpoint and parameters
PUT /v1/users/me/settings/ROLE_CUSTOMER_UPLOADER/approvalSuccessNotification
Request fields
| Path | Type | Description | Constraints |
|---|---|---|---|
mode |
String |
Target selection mode. |
Must not be null |
targetIds |
Array |
Target IDs to notify about. Every id must be assigned to the uploader and be approvable, otherwise the request is rejected with 400. |
Required when |
Example request
PUT /v1/users/me/settings/ROLE_CUSTOMER_UPLOADER/approvalSuccessNotification HTTP/1.1
Content-Type: application/json;charset=UTF8
X-PF-DWC-Requester-Role: ROLE_CUSTOMER_UPLOADER
{
"mode" : "SELECTED",
"targetIds" : [ "00000000-0000-0000-0000-000000000001" ]
}
Request examples
Disable the notification (mode = NONE):
{
"mode" : "NONE"
}
Notify about every assigned target (mode = ALL_ASSIGNED):
{
"mode" : "ALL_ASSIGNED"
}
Notify about specific targets only (mode = SELECTED):
{
"mode" : "SELECTED",
"targetIds" : [ "00000000-0000-0000-0000-000000000001" ]
}
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"companyId" : "00000000-0000-0000-0000-000000000001",
"companyName" : "companyName",
"email" : "123@profiforms.de",
"firstName" : "firstName_123",
"id" : "123",
"lastLogin" : "2007-12-03T10:15:30Z",
"lastName" : "lastName_123",
"roles" : [ "ROLE_CUSTOMER_UPLOADER" ],
"scopedCustomerContracts" : { },
"scopedTargets" : {
"ROLE_CUSTOMER_UPLOADER" : [ "00000000-0000-0000-0000-000000000001" ]
},
"settings" : {
"ROLE_CUSTOMER_UPLOADER" : {
"approvalSuccessNotification" : {
"allowedTargets" : [ "00000000-0000-0000-0000-000000000001" ],
"mode" : "SELECTED",
"selectedTargets" : [ "00000000-0000-0000-0000-000000000001" ]
}
}
},
"status" : "ACTIVE",
"unassignedRoleScope" : {
"customerContracts" : { },
"targets" : { }
}
}
Response fields
| Path | Type | Description |
|---|---|---|
|
|
The stored selection mode. |
|
|
UUIDs of all targets the uploader may choose from (assigned to the uploader and flagged approvable). |
|
|
Target UUIDs the notification effectively applies to: empty for |
Update the approver new-approval notification
Authentication: User authentication
Manages settings.ROLE_CUSTOMER_APPROVER.newApprovalNotification — the notification an approver receives when
a new upload is waiting for their approval. The caller must have ROLE_CUSTOMER_APPROVER. The notification is
configured by a target selection (mode, targetIds) and a delivery schedule (deliveryMode,
scheduledTimes, timeZone), all described in the request fields below.
Endpoint and parameters
PUT /v1/users/me/settings/ROLE_CUSTOMER_APPROVER/newApprovalNotification
Request fields
| Path | Type | Description | Constraints |
|---|---|---|---|
mode |
String |
Target selection mode. |
Must not be null |
targetIds |
Array |
Target IDs to notify about. Every id must be assigned to the approver and be approvable, otherwise the request is rejected with 400. |
Required when |
deliveryMode |
String |
|
Optional. Defaults to IMMEDIATE. |
scheduledTimes |
Array |
Distinct full local-time hours (e.g. 09:00) at which the digest is sent. |
Required when |
timeZone |
String |
IANA time zone applied to |
Optional. Defaults to Europe/Berlin. |
Example request
PUT /v1/users/me/settings/ROLE_CUSTOMER_APPROVER/newApprovalNotification HTTP/1.1
Content-Type: application/json;charset=UTF8
X-PF-DWC-Requester-Role: ROLE_CUSTOMER_APPROVER
{
"deliveryMode" : "SCHEDULED",
"mode" : "SELECTED",
"scheduledTimes" : [ "09:00", "14:00" ],
"targetIds" : [ "00000000-0000-0000-0000-000000000001", "00000000-0000-0000-0000-000000000002" ],
"timeZone" : "Europe/Berlin"
}
Request examples
Disable the notification (mode = NONE):
{
"mode" : "NONE"
}
Immediate notification for every assigned target (mode = ALL_ASSIGNED; deliveryMode defaults to IMMEDIATE):
{
"mode" : "ALL_ASSIGNED"
}
Immediate notification for specific targets (mode = SELECTED; deliveryMode defaults to IMMEDIATE):
{
"mode" : "SELECTED",
"targetIds" : [ "00000000-0000-0000-0000-000000000001" ]
}
Scheduled digest for every assigned target (mode = ALL_ASSIGNED, deliveryMode = SCHEDULED):
{
"mode" : "ALL_ASSIGNED",
"deliveryMode" : "SCHEDULED",
"scheduledTimes" : [ "09:00", "14:00" ]
}
Scheduled digest for specific targets (mode = SELECTED, deliveryMode = SCHEDULED):
{
"mode" : "SELECTED",
"deliveryMode" : "SCHEDULED",
"targetIds" : [ "00000000-0000-0000-0000-000000000001" ],
"scheduledTimes" : [ "09:00", "14:00" ]
}
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"companyId" : "00000000-0000-0000-0000-000000000001",
"companyName" : "companyName",
"email" : "123@profiforms.de",
"firstName" : "firstName_123",
"id" : "123",
"lastLogin" : "2007-12-03T10:15:30Z",
"lastName" : "lastName_123",
"roles" : [ "ROLE_CUSTOMER_APPROVER" ],
"scopedCustomerContracts" : { },
"scopedTargets" : {
"ROLE_CUSTOMER_APPROVER" : [ "00000000-0000-0000-0000-000000000001" ]
},
"settings" : {
"ROLE_CUSTOMER_APPROVER" : {
"newApprovalNotification" : {
"allowedTargets" : [ "00000000-0000-0000-0000-000000000001" ],
"deliveryMode" : "SCHEDULED",
"mode" : "SELECTED",
"scheduledTimes" : [ "09:00", "14:00" ],
"selectedTargets" : [ "00000000-0000-0000-0000-000000000001" ],
"timeZone" : "Europe/Berlin"
}
}
},
"status" : "ACTIVE",
"unassignedRoleScope" : {
"customerContracts" : { },
"targets" : { }
}
}
Response fields
| Path | Type | Description |
|---|---|---|
|
|
The stored selection mode. |
|
|
The stored delivery mode. |
|
|
UUIDs of all targets the approver may choose from (assigned to the approver and flagged approvable). |
|
|
Target UUIDs the notification effectively applies to: empty for |
|
|
The stored schedule. Empty for |
|
|
The stored time zone for |
Technical Access
Create technical access
Authentication: User authentication
The create response contains an oauth descriptor with the one-time client credentials and the
client-credentials metadata needed to exchange them for an access token.
Endpoint and parameters
POST /v1/technical-access
Request fields
| Path | Type | Description | Constraints |
|---|---|---|---|
companyId |
String (UUID) |
Company that owns the technical access |
Must not be null |
name |
String |
Display name of the technical access |
Must not be blank |
contactEmail |
String |
Optional contact email used for technical uploader notifications |
Must be a well-formed email address |
allowedRoles |
Array |
Allowed technical roles for the client |
Must not be empty |
Example request
POST /v1/technical-access HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-PF-DWC-Requester-Role: ROLE_CUSTOMER_ADMIN
{
"companyId" : "00000000-0000-0000-0000-000000000001",
"name" : "download integration",
"contactEmail" : "integration@profiforms.de",
"allowedRoles" : [ "ROLE_CUSTOMER_UPLOADER" ]
}
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"oauth" : {
"clientId" : "client-id-123",
"clientSecret" : "client-secret-456",
"grantType" : "client_credentials",
"issuer" : "https://cognito-idp.eu-central-1.amazonaws.com/eu-central-1_testPoolId",
"scopeSeparator" : " ",
"supportedScopes" : [ "tower/customer-uploader" ],
"tokenEndpointAuthMethod" : "client_secret_basic",
"tokenUrl" : "https://tower-auth.dev.profiforms-dev.de/oauth2/token"
},
"technicalAccess" : {
"allowedRoles" : [ "ROLE_CUSTOMER_UPLOADER" ],
"cognitoClientId" : "client-id-123",
"companyId" : "00000000-0000-0000-0000-000000000001",
"companyName" : "AI COM gmbh",
"contactEmail" : "integration@profiforms.de",
"createdAt" : "2024-01-10T10:15:30Z",
"createdBy" : "creator@profiforms.de",
"createdByDisplay" : "creator@profiforms.de",
"deletedAt" : null,
"disabledAt" : null,
"id" : "00000000-0000-0000-0000-000000000010",
"lastAuthenticatedAt" : null,
"lastRotatedAt" : null,
"name" : "download integration",
"rotationInProgress" : false,
"rotationStartedAt" : null,
"scopedTargets" : { },
"status" : "ACTIVE"
}
}
Response fields
| Path | Type | Description |
|---|---|---|
|
|
Provisioned Cognito app client ID |
|
|
One-time Cognito app client secret |
|
|
JWT issuer for the technical access token |
|
|
OAuth token endpoint for client credentials exchange |
|
|
Supported OAuth grant type |
|
|
Authentication method at the token endpoint |
|
|
Separator to use when requesting multiple scopes |
|
|
OAuth scopes provisioned for this technical access |
|
|
Technical access ID |
|
|
Owning company ID |
|
|
Owning company display name |
|
|
Technical access display name |
|
|
Optional contact email used for technical uploader notifications |
|
|
Technical access status |
|
|
Provisioned Cognito app client ID |
|
|
Allowed roles for this technical access |
|
|
Target assignments grouped by technical role |
|
|
User who created the technical access |
|
|
Display value for the technical access creator. |
|
|
Technical access creation timestamp |
|
|
Last successful client authentication timestamp |
|
|
Last secret rotation timestamp |
|
|
Whether a staged secret rotation is currently in progress |
|
|
Timestamp when the current staged secret rotation was started |
|
|
Disable timestamp |
|
|
Delete timestamp |
List technical access entries
Authentication: User authentication
Paged list; paging, sorting and the page wrapper are described in Paged lists. Allowed sort fields are name, status, and createdAt. Entries
already deleted from the lifecycle are hidden from the default list.
Parameters
| Parameter | Description |
|---|---|
|
Company UUID filter within the caller’s visible scope. Repeat companyIds for multiple companies; omit it for all visible companies |
|
Case- and accent-insensitive substring search over name, companyName, cognitoClientId, createdBy, createdByDisplay and allowedRoles. Straße matches STRASSE; Müller matches Muller. Percent, underscore and backslash are literal characters. Maximum 128 characters; surrounding whitespace is trimmed and blank input applies no text filter |
|
Zero-based page number. Default 0 |
|
Page size. Default 35 |
|
Sorting in format property[,ASC|DESC]. Allowed values: [name, status, createdAt]. Repeat sort for multiple orders. Default direction is ASC; no sort is applied when omitted. |
Example request
GET /v1/technical-access?companyIds=00000000-0000-0000-0000-000000000001 HTTP/1.1
X-PF-DWC-Requester-Role: ROLE_CUSTOMER_ADMIN
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"content" : [ {
"allowedRoles" : [ "ROLE_CUSTOMER_UPLOADER" ],
"cognitoClientId" : "client-id-123",
"companyId" : "00000000-0000-0000-0000-000000000001",
"companyName" : "AI COM gmbh",
"contactEmail" : null,
"createdAt" : "2024-01-10T10:15:30Z",
"createdBy" : "creator@profiforms.de",
"createdByDisplay" : "creator@profiforms.de",
"deletedAt" : null,
"disabledAt" : null,
"id" : "00000000-0000-0000-0000-000000000010",
"lastAuthenticatedAt" : null,
"lastRotatedAt" : null,
"name" : "download integration",
"rotationInProgress" : false,
"rotationStartedAt" : null,
"scopedTargets" : { },
"status" : "ACTIVE"
}, {
"allowedRoles" : [ "ROLE_CUSTOMER_UPLOADER" ],
"cognitoClientId" : "client-id-456",
"companyId" : "00000000-0000-0000-0000-000000000001",
"companyName" : "AI COM gmbh",
"contactEmail" : null,
"createdAt" : "2024-01-10T10:15:30Z",
"createdBy" : "creator@profiforms.de",
"createdByDisplay" : "creator@profiforms.de",
"deletedAt" : null,
"disabledAt" : null,
"id" : "00000000-0000-0000-0000-000000000011",
"lastAuthenticatedAt" : null,
"lastRotatedAt" : null,
"name" : "inactive access",
"rotationInProgress" : false,
"rotationStartedAt" : null,
"scopedTargets" : { },
"status" : "INACTIVE"
} ],
"totalElements" : 2,
"totalPages" : 1,
"last" : true,
"first" : true,
"numberOfElements" : 2,
"size" : 35,
"number" : 0,
"sort" : [ ]
}
Response fields
| Path | Type | Description |
|---|---|---|
|
|
Technical access ID |
|
|
Owning company ID |
|
|
Owning company display name |
|
|
Technical access display name |
|
|
Optional contact email used for technical uploader notifications |
|
|
Technical access status |
|
|
Provisioned Cognito app client ID |
|
|
Allowed roles for this technical access |
|
|
Target assignments grouped by technical role |
|
|
User who created the technical access |
|
|
Display value for the technical access creator. |
|
|
Technical access creation timestamp |
|
|
Last successful client authentication timestamp |
|
|
Last secret rotation timestamp |
|
|
Whether a staged secret rotation is currently in progress |
|
|
Timestamp when the current staged secret rotation was started |
|
|
Disable timestamp |
|
|
Delete timestamp |
Count the technical accesses of a company
Counts the active and inactive technical accesses of one company; deleted ones are not counted.
Authentication: User authentication
Parameters
| Parameter | Description |
|---|---|
|
Company whose technical accesses are counted |
Example request
GET /v1/technical-access/statistics?companyId=00000000-0000-0000-0000-000000000001 HTTP/1.1
X-PF-DWC-Requester-Role: ROLE_PF_ADMIN
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"total" : 3,
"active" : 2,
"inactive" : 1
}
Response fields
| Path | Type | Description |
|---|---|---|
|
|
Technical accesses of the company; deleted technical accesses are not counted |
|
|
Of them, technical accesses with status ACTIVE |
|
|
Of them, technical accesses with status INACTIVE |
Get technical access details
Authentication: User authentication
Technical access details are resolved for a single visible entry. The endpoint follows the same
visibility rules as the paged list and returns 404 when the entry is not visible in the caller’s
technical-access scope.
Endpoint and parameters
GET /v1/technical-access/{technicalAccessId}
| Parameter | Description |
|---|---|
|
Technical access ID |
Example request
GET /v1/technical-access/00000000-0000-0000-0000-000000000010 HTTP/1.1
X-PF-DWC-Requester-Role: ROLE_CUSTOMER_ADMIN
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"allowedRoles" : [ "ROLE_CUSTOMER_UPLOADER" ],
"cognitoClientId" : "client-id-123",
"companyId" : "00000000-0000-0000-0000-000000000001",
"companyName" : "AI COM gmbh",
"contactEmail" : "integration@profiforms.de",
"createdAt" : "2024-01-10T10:15:30Z",
"createdBy" : "creator@profiforms.de",
"createdByDisplay" : "creator@profiforms.de",
"deletedAt" : null,
"disabledAt" : null,
"id" : "00000000-0000-0000-0000-000000000010",
"lastAuthenticatedAt" : null,
"lastRotatedAt" : null,
"name" : "download integration",
"rotationInProgress" : false,
"rotationStartedAt" : null,
"scopedTargets" : { },
"status" : "ACTIVE"
}
Technical access response fields
| Path | Type | Description |
|---|---|---|
|
|
Technical access ID |
|
|
Owning company ID |
|
|
Owning company display name |
|
|
Technical access display name |
|
|
Optional contact email used for technical uploader notifications |
|
|
Technical access status |
|
|
Provisioned Cognito app client ID |
|
|
Allowed roles for this technical access |
|
|
Target assignments grouped by technical role |
|
|
User who created the technical access |
|
|
Display value for the technical access creator. |
|
|
Technical access creation timestamp |
|
|
Last successful client authentication timestamp |
|
|
Last secret rotation timestamp |
|
|
Whether a staged secret rotation is currently in progress |
|
|
Timestamp when the current staged secret rotation was started |
|
|
Disable timestamp |
|
|
Delete timestamp |
Add targets to technical access
Authentication: User authentication
Target assignments are stored per technical role. Only a Customer Admin can change them, and every requested target must belong to both the owning company and the Customer Admin’s own target scope. PF Admin can manage the technical access at company level but cannot change its target assignments.
Endpoint and parameters
PUT /v1/technical-access/{technicalAccessId}/targets
| Parameter | Description |
|---|---|
|
Technical access ID |
Request fields
| Path | Type | Description | Constraints |
|---|---|---|---|
targetRole |
String |
Technical role that receives the target assignments |
Must not be null |
targets |
Array |
Non-empty array of target UUIDs to assign |
Must not be empty |
Example request
PUT /v1/technical-access/00000000-0000-0000-0000-000000000010/targets HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-PF-DWC-Requester-Role: ROLE_CUSTOMER_ADMIN
{
"targetRole" : "ROLE_CUSTOMER_UPLOADER",
"targets" : [ "00000000-0000-0000-0000-000000000001" ]
}
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"allowedRoles" : [ "ROLE_CUSTOMER_UPLOADER" ],
"cognitoClientId" : "client-id-123",
"companyId" : "00000000-0000-0000-0000-000000000001",
"companyName" : "AI COM gmbh",
"contactEmail" : null,
"createdAt" : "2024-01-10T10:15:30Z",
"createdBy" : "creator@profiforms.de",
"createdByDisplay" : "creator@profiforms.de",
"deletedAt" : null,
"disabledAt" : null,
"id" : "00000000-0000-0000-0000-000000000010",
"lastAuthenticatedAt" : null,
"lastRotatedAt" : null,
"name" : "download integration",
"rotationInProgress" : false,
"rotationStartedAt" : null,
"scopedTargets" : {
"ROLE_CUSTOMER_UPLOADER" : [ "00000000-0000-0000-0000-000000000001" ]
},
"status" : "ACTIVE"
}
Response fields: see Technical access response fields.
Remove targets from technical access
Authentication: User authentication
Removing targets uses the same request shape as adding targets. Removing the final assignment is valid
and leaves an empty scope; the client can still authenticate, but target-dependent operations are denied.
Concurrent changes return HTTP 409, after which callers must reload the current assignments.
Endpoint and parameters
DELETE /v1/technical-access/{technicalAccessId}/targets
| Parameter | Description |
|---|---|
|
Technical access ID |
Request fields
| Path | Type | Description | Constraints |
|---|---|---|---|
targetRole |
String |
Technical role from which target assignments are removed |
Must not be null |
targets |
Array |
Non-empty array of target UUIDs to remove |
Must not be empty |
Example request
DELETE /v1/technical-access/00000000-0000-0000-0000-000000000010/targets HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-PF-DWC-Requester-Role: ROLE_CUSTOMER_ADMIN
{
"targetRole" : "ROLE_CUSTOMER_UPLOADER",
"targets" : [ "00000000-0000-0000-0000-000000000001" ]
}
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"allowedRoles" : [ "ROLE_CUSTOMER_UPLOADER" ],
"cognitoClientId" : "client-id-123",
"companyId" : "00000000-0000-0000-0000-000000000001",
"companyName" : "AI COM gmbh",
"contactEmail" : null,
"createdAt" : "2024-01-10T10:15:30Z",
"createdBy" : "creator@profiforms.de",
"createdByDisplay" : "creator@profiforms.de",
"deletedAt" : null,
"disabledAt" : null,
"id" : "00000000-0000-0000-0000-000000000010",
"lastAuthenticatedAt" : null,
"lastRotatedAt" : null,
"name" : "download integration",
"rotationInProgress" : false,
"rotationStartedAt" : null,
"scopedTargets" : {
"ROLE_CUSTOMER_UPLOADER" : [ "00000000-0000-0000-0000-000000000002" ]
},
"status" : "ACTIVE"
}
Response fields: see Technical access response fields.
Update technical access state
Authentication: User authentication
Status updates are handled separately from other technical-access metadata. The current lifecycle
allows switching between ACTIVE and INACTIVE.
Endpoint and parameters
PUT /v1/technical-access/{technicalAccessId}/state
| Parameter | Description |
|---|---|
|
Technical access ID |
Request fields
| Path | Type | Description | Constraints |
|---|---|---|---|
status |
String |
Target technical access status. Supported values: ACTIVE, INACTIVE |
Must not be null |
Example request
PUT /v1/technical-access/00000000-0000-0000-0000-000000000010/state HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-PF-DWC-Requester-Role: ROLE_CUSTOMER_ADMIN
{
"status" : "INACTIVE"
}
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"allowedRoles" : [ "ROLE_CUSTOMER_UPLOADER" ],
"cognitoClientId" : "client-id-123",
"companyId" : "00000000-0000-0000-0000-000000000001",
"companyName" : "AI COM gmbh",
"contactEmail" : null,
"createdAt" : "2024-01-10T10:15:30Z",
"createdBy" : "creator@profiforms.de",
"createdByDisplay" : "creator@profiforms.de",
"deletedAt" : null,
"disabledAt" : "2024-01-10T11:15:30Z",
"id" : "00000000-0000-0000-0000-000000000010",
"lastAuthenticatedAt" : null,
"lastRotatedAt" : null,
"name" : "download integration",
"rotationInProgress" : false,
"rotationStartedAt" : null,
"scopedTargets" : { },
"status" : "INACTIVE"
}
Response fields: see Technical access response fields.
Update technical access contact email
Authentication: User authentication
Updating the optional contact email is handled separately from display metadata because the value
affects workflow behaviour for technical uploaders. Sending null clears the configured email.
Endpoint and parameters
PUT /v1/technical-access/{technicalAccessId}/contact-email
| Parameter | Description |
|---|---|
|
Technical access ID |
Request fields
| Path | Type | Description | Constraints |
|---|---|---|---|
contactEmail |
String |
Optional contact email used for technical uploader notifications. Null clears the configured value |
Must be a well-formed email address |
Example request
PUT /v1/technical-access/00000000-0000-0000-0000-000000000010/contact-email HTTP/1.1
Content-Type: application/json;charset=UTF-8
X-PF-DWC-Requester-Role: ROLE_CUSTOMER_ADMIN
{
"contactEmail" : "integration@profiforms.de"
}
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"allowedRoles" : [ "ROLE_CUSTOMER_UPLOADER" ],
"cognitoClientId" : "client-id-123",
"companyId" : "00000000-0000-0000-0000-000000000001",
"companyName" : "AI COM gmbh",
"contactEmail" : "integration@profiforms.de",
"createdAt" : "2024-01-10T10:15:30Z",
"createdBy" : "creator@profiforms.de",
"createdByDisplay" : "creator@profiforms.de",
"deletedAt" : null,
"disabledAt" : null,
"id" : "00000000-0000-0000-0000-000000000010",
"lastAuthenticatedAt" : null,
"lastRotatedAt" : null,
"name" : "download integration",
"rotationInProgress" : false,
"rotationStartedAt" : null,
"scopedTargets" : { },
"status" : "ACTIVE"
}
Response fields: see Technical access response fields.
Delete technical access
Authentication: User authentication
Deleting a technical access removes its Cognito app client and marks the record as DELETED
for audit and authorization purposes. Deleted entries stay persisted, but they are hidden from the
normal list endpoint.
Endpoint and parameters
DELETE /v1/technical-access/{technicalAccessId}
| Parameter | Description |
|---|---|
|
Technical access ID |
Example request
DELETE /v1/technical-access/00000000-0000-0000-0000-000000000010 HTTP/1.1
X-PF-DWC-Requester-Role: ROLE_CUSTOMER_ADMIN
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"allowedRoles" : [ "ROLE_CUSTOMER_UPLOADER" ],
"cognitoClientId" : "client-id-123",
"companyId" : "00000000-0000-0000-0000-000000000001",
"companyName" : "AI COM gmbh",
"contactEmail" : null,
"createdAt" : "2024-01-10T10:15:30Z",
"createdBy" : "creator@profiforms.de",
"createdByDisplay" : "creator@profiforms.de",
"deletedAt" : "2024-01-10T11:15:30Z",
"disabledAt" : null,
"id" : "00000000-0000-0000-0000-000000000010",
"lastAuthenticatedAt" : null,
"lastRotatedAt" : null,
"name" : "download integration",
"rotationInProgress" : false,
"rotationStartedAt" : null,
"scopedTargets" : { },
"status" : "DELETED"
}
Response fields: see Technical access response fields.
Start staged secret rotation
Authentication: User authentication
Starting a secret rotation creates a new client secret for the existing Cognito app client and
keeps the old secret valid until the rotation is explicitly completed. The response contains the
new one-time secret and marks the technical access as rotationInProgress=true.
Endpoint and parameters
POST /v1/technical-access/{technicalAccessId}/rotate-secret
| Parameter | Description |
|---|---|
|
Technical access ID |
Example request
POST /v1/technical-access/00000000-0000-0000-0000-000000000010/rotate-secret HTTP/1.1
X-PF-DWC-Requester-Role: ROLE_CUSTOMER_ADMIN
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"oauth" : {
"clientId" : "client-id-123",
"clientSecret" : "rotated-secret-456",
"grantType" : "client_credentials",
"issuer" : "https://cognito-idp.eu-central-1.amazonaws.com/eu-central-1_testPoolId",
"scopeSeparator" : " ",
"supportedScopes" : [ "tower/customer-uploader" ],
"tokenEndpointAuthMethod" : "client_secret_basic",
"tokenUrl" : "https://tower-auth.dev.profiforms-dev.de/oauth2/token"
},
"technicalAccess" : {
"allowedRoles" : [ "ROLE_CUSTOMER_UPLOADER" ],
"cognitoClientId" : "client-id-123",
"companyId" : "00000000-0000-0000-0000-000000000001",
"companyName" : "AI COM gmbh",
"contactEmail" : null,
"createdAt" : "2024-01-10T10:15:30Z",
"createdBy" : "creator@profiforms.de",
"createdByDisplay" : "creator@profiforms.de",
"deletedAt" : null,
"disabledAt" : null,
"id" : "00000000-0000-0000-0000-000000000010",
"lastAuthenticatedAt" : null,
"lastRotatedAt" : null,
"name" : "download integration",
"rotationInProgress" : true,
"rotationStartedAt" : "2024-01-10T11:15:30Z",
"scopedTargets" : { },
"status" : "ACTIVE"
}
}
Response fields
| Path | Type | Description |
|---|---|---|
|
|
Provisioned Cognito app client ID |
|
|
One-time newly generated Cognito app client secret |
|
|
JWT issuer for the technical access token |
|
|
OAuth token endpoint for client credentials exchange |
|
|
Supported OAuth grant type |
|
|
Authentication method at the token endpoint |
|
|
Separator to use when requesting multiple scopes |
|
|
OAuth scopes provisioned for this technical access |
|
|
Technical access ID |
|
|
Owning company ID |
|
|
Owning company display name |
|
|
Technical access display name |
|
|
Optional contact email used for technical uploader notifications |
|
|
Technical access status |
|
|
Provisioned Cognito app client ID |
|
|
Allowed roles for this technical access |
|
|
Target assignments grouped by technical role |
|
|
User who created the technical access |
|
|
Display value for the technical access creator. |
|
|
Technical access creation timestamp |
|
|
Last successful client authentication timestamp |
|
|
Last completed secret rotation timestamp |
|
|
Whether a staged secret rotation is currently in progress |
|
|
Timestamp when the current staged secret rotation was started |
|
|
Disable timestamp |
|
|
Delete timestamp |
Complete staged secret rotation
Authentication: User authentication
Completing the staged rotation invalidates the previous secret and clears the pending rotation marker on the technical access. After this step the old secret can no longer be used for token exchange.
Endpoint and parameters
POST /v1/technical-access/{technicalAccessId}/rotate-secret/complete
| Parameter | Description |
|---|---|
|
Technical access ID |
Example request
POST /v1/technical-access/00000000-0000-0000-0000-000000000010/rotate-secret/complete HTTP/1.1
X-PF-DWC-Requester-Role: ROLE_CUSTOMER_ADMIN
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"allowedRoles" : [ "ROLE_CUSTOMER_UPLOADER" ],
"cognitoClientId" : "client-id-123",
"companyId" : "00000000-0000-0000-0000-000000000001",
"companyName" : "AI COM gmbh",
"contactEmail" : null,
"createdAt" : "2024-01-10T10:15:30Z",
"createdBy" : "creator@profiforms.de",
"createdByDisplay" : "creator@profiforms.de",
"deletedAt" : null,
"disabledAt" : null,
"id" : "00000000-0000-0000-0000-000000000010",
"lastAuthenticatedAt" : null,
"lastRotatedAt" : "2024-01-10T12:15:30Z",
"name" : "download integration",
"rotationInProgress" : false,
"rotationStartedAt" : null,
"scopedTargets" : { },
"status" : "ACTIVE"
}
Response fields: see Technical access response fields.
User management error codes
| Code | Description |
|---|---|
de.profiforms.docxworld.connect.usermanagement.error.client.access_denied |
Access denied |
de.profiforms.docxworld.connect.usermanagement.error.client.company_not_exists |
Company not exists exception |
de.profiforms.docxworld.connect.usermanagement.error.client.concurrent_modification |
Resource was modified concurrently |
de.profiforms.docxworld.connect.usermanagement.error.client.error |
Client error |
de.profiforms.docxworld.connect.usermanagement.error.client.group_not_exists |
Group not exists exception |
de.profiforms.docxworld.connect.usermanagement.error.client.initial_password_reset_not_allowed |
Initial password reset not allowed. |
de.profiforms.docxworld.connect.usermanagement.error.client.invalid_parameter_exception |
Invalid parameter exception. |
de.profiforms.docxworld.connect.usermanagement.error.client.invalid_sort_argument |
Invalid sort argument exception |
de.profiforms.docxworld.connect.usermanagement.error.client.malformed_request |
Malformed JSON request |
de.profiforms.docxworld.connect.usermanagement.error.client.role_header_missing |
Required request header is missing |
de.profiforms.docxworld.connect.usermanagement.error.client.role_not_assignable |
User can not be assigned to this role |
de.profiforms.docxworld.connect.usermanagement.error.client.role_not_assigned |
User has not assigned requested role |
de.profiforms.docxworld.connect.usermanagement.error.client.role_not_exists |
Public role not exists exception |
de.profiforms.docxworld.connect.usermanagement.error.client.targets_deleted |
Targets belong to a deleted workflow |
de.profiforms.docxworld.connect.usermanagement.error.client.targets_not_approvable |
Targets are not approvable |
de.profiforms.docxworld.connect.usermanagement.error.client.targets_not_assigned |
Targets are not assigned |
de.profiforms.docxworld.connect.usermanagement.error.client.technical_access_limit_exceeded |
Technical access limit exceeded |
de.profiforms.docxworld.connect.usermanagement.error.client.technical_access_not_exists |
Technical access not exists exception |
de.profiforms.docxworld.connect.usermanagement.error.client.technical_access_role_not_assigned |
Technical access has not assigned requested role |
de.profiforms.docxworld.connect.usermanagement.error.client.technical_access_role_not_supported |
Technical access role not supported |
de.profiforms.docxworld.connect.usermanagement.error.client.technical_access_rotation_already_in_progress |
Technical access secret rotation already in progress |
de.profiforms.docxworld.connect.usermanagement.error.client.technical_access_rotation_not_in_progress |
Technical access secret rotation not in progress |
de.profiforms.docxworld.connect.usermanagement.error.client.technical_access_status_not_supported |
Technical access status not supported |
de.profiforms.docxworld.connect.usermanagement.error.client.user_already_exists |
User already exists exception |
de.profiforms.docxworld.connect.usermanagement.error.client.user_not_exists |
User not exists exception |
de.profiforms.docxworld.connect.usermanagement.error.client.user_still_active |
User must be deactivated before deletion |
de.profiforms.docxworld.connect.usermanagement.error.client.validation |
Validation error |
de.profiforms.docxworld.connect.usermanagement.error.server.unexpected_internal |
Unexpected internal error |
Upload service
Transferring a file
-
Request URLs with Create upload URLs. For a small file, the example below uses no optional upload features.
-
Inspect
uploadUrls: one URL means a single upload; several URLs mean a multipart upload. The server chooses multipart only when the caller supportsMULTIPARTand the declared file size exceeds the configured threshold (100 MiB by default). -
For a single upload, send the entire file as the raw body of an HTTP
PUTto the returned URL, with every returnedheadersentry unchanged. -
For multipart, split the file into exactly as many ordered parts as there are URLs. Part numbers start at 1; only the final part may be smaller than 5 MiB. Send each part as the raw body of a
PUTto its corresponding URL. Preserve theETagresponse header from each successful part upload, including its quotes. -
After all multipart parts succeed, call Complete multipart upload with the upload
idasprocessIdand the part-number/ETag map. Single uploads do not require this call. -
S3 events start further processing asynchronously. An authorized human caller can inspect the upload through Get upload or List uploads; a successful S3 transfer alone does not confirm workflow success.
Use the returned presigned URLs as provided, without adding the API Authorization or requester-role headers to S3 requests.
The URLs in the examples are illustrative. Actual URLs are temporary; use the URLs returned for your request.
Keep the upload identifier when recovering from a failed transfer. A new URL request starts a new upload if the re-upload checks permit it; referenceId is not an HTTP idempotency key.
Reference reuse is checked when requesting URLs and again after S3 transfer. A prior upload in a non-reuploadable state rejects reuse. Both checks are scoped to the authenticated uploader identity.
For client-side encryption, follow Client-side encryption request.
Upload
An upload sends a file to a target for workflow processing. Creating upload URLs does not transfer the file or mean that processing has completed.
The caller needs upload access to the target; a Technical Access uses the tower/customer-uploader scope and its assigned targets.
Create upload URLs
A PUT /v1/uploads request creates an upload and returns its presigned S3 URLs.
Authentication: User authentication, Technical authentication
Endpoint and parameters
PUT /v1/uploads
Request fields
| Path | Type | Description | Constraints |
|---|---|---|---|
supportedUploadFeatures |
Array |
Optional feature array; defaults to [] when omitted. Allowed values: MULTIPART - multipart support; used when fileSize exceeds the configured threshold (100 MiB by default); CS_CONTENT_ENCRYPTION - if client-side encryption is used |
|
targetId |
String (UUID) |
Target identifier. The caller must have upload access to this target. |
Must not be null |
referenceId |
String |
Optional caller reference, at most 100 characters; omitted or null means no reference-based duplicate check. Duplicate detection is scoped to the authenticated uploader identity |
Size must be between 0 and 100 inclusive |
jobCustomerReference1 |
String |
Optional customer reference 1, at most 100 characters; omitted or null means no value |
Size must be between 0 and 100 inclusive |
jobCustomerReference2 |
String |
Optional customer reference 2, at most 100 characters; omitted or null means no value |
Size must be between 0 and 100 inclusive |
jobCustomerReference3 |
String |
Optional customer reference 3, at most 100 characters; omitted or null means no value |
Size must be between 0 and 100 inclusive |
jobCustomerReference4 |
String |
Optional customer reference 4, at most 100 characters; omitted or null means no value |
Size must be between 0 and 100 inclusive |
jobCustomerReference5 |
String |
Optional customer reference 5, at most 100 characters; omitted or null means no value |
Size must be between 0 and 100 inclusive |
jobCustomerReference6 |
String |
Optional customer reference 6, at most 100 characters; omitted or null means no value |
Size must be between 0 and 100 inclusive |
metadata |
Object |
Optional additional metadata as string key/value pairs; defaults to {} when omitted, null is rejected. At most 20 entries; keys must match [A-Za-z0-9._-]+ (max 128 chars) and be unique ignoring case; values must be non-blank, free of control characters (max 1024 chars); the whole map is limited by the S3 user-metadata size of 2048 bytes |
|
priority |
String |
Priority; defaults to NORMAL when omitted. Allowed values: NORMAL, HI |
|
fileName |
String |
Required non-blank original file name |
Must not be blank |
fileSize |
Number (integer) |
Optional file size in bytes; needed to select multipart. Omitted or null keeps single upload |
|
b64ClientWrapKey |
String |
Optional Base64-encoded public key for wrapping the data key. Supply together with clientWrapKeyEncryptionAlg |
|
clientWrapKeyEncryptionAlg |
String |
Optional public-key wrapping algorithm; supply together with b64ClientWrapKey. Allowed values: RSA/ECB/OAEPWithSHA-256AndMGF1Padding |
|
dataEncryptionAlgorithm |
String |
Client-side data encryption algorithm; defaults to AES/GCM/NoPadding when omitted. Allowed values: AES/GCM/NoPadding |
|
dataKeyProviderType |
String |
Client-side data-key provider; defaults to DOCXWORLD when omitted. Allowed values: DOCXWORLD - keys are generated and stored on the docxworld side; KMS - keys are generated and stored in aws KMS service |
Example request
PUT /v1/uploads HTTP/1.1
Content-Type: application/json;charset=UTF8
{
"b64ClientWrapKey" : null,
"clientWrapKeyEncryptionAlg" : null,
"dataEncryptionAlgorithm" : "AES/GCM/NoPadding",
"dataKeyProviderType" : "DOCXWORLD",
"fileName" : "test.txt",
"fileSize" : 100,
"jobCustomerReference1" : null,
"jobCustomerReference2" : null,
"jobCustomerReference3" : null,
"jobCustomerReference4" : null,
"jobCustomerReference5" : null,
"jobCustomerReference6" : null,
"metadata" : { },
"priority" : "NORMAL",
"referenceId" : "2341234345",
"supportedUploadFeatures" : [ ],
"targetId" : "a84397c4-fadd-4fb7-9145-7d580646cc86"
}
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"b64DataKey" : null,
"b64Iv" : null,
"b64encryptedDataKey" : null,
"clientWrapKeyEncryptionAlg" : null,
"dataEncryptionAlgorithm" : null,
"headers" : {
"x-amz-meta-userId" : "technical-client",
"x-amz-meta-referenceId" : "MjM0MTIzNDM0NQ==",
"x-amz-meta-targetId" : "a84397c4-fadd-4fb7-9145-7d580646cc86",
"x-amz-meta-contractNumber" : "1231231234",
"x-amz-meta-id" : "5c636c12-53de-44cb-a1e1-a22233253e1e",
"x-amz-meta-jobPriority" : "NORMAL",
"x-amz-meta-uploaderType" : "TECHNICAL_ACCESS",
"x-amz-meta-fileName" : "dGVzdC50eHQ="
},
"id" : "5c636c12-53de-44cb-a1e1-a22233253e1e",
"jobAlreadyExists" : false,
"s3Key" : "5c636c12-53de-44cb-a1e1-a22233253e1e",
"uploadUrls" : [ "https://s3.aws/upload?X-Amz-Signature=example" ]
}
In the case of Single-Upload, the response will contain a set of headers, that have to be included as headers in the file-upload request to S3. For the Chunked-Upload, no headers have to be used.
Response fields
| Path | Type | Description |
|---|---|---|
|
|
Upload id |
|
|
Headers to replay unchanged when uploading the complete file to S3; empty for multipart |
|
|
Presigned HTTP PUT URLs; one URL for single upload, otherwise ordered one-based multipart URLs |
|
|
S3 key |
|
|
True when the same uploader already has an upload with this reference ID and its state permits re-upload; otherwise false. A non-reuploadable match rejects the request |
|
|
Base64-encoded data key wrapped with the supplied public key; null when no wrapping key is supplied |
|
|
Base64-encoded initialization vector for client-side encryption; null without encryption |
|
|
Base64-encoded plaintext data key for client-side encryption when no wrapping key is supplied; null without encryption |
|
|
Algorithm that should be used to wrap the data key |
|
|
Algorithm that should be used to encrypt the data |
Multipart example
This request declares multipart support for a 150 MiB file. The response returns two numbered part URLs. The request and response use the same fields as the single-upload example.
PUT /v1/uploads HTTP/1.1
Content-Type: application/json;charset=UTF8
{
"b64ClientWrapKey" : null,
"clientWrapKeyEncryptionAlg" : null,
"dataEncryptionAlgorithm" : "AES/GCM/NoPadding",
"dataKeyProviderType" : "DOCXWORLD",
"fileName" : "large.pdf",
"fileSize" : 157286400,
"jobCustomerReference1" : null,
"jobCustomerReference2" : null,
"jobCustomerReference3" : null,
"jobCustomerReference4" : null,
"jobCustomerReference5" : null,
"jobCustomerReference6" : null,
"metadata" : { },
"priority" : "NORMAL",
"referenceId" : "2341234345",
"supportedUploadFeatures" : [ "MULTIPART" ],
"targetId" : "a84397c4-fadd-4fb7-9145-7d580646cc86"
}
HTTP/1.1 200 OK
Content-Type: application/json
{
"b64DataKey" : null,
"b64Iv" : null,
"b64encryptedDataKey" : null,
"clientWrapKeyEncryptionAlg" : null,
"dataEncryptionAlgorithm" : null,
"headers" : { },
"id" : "5c636c12-53de-44cb-a1e1-a22233253e1e",
"jobAlreadyExists" : false,
"s3Key" : "5c636c12-53de-44cb-a1e1-a22233253e1e",
"uploadUrls" : [ "https://s3.aws/upload?partNumber=1&uploadId=example&X-Amz-Signature=example", "https://s3.aws/upload?partNumber=2&uploadId=example&X-Amz-Signature=example" ]
}
Client-side encryption request
This variant adds CS_CONTENT_ENCRYPTION to the supported features. The target must allow encryption.
The request uses the default DOCXWORLD key provider and AES/GCM/NoPadding algorithm.
PUT /v1/uploads HTTP/1.1
Content-Type: application/json;charset=UTF8
{
"b64ClientWrapKey" : null,
"clientWrapKeyEncryptionAlg" : null,
"dataEncryptionAlgorithm" : "AES/GCM/NoPadding",
"dataKeyProviderType" : "DOCXWORLD",
"fileName" : "test.txt",
"fileSize" : 100,
"jobCustomerReference1" : null,
"jobCustomerReference2" : null,
"jobCustomerReference3" : null,
"jobCustomerReference4" : null,
"jobCustomerReference5" : null,
"jobCustomerReference6" : null,
"metadata" : { },
"priority" : "NORMAL",
"referenceId" : null,
"supportedUploadFeatures" : [ "CS_CONTENT_ENCRYPTION" ],
"targetId" : "a84397c4-fadd-4fb7-9145-7d580646cc86"
}
For this request, read b64DataKey and b64Iv from the actual response, decode them from Base64, and encrypt the file using dataEncryptionAlgorithm before sending it to S3.
Replay the returned S3 headers unchanged. The transfer sequence is otherwise the same as for a single or multipart upload.
To receive a wrapped key, provide both b64ClientWrapKey and clientWrapKeyEncryptionAlg; then use b64encryptedDataKey instead of b64DataKey and unwrap it with your private key.
Providing only one wrapping-key field is rejected.
Complete multipart upload
Call this operation after every multipart part has been uploaded successfully. Send a map whose keys are
the part numbers and whose values are the corresponding S3 ETag response headers, including their quotes.
A single upload does not require completion.
Authentication: User authentication, Technical authentication
Endpoint and parameters
PUT /v1/uploads/complete
Request fields
| Path | Type | Description | Constraints |
|---|---|---|---|
processId |
String |
Required non-blank upload id received when requesting the URLs |
Must not be blank |
etags |
Object |
Part-number/ETag map; defaults to {} when omitted. Multipart completion requires every part numbered from 1, with the quoted ETag returned by S3 |
Example request
PUT /v1/uploads/complete HTTP/1.1
Content-Type: application/json;charset=UTF8
{
"etags" : {
"1" : "\"part-1-etag\"",
"2" : "\"part-2-etag\""
},
"processId" : "5c636c12-53de-44cb-a1e1-a22233253e1e"
}
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"message" : "upload completed"
}
Response fields
| Path | Type | Description |
|---|---|---|
|
|
The message about the successful completion |
Get upload
Authentication: User authentication
Example request
GET /v1/uploads/processId HTTP/1.1
X-PF-DWC-Requester-Role: ROLE_PF_ADMIN
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"approvalCancelable" : false,
"approvalState" : "NOT_REQUIRED",
"approverDeleted" : false,
"approverEmail" : null,
"approverId" : null,
"approverName" : null,
"companyId" : "00000000-0000-0000-0000-111111111111",
"created" : "2007-12-03T10:15:30Z",
"customerContract" : "customerContract",
"customerNumber" : "customerNumber",
"downloads" : [ {
"id" : "processId-download-1",
"type" : "RESULT",
"created" : "2007-12-03T10:15:30Z",
"downloaded" : "2007-12-03T11:15:30Z",
"downloadedBy" : "downloadUser123",
"downloadedByClient" : "TestClient/1.0",
"downloadedReferenceId" : "ref-processId-download-1"
} ],
"events" : [ {
"created" : "2007-12-03T10:15:30Z",
"action" : "SCHEDULED"
}, {
"created" : "2007-12-03T10:15:30Z",
"action" : "UPLOADED"
} ],
"fileName" : "fileName",
"fileSize" : 100,
"idInSpooler" : null,
"jobCustomerReference1" : "jobCustomerReference1",
"jobCustomerReference2" : "jobCustomerReference2",
"jobCustomerReference3" : "jobCustomerReference3",
"jobCustomerReference4" : "jobCustomerReference4",
"jobCustomerReference5" : "jobCustomerReference5",
"jobCustomerReference6" : "jobCustomerReference6",
"metadata" : { },
"processId" : "processId",
"referenceId" : "referenceId",
"reviewRevertable" : false,
"targetAbbreviation" : "targetAbbreviation",
"targetId" : "16e7769c-0ce5-3de7-a39b-179deed0c396",
"targetName" : "targetName",
"uploaderDeleted" : false,
"uploaderEmail" : "userIdEmail",
"uploaderId" : "userId",
"uploaderName" : "userIdFirstName userIdLastName",
"uploaderType" : "USER",
"userId" : "userId"
}
Response fields
| Path | Type | Description |
|---|---|---|
|
|
Upload id |
|
|
Timestamp of upload |
|
|
upload target |
|
|
upload target name |
|
|
upload target abbreviation |
|
|
Reference-Id |
|
|
Customer upload reference 1 |
|
|
Customer upload reference 2 |
|
|
Customer upload reference 3 |
|
|
Customer upload reference 4 |
|
|
Customer upload reference 5 |
|
|
Customer upload reference 6 |
|
|
Additional metadata provided when the upload was created |
|
|
Filesize |
|
|
Filename |
|
|
Upload history entries with created (UTC ISO-8601 timestamp) and action. Allowed actions [SCHEDULED, UPLOADED, ERROR, DELETED_BY_S3, SPOOLER_TRANSFER_SUCCESS, SPOOLER_TRANSFER_RETRIES, SPOOLER_TRANSFER_FAIL, PDF_VALIDATION_SUCCESS, PDF_VALIDATION_REJECTED, WAITING_APPROVAL, WAITING_FOR_COLLECT, WAITING_FOR_TRANSFER, COLLECTED, APPROVAL_SUCCESS, APPROVAL_REJECTED, APPROVAL_CANCELLED, APPROVAL_EXPIRED, DOWNLOAD_TRANSFER_SUCCESS, DOWNLOAD_TRANSFER_RETRIES, DOWNLOAD_TRANSFER_FAIL, DOWNLOAD_ACKNOWLEDGED, EMAIL_TRANSFER_SUCCESS, EMAIL_TRANSFER_FAIL] |
|
|
Approval-State. Allowed Values [REQUIRED, NOT_REQUIRED, WAITING_APPROVAL, APPROVED, REJECTED, CANCELLED, EXPIRED] |
|
|
True if the upload currently has at least one waiting approval step that can be cancelled |
|
|
Id of the approver |
|
|
Name of the approver |
|
|
EMail of the approver |
|
|
True if the approver was deleted and their personal data anonymized |
|
|
Authenticated uploader subject id |
|
|
Uploader type. Allowed values [USER, TECHNICAL_ACCESS] |
|
|
Synchronized uploader display name |
|
|
Uploader email; for a technical access the configured contact email, if any |
|
|
True if the uploader was deleted: an anonymized user, or a deleted technical access |
|
|
List of downloads for this upload |
|
|
File downloadable? |
|
|
Expected File-Format. Allowed Values [PDF, UNKNOWN] |
|
|
Contract number |
|
|
User id |
|
|
Company id |
|
|
Id in spooler |
|
|
Customer number |
Cancel upload approval
A PUT request is used to cancel the currently active approval step of an upload.
This endpoint does not delete the upload itself and does not roll back previous workflow steps.
It can only be called while the upload is still in the WAITING_APPROVAL state.
If the approval was already decided, expired, cancelled before, or no approval task exists for the upload, the request is rejected.
Authentication: User authentication, Technical authentication
Request fields
| Path | Type | Description | Constraints |
|---|---|---|---|
message |
String |
Optional approval-cancellation message, at most 255 characters; omitted or null means no message |
Size must be between 0 and 255 inclusive |
Example request
PUT /v1/uploads/processId/cancel HTTP/1.1
Content-Type: application/json;charset=UTF8
{
"message" : "cancel message"
}
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"approvalCancelable" : false,
"approvalState" : "CANCELLED",
"approvalTaskMessage" : null,
"approverDeleted" : false,
"approverEmail" : null,
"approverId" : null,
"approverName" : null,
"created" : "2007-12-03T10:15:30Z",
"downloadable" : false,
"downloads" : [ ],
"expectedFileFormat" : "UNKNOWN",
"fileName" : "fileName",
"hasApprovalTaskMessage" : false,
"jobState" : "SCHEDULED",
"metadata" : { },
"pdfValidationState" : "NOT_REQUIRED",
"processId" : "processId",
"referenceId" : "referenceId",
"targetAbbreviation" : "targetAbbreviation",
"targetId" : "16e7769c-0ce5-3de7-a39b-179deed0c396",
"targetName" : "targetName",
"uploaderDeleted" : false,
"uploaderEmail" : "userIdEmail",
"uploaderId" : "technical-client",
"uploaderName" : "userIdFirstName userIdLastName",
"uploaderType" : "TECHNICAL_ACCESS"
}
Response fields
| Path | Type | Description |
|---|---|---|
|
|
Upload id |
|
|
Timestamp of upload |
|
|
upload target |
|
|
upload target name |
|
|
upload target abbreviation |
|
|
Reference-Id |
|
|
Filename |
|
|
Job-State. Allowed Values [SCHEDULED, UPLOADED, TRANSFER_FAILED, TRANSFERRED, DUPLICATED, DELETED, WAITING_FOR_COLLECT, COLLECTED] |
|
|
Approval-State. Allowed Values [REQUIRED, NOT_REQUIRED, WAITING_APPROVAL, APPROVED, REJECTED, CANCELLED, EXPIRED] |
|
|
True if the upload currently has at least one waiting approval step that can be cancelled |
|
|
Id of the approver |
|
|
Name of the approver |
|
|
EMail of the approver |
|
|
True if the approver was deleted and their personal data anonymized |
|
|
Authenticated uploader subject id |
|
|
Uploader type. Allowed values [USER, TECHNICAL_ACCESS] |
|
|
Synchronized uploader display name |
|
|
Uploader email; for a technical access the configured contact email, if any |
|
|
True if the uploader was deleted: an anonymized user, or a deleted technical access |
|
|
Additional metadata provided when the upload was created |
|
|
PDF-Validation-State. Allowed Values [NOT_REQUIRED, WAITING_VALIDATION, VALIDATED, REJECTED] |
|
|
Expected File-Format. Allowed Values [PDF, UNKNOWN] |
|
|
List of downloads for this upload |
|
|
File downloadable? |
|
|
Latest approval-task message |
|
|
Approval-Task message provided? |
|
|
Download id |
|
|
Download type |
|
|
Download creation timestamp |
|
|
Download timestamp |
|
|
User who downloaded the file |
|
|
Client that downloaded the file |
|
|
Download reference id |
Get upload file link
Authentication: User authentication
Example request
GET /v1/uploads/processId/generate-link HTTP/1.1
X-PF-DWC-Requester-Role: ROLE_CUSTOMER_UPLOADER
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"downloadLink" : "https://s3.aws/123",
"id" : "processId"
}
Response fields
| Path | Type | Description |
|---|---|---|
|
|
Download link |
|
|
Upload ID |
List uploads
Paged list; paging, sorting and the page wrapper are described in Paged lists.
Authentication: User authentication
Endpoint and parameters
GET /v1/uploads
| Parameter | Description |
|---|---|
|
Page number to return. |
|
Page size. Default 35 |
|
Sorting in format [property][,ASC|DESC]. Allowed values: [customerContract, jobState, created, companyId, customerNumber, targetName, targetId, approvalState]. Allowed direction: [ASC, DESC]. Default direction is ASC. |
|
Filter by company-id |
|
Filter by customer number |
|
Filter by customer contract number |
|
Filter by target ID |
|
Filter by target name; matches a part of the name, ignoring case |
|
Filter by multiple job states. Can be specified multiple times. Allowed values [SCHEDULED, UPLOADED, TRANSFER_FAILED, TRANSFERRED, DUPLICATED, DELETED, WAITING_FOR_COLLECT, COLLECTED] |
|
Filter by multiple approval states. Can be specified multiple times. Allowed values [REQUIRED, NOT_REQUIRED, WAITING_APPROVAL, APPROVED, REJECTED, CANCELLED, EXPIRED] |
|
Free-text search across file name, target name, target ID, and process ID |
|
Filter by the expected file format. Allowed values [PDF, UNKNOWN] |
|
Filter by created date: uploads created after the specified date |
|
Filter by created date: uploads created before the specified date |
Example request
GET /v1/uploads?sort=jobState%2CDESC&sort=customerContract&page=0&size=10&jobStates=DUPLICATED&approvalStates=NOT_REQUIRED&freeSearch=fileName&startPeriod=2000-12-24T09%3A38%3A40.982Z&endPeriod=2100-12-24T09%3A38%3A40.982Z&customerContract=contract&targetId=16e7769c-0ce5-3de7-a39b-179deed0c396&targetName=targetName&fileFormat=UNKNOWN HTTP/1.1
X-PF-DWC-Requester-Role: ROLE_CUSTOMER_UPLOADER
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"content" : [ {
"approvalCancelable" : false,
"approvalState" : "NOT_REQUIRED",
"approvalTaskMessage" : null,
"approverDeleted" : false,
"approverEmail" : null,
"approverId" : null,
"approverName" : null,
"created" : "2007-12-03T10:15:30Z",
"downloadable" : false,
"downloads" : [ {
"id" : "jobId-download-1",
"type" : "RESULT",
"created" : "2007-12-03T10:15:30Z",
"downloaded" : "2007-12-03T11:15:30Z",
"downloadedBy" : "downloadUser123",
"downloadedByClient" : "TestClient/1.0",
"downloadedReferenceId" : "ref-jobId-download-1"
} ],
"expectedFileFormat" : "UNKNOWN",
"fileName" : "fileName",
"hasApprovalTaskMessage" : false,
"jobState" : "DUPLICATED",
"metadata" : { },
"pdfValidationState" : "NOT_REQUIRED",
"processId" : "jobId",
"referenceId" : "referenceId",
"targetAbbreviation" : "targetAbbreviation",
"targetId" : "16e7769c-0ce5-3de7-a39b-179deed0c396",
"targetName" : "targetName",
"uploaderDeleted" : false,
"uploaderEmail" : "userIdEmail",
"uploaderId" : "userId",
"uploaderName" : "userIdFirstName userIdLastName",
"uploaderType" : "USER"
}, {
"approvalCancelable" : false,
"approvalState" : "NOT_REQUIRED",
"approvalTaskMessage" : null,
"approverDeleted" : false,
"approverEmail" : null,
"approverId" : null,
"approverName" : null,
"created" : "2007-12-03T10:15:30Z",
"downloadable" : false,
"downloads" : [ ],
"expectedFileFormat" : "UNKNOWN",
"fileName" : "fileName2",
"hasApprovalTaskMessage" : false,
"jobState" : "DUPLICATED",
"metadata" : { },
"pdfValidationState" : "NOT_REQUIRED",
"processId" : "jobId2",
"referenceId" : "referenceId2",
"targetAbbreviation" : "targetAbbreviation",
"targetId" : "16e7769c-0ce5-3de7-a39b-179deed0c396",
"targetName" : "targetName",
"uploaderDeleted" : false,
"uploaderEmail" : "userIdEmail",
"uploaderId" : "userId",
"uploaderName" : "userIdFirstName userIdLastName",
"uploaderType" : "USER"
} ],
"totalElements" : 2,
"totalPages" : 1,
"last" : true,
"first" : true,
"numberOfElements" : 2,
"size" : 10,
"number" : 0,
"sort" : [ {
"property" : "jobState",
"direction" : "DESC"
}, {
"property" : "customerContract",
"direction" : "ASC"
} ]
}
Response fields
| Path | Type | Description |
|---|---|---|
|
|
Upload id |
|
|
Timestamp of upload |
|
|
upload target |
|
|
upload target name |
|
|
upload target abbreviation |
|
|
Reference-Id |
|
|
Filename |
|
|
Job-State. Allowed Values [SCHEDULED, UPLOADED, TRANSFER_FAILED, TRANSFERRED, DUPLICATED, DELETED, WAITING_FOR_COLLECT, COLLECTED] |
|
|
Approval-State. Allowed Values [REQUIRED, NOT_REQUIRED, WAITING_APPROVAL, APPROVED, REJECTED, CANCELLED, EXPIRED] |
|
|
True if the upload currently has at least one waiting approval step that can be cancelled |
|
|
Id of the approver |
|
|
Name of the approver |
|
|
EMail of the approver |
|
|
True if the approver was deleted and their personal data anonymized |
|
|
Authenticated uploader subject id |
|
|
Uploader type. Allowed values [USER, TECHNICAL_ACCESS] |
|
|
Synchronized uploader display name |
|
|
Uploader email; for a technical access the configured contact email, if any |
|
|
True if the uploader was deleted: an anonymized user, or a deleted technical access |
|
|
Additional metadata provided when the upload was created |
|
|
PDF-Validation-State. Allowed Values [NOT_REQUIRED, WAITING_VALIDATION, VALIDATED, REJECTED] |
|
|
Expected File-Format. Allowed Values [PDF, UNKNOWN] |
|
|
List of downloads for this upload |
|
|
File downloadable? |
|
|
Latest approval-task message |
|
|
Approval-Task message provided? |
|
|
Download id |
|
|
Download type |
|
|
Download creation timestamp |
|
|
Download timestamp |
|
|
User who downloaded the file |
|
|
Client that downloaded the file |
|
|
Download reference id |
Count the uploads of a company
Uploads of one company per month, week and day, for Profiforms administrators. Every period is present, with 0
where nothing was uploaded; the last entry of each list is the period still running.
Authentication: User authentication
Parameters
| Parameter | Description |
|---|---|
|
Company whose uploads are counted |
|
Narrows the count to one contract of the company |
|
Narrows the count to one target of the company, that is to one workflow |
|
Narrows the count to the uploads of one technical access of the company, given by its id; at most one of customerContract, targetId and technicalAccessId |
Example request
GET /v1/uploads/statistics?companyId=00000000-0000-0000-0000-111111111111 HTTP/1.1
X-PF-DWC-Requester-Role: ROLE_PF_ADMIN
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"months" : [ {
"start" : "2025-11-01",
"uploads" : 1,
"bytes" : 1048576,
"byOrigin" : {
"user" : 0,
"technicalAccess" : 1
},
"byApproval" : {
"notRequired" : 0,
"open" : 0,
"approved" : 1,
"rejected" : 0,
"cancelled" : 0
}
}, {
"start" : "2025-12-01",
"uploads" : 2,
"bytes" : 2097152,
"byOrigin" : {
"user" : 1,
"technicalAccess" : 1
},
"byApproval" : {
"notRequired" : 1,
"open" : 0,
"approved" : 1,
"rejected" : 0,
"cancelled" : 0
}
}, {
"start" : "2026-01-01",
"uploads" : 3,
"bytes" : 3145728,
"byOrigin" : {
"user" : 2,
"technicalAccess" : 1
},
"byApproval" : {
"notRequired" : 2,
"open" : 0,
"approved" : 1,
"rejected" : 0,
"cancelled" : 0
}
}, {
"start" : "2026-02-01",
"uploads" : 4,
"bytes" : 4194304,
"byOrigin" : {
"user" : 3,
"technicalAccess" : 1
},
"byApproval" : {
"notRequired" : 3,
"open" : 0,
"approved" : 1,
"rejected" : 0,
"cancelled" : 0
}
}, {
"start" : "2026-03-01",
"uploads" : 5,
"bytes" : 5242880,
"byOrigin" : {
"user" : 4,
"technicalAccess" : 1
},
"byApproval" : {
"notRequired" : 4,
"open" : 0,
"approved" : 1,
"rejected" : 0,
"cancelled" : 0
}
}, {
"start" : "2026-04-01",
"uploads" : 6,
"bytes" : 6291456,
"byOrigin" : {
"user" : 5,
"technicalAccess" : 1
},
"byApproval" : {
"notRequired" : 5,
"open" : 0,
"approved" : 1,
"rejected" : 0,
"cancelled" : 0
}
}, {
"start" : "2026-05-01",
"uploads" : 7,
"bytes" : 7340032,
"byOrigin" : {
"user" : 6,
"technicalAccess" : 1
},
"byApproval" : {
"notRequired" : 6,
"open" : 0,
"approved" : 1,
"rejected" : 0,
"cancelled" : 0
}
}, {
"start" : "2026-06-01",
"uploads" : 8,
"bytes" : 8388608,
"byOrigin" : {
"user" : 7,
"technicalAccess" : 1
},
"byApproval" : {
"notRequired" : 7,
"open" : 0,
"approved" : 1,
"rejected" : 0,
"cancelled" : 0
}
}, {
"start" : "2026-07-01",
"uploads" : 9,
"bytes" : 9437184,
"byOrigin" : {
"user" : 8,
"technicalAccess" : 1
},
"byApproval" : {
"notRequired" : 8,
"open" : 0,
"approved" : 1,
"rejected" : 0,
"cancelled" : 0
}
}, {
"start" : "2026-08-01",
"uploads" : 10,
"bytes" : 10485760,
"byOrigin" : {
"user" : 9,
"technicalAccess" : 1
},
"byApproval" : {
"notRequired" : 9,
"open" : 0,
"approved" : 1,
"rejected" : 0,
"cancelled" : 0
}
}, {
"start" : "2026-09-01",
"uploads" : 11,
"bytes" : 11534336,
"byOrigin" : {
"user" : 10,
"technicalAccess" : 1
},
"byApproval" : {
"notRequired" : 10,
"open" : 0,
"approved" : 1,
"rejected" : 0,
"cancelled" : 0
}
}, {
"start" : "2026-10-01",
"uploads" : 12,
"bytes" : 12582912,
"byOrigin" : {
"user" : 11,
"technicalAccess" : 1
},
"byApproval" : {
"notRequired" : 11,
"open" : 0,
"approved" : 1,
"rejected" : 0,
"cancelled" : 0
}
} ],
"weeks" : [ {
"start" : "2026-08-03",
"uploads" : 1,
"bytes" : 1048576,
"byOrigin" : {
"user" : 0,
"technicalAccess" : 1
},
"byApproval" : {
"notRequired" : 0,
"open" : 0,
"approved" : 1,
"rejected" : 0,
"cancelled" : 0
}
}, {
"start" : "2026-08-10",
"uploads" : 2,
"bytes" : 2097152,
"byOrigin" : {
"user" : 1,
"technicalAccess" : 1
},
"byApproval" : {
"notRequired" : 1,
"open" : 0,
"approved" : 1,
"rejected" : 0,
"cancelled" : 0
}
}, {
"start" : "2026-08-17",
"uploads" : 3,
"bytes" : 3145728,
"byOrigin" : {
"user" : 2,
"technicalAccess" : 1
},
"byApproval" : {
"notRequired" : 2,
"open" : 0,
"approved" : 1,
"rejected" : 0,
"cancelled" : 0
}
}, {
"start" : "2026-08-24",
"uploads" : 4,
"bytes" : 4194304,
"byOrigin" : {
"user" : 3,
"technicalAccess" : 1
},
"byApproval" : {
"notRequired" : 3,
"open" : 0,
"approved" : 1,
"rejected" : 0,
"cancelled" : 0
}
}, {
"start" : "2026-08-31",
"uploads" : 5,
"bytes" : 5242880,
"byOrigin" : {
"user" : 4,
"technicalAccess" : 1
},
"byApproval" : {
"notRequired" : 4,
"open" : 0,
"approved" : 1,
"rejected" : 0,
"cancelled" : 0
}
}, {
"start" : "2026-09-07",
"uploads" : 6,
"bytes" : 6291456,
"byOrigin" : {
"user" : 5,
"technicalAccess" : 1
},
"byApproval" : {
"notRequired" : 5,
"open" : 0,
"approved" : 1,
"rejected" : 0,
"cancelled" : 0
}
}, {
"start" : "2026-09-14",
"uploads" : 7,
"bytes" : 7340032,
"byOrigin" : {
"user" : 6,
"technicalAccess" : 1
},
"byApproval" : {
"notRequired" : 6,
"open" : 0,
"approved" : 1,
"rejected" : 0,
"cancelled" : 0
}
}, {
"start" : "2026-09-21",
"uploads" : 8,
"bytes" : 8388608,
"byOrigin" : {
"user" : 7,
"technicalAccess" : 1
},
"byApproval" : {
"notRequired" : 7,
"open" : 0,
"approved" : 1,
"rejected" : 0,
"cancelled" : 0
}
}, {
"start" : "2026-09-28",
"uploads" : 9,
"bytes" : 9437184,
"byOrigin" : {
"user" : 8,
"technicalAccess" : 1
},
"byApproval" : {
"notRequired" : 8,
"open" : 0,
"approved" : 1,
"rejected" : 0,
"cancelled" : 0
}
}, {
"start" : "2026-10-05",
"uploads" : 10,
"bytes" : 10485760,
"byOrigin" : {
"user" : 9,
"technicalAccess" : 1
},
"byApproval" : {
"notRequired" : 9,
"open" : 0,
"approved" : 1,
"rejected" : 0,
"cancelled" : 0
}
}, {
"start" : "2026-10-12",
"uploads" : 11,
"bytes" : 11534336,
"byOrigin" : {
"user" : 10,
"technicalAccess" : 1
},
"byApproval" : {
"notRequired" : 10,
"open" : 0,
"approved" : 1,
"rejected" : 0,
"cancelled" : 0
}
}, {
"start" : "2026-10-19",
"uploads" : 12,
"bytes" : 12582912,
"byOrigin" : {
"user" : 11,
"technicalAccess" : 1
},
"byApproval" : {
"notRequired" : 11,
"open" : 0,
"approved" : 1,
"rejected" : 0,
"cancelled" : 0
}
} ],
"days" : [ {
"start" : "2026-09-22",
"uploads" : 1,
"bytes" : 1048576,
"byOrigin" : {
"user" : 0,
"technicalAccess" : 1
},
"byApproval" : {
"notRequired" : 0,
"open" : 0,
"approved" : 1,
"rejected" : 0,
"cancelled" : 0
}
}, {
"start" : "2026-09-23",
"uploads" : 2,
"bytes" : 2097152,
"byOrigin" : {
"user" : 1,
"technicalAccess" : 1
},
"byApproval" : {
"notRequired" : 1,
"open" : 0,
"approved" : 1,
"rejected" : 0,
"cancelled" : 0
}
}, {
"start" : "2026-09-24",
"uploads" : 3,
"bytes" : 3145728,
"byOrigin" : {
"user" : 2,
"technicalAccess" : 1
},
"byApproval" : {
"notRequired" : 2,
"open" : 0,
"approved" : 1,
"rejected" : 0,
"cancelled" : 0
}
}, {
"start" : "2026-09-25",
"uploads" : 4,
"bytes" : 4194304,
"byOrigin" : {
"user" : 3,
"technicalAccess" : 1
},
"byApproval" : {
"notRequired" : 3,
"open" : 0,
"approved" : 1,
"rejected" : 0,
"cancelled" : 0
}
}, {
"start" : "2026-09-26",
"uploads" : 5,
"bytes" : 5242880,
"byOrigin" : {
"user" : 4,
"technicalAccess" : 1
},
"byApproval" : {
"notRequired" : 4,
"open" : 0,
"approved" : 1,
"rejected" : 0,
"cancelled" : 0
}
}, {
"start" : "2026-09-27",
"uploads" : 6,
"bytes" : 6291456,
"byOrigin" : {
"user" : 5,
"technicalAccess" : 1
},
"byApproval" : {
"notRequired" : 5,
"open" : 0,
"approved" : 1,
"rejected" : 0,
"cancelled" : 0
}
}, {
"start" : "2026-09-28",
"uploads" : 7,
"bytes" : 7340032,
"byOrigin" : {
"user" : 6,
"technicalAccess" : 1
},
"byApproval" : {
"notRequired" : 6,
"open" : 0,
"approved" : 1,
"rejected" : 0,
"cancelled" : 0
}
}, {
"start" : "2026-09-29",
"uploads" : 8,
"bytes" : 8388608,
"byOrigin" : {
"user" : 7,
"technicalAccess" : 1
},
"byApproval" : {
"notRequired" : 7,
"open" : 0,
"approved" : 1,
"rejected" : 0,
"cancelled" : 0
}
}, {
"start" : "2026-09-30",
"uploads" : 9,
"bytes" : 9437184,
"byOrigin" : {
"user" : 8,
"technicalAccess" : 1
},
"byApproval" : {
"notRequired" : 8,
"open" : 0,
"approved" : 1,
"rejected" : 0,
"cancelled" : 0
}
}, {
"start" : "2026-10-01",
"uploads" : 10,
"bytes" : 10485760,
"byOrigin" : {
"user" : 9,
"technicalAccess" : 1
},
"byApproval" : {
"notRequired" : 9,
"open" : 0,
"approved" : 1,
"rejected" : 0,
"cancelled" : 0
}
}, {
"start" : "2026-10-02",
"uploads" : 11,
"bytes" : 11534336,
"byOrigin" : {
"user" : 10,
"technicalAccess" : 1
},
"byApproval" : {
"notRequired" : 10,
"open" : 0,
"approved" : 1,
"rejected" : 0,
"cancelled" : 0
}
}, {
"start" : "2026-10-03",
"uploads" : 12,
"bytes" : 12582912,
"byOrigin" : {
"user" : 11,
"technicalAccess" : 1
},
"byApproval" : {
"notRequired" : 11,
"open" : 0,
"approved" : 1,
"rejected" : 0,
"cancelled" : 0
}
}, {
"start" : "2026-10-04",
"uploads" : 13,
"bytes" : 13631488,
"byOrigin" : {
"user" : 12,
"technicalAccess" : 1
},
"byApproval" : {
"notRequired" : 12,
"open" : 0,
"approved" : 1,
"rejected" : 0,
"cancelled" : 0
}
}, {
"start" : "2026-10-05",
"uploads" : 14,
"bytes" : 14680064,
"byOrigin" : {
"user" : 13,
"technicalAccess" : 1
},
"byApproval" : {
"notRequired" : 13,
"open" : 0,
"approved" : 1,
"rejected" : 0,
"cancelled" : 0
}
}, {
"start" : "2026-10-06",
"uploads" : 15,
"bytes" : 15728640,
"byOrigin" : {
"user" : 14,
"technicalAccess" : 1
},
"byApproval" : {
"notRequired" : 14,
"open" : 0,
"approved" : 1,
"rejected" : 0,
"cancelled" : 0
}
}, {
"start" : "2026-10-07",
"uploads" : 16,
"bytes" : 16777216,
"byOrigin" : {
"user" : 15,
"technicalAccess" : 1
},
"byApproval" : {
"notRequired" : 15,
"open" : 0,
"approved" : 1,
"rejected" : 0,
"cancelled" : 0
}
}, {
"start" : "2026-10-08",
"uploads" : 17,
"bytes" : 17825792,
"byOrigin" : {
"user" : 16,
"technicalAccess" : 1
},
"byApproval" : {
"notRequired" : 16,
"open" : 0,
"approved" : 1,
"rejected" : 0,
"cancelled" : 0
}
}, {
"start" : "2026-10-09",
"uploads" : 18,
"bytes" : 18874368,
"byOrigin" : {
"user" : 17,
"technicalAccess" : 1
},
"byApproval" : {
"notRequired" : 17,
"open" : 0,
"approved" : 1,
"rejected" : 0,
"cancelled" : 0
}
}, {
"start" : "2026-10-10",
"uploads" : 19,
"bytes" : 19922944,
"byOrigin" : {
"user" : 18,
"technicalAccess" : 1
},
"byApproval" : {
"notRequired" : 18,
"open" : 0,
"approved" : 1,
"rejected" : 0,
"cancelled" : 0
}
}, {
"start" : "2026-10-11",
"uploads" : 20,
"bytes" : 20971520,
"byOrigin" : {
"user" : 19,
"technicalAccess" : 1
},
"byApproval" : {
"notRequired" : 19,
"open" : 0,
"approved" : 1,
"rejected" : 0,
"cancelled" : 0
}
}, {
"start" : "2026-10-12",
"uploads" : 21,
"bytes" : 22020096,
"byOrigin" : {
"user" : 20,
"technicalAccess" : 1
},
"byApproval" : {
"notRequired" : 20,
"open" : 0,
"approved" : 1,
"rejected" : 0,
"cancelled" : 0
}
}, {
"start" : "2026-10-13",
"uploads" : 22,
"bytes" : 23068672,
"byOrigin" : {
"user" : 21,
"technicalAccess" : 1
},
"byApproval" : {
"notRequired" : 21,
"open" : 0,
"approved" : 1,
"rejected" : 0,
"cancelled" : 0
}
}, {
"start" : "2026-10-14",
"uploads" : 23,
"bytes" : 24117248,
"byOrigin" : {
"user" : 22,
"technicalAccess" : 1
},
"byApproval" : {
"notRequired" : 22,
"open" : 0,
"approved" : 1,
"rejected" : 0,
"cancelled" : 0
}
}, {
"start" : "2026-10-15",
"uploads" : 24,
"bytes" : 25165824,
"byOrigin" : {
"user" : 23,
"technicalAccess" : 1
},
"byApproval" : {
"notRequired" : 23,
"open" : 0,
"approved" : 1,
"rejected" : 0,
"cancelled" : 0
}
}, {
"start" : "2026-10-16",
"uploads" : 25,
"bytes" : 26214400,
"byOrigin" : {
"user" : 24,
"technicalAccess" : 1
},
"byApproval" : {
"notRequired" : 24,
"open" : 0,
"approved" : 1,
"rejected" : 0,
"cancelled" : 0
}
}, {
"start" : "2026-10-17",
"uploads" : 26,
"bytes" : 27262976,
"byOrigin" : {
"user" : 25,
"technicalAccess" : 1
},
"byApproval" : {
"notRequired" : 25,
"open" : 0,
"approved" : 1,
"rejected" : 0,
"cancelled" : 0
}
}, {
"start" : "2026-10-18",
"uploads" : 27,
"bytes" : 28311552,
"byOrigin" : {
"user" : 26,
"technicalAccess" : 1
},
"byApproval" : {
"notRequired" : 26,
"open" : 0,
"approved" : 1,
"rejected" : 0,
"cancelled" : 0
}
}, {
"start" : "2026-10-19",
"uploads" : 28,
"bytes" : 29360128,
"byOrigin" : {
"user" : 27,
"technicalAccess" : 1
},
"byApproval" : {
"notRequired" : 27,
"open" : 0,
"approved" : 1,
"rejected" : 0,
"cancelled" : 0
}
}, {
"start" : "2026-10-20",
"uploads" : 29,
"bytes" : 30408704,
"byOrigin" : {
"user" : 28,
"technicalAccess" : 1
},
"byApproval" : {
"notRequired" : 28,
"open" : 0,
"approved" : 1,
"rejected" : 0,
"cancelled" : 0
}
}, {
"start" : "2026-10-21",
"uploads" : 30,
"bytes" : 31457280,
"byOrigin" : {
"user" : 29,
"technicalAccess" : 1
},
"byApproval" : {
"notRequired" : 29,
"open" : 0,
"approved" : 1,
"rejected" : 0,
"cancelled" : 0
}
} ]
}
Response fields
| Path | Type | Description |
|---|---|---|
|
|
The last 12 calendar months including the current one, oldest first |
|
|
The last 12 weeks starting on Monday including the current one, oldest first |
|
|
The last 30 days including today, oldest first |
|
|
First day of the period; periods follow German time (Europe/Berlin) |
|
|
Uploads created in the period; uploads of deleted workflows are not counted |
|
|
Sum of the file sizes stated when the uploads were requested |
|
|
Uploads of the period by who uploaded them |
|
|
Uploads by users |
|
|
Uploads by technical accesses |
|
|
Uploads of the period by approval state |
|
|
Uploads of the period without approval |
|
|
Uploads of the period whose approval is required or waiting |
|
|
Uploads of the period approved by now |
|
|
Uploads of the period rejected by now |
|
|
Uploads of the period whose approval was cancelled or expired |
List approval tasks
Paged list; paging, sorting and the page wrapper are described in Paged lists.
Authentication: User authentication
Endpoint and parameters
GET /v1/approval-tasks
| Parameter | Description |
|---|---|
|
Page number to return. |
|
Page size. Default 35 |
|
Sorting in format [property][,ASC|DESC]. Allowed values: [approvalState, uploadCreated, targetName, uploaderName]. Allowed direction: [ASC, DESC]. Default direction is ASC. |
|
Name of workflow/target |
|
Filter by process ids |
|
Filter by approval state. Allowed values [REQUIRED, NOT_REQUIRED, WAITING_APPROVAL, APPROVED, REJECTED, CANCELLED, EXPIRED] |
|
Filter by free search of filename, uploaderName, processId, or upload metadata |
|
Filter by upload date (from). Format: ISO-8601 instant (e.g., 2007-12-03T10:15:30Z) |
|
Filter by upload date (to). Format: ISO-8601 instant (e.g., 2007-12-03T10:15:30Z) |
Example request
GET /v1/approval-tasks?sort=approvalState%2CDESC&sort=uploadCreated%2CASC&page=0&size=5&targetName=targetName&approvalStates=WAITING_APPROVAL&approvalStates=APPROVED&freeSearch=fileName HTTP/1.1
X-PF-DWC-Requester-Role: ROLE_CUSTOMER_APPROVER
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"content" : [ {
"approvalState" : "WAITING_APPROVAL",
"approverDeleted" : false,
"approverEmail" : "approverEmail",
"approverId" : "approver",
"approverName" : "approverFirstName approverLastName",
"downloads" : [ {
"id" : "processId1-download-1",
"type" : "RESULT",
"created" : "2007-12-03T10:15:30Z",
"downloaded" : "2007-12-03T11:15:30Z",
"downloadedBy" : "downloadUser123",
"downloadedByClient" : "TestClient/1.0",
"downloadedReferenceId" : "ref-processId1-download-1"
} ],
"fileName" : "fileName",
"id" : "00000000-0000-0000-0000-000000000001",
"message" : null,
"metadata" : { },
"processId" : "processId1",
"targetId" : "16e7769c-0ce5-3de7-a39b-179deed0c396",
"targetName" : "targetName",
"uploadCreated" : "2007-12-03T10:15:30Z",
"uploaderDeleted" : false,
"uploaderEmail" : "uploaderEmail",
"uploaderId" : "uploader",
"uploaderName" : "uploaderFirstName uploaderLastName",
"uploaderType" : "USER"
}, {
"approvalState" : "WAITING_APPROVAL",
"approverDeleted" : false,
"approverEmail" : "approverEmail",
"approverId" : "approver",
"approverName" : "approverFirstName approverLastName",
"downloads" : [ {
"id" : "processId2-download-1",
"type" : "RESULT",
"created" : "2007-12-03T10:15:30Z",
"downloaded" : "2007-12-03T11:15:30Z",
"downloadedBy" : "downloadUser123",
"downloadedByClient" : "TestClient/1.0",
"downloadedReferenceId" : "ref-processId2-download-1"
} ],
"fileName" : "fileName",
"id" : "00000000-0000-0000-0000-000000000002",
"message" : null,
"metadata" : { },
"processId" : "processId2",
"targetId" : "16e7769c-0ce5-3de7-a39b-179deed0c396",
"targetName" : "targetName",
"uploadCreated" : "2007-12-03T10:15:30Z",
"uploaderDeleted" : false,
"uploaderEmail" : "uploaderEmail",
"uploaderId" : "uploader",
"uploaderName" : "uploaderFirstName uploaderLastName",
"uploaderType" : "USER"
} ],
"totalElements" : 2,
"totalPages" : 1,
"last" : true,
"first" : true,
"numberOfElements" : 2,
"size" : 5,
"number" : 0,
"sort" : [ {
"property" : "approvalState",
"direction" : "DESC"
}, {
"property" : "uploadCreated",
"direction" : "ASC"
} ]
}
Response fields
| Path | Type | Description |
|---|---|---|
|
|
id of the approval task |
|
|
upload id |
|
|
upload target id |
|
|
Timestamp of upload |
|
|
upload target name |
|
|
Filename |
|
|
Uploader ID |
|
|
Type of the uploader. Possible values [USER, TECHNICAL_ACCESS] |
|
|
Email of the Uploader |
|
|
Approver ID |
|
|
Email of the Approver |
|
|
Name of the Approver |
|
|
True if the approver was deleted and their personal data anonymized |
|
|
Name of the Uploader |
|
|
True if the uploader was deleted: an anonymized user, or a deleted technical access |
|
|
Approval-State. Allowed Values [REQUIRED, NOT_REQUIRED, WAITING_APPROVAL, APPROVED, REJECTED, CANCELLED, EXPIRED] |
|
|
Approval message |
|
|
Additional metadata provided for the upload |
|
|
List of downloads associated with the job |
|
|
Download ID |
|
|
Download type |
|
|
Creation timestamp |
|
|
Download timestamp |
|
|
User who downloaded |
|
|
Client id used for download |
|
|
External reference ID |
Get approval task
Authentication: User authentication
Endpoint and parameters
GET /v1/approval-tasks/{id}
| Parameter | Description |
|---|---|
|
id of the approval task |
Example request
GET /v1/approval-tasks/00000000-0000-0000-0000-000000000000 HTTP/1.1
X-PF-DWC-Requester-Role: ROLE_CUSTOMER_APPROVER
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"approvalState" : "WAITING_APPROVAL",
"approverDeleted" : false,
"approverEmail" : "approverEmail",
"approverId" : "approver",
"approverName" : "approverFirstName approverLastName",
"downloads" : [ ],
"fileName" : "fileName",
"id" : "00000000-0000-0000-0000-000000000000",
"message" : null,
"metadata" : { },
"processId" : "processId",
"targetId" : "00000000-0000-0000-0000-000000000001",
"targetName" : "targetName",
"uploadCreated" : "2007-12-03T10:15:30Z",
"uploaderDeleted" : false,
"uploaderEmail" : "uploaderEmail",
"uploaderId" : "uploader",
"uploaderName" : "uploaderFirstName uploaderLastName",
"uploaderType" : "USER"
}
Response fields
| Path | Type | Description |
|---|---|---|
|
|
id of the approval task |
|
|
upload id |
|
|
upload target id |
|
|
Timestamp of upload |
|
|
upload target name |
|
|
Filename |
|
|
Uploader ID |
|
|
Type of the uploader. Possible values [USER, TECHNICAL_ACCESS] |
|
|
Email of the Uploader |
|
|
Name of the Uploader |
|
|
True if the uploader was deleted: an anonymized user, or a deleted technical access |
|
|
Name of the Approver |
|
|
True if the approver was deleted and their personal data anonymized |
|
|
Approver ID |
|
|
Email of the Approver |
|
|
Approval-State. Allowed Values [REQUIRED, NOT_REQUIRED, WAITING_APPROVAL, APPROVED, REJECTED, CANCELLED, EXPIRED] |
|
|
Approval message |
|
|
Additional metadata provided for the upload |
|
|
List of downloads associated with the job |
|
|
Download ID |
|
|
Download type |
|
|
Creation timestamp |
|
|
Download timestamp |
|
|
User who downloaded |
|
|
Client used for download |
|
|
External reference ID |
Decide approval task
Authentication: User authentication
A multipart POST records an approval or rejection decision. The example rejects the task.
The JSON decision part is required; the file part is optional.
Endpoint and parameters
POST /v1/approval-tasks/{id}/decide
| Parameter | Description |
|---|---|
|
Approval task ID |
Request parts
| Part | Description |
|---|---|
|
The modified PDF to be processed |
|
The approval decision json |
Decision fields
| Path | Type | Description | Constraints |
|---|---|---|---|
approvalState |
String |
Result of the approval. Allowed values: [APPROVED, REJECTED] |
Must not be null |
message |
String |
The approval message |
Size must be between 0 and 255 inclusive |
emailOptions |
String |
An Email notification Option. By default: ONLY_UPLOADER. Allowed values: [ONLY_UPLOADER, CC_APPROVER] |
Example request
POST /v1/approval-tasks/00000000-0000-0000-0000-000000000000/decide HTTP/1.1
Content-Type: multipart/form-data;charset=UTF8; boundary=6o2knFse3p53ty9dmcQvWAIx1zInP11uCfbm
X-PF-DWC-Requester-Role: ROLE_CUSTOMER_APPROVER
--6o2knFse3p53ty9dmcQvWAIx1zInP11uCfbm
Content-Disposition: form-data; name=file; filename=test.pdf
Content-Type: application/pdf
Default PDF content
--6o2knFse3p53ty9dmcQvWAIx1zInP11uCfbm
Content-Disposition: form-data; name=decision; filename=decision.json
Content-Type: application/json
{"approvalState":"REJECTED","emailOptions":"CC_APPROVER","message":"message"}
--6o2knFse3p53ty9dmcQvWAIx1zInP11uCfbm--
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"approvalState" : "REJECTED",
"approverDeleted" : false,
"approverEmail" : "approverEmail",
"approverId" : "approver",
"approverName" : "approverFirstName approverLastName",
"downloads" : [ ],
"fileName" : "fileName",
"id" : "00000000-0000-0000-0000-000000000000",
"message" : null,
"metadata" : { },
"processId" : "processId",
"targetId" : "00000000-0000-0000-0000-000000000001",
"targetName" : "targetName",
"uploadCreated" : "2007-12-03T10:15:30Z",
"uploaderDeleted" : false,
"uploaderEmail" : "uploaderEmail",
"uploaderId" : "uploader",
"uploaderName" : "uploaderFirstName uploaderLastName",
"uploaderType" : "USER"
}
Response fields
| Path | Type | Description |
|---|---|---|
|
|
id of the approval task |
|
|
upload id |
|
|
upload target id |
|
|
Timestamp of upload |
|
|
upload target name |
|
|
Filename |
|
|
Uploader ID |
|
|
Type of the uploader. Possible values [USER, TECHNICAL_ACCESS] |
|
|
Email of the Uploader |
|
|
Name of the Uploader |
|
|
True if the uploader was deleted: an anonymized user, or a deleted technical access |
|
|
Name of the Approver |
|
|
True if the approver was deleted and their personal data anonymized |
|
|
Approver ID |
|
|
Email of the Approver |
|
|
Approval-State. Allowed Values [REQUIRED, NOT_REQUIRED, WAITING_APPROVAL, APPROVED, REJECTED, CANCELLED, EXPIRED] |
|
|
Approval message |
|
|
Additional metadata provided for the upload |
|
|
List of downloads associated with the job |
|
|
Download ID |
|
|
Download type |
|
|
Creation timestamp |
|
|
Download timestamp |
|
|
User who downloaded |
|
|
Client used for download |
|
|
External reference ID |
Upload error codes
Use the error messageCode and debugMessages together with the operation that failed; the full codes are listed below.
-
For request validation errors, correct the named fields before repeating the request. Invalid JSON or an unsupported enum value requires fixing the request format.
-
For inactive or missing targets, contracts, or customer numbers, verify the configuration and the caller’s access. Repeating the same upload request does not activate them.
-
For
client.encryption_parameters_missing, provide both wrapping-key fields or omit both. Forclient.encryption_not_allowed, use a target that allows encryption or remove the encryption feature. -
For
client.chunk_missing, retain the upload id and every successful part’s ETag. Complete the missing part transfers and send the full ETag map to Complete multipart upload. -
For
client.job_already_exists, inspect the earlier upload and its state before starting another transfer; the same reference is not a way to resume that upload. -
If approval cancellation or decision fails because the state has changed, re-read the upload or approval task before deciding what to do next. A timed-out mutation is not proof that it failed.
| Code | Description |
|---|---|
de.profiforms.docxworld.upload.error.client.access_denied |
Access denied |
de.profiforms.docxworld.upload.error.client.bad_request |
Bad Request |
de.profiforms.docxworld.upload.error.client.chunk_missing |
Cannot complete upload. Chunks are missing |
de.profiforms.docxworld.upload.error.client.customer_contract_inactive |
Customer contract is not active exception |
de.profiforms.docxworld.upload.error.client.customer_contract_not_exists |
Customer contract not exists exception |
de.profiforms.docxworld.upload.error.client.customer_number_inactive |
Customer number is not active exception |
de.profiforms.docxworld.upload.error.client.encryption_not_allowed |
Encryption not allowed exception |
de.profiforms.docxworld.upload.error.client.encryption_parameters_missing |
Incomplete set of data for encryption data key |
de.profiforms.docxworld.upload.error.client.invalid_sort_argument |
Invalid sort argument exception |
de.profiforms.docxworld.upload.error.client.job_already_exists |
Job already exists exception |
de.profiforms.docxworld.upload.error.client.job_not_found |
Job not exists exception |
de.profiforms.docxworld.upload.error.client.malformed_request |
Malformed request |
de.profiforms.docxworld.upload.error.client.s3_complete_upload |
Cannot complete upload. |
de.profiforms.docxworld.upload.error.client.s3_key_not_found |
Job not exists exception |
de.profiforms.docxworld.upload.error.client.target_inactive |
Target inactive exception |
de.profiforms.docxworld.upload.error.client.target_not_exists |
Target not exists exception |
de.profiforms.docxworld.upload.error.client.unauthorized |
Unauthorized access error. |
de.profiforms.docxworld.upload.error.client.user_not_found |
User not found |
de.profiforms.docxworld.upload.error.client.validation |
Validation error |
de.profiforms.docxworld.upload.error.server.approval_task_not_decidable |
Approval task not decidable exception |
de.profiforms.docxworld.upload.error.server.approval_task_not_found |
Approval task not exists exception |
de.profiforms.docxworld.upload.error.server.file_not_downloadable |
File not downloadable |
de.profiforms.docxworld.upload.error.server.file_not_exists |
File not exists |
de.profiforms.docxworld.upload.error.server.job_collection_not_found |
Job collection not exists exception |
de.profiforms.docxworld.upload.error.server.no_such_client_key_encr_algorithm |
No such key encryption algorithm |
de.profiforms.docxworld.upload.error.server.no_such_data_encr_algorithm |
No such data encryption algorithm |
de.profiforms.docxworld.upload.error.server.unexpected_internal |
Unexpected internal error |
de.profiforms.docxworld.upload.error.server.upload_not_cancellable |
Upload not cancellable exception |
Company service
Company
A company owns customer numbers; each customer number contains customer contracts. A workflow selects one contract and exposes targets used by uploads, approvals and downloads.
Get company
Authentication: User authentication
Example request
GET /v1/companies/00000000-0000-0000-0000-000000000001 HTTP/1.1
Content-Type: application/json;charset=UTF8
X-PF-DWC-Requester-Role: ROLE_PF_ADMIN
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"id" : "00000000-0000-0000-0000-000000000001",
"version" : 0,
"name" : "Company Name",
"technicalAccessLimit" : 0,
"uploadReportGenerationEnabled" : false,
"customerNumbers" : [ {
"number" : "customerNumber-1",
"version" : 0,
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"customerContracts" : [ {
"number" : "customerContract-2",
"version" : 0,
"description" : "customerContract-2 description",
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"isActive" : false,
"approvable" : false,
"collectable" : false,
"outputType" : "DW24",
"fileType" : "PDF",
"uploadType" : "JOB"
} ],
"isActive" : false
} ]
}
Response fields: see Company response fields.
List companies
Paged list; paging, sorting and the page wrapper are described in Paged lists. Each element of content has the fields of Company response fields.
Authentication: User authentication
Endpoint and parameters
GET /v1/companies
| Parameter | Description |
|---|---|
|
Case-insensitive search in company name, customer numbers and customer contract numbers. |
|
Zero-based page number. Default 0. |
|
Page size. Default 35 |
|
Sorting in format property[,ASC|DESC]. Allowed fields: [name, technicalAccessLimit, uploadReportGenerationEnabled] |
Example request
GET /v1/companies HTTP/1.1
X-PF-DWC-Requester-Role: ROLE_PF_ADMIN
Example request with filter
GET /v1/companies?freeSearch=Company+Name&page=0&size=5 HTTP/1.1
X-PF-DWC-Requester-Role: ROLE_PF_ADMIN
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"content" : [ {
"id" : "00000000-0000-0000-0000-000000000001",
"version" : null,
"name" : "Company Name",
"technicalAccessLimit" : 0,
"uploadReportGenerationEnabled" : false,
"customerNumbers" : [ {
"number" : "customerNumber-1",
"version" : null,
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"customerContracts" : [ {
"number" : "customerContract-1-1",
"version" : null,
"description" : "customerContract-1-1 description",
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"isActive" : false,
"approvable" : false,
"collectable" : false,
"outputType" : "DW24",
"fileType" : "PDF",
"uploadType" : "JOB"
}, {
"number" : "customerContract-1-2",
"version" : null,
"description" : "customerContract-1-2 description",
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"isActive" : false,
"approvable" : false,
"collectable" : false,
"outputType" : "DW24",
"fileType" : "RAW",
"uploadType" : "SINGLE"
} ],
"isActive" : false
}, {
"number" : "customerNumber-2",
"version" : null,
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"customerContracts" : [ {
"number" : "customerContract-2-1",
"version" : null,
"description" : "customerContract-2-1 description",
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"isActive" : false,
"approvable" : false,
"collectable" : false,
"outputType" : "DW24",
"fileType" : "PDF",
"uploadType" : "JOB"
}, {
"number" : "customerContract-2-2",
"version" : null,
"description" : "customerContract-2-2 description",
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"isActive" : false,
"approvable" : false,
"collectable" : false,
"outputType" : "DW24",
"fileType" : "RAW",
"uploadType" : "SINGLE"
} ],
"isActive" : false
} ]
}, {
"id" : "00000000-0000-0000-0000-000000000002",
"version" : null,
"name" : "Company Name 2",
"technicalAccessLimit" : 0,
"uploadReportGenerationEnabled" : false,
"customerNumbers" : [ ]
} ],
"totalElements" : 2,
"totalPages" : 1,
"last" : true,
"first" : true,
"numberOfElements" : 2,
"size" : 35,
"number" : 0,
"sort" : [ ]
}
Example response with filter
HTTP/1.1 200 OK
Content-Type: application/json
{
"content" : [ {
"id" : "00000000-0000-0000-0000-000000000001",
"version" : null,
"name" : "Company Name",
"technicalAccessLimit" : 0,
"uploadReportGenerationEnabled" : false,
"customerNumbers" : [ {
"number" : "customerNumber-1",
"version" : null,
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"customerContracts" : [ {
"number" : "customerContract-1-1",
"version" : null,
"description" : "customerContract-1-1 description",
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"isActive" : false,
"approvable" : false,
"collectable" : false,
"outputType" : "DW24",
"fileType" : "PDF",
"uploadType" : "JOB"
}, {
"number" : "customerContract-1-2",
"version" : null,
"description" : "customerContract-1-2 description",
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"isActive" : false,
"approvable" : false,
"collectable" : false,
"outputType" : "DW24",
"fileType" : "RAW",
"uploadType" : "SINGLE"
} ],
"isActive" : false
}, {
"number" : "customerNumber-2",
"version" : null,
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"customerContracts" : [ {
"number" : "customerContract-2-1",
"version" : null,
"description" : "customerContract-2-1 description",
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"isActive" : false,
"approvable" : false,
"collectable" : false,
"outputType" : "DW24",
"fileType" : "PDF",
"uploadType" : "JOB"
}, {
"number" : "customerContract-2-2",
"version" : null,
"description" : "customerContract-2-2 description",
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"isActive" : false,
"approvable" : false,
"collectable" : false,
"outputType" : "DW24",
"fileType" : "RAW",
"uploadType" : "SINGLE"
} ],
"isActive" : false
} ]
}, {
"id" : "00000000-0000-0000-0000-000000000002",
"version" : null,
"name" : "Company Name 2",
"technicalAccessLimit" : 0,
"uploadReportGenerationEnabled" : false,
"customerNumbers" : [ ]
} ],
"totalElements" : 2,
"totalPages" : 1,
"last" : true,
"first" : true,
"numberOfElements" : 2,
"size" : 5,
"number" : 0,
"sort" : [ ]
}
Create company
Authentication: User authentication
Endpoint and parameters
POST /v1/companies
Request fields
| Path | Type | Description | Constraints |
|---|---|---|---|
name |
String |
Company name. Must be unique (case-insensitive) |
Must not be blank |
technicalAccessLimit |
Number (integer) |
Maximum number of technical accesses for this company. Defaults to 0 |
Must be at most 100. Must be positive or zero |
uploadReportGenerationEnabled |
Boolean |
Enables upload report generation for this company. Defaults to false |
|
customerNumbers |
Array |
Customer numbers assigned to this company |
Must not be empty. Must not contain objects with the same numbers |
customerNumbers[].number |
String |
Customer number. Must be unique (case-insensitive) |
|
customerNumbers[].states |
Array |
State transitions of the customer number. |
|
customerNumbers[].customerContracts |
Array |
Customer contracts assigned to this customer number |
|
customerNumbers[].states[].state |
String |
Customer number state. Allowed values: [ACTIVE, INACTIVE]. Defaults to INACTIVE |
Must not be null |
customerNumbers[].states[].validFrom |
String (date-time) |
Customer number state activation timestamp. Defaults to the current time |
Must be in the future or the present within leeway. Must not be null |
customerNumbers[].customerContracts[].number |
String |
Customer contract number. Must be unique (case-insensitive) |
|
customerNumbers[].customerContracts[].description |
String |
Customer contract number description |
|
customerNumbers[].customerContracts[].states |
Array |
State transitions of the customer contract. |
|
customerNumbers[].customerContracts[].approvable |
Boolean |
Whether workflows of this contract may use approval settings. Set when the contract is created and cannot be changed afterwards; defaults to false. Must be false for fileType RAW or uploadType JOB |
|
customerNumbers[].customerContracts[].collectable |
Boolean |
Whether uploads of this contract’s workflows are collected before delivery. Set when the contract is created and cannot be changed afterwards; defaults to false. Must be false for fileType RAW, uploadType JOB or an outputType other than DW24 |
|
customerNumbers[].customerContracts[].outputType |
String |
Where the processed files of the contract are delivered. DW24: to docxworld24 through the DWC adapter; TRANSFER_TO_DOWNLOAD_SERVICE: made available as a download of type RESULT; EMAIL_OUTPUT: sent as an attachment to the uploader’s e-mail address (for a technical access, its contact e-mail); EXTERNAL_OUTPUT: delivered to a customer-operated spooler (prototype). Allowed values: [DW24, EXTERNAL_OUTPUT, TRANSFER_TO_DOWNLOAD_SERVICE, EMAIL_OUTPUT] |
|
customerNumbers[].customerContracts[].fileType |
String |
Format of the uploaded files. PDF: a PDF document, checked as PDF on upload; RAW: arbitrary data. Only PDF uploads can be approved or collected. Allowed values: [PDF, RAW] |
|
customerNumbers[].customerContracts[].uploadType |
String |
What an upload of the contract contains. JOB: data that is processed further, for example into a set of documents in docxworld24 (default when omitted); SINGLE: one finished document. Only SINGLE uploads can be approved or collected. Allowed values: [JOB, SINGLE] |
|
customerNumbers[].customerContracts[].states[].state |
String |
Customer contract state. Allowed values: [ACTIVE, INACTIVE]. Defaults to INACTIVE |
Must not be null |
customerNumbers[].customerContracts[].states[].validFrom |
String (date-time) |
Customer contract state activation timestamp. Defaults to the current time |
Must be in the future or the present within leeway. Must not be null |
Example request
POST /v1/companies HTTP/1.1
Content-Type: application/json;charset=UTF8
X-PF-DWC-Requester-Role: ROLE_PF_ADMIN
{
"name" : "Company Name",
"technicalAccessLimit" : 0,
"uploadReportGenerationEnabled" : false,
"customerNumbers" : [ {
"number" : "customerNumber-1",
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"customerContracts" : [ {
"number" : "customerContract-2",
"description" : "customerContract-2 description",
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"approvable" : false,
"collectable" : false,
"outputType" : "DW24",
"fileType" : "PDF",
"uploadType" : "JOB"
} ]
} ]
}
Example response
HTTP/1.1 201 Created
Location: http://localhost:8080/v1/companies/00000000-0000-0000-0000-000000000001
Content-Type: application/json
{
"id" : "00000000-0000-0000-0000-000000000001",
"version" : 0,
"name" : "Company Name",
"technicalAccessLimit" : 0,
"uploadReportGenerationEnabled" : false,
"customerNumbers" : [ {
"number" : "customerNumber-1",
"version" : 0,
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"customerContracts" : [ {
"number" : "customerContract-2",
"version" : 0,
"description" : "customerContract-2 description",
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"isActive" : false,
"approvable" : false,
"collectable" : false,
"outputType" : "DW24",
"fileType" : "PDF",
"uploadType" : "JOB"
} ],
"isActive" : false
} ]
}
Company response fields
| Path | Type | Description |
|---|---|---|
|
|
Company ID |
|
|
Company name |
|
|
Company revision. Changes to the company change this revision. |
|
|
Maximum number of technical accesses for the company |
|
|
True if upload report generation is enabled for the company |
|
|
Customer numbers assigned to this company |
|
|
Customer number. Must be unique (case-insensitive) |
|
|
State transitions of the customer number. Defaults to INACTIVE |
|
|
Customer number revision. Changes to the customer number change this revision. |
|
|
True if the customer number is currently active |
|
|
Customer number state. Allowed values: [ACTIVE, INACTIVE] |
|
|
Customer number state activation timestamp. Defaults to the current time |
|
|
Customer contracts assigned to this customer number |
|
|
Customer contract number. Must be unique (case-insensitive) |
|
|
Customer contract number description |
|
|
State transitions of the customer contract. Defaults to INACTIVE |
|
|
Customer contract revision. Changes to the contract change this revision. |
|
|
True if the customer contract is currently active |
|
|
True if workflows of this contract may use approval settings: |
|
|
True if uploads of this contract’s workflows are collected before delivery: they wait in state |
|
|
Where the processed files of the contract are delivered. DW24: to docxworld24 through the DWC adapter; TRANSFER_TO_DOWNLOAD_SERVICE: made available as a download of type RESULT; EMAIL_OUTPUT: sent as an attachment to the uploader’s e-mail address (for a technical access, its contact e-mail); EXTERNAL_OUTPUT: delivered to a customer-operated spooler (prototype). Allowed values: [DW24, EXTERNAL_OUTPUT, TRANSFER_TO_DOWNLOAD_SERVICE, EMAIL_OUTPUT] |
|
|
Format of the uploaded files. PDF: a PDF document, checked as PDF on upload; RAW: arbitrary data. Only PDF uploads can be approved or collected. Allowed values: [PDF, RAW] |
|
|
What an upload of the contract contains. JOB: data that is processed further, for example into a set of documents in docxworld24 (default when omitted at creation); SINGLE: one finished document. Only SINGLE uploads can be approved or collected. Allowed values: [JOB, SINGLE] |
|
|
Customer contract state. Allowed values: [ACTIVE, INACTIVE] |
|
|
Customer contract state activation timestamp. Defaults to the current time |
Example: minimal request and response
Same default behaviour is valid for customer contracts.
POST /v1/companies HTTP/1.1
Content-Type: application/json;charset=UTF8
X-PF-DWC-Requester-Role: ROLE_PF_ADMIN
{
"name" : "Profiforms",
"technicalAccessLimit" : 0,
"customerNumbers" : [ {
"number" : "customerNumber_1"
} ]
}
HTTP/1.1 201 Created
Location: http://localhost:8080/v1/companies/00000000-0000-0000-0000-000000000001
Content-Type: application/json
{
"id" : "00000000-0000-0000-0000-000000000001",
"version" : 0,
"name" : "Profiforms",
"technicalAccessLimit" : 0,
"uploadReportGenerationEnabled" : false,
"customerNumbers" : [ {
"number" : "customerNumber_1",
"version" : 0,
"states" : [ {
"state" : "INACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
} ],
"customerContracts" : null,
"isActive" : false
} ]
}
Example: custom customer number state
POST /v1/companies HTTP/1.1
Content-Type: application/json;charset=UTF8
X-PF-DWC-Requester-Role: ROLE_PF_ADMIN
{
"name" : "Profiforms",
"technicalAccessLimit" : 0,
"customerNumbers" : [ {
"number" : "customerNumber_1",
"states" : [ {
"state" : "ACTIVE"
} ]
} ]
}
HTTP/1.1 201 Created
Location: http://localhost:8080/v1/companies/00000000-0000-0000-0000-000000000001
Content-Type: application/json
{
"id" : "00000000-0000-0000-0000-000000000001",
"version" : 0,
"name" : "Profiforms",
"technicalAccessLimit" : 0,
"uploadReportGenerationEnabled" : false,
"customerNumbers" : [ {
"number" : "customerNumber_1",
"version" : 0,
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
} ],
"customerContracts" : null,
"isActive" : false
} ]
}
Update company metadata
Authentication: User authentication
Request fields
| Path | Type | Description | Constraints |
|---|---|---|---|
name |
String |
Company name. Must be unique (case-insensitive) |
Must not be blank |
Example request
PUT /v1/companies/00000000-0000-0000-0000-000000000001 HTTP/1.1
Content-Type: application/json;charset=UTF8
X-PF-DWC-Requester-Role: ROLE_PF_ADMIN
{
"name" : "Company Name"
}
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"id" : "00000000-0000-0000-0000-000000000001",
"version" : 0,
"name" : "Company Name",
"technicalAccessLimit" : 0,
"uploadReportGenerationEnabled" : false,
"customerNumbers" : [ {
"number" : "customerNumber-1",
"version" : 0,
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"customerContracts" : [ {
"number" : "customerContract-2",
"version" : 0,
"description" : "customerContract-2 description",
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"isActive" : false,
"approvable" : false,
"collectable" : false,
"outputType" : "DW24",
"fileType" : "PDF",
"uploadType" : "JOB"
} ],
"isActive" : false
} ]
}
Response fields: see Company response fields.
Update company settings
Replaces the complete set of company settings, see Changing settings.
Authentication: User authentication
Request fields
| Path | Type | Description | Constraints |
|---|---|---|---|
technicalAccessLimit |
Number (integer) |
Maximum number of technical accesses for this company. Allowed values: 0 to 100. Optional, defaults to 0 when omitted |
Must be at most 100. Must be positive or zero |
uploadReportGenerationEnabled |
Boolean |
Enables upload report generation for this company. Optional, defaults to false when omitted |
Example request
PUT /v1/companies/00000000-0000-0000-0000-000000000001/settings HTTP/1.1
Content-Type: application/json;charset=UTF8
X-PF-DWC-Requester-Role: ROLE_PF_ADMIN
{
"technicalAccessLimit" : 100,
"uploadReportGenerationEnabled" : true
}
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"id" : "00000000-0000-0000-0000-000000000001",
"version" : 0,
"name" : "Company Name",
"technicalAccessLimit" : 100,
"uploadReportGenerationEnabled" : true,
"customerNumbers" : [ {
"number" : "customerNumber-1",
"version" : 0,
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"customerContracts" : [ {
"number" : "customerContract-2",
"version" : 0,
"description" : "customerContract-2 description",
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"isActive" : false,
"approvable" : false,
"collectable" : false,
"outputType" : "DW24",
"fileType" : "PDF",
"uploadType" : "JOB"
} ],
"isActive" : false
} ]
}
Response fields: see Company response fields.
Add customer numbers
Authentication: User authentication
Endpoint and parameters
POST /v1/companies/{id}/customer-numbers
| Parameter | Description |
|---|---|
|
Company ID |
Request fields
| Path | Type | Description | Constraints |
|---|---|---|---|
[] |
Array |
Customer numbers to add |
|
[].number |
String |
Customer number. Must be unique (case-insensitive) |
|
[].states |
Array |
State transitions of the customer number. |
|
[].customerContracts |
Array |
Customer contracts assigned to this customer number |
|
[].states[].state |
String |
Customer number state. Allowed values: [ACTIVE, INACTIVE]. Defaults to INACTIVE |
Must not be null |
[].states[].validFrom |
String (date-time) |
Customer number state activation timestamp. Defaults to the current time |
Must be in the future or the present within leeway. Must not be null |
[].customerContracts[].number |
String |
Customer contract number. Must be unique (case-insensitive) |
|
[].customerContracts[].description |
String |
Customer contract number description |
|
[].customerContracts[].states |
Array |
State transitions of the customer contract. |
|
[].customerContracts[].approvable |
Boolean |
Whether workflows of this contract may use approval settings. Set when the contract is created and cannot be changed afterwards; defaults to false. Must be false for fileType RAW or uploadType JOB |
|
[].customerContracts[].collectable |
Boolean |
Whether uploads of this contract’s workflows are collected before delivery. Set when the contract is created and cannot be changed afterwards; defaults to false. Must be false for fileType RAW, uploadType JOB or an outputType other than DW24 |
|
[].customerContracts[].outputType |
String |
Where the processed files of the contract are delivered. DW24: to docxworld24 through the DWC adapter; TRANSFER_TO_DOWNLOAD_SERVICE: made available as a download of type RESULT; EMAIL_OUTPUT: sent as an attachment to the uploader’s e-mail address (for a technical access, its contact e-mail); EXTERNAL_OUTPUT: delivered to a customer-operated spooler (prototype). Allowed values: [DW24, EXTERNAL_OUTPUT, TRANSFER_TO_DOWNLOAD_SERVICE, EMAIL_OUTPUT] |
|
[].customerContracts[].fileType |
String |
Format of the uploaded files. PDF: a PDF document, checked as PDF on upload; RAW: arbitrary data. Only PDF uploads can be approved or collected. Allowed values: [PDF, RAW] |
|
[].customerContracts[].uploadType |
String |
What an upload of the contract contains. JOB: data that is processed further, for example into a set of documents in docxworld24 (default when omitted); SINGLE: one finished document. Only SINGLE uploads can be approved or collected. Allowed values: [JOB, SINGLE] |
|
[].customerContracts[].states[].state |
String |
Customer contract state. Allowed values: [ACTIVE, INACTIVE]. Defaults to INACTIVE |
Must not be null |
[].customerContracts[].states[].validFrom |
String (date-time) |
Customer contract state activation timestamp. Defaults to the current time |
Must be in the future or the present within leeway. Must not be null |
Example request
POST /v1/companies/00000000-0000-0000-0000-000000000001/customer-numbers HTTP/1.1
Content-Type: application/json;charset=UTF8
X-PF-DWC-Requester-Role: ROLE_PF_ADMIN
[ {
"number" : "customerNumber-1",
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"customerContracts" : [ {
"number" : "customerContract-1",
"description" : "customerContract-1 description",
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"approvable" : false,
"collectable" : false,
"outputType" : "DW24",
"fileType" : "PDF",
"uploadType" : "JOB"
} ]
}, {
"number" : "customerNumber-2",
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"customerContracts" : [ {
"number" : "customerContract-2",
"description" : "customerContract-2 description",
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"approvable" : false,
"collectable" : false,
"outputType" : "DW24",
"fileType" : "PDF",
"uploadType" : "JOB"
} ]
} ]
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"id" : "00000000-0000-0000-0000-000000000001",
"version" : 0,
"name" : "Company Name",
"technicalAccessLimit" : 0,
"uploadReportGenerationEnabled" : false,
"customerNumbers" : [ {
"number" : "customerNumber-1",
"version" : 0,
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"customerContracts" : [ {
"number" : "customerContract-1",
"version" : 0,
"description" : "customerContract-1 description",
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"isActive" : false,
"approvable" : false,
"collectable" : false,
"outputType" : "DW24",
"fileType" : "PDF",
"uploadType" : "JOB"
} ],
"isActive" : false
}, {
"number" : "customerNumber-2",
"version" : 0,
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"customerContracts" : [ {
"number" : "customerContract-2",
"version" : 0,
"description" : "customerContract-2 description",
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"isActive" : false,
"approvable" : false,
"collectable" : false,
"outputType" : "DW24",
"fileType" : "PDF",
"uploadType" : "JOB"
} ],
"isActive" : false
} ]
}
Response fields: see Company response fields.
Add customer number states
Authentication: User authentication
Endpoint and parameters
POST /v1/companies/{companyId}/customer-numbers/{numberId}/states
| Parameter | Description |
|---|---|
|
Company ID |
|
Customer number |
Request fields
| Path | Type | Description | Constraints |
|---|---|---|---|
[] |
Array |
An array of customer number state transitions. |
|
[].state |
String |
Customer number state. Allowed values: [ACTIVE, INACTIVE]. Defaults to INACTIVE |
Must not be null |
[].validFrom |
String (date-time) |
Customer number state activation timestamp. Defaults to the current time |
Must be in the future or the present within leeway. Must not be null |
Example request
POST /v1/companies/00000000-0000-0000-0000-000000000001/customer-numbers/1/states HTTP/1.1
Content-Type: application/json;charset=UTF8
X-PF-DWC-Requester-Role: ROLE_PF_ADMIN
[ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-05T11:22:33.456Z"
} ]
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"id" : "00000000-0000-0000-0000-000000000001",
"version" : 0,
"name" : "Company Name",
"technicalAccessLimit" : 0,
"uploadReportGenerationEnabled" : false,
"customerNumbers" : [ {
"number" : "customerNumber-1",
"version" : 0,
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-05T11:22:33.456Z"
} ],
"customerContracts" : [ {
"number" : "customerContract-1-1",
"version" : null,
"description" : "customerContract-1-1 description",
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"isActive" : false,
"approvable" : false,
"collectable" : false,
"outputType" : "DW24",
"fileType" : "PDF",
"uploadType" : "JOB"
}, {
"number" : "customerContract-1-2",
"version" : null,
"description" : "customerContract-1-2 description",
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"isActive" : false,
"approvable" : false,
"collectable" : false,
"outputType" : "DW24",
"fileType" : "RAW",
"uploadType" : "SINGLE"
} ],
"isActive" : false
} ]
}
Response fields: see Company response fields.
Delete customer number
The company must retain at least one customer number. Deletion is also rejected if this number has
any ACTIVE transition whose validFrom has already passed, even if a later transition made it inactive.
Review the history in Company response fields; the current isActive value alone is insufficient.
Authentication: User authentication
Endpoint and parameters
DELETE /v1/companies/{companyId}/customer-numbers/{numberId}
| Parameter | Description |
|---|---|
|
Company ID |
|
Customer number to delete |
Example request
DELETE /v1/companies/00000000-0000-0000-0000-000000000001/customer-numbers/67 HTTP/1.1
Content-Type: application/json;charset=UTF8
X-PF-DWC-Requester-Role: ROLE_PF_ADMIN
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"id" : "00000000-0000-0000-0000-000000000001",
"version" : null,
"name" : "Company Name",
"technicalAccessLimit" : 0,
"uploadReportGenerationEnabled" : false,
"customerNumbers" : [ {
"number" : "customerNumber-1",
"version" : null,
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"customerContracts" : [ {
"number" : "customerContract-1-1",
"version" : null,
"description" : "customerContract-1-1 description",
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"isActive" : false,
"approvable" : false,
"collectable" : false,
"outputType" : "DW24",
"fileType" : "PDF",
"uploadType" : "JOB"
}, {
"number" : "customerContract-1-2",
"version" : null,
"description" : "customerContract-1-2 description",
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"isActive" : false,
"approvable" : false,
"collectable" : false,
"outputType" : "DW24",
"fileType" : "RAW",
"uploadType" : "SINGLE"
} ],
"isActive" : false
}, {
"number" : "customerNumber-2",
"version" : null,
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"customerContracts" : [ {
"number" : "customerContract-2-1",
"version" : null,
"description" : "customerContract-2-1 description",
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"isActive" : false,
"approvable" : false,
"collectable" : false,
"outputType" : "DW24",
"fileType" : "PDF",
"uploadType" : "JOB"
}, {
"number" : "customerContract-2-2",
"version" : null,
"description" : "customerContract-2-2 description",
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"isActive" : false,
"approvable" : false,
"collectable" : false,
"outputType" : "DW24",
"fileType" : "RAW",
"uploadType" : "SINGLE"
} ],
"isActive" : false
} ]
}
Response fields: see Company response fields.
Delete customer number states
Authentication: User authentication
Endpoint and parameters
DELETE /v1/companies/{companyId}/customer-numbers/{numberId}/states
| Parameter | Description |
|---|---|
|
Company ID |
|
Customer number |
Request fields
| Path | Type | Description | Constraints |
|---|---|---|---|
[] |
Array |
An array of instant states to be deleted. |
Example request
DELETE /v1/companies/00000000-0000-0000-0000-000000000001/customer-numbers/1/states HTTP/1.1
Content-Type: application/json;charset=UTF8
X-PF-DWC-Requester-Role: ROLE_PF_ADMIN
[ "2121-02-15T11:22:33.456Z", "2121-02-25T11:22:33.456Z" ]
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"id" : "00000000-0000-0000-0000-000000000001",
"version" : null,
"name" : "Company Name",
"technicalAccessLimit" : 0,
"uploadReportGenerationEnabled" : false,
"customerNumbers" : [ {
"number" : "customerNumber-1",
"version" : null,
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"customerContracts" : [ {
"number" : "customerContract-1-1",
"version" : null,
"description" : "customerContract-1-1 description",
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"isActive" : false,
"approvable" : false,
"collectable" : false,
"outputType" : "DW24",
"fileType" : "PDF",
"uploadType" : "JOB"
}, {
"number" : "customerContract-1-2",
"version" : null,
"description" : "customerContract-1-2 description",
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"isActive" : false,
"approvable" : false,
"collectable" : false,
"outputType" : "DW24",
"fileType" : "RAW",
"uploadType" : "SINGLE"
} ],
"isActive" : false
}, {
"number" : "customerNumber-2",
"version" : null,
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"customerContracts" : [ {
"number" : "customerContract-2-1",
"version" : null,
"description" : "customerContract-2-1 description",
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"isActive" : false,
"approvable" : false,
"collectable" : false,
"outputType" : "DW24",
"fileType" : "PDF",
"uploadType" : "JOB"
}, {
"number" : "customerContract-2-2",
"version" : null,
"description" : "customerContract-2-2 description",
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"isActive" : false,
"approvable" : false,
"collectable" : false,
"outputType" : "DW24",
"fileType" : "RAW",
"uploadType" : "SINGLE"
} ],
"isActive" : false
} ]
}
Response fields: see Company response fields.
Update customer contract metadata
Authentication: User authentication
Endpoint and parameters
PUT /v1/companies/{companyId}/customer-numbers/{numberId}/customer-contracts/{contractId}
| Parameter | Description |
|---|---|
|
Company ID |
|
Customer number |
|
Customer contract number |
Request fields
| Path | Type | Description | Constraints |
|---|---|---|---|
description |
String |
Contract description |
Example request
PUT /v1/companies/00000000-0000-0000-0000-000000000001/customer-numbers/1/customer-contracts/2 HTTP/1.1
Content-Type: application/json;charset=UTF8
X-PF-DWC-Requester-Role: ROLE_PF_ADMIN
{
"description" : "new description"
}
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"id" : "00000000-0000-0000-0000-000000000001",
"version" : 0,
"name" : "Company Name",
"technicalAccessLimit" : 0,
"uploadReportGenerationEnabled" : false,
"customerNumbers" : [ {
"number" : "customerNumber-1",
"version" : 0,
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"customerContracts" : [ {
"number" : "customerContract-2",
"version" : 0,
"description" : "new description",
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"isActive" : false,
"approvable" : false,
"collectable" : false,
"outputType" : "DW24",
"fileType" : "PDF",
"uploadType" : "JOB"
} ],
"isActive" : false
} ]
}
Response fields: see Company response fields.
Add customer contracts
Authentication: User authentication
Endpoint and parameters
POST /v1/companies/{companyId}/customer-numbers/{numberId}/customer-contracts
| Parameter | Description |
|---|---|
|
Company ID |
|
Customer number |
Request fields
| Path | Type | Description | Constraints |
|---|---|---|---|
[] |
Array |
Customer contract numbers |
|
[].number |
String |
Customer contract number. Must be unique (case-insensitive) |
|
[].description |
String |
Customer contract number description |
|
[].states |
Array |
State transitions of the customer contract. |
|
[].approvable |
Boolean |
Whether workflows of this contract may use approval settings. Set when the contract is created and cannot be changed afterwards; defaults to false. Must be false for fileType RAW or uploadType JOB |
|
[].collectable |
Boolean |
Whether uploads of this contract’s workflows are collected before delivery. Set when the contract is created and cannot be changed afterwards; defaults to false. Must be false for fileType RAW, uploadType JOB or an outputType other than DW24 |
|
[].outputType |
String |
Where the processed files of the contract are delivered. DW24: to docxworld24 through the DWC adapter; TRANSFER_TO_DOWNLOAD_SERVICE: made available as a download of type RESULT; EMAIL_OUTPUT: sent as an attachment to the uploader’s e-mail address (for a technical access, its contact e-mail); EXTERNAL_OUTPUT: delivered to a customer-operated spooler (prototype). Allowed values: [DW24, EXTERNAL_OUTPUT, TRANSFER_TO_DOWNLOAD_SERVICE, EMAIL_OUTPUT] |
|
[].fileType |
String |
Format of the uploaded files. PDF: a PDF document, checked as PDF on upload; RAW: arbitrary data. Only PDF uploads can be approved or collected. Allowed values: [PDF, RAW] |
|
[].uploadType |
String |
What an upload of the contract contains. JOB: data that is processed further, for example into a set of documents in docxworld24 (default when omitted); SINGLE: one finished document. Only SINGLE uploads can be approved or collected. Allowed values: [JOB, SINGLE] |
|
[].states[].state |
String |
Customer contract state. Allowed values: [ACTIVE, INACTIVE]. Defaults to INACTIVE |
Must not be null |
[].states[].validFrom |
String (date-time) |
Customer contract state activation timestamp. Defaults to the current time |
Must be in the future or the present within leeway. Must not be null |
Example request
POST /v1/companies/00000000-0000-0000-0000-000000000001/customer-numbers/1/customer-contracts HTTP/1.1
Content-Type: application/json;charset=UTF8
X-PF-DWC-Requester-Role: ROLE_PF_ADMIN
[ {
"number" : "customerContract-1",
"description" : "customerContract-1 description",
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"approvable" : false,
"collectable" : false,
"outputType" : "DW24",
"fileType" : "PDF",
"uploadType" : "JOB"
}, {
"number" : "customerContract-2",
"description" : "customerContract-2 description",
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"approvable" : false,
"collectable" : false,
"outputType" : "DW24",
"fileType" : "PDF",
"uploadType" : "JOB"
} ]
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"id" : "00000000-0000-0000-0000-000000000001",
"version" : 0,
"name" : "Company Name",
"technicalAccessLimit" : 0,
"uploadReportGenerationEnabled" : false,
"customerNumbers" : [ {
"number" : "customerNumber-1",
"version" : 0,
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"customerContracts" : [ {
"number" : "customerContract-1",
"version" : 0,
"description" : "customerContract-1 description",
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"isActive" : false,
"approvable" : false,
"collectable" : false,
"outputType" : "DW24",
"fileType" : "PDF",
"uploadType" : "JOB"
}, {
"number" : "customerContract-2",
"version" : 0,
"description" : "customerContract-2 description",
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"isActive" : false,
"approvable" : false,
"collectable" : false,
"outputType" : "DW24",
"fileType" : "PDF",
"uploadType" : "JOB"
} ],
"isActive" : false
} ]
}
Response fields: see Company response fields.
Add customer contract states
Authentication: User authentication
Endpoint and parameters
POST /v1/companies/{companyId}/customer-numbers/{numberId}/customer-contracts/{contractId}/states
| Parameter | Description |
|---|---|
|
Company ID |
|
Customer number |
|
Customer contract number |
Request fields
| Path | Type | Description | Constraints |
|---|---|---|---|
[] |
Array |
An array of customer contract state transitions. |
|
[].state |
String |
Customer contract state. Allowed values: [ACTIVE, INACTIVE]. Defaults to INACTIVE |
Must not be null |
[].validFrom |
String (date-time) |
Customer contract state activation timestamp. Defaults to the current time |
Must be in the future or the present within leeway. Must not be null |
Example request
POST /v1/companies/00000000-0000-0000-0000-000000000001/customer-numbers/1/customer-contracts/1/states HTTP/1.1
Content-Type: application/json;charset=UTF8
X-PF-DWC-Requester-Role: ROLE_PF_ADMIN
[ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-05T11:22:33.456Z"
} ]
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"id" : "00000000-0000-0000-0000-000000000001",
"version" : 0,
"name" : "Company Name",
"technicalAccessLimit" : 0,
"uploadReportGenerationEnabled" : false,
"customerNumbers" : [ {
"number" : "customerNumber-1",
"version" : 0,
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"customerContracts" : [ {
"number" : "customerContract-1",
"version" : 0,
"description" : "customerContract-1 description",
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-05T11:22:33.456Z"
} ],
"isActive" : false,
"approvable" : false,
"collectable" : false,
"outputType" : "DW24",
"fileType" : "PDF",
"uploadType" : "JOB"
} ],
"isActive" : false
} ]
}
Response fields: see Company response fields.
Delete customer contract
Deletion is rejected if the contract has any ACTIVE transition whose validFrom has already passed,
even if a later transition made it inactive. Review the history in Company response fields;
the current isActive value alone is insufficient.
Authentication: User authentication
Endpoint and parameters
DELETE /v1/companies/{companyId}/customer-numbers/{numberId}/customer-contracts/{contractId}
| Parameter | Description |
|---|---|
|
Company ID |
|
Customer number that owns the contract |
|
Customer contract number to delete |
Example request
DELETE /v1/companies/00000000-0000-0000-0000-000000000001/customer-numbers/customerNumber-1/customer-contracts/3124 HTTP/1.1
Content-Type: application/json;charset=UTF8
X-PF-DWC-Requester-Role: ROLE_PF_ADMIN
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"id" : "00000000-0000-0000-0000-000000000001",
"version" : null,
"name" : "Company Name",
"technicalAccessLimit" : 0,
"uploadReportGenerationEnabled" : false,
"customerNumbers" : [ {
"number" : "customerNumber-1",
"version" : null,
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"customerContracts" : [ {
"number" : "customerContract-1-1",
"version" : null,
"description" : "customerContract-1-1 description",
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"isActive" : false,
"approvable" : false,
"collectable" : false,
"outputType" : "DW24",
"fileType" : "PDF",
"uploadType" : "JOB"
}, {
"number" : "customerContract-1-2",
"version" : null,
"description" : "customerContract-1-2 description",
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"isActive" : false,
"approvable" : false,
"collectable" : false,
"outputType" : "DW24",
"fileType" : "RAW",
"uploadType" : "SINGLE"
} ],
"isActive" : false
}, {
"number" : "customerNumber-2",
"version" : null,
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"customerContracts" : [ {
"number" : "customerContract-2-1",
"version" : null,
"description" : "customerContract-2-1 description",
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"isActive" : false,
"approvable" : false,
"collectable" : false,
"outputType" : "DW24",
"fileType" : "PDF",
"uploadType" : "JOB"
}, {
"number" : "customerContract-2-2",
"version" : null,
"description" : "customerContract-2-2 description",
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"isActive" : false,
"approvable" : false,
"collectable" : false,
"outputType" : "DW24",
"fileType" : "RAW",
"uploadType" : "SINGLE"
} ],
"isActive" : false
} ]
}
Response fields: see Company response fields.
Delete customer contract states
Authentication: User authentication
Endpoint and parameters
DELETE /v1/companies/{companyId}/customer-numbers/{numberId}/customer-contracts/{contractId}/states
| Parameter | Description |
|---|---|
|
Company ID |
|
Customer number |
|
Customer contract number |
Request fields
| Path | Type | Description | Constraints |
|---|---|---|---|
[] |
Array |
An array of instant states to be deleted. |
Example request
DELETE /v1/companies/00000000-0000-0000-0000-000000000001/customer-numbers/1/customer-contracts/1/states HTTP/1.1
Content-Type: application/json;charset=UTF8
X-PF-DWC-Requester-Role: ROLE_PF_ADMIN
[ "2121-02-15T11:22:33.456Z", "2121-02-25T11:22:33.456Z" ]
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"id" : "00000000-0000-0000-0000-000000000001",
"version" : null,
"name" : "Company Name",
"technicalAccessLimit" : 0,
"uploadReportGenerationEnabled" : false,
"customerNumbers" : [ {
"number" : "customerNumber-1",
"version" : null,
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"customerContracts" : [ {
"number" : "customerContract-1-1",
"version" : null,
"description" : "customerContract-1-1 description",
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"isActive" : false,
"approvable" : false,
"collectable" : false,
"outputType" : "DW24",
"fileType" : "PDF",
"uploadType" : "JOB"
}, {
"number" : "customerContract-1-2",
"version" : null,
"description" : "customerContract-1-2 description",
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"isActive" : false,
"approvable" : false,
"collectable" : false,
"outputType" : "DW24",
"fileType" : "RAW",
"uploadType" : "SINGLE"
} ],
"isActive" : false
}, {
"number" : "customerNumber-2",
"version" : null,
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"customerContracts" : [ {
"number" : "customerContract-2-1",
"version" : null,
"description" : "customerContract-2-1 description",
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"isActive" : false,
"approvable" : false,
"collectable" : false,
"outputType" : "DW24",
"fileType" : "PDF",
"uploadType" : "JOB"
}, {
"number" : "customerContract-2-2",
"version" : null,
"description" : "customerContract-2-2 description",
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"isActive" : false,
"approvable" : false,
"collectable" : false,
"outputType" : "DW24",
"fileType" : "RAW",
"uploadType" : "SINGLE"
} ],
"isActive" : false
} ]
}
Response fields: see Company response fields.
List DW24 companies
Authentication: User authentication
Endpoint and parameters
GET /v1/companies/dw24
Example request
GET /v1/companies/dw24 HTTP/1.1
X-PF-DWC-Requester-Role: ROLE_PF_ADMIN
Example response
HTTP/1.1 200 OK
Content-Type: application/json;charset=utf8
[ {
"customerNumber" : "customer1",
"customerName" : "company1",
"feedbackAddress" : "feed@back.com",
"contracts" : [ {
"contractNumber" : "contract",
"description" : "description",
"name" : "name",
"validFrom" : "2020-09-14T13:56:01.314Z",
"validTo" : "2020-09-14T13:56:01.314Z"
} ]
}, {
"customerNumber" : "customer2",
"customerName" : "company2",
"feedbackAddress" : "feed@back.com",
"contracts" : [ {
"contractNumber" : "contract",
"description" : "description",
"name" : "name",
"validFrom" : "2020-09-14T13:56:01.314Z",
"validTo" : "2020-09-14T13:56:01.314Z"
} ]
} ]
Response fields
| Path | Type | Description |
|---|---|---|
|
|
Company customer number |
|
|
Company customer name |
|
|
Feedback address |
|
|
Company contracts |
|
|
Company contract number |
|
|
Company contract description |
|
|
Company contract name |
|
|
Company contract valid from |
|
|
Company contract valid to |
Customer number and contract states
states schedules changes between ACTIVE and INACTIVE. validFrom is an ISO-8601 instant
with a time-zone offset, for example 2030-01-31T11:22:33.456Z. Omitting it uses the server time
when the request is read; explicit null is invalid. A new transition may be at most
five seconds in the past; a timestamp exactly five seconds old is rejected.
Adding transitions rejects a timestamp already present in the resource or repeated with different
states in the request. Deleting transitions uses their exact validFrom timestamps and only
accepts timestamps that have not passed; a missing future timestamp is ignored.
When a number or contract is created without a state effective now, an INACTIVE transition
is added at creation time. The isActive response field reports the current effective state.
Contract
List customer contracts
Paged list; paging, sorting and the page wrapper are described in Paged lists.
Authentication: User authentication
Endpoint and parameters
GET /v1/customer-contracts
| Parameter | Description |
|---|---|
|
Page number to return. |
|
Page size. Default 35 |
|
Sorting in format [property][,ASC|DESC]. Allowed values: [fileType, uploadType, approvable, collectable]. Allowed direction: [ASC, DESC]. Default direction is ASC. |
|
Customer contracts |
|
Customer numbers |
|
Company IDs |
|
Filter by upload types. Allowed values [JOB, SINGLE] |
|
Filter by file types. Allowed values [PDF, RAW] |
|
Filter by approvable |
|
Filter by collectable |
|
Filter by state. Allowed values [ACTIVE, INACTIVE] |
Example request
GET /v1/customer-contracts?sort=fileType%2CDESC&sort=uploadType%2CDESC&page=0&size=10&customerContracts=customerContract-customerContract1&customerContracts=customerContract-customerContract2&customerNumbers=customerNumber&companyIds=00000000-0000-0000-0000-000000000001&uploadTypes=JOB&fileTypes=PDF&approvable=false&collectable=false&state=INACTIVE HTTP/1.1
X-PF-DWC-Requester-Role: ROLE_CUSTOMER_ADMIN
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"content" : [ {
"number" : "customerContract-customerContract1",
"version" : 1,
"description" : "customerContract-customerContract1 description",
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"isActive" : false,
"approvable" : false,
"collectable" : false,
"outputType" : "DW24",
"fileType" : "PDF",
"uploadType" : "JOB"
}, {
"number" : "customerContract-customerContract2",
"version" : 1,
"description" : "customerContract-customerContract2 description",
"states" : [ {
"state" : "ACTIVE",
"validFrom" : "2121-01-31T11:22:33.456Z"
}, {
"state" : "INACTIVE",
"validFrom" : "2121-02-01T11:22:33.456Z"
} ],
"isActive" : false,
"approvable" : false,
"collectable" : false,
"outputType" : "DW24",
"fileType" : "PDF",
"uploadType" : "JOB"
} ],
"totalElements" : 2,
"totalPages" : 1,
"last" : true,
"first" : true,
"numberOfElements" : 2,
"size" : 10,
"number" : 0,
"sort" : [ {
"property" : "fileType",
"direction" : "DESC"
}, {
"property" : "uploadType",
"direction" : "DESC"
} ]
}
Response fields
| Path | Type | Description |
|---|---|---|
|
|
Customer contract number. Must be unique (case-insensitive) |
|
|
Customer contract number description |
|
|
State transitions of the customer contract. Defaults to INACTIVE |
|
|
Customer contract revision. Changes to the contract change this revision. |
|
|
True if the customer contract is currently active |
|
|
True if workflows of this contract may use approval settings: |
|
|
True if uploads of this contract’s workflows are collected before delivery: they wait in state |
|
|
Where the processed files of the contract are delivered. DW24: to docxworld24 through the DWC adapter; TRANSFER_TO_DOWNLOAD_SERVICE: made available as a download of type RESULT; EMAIL_OUTPUT: sent as an attachment to the uploader’s e-mail address (for a technical access, its contact e-mail); EXTERNAL_OUTPUT: delivered to a customer-operated spooler (prototype). Allowed values: [DW24, EXTERNAL_OUTPUT, TRANSFER_TO_DOWNLOAD_SERVICE, EMAIL_OUTPUT] |
|
|
Format of the uploaded files. PDF: a PDF document, checked as PDF on upload; RAW: arbitrary data. Only PDF uploads can be approved or collected. Allowed values: [PDF, RAW] |
|
|
What an upload of the contract contains. JOB: data that is processed further, for example into a set of documents in docxworld24 (default when omitted at creation); SINGLE: one finished document. Only SINGLE uploads can be approved or collected. Allowed values: [JOB, SINGLE] |
|
|
Customer contract state. Allowed values: [ACTIVE, INACTIVE] |
|
|
Customer contract state activation timestamp. Defaults to the current time |
Workflow
A workflow belongs to a company and one customer contract. It configures processing and approval
for its targets. Deleting a workflow requires INACTIVE, see Delete workflow.
Create workflow
Authentication: User authentication
Endpoint and parameters
POST /v1/workflows
Request fields
| Path | Type | Description | Constraints |
|---|---|---|---|
name |
String |
Workflow name. Must be unique (case-insensitive) |
Must not be blank. Size must be between 1 and 64 inclusive |
abbreviation |
String |
Workflow abbreviation. Must be unique (case-insensitive) |
Must not be blank. Size must be between 1 and 16 inclusive |
customerContract |
String |
Customer contract number, workflow associated with |
Must not be blank |
description |
String |
Workflow description |
Size must be between 0 and 255 inclusive |
approvalNeeded |
Boolean |
If approval is required for this workflow |
|
escalationDeadlineNotificationEmail |
String |
Email for escalation notifications. Required if escalationNotificationDeadline > 0 |
Must be a well-formed email address |
escalationNotificationDeadline |
Number (integer) |
Escalation deadline in days (0-30). 0 means disabled |
Must be at least 0. Must be at most 30 |
approversNotificationDeadline |
Number (integer) |
Deadline in days (0-30) for approver notification. 0 means disabled |
Must be at least 0. Must be at most 30 |
status |
String |
Status of the workflow. Allowed values: [ACTIVE, INACTIVE] |
|
externalReceiver.url |
String |
External receiver |
Must be a well-formed URL. Must not be empty |
Example request
POST /v1/workflows HTTP/1.1
Content-Type: application/json;charset=UTF8
X-PF-DWC-Requester-Role: ROLE_CUSTOMER_ADMIN
{
"customerContract" : "customerContract-1-1",
"name" : "workflow 1",
"abbreviation" : "W1",
"description" : "description workflow 1",
"approvalNeeded" : false,
"escalationDeadlineNotificationEmail" : null,
"escalationNotificationDeadline" : 0,
"approversNotificationDeadline" : 0,
"status" : "ACTIVE",
"externalReceiver" : {
"url" : "https://external-receiver-url"
}
}
Example response
HTTP/1.1 201 Created
Location: http://localhost:8080/v1/workflows/00000000-0000-0000-0000-000000000001
Content-Type: application/json
{
"abbreviation" : "W1",
"approvalNeeded" : false,
"approversNotificationDeadline" : 0,
"companyId" : "00000000-0000-0000-0000-000000000001",
"customerContract" : "customerContract-1-1",
"description" : "description workflow 1",
"encryptionAllowed" : true,
"escalationDeadlineNotificationEmail" : null,
"escalationNotificationDeadline" : 0,
"externalReceiver" : {
"url" : "https://external-receiver-url"
},
"fileType" : null,
"id" : "00000000-0000-0000-0000-000000000001",
"name" : "workflow 1",
"status" : "ACTIVE",
"version" : 1
}
Workflow response fields
| Path | Type | Description |
|---|---|---|
|
|
Workflow ID |
|
|
Company ID |
|
|
Workflow name |
|
|
Customer contract number, workflow associated with |
|
|
Workflow abbreviation |
|
|
Workflow description |
|
|
If approval is required for this workflow |
|
|
If encryption is allowed for this workflow |
|
|
Workflow revision. Changes to the workflow change this revision. |
|
|
Format of the files uploaded to this workflow, inherited from its customer contract. Allowed values: PDF, RAW |
|
|
Workflow status. Possible values: [ACTIVE, INACTIVE] |
|
|
Email for escalation notifications |
|
|
Escalation deadline in days (0-30). 0 means disabled |
|
|
Deadline in days (0-30) for approver notification. 0 means disabled |
|
|
External receiver url |
Update workflow metadata
Authentication: User authentication
Request fields
| Path | Type | Description | Constraints |
|---|---|---|---|
name |
String |
Workflow name. Must be unique (case-insensitive) |
Must not be blank. Size must be between 1 and 64 inclusive |
abbreviation |
String |
Workflow abbreviation. Must be unique (case-insensitive) |
Must not be blank. Size must be between 1 and 16 inclusive |
description |
String |
Workflow description. |
Size must be between 0 and 255 inclusive |
Example request
PUT /v1/workflows/00000000-0000-0000-0000-000000000001 HTTP/1.1
Content-Type: application/json;charset=UTF8
X-PF-DWC-Requester-Role: ROLE_CUSTOMER_ADMIN
{
"name" : "newName",
"abbreviation" : "newAbbreviation",
"description" : "newDescription"
}
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"abbreviation" : "W1",
"approvalNeeded" : false,
"approversNotificationDeadline" : 0,
"companyId" : "00000000-0000-0000-0000-000000000001",
"customerContract" : "customerContract-1-1",
"description" : "description workflow 1",
"encryptionAllowed" : true,
"escalationDeadlineNotificationEmail" : null,
"escalationNotificationDeadline" : 0,
"externalReceiver" : {
"url" : "https://external-receiver-url"
},
"fileType" : null,
"id" : "00000000-0000-0000-0000-000000000001",
"name" : "workflow 1",
"status" : "ACTIVE",
"version" : null
}
Response fields: see Workflow response fields.
Update workflow settings
Replaces the complete set of workflow settings, see Changing settings.
Authentication: User authentication
Request fields
| Path | Type | Description | Constraints |
|---|---|---|---|
approvalNeeded |
Boolean |
Whether approval is needed. Omitted value: false. |
|
escalationDeadlineNotificationEmail |
String |
Email for deadline notifications. Omitted value: null. Required if escalationNotificationDeadline > 0. |
Must be a well-formed email address |
escalationNotificationDeadline |
Number (integer) |
Deadline in days (0-30). Omitted value: 0 (disabled). |
Must be at least 0. Must be at most 30 |
approversNotificationDeadline |
Number (integer) |
Escalation deadline in days (0-30). Omitted value: 0 (disabled). |
Must be at least 0. Must be at most 30 |
Example request
PUT /v1/workflows/00000000-0000-0000-0000-000000000001/settings HTTP/1.1
Content-Type: application/json;charset=UTF8
X-PF-DWC-Requester-Role: ROLE_CUSTOMER_ADMIN
{
"approvalNeeded" : true,
"escalationDeadlineNotificationEmail" : null,
"escalationNotificationDeadline" : 0,
"approversNotificationDeadline" : 0
}
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"abbreviation" : "W1",
"approvalNeeded" : false,
"approversNotificationDeadline" : 0,
"companyId" : "00000000-0000-0000-0000-000000000001",
"customerContract" : "customerContract-1-1",
"description" : "description workflow 1",
"encryptionAllowed" : true,
"escalationDeadlineNotificationEmail" : null,
"escalationNotificationDeadline" : 0,
"externalReceiver" : {
"url" : "https://external-receiver-url"
},
"fileType" : null,
"id" : "00000000-0000-0000-0000-000000000001",
"name" : "workflow 1",
"status" : "ACTIVE",
"version" : null
}
Response fields: see Workflow response fields.
Update workflow status
Authentication: User authentication
Request fields
| Path | Type | Description | Constraints |
|---|---|---|---|
status |
String |
Workflow status. Allowed values: [ACTIVE, INACTIVE] |
Must not be null |
Example request
PUT /v1/workflows/00000000-0000-0000-0000-000000000001/status HTTP/1.1
Content-Type: application/json;charset=UTF8
X-PF-DWC-Requester-Role: ROLE_CUSTOMER_ADMIN
{
"status" : "INACTIVE"
}
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"abbreviation" : "W1",
"approvalNeeded" : false,
"approversNotificationDeadline" : 0,
"companyId" : "00000000-0000-0000-0000-000000000001",
"customerContract" : "customerContract-1-1",
"description" : "description workflow 1",
"encryptionAllowed" : true,
"escalationDeadlineNotificationEmail" : null,
"escalationNotificationDeadline" : 0,
"externalReceiver" : {
"url" : "https://external-receiver-url"
},
"fileType" : null,
"id" : "00000000-0000-0000-0000-000000000001",
"name" : "workflow 1",
"status" : "INACTIVE",
"version" : null
}
Response fields: see Workflow response fields.
Delete workflow
Soft-deletes an inactive workflow. Active workflows are rejected and must be deactivated first. The accepted deletion immediately hides the workflow from normal workflow and target APIs.
Authentication: User authentication
Endpoint and parameters
DELETE /v1/workflows/{id}
| Parameter | Description |
|---|---|
|
ID of the inactive workflow |
Example request
DELETE /v1/workflows/00000000-0000-0000-0000-000000000001 HTTP/1.1
X-PF-DWC-Requester-Role: ROLE_CUSTOMER_ADMIN
Example response
HTTP/1.1 202 Accepted
Get workflow
Authentication: User authentication
Example request
GET /v1/workflows/00000000-0000-0000-0000-000000000001 HTTP/1.1
Content-Type: application/json;charset=UTF8
X-PF-DWC-Requester-Role: ROLE_CUSTOMER_ADMIN
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"abbreviation" : "W1",
"approvalNeeded" : false,
"approversNotificationDeadline" : 0,
"companyId" : "00000000-0000-0000-0000-000000000001",
"customerContract" : "customerContract-1-1",
"description" : "description workflow 1",
"encryptionAllowed" : true,
"escalationDeadlineNotificationEmail" : null,
"escalationNotificationDeadline" : 0,
"externalReceiver" : {
"url" : "https://external-receiver-url"
},
"fileType" : null,
"id" : "00000000-0000-0000-0000-000000000001",
"name" : "workflow 1",
"status" : "ACTIVE",
"version" : 1
}
Response fields: see Workflow response fields.
List workflows
Paged list; paging, sorting and the page wrapper are described in Paged lists. Each element of content has the fields of Workflow response fields.
Authentication: User authentication
Endpoint and parameters
GET /v1/workflows
| Parameter | Description |
|---|---|
|
Filter and return workflows containing provided sequence in name, abbreviation or description. Case insensitive. |
|
Filter and return workflows with provided name. |
|
Filter and return workflows assigned to provided contracts. |
|
Filter and return workflows assigned to provided companies. |
|
Filter and return workflows with provided abbreviation. |
|
Filter and return workflows with provided approvalNeeded. |
|
Page number to return. [0,totalPages) |
|
Page size. Default 35 |
|
Sorting in format property[,ASC|DESC]. Allowed fields: [name] |
Example request
GET /v1/workflows?page=0&size=5&freeSearch=workflow&name=workflow+1&customerContracts=customerContract-1-1&companyIds=00000000-0000-0000-0000-000000000001&companyIds=00000000-0000-0000-0000-000000000002&abbreviation=W1&approvalNeeded=false HTTP/1.1
X-PF-DWC-Requester-Role: ROLE_CUSTOMER_ADMIN
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"content" : [ {
"abbreviation" : "W1",
"approvalNeeded" : false,
"approversNotificationDeadline" : 0,
"companyId" : "00000000-0000-0000-0000-000000000001",
"customerContract" : "customerContract-1-1",
"description" : "description workflow 1",
"encryptionAllowed" : true,
"escalationDeadlineNotificationEmail" : null,
"escalationNotificationDeadline" : 0,
"externalReceiver" : {
"url" : "https://external-receiver-url"
},
"fileType" : null,
"id" : "00000000-0000-0000-0000-000000000001",
"name" : "workflow 1",
"status" : "ACTIVE",
"version" : null
} ],
"totalElements" : 1,
"totalPages" : 1,
"last" : true,
"first" : true,
"numberOfElements" : 1,
"size" : 5,
"number" : 0,
"sort" : [ {
"property" : "name",
"direction" : "ASC"
} ]
}
Target
A target identifies a destination within a workflow. Use its UUID when assigning access or creating
an upload or download. Target responses depend on the requested role: the example and field table
below show the uploader view; administrative roles can also receive workflow.externalReceiver.
Get target
Authentication: User authentication
Example request
GET /v1/targets/00000000-0000-0000-0000-000000000001 HTTP/1.1
Content-Type: application/json;charset=UTF8
X-PF-DWC-Requester-Role: ROLE_CUSTOMER_UPLOADER
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"id" : "00000000-0000-0000-0000-000000000001",
"targetType" : "DEFAULT",
"version" : null,
"workflow" : {
"abbreviation" : "W1",
"approvalNeeded" : false,
"approversNotificationDeadline" : 0,
"companyId" : "00000000-0000-0000-0000-000000000001",
"customerContract" : "customerContract-1-1",
"description" : "description workflow 1",
"encryptionAllowed" : true,
"escalationDeadlineNotificationEmail" : null,
"escalationNotificationDeadline" : 0,
"fileType" : null,
"id" : "00000000-0000-0000-0000-000000000001",
"name" : "workflow 1",
"status" : "ACTIVE",
"version" : null
}
}
Target response fields
| Path | Type | Description |
|---|---|---|
|
|
Target ID |
|
|
Target revision. Changes to the target change this revision. |
|
|
Target type. Possible values: [DEFAULT, MANUAL] |
|
|
Workflow ID |
|
|
Workflow name |
|
|
Workflow version |
|
|
Company ID |
|
|
Customer contract number, workflow associated with |
|
|
Workflow abbreviation |
|
|
Workflow description |
|
|
If approval is required for this workflow |
|
|
If encryption is allowed for this workflow |
|
|
Format of the files uploaded to this workflow, inherited from its customer contract. Allowed values: PDF, RAW |
|
|
Workflow status. Possible values: [ACTIVE, INACTIVE] |
|
|
Email for deadline notifications |
|
|
Deadline in days (0-30). 0 means disabled |
|
|
Escalation deadline in days (0-30). 0 means disabled |
|
|
External receiver url |
List targets
Paged list; paging, sorting and the page wrapper are described in Paged lists. Each element of content has the fields of Target response fields.
Authentication: User authentication
Endpoint and parameters
GET /v1/targets
| Parameter | Description |
|---|---|
|
Filter and return targets assigned to provided contracts. |
|
Filter and return targets assigned to provided companies. |
|
Filter and return targets assigned to provided workflows. |
|
Page number to return. [0,totalPages) |
|
Page size. Default 35 |
|
Sorting in format [property][,ASC|DESC]. Allowed values: [workflow]. Allowed direction: [ASC, DESC]. Default direction is ASC. |
Example request
GET /v1/targets?page=0&size=5&customerContracts=customerContract-1-1&companyIds=00000000-0000-0000-0000-000000000001&companyIds=00000000-0000-0000-0000-000000000002&workflowIds=00000000-0000-0000-0000-000000000001&workflowIds=00000000-0000-0000-0000-000000000002 HTTP/1.1
X-PF-DWC-Requester-Role: ROLE_CUSTOMER_ADMIN
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"content" : [ {
"id" : "00000000-0000-0000-0000-000000000001",
"targetType" : "DEFAULT",
"version" : null,
"workflow" : {
"abbreviation" : "W1",
"approvalNeeded" : false,
"approversNotificationDeadline" : 0,
"companyId" : "00000000-0000-0000-0000-000000000001",
"customerContract" : "customerContract-1-1",
"description" : "description workflow 1",
"encryptionAllowed" : true,
"escalationDeadlineNotificationEmail" : null,
"escalationNotificationDeadline" : 0,
"externalReceiver" : {
"url" : "https://external-receiver-url"
},
"fileType" : null,
"id" : "00000000-0000-0000-0000-000000000001",
"name" : "workflow 1",
"status" : "ACTIVE",
"version" : null
}
}, {
"id" : "00000000-0000-0000-0000-000000000002",
"targetType" : "MANUAL",
"version" : null,
"workflow" : {
"abbreviation" : "W1",
"approvalNeeded" : false,
"approversNotificationDeadline" : 0,
"companyId" : "00000000-0000-0000-0000-000000000001",
"customerContract" : "customerContract-1-1",
"description" : "description workflow 1",
"encryptionAllowed" : true,
"escalationDeadlineNotificationEmail" : null,
"escalationNotificationDeadline" : 0,
"externalReceiver" : {
"url" : "https://external-receiver-url"
},
"fileType" : null,
"id" : "00000000-0000-0000-0000-000000000001",
"name" : "workflow 1",
"status" : "ACTIVE",
"version" : null
}
} ],
"totalElements" : 2,
"totalPages" : 1,
"last" : true,
"first" : true,
"numberOfElements" : 2,
"size" : 5,
"number" : 0,
"sort" : [ {
"property" : "workflow",
"direction" : "ASC"
} ]
}
Company service error codes
| Code | Description |
|---|---|
de.profiforms.docxworld.connect.company.error.client.external_receiver_url_validation_error |
External receiver URL validation error |
de.profiforms.docxworld.connect.company.error.client.invalid_sort_argument |
Invalid sort argument exception |
de.profiforms.docxworld.connect.company.error.client.workflow_not_exists |
Workflow not exist |
de.profiforms.docxworld.connect.company.error.client.deadline_email_required |
Deadline notification email is required when deadline is set |
de.profiforms.docxworld.connect.company.error.client.workflow_already_exists |
workflow with such name or abbreviation already exists |
de.profiforms.docxworld.connect.company.error.client.role_header_missing |
Required request header is missing |
de.profiforms.docxworld.connect.company.error.client.malformed_request |
Malformed JSON request |
de.profiforms.docxworld.connect.company.error.client.customer_contract_cant_be_deleted |
CustomerContract can’t be deleted |
de.profiforms.docxworld.connect.company.error.client.customer_number_cant_be_deleted |
CustomerNumber can’t be deleted |
de.profiforms.docxworld.connect.company.error.client.workflow_still_active |
Workflow must be deactivated before deletion |
de.profiforms.docxworld.connect.company.error.sns.send_message_failed |
Failed to send notifications. Changes cannot be applied. |
de.profiforms.docxworld.connect.company.error.client.customer_contract_already_exists |
CustomerContract already exists exception |
de.profiforms.docxworld.connect.company.error.client.instant_duplicate_in_request |
Request contains duplicate instants |
de.profiforms.docxworld.connect.company.error.client.workflow_not_approvable |
Workflow is not approvable |
de.profiforms.docxworld.connect.company.error.client.customer_contract_not_exists |
Customer contract not exist |
de.profiforms.docxworld.connect.company.error.client.customer_number_not_exists |
Customer number not exist |
de.profiforms.docxworld.connect.company.error.client.target_not_exists |
Target not exist |
de.profiforms.docxworld.connect.company.error.client.customer_already_exists |
Customer already exists |
de.profiforms.docxworld.connect.company.error.client.access_denied |
Access denied |
de.profiforms.docxworld.connect.company.error.client.validation |
Validation error |
de.profiforms.docxworld.connect.company.error.client.company_not_exists |
Company not exist |
de.profiforms.docxworld.connect.company.error.client.customer_number_already_exists |
CustomerNumber already exists exception |
de.profiforms.docxworld.connect.company.error.server.unexpected_internal |
Unexpected internal error |
de.profiforms.docxworld.connect.company.error.client.transition_state_already_exists |
TransitionState already exists exception |
de.profiforms.docxworld.connect.company.error.client.instant_state_in_the_past |
States from the past cannot be deleted |
Download service
Retrieving a file
-
Use List downloads with
downloaded=falseto find files not yet acknowledged. -
Generate a temporary URL with Get download link.
-
Retrieve the file with an HTTP
GETto that URL and save it in your system. Do not send API authentication headers to S3. -
Call Acknowledge download after saving the file, using a stable
clientIdin the JSON request body. Keep the same identifier when retrying acknowledgement.
Generating a link or reading S3 does not acknowledge a download. The list and read endpoints expose available files only; pending drafts and failed materialization are hidden.
Download
A download is a file made available by a workflow or a Technical Access. Listing a download, generating a link, and acknowledging receipt are separate operations.
List downloads
Paged list; paging, sorting and the page wrapper are described in Paged lists.
Authentication: User authentication
Endpoint and parameters
GET /v1/downloads
| Parameter | Description |
|---|---|
|
Filter and return downloads for given targets. |
|
Filter and return downloads for given customer contract. |
|
Filter and return downloads for given company ID. |
|
Filter by exact caller reference IDs. Repeat the parameter to match any of the supplied values. |
|
true selects acknowledged downloads; false selects unacknowledged downloads. Omit to include both |
|
Filter and return downloads for given download-types. Allowed values: [RESULT, REPORT] |
|
Search filename, target name, download ID, reference ID, uploader/approver identifiers and names, human emails, and metadata. |
|
Page number to return. [0,totalPages) |
|
Page size. Default 35 |
|
Sorting in format [property][,ASC|DESC]. Allowed values: [created, targetName, type]. Allowed direction: [ASC, DESC]. Default direction is ASC. |
Example request
GET /v1/downloads?targets=00000000-0000-0000-0000-000000000001&targets=00000000-0000-0000-0000-000000000002&downloadTypes=RESULT&downloadTypes=REPORT&downloaded=true&freeSearch=download&customerContract=42&companyId=00000000-0000-0000-0000-000000000001&referenceIds=42&referenceIds=43 HTTP/1.1
X-PF-DWC-Requester-Role: ROLE_CUSTOMER_DOWNLOADER_RESULTS
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"content" : [ {
"approverDeleted" : false,
"approverEmail" : null,
"approverId" : null,
"created" : "2121-01-31T11:17:33.456Z",
"customerContract" : "42",
"downloadLinkGenerated" : false,
"downloaded" : "2121-01-31T11:27:33.456Z",
"downloadedBy" : "downloader_42",
"downloadedByClient" : "client_42",
"downloadedReferenceId" : "downloadedReferenceId_42",
"downloaderDeleted" : false,
"downloaderEmail" : "downloaderEmail_42",
"fileName" : "download1",
"id" : "00000000-0000-0000-0000-000000000001",
"metadata" : {
"anotherKey" : "anotherValue",
"anyKey" : "anyValue"
},
"referenceId" : "42",
"size" : 42,
"targetId" : "00000000-0000-0000-0000-000000000001",
"targetName" : "targetName_42",
"type" : "RESULT",
"uploaderDeleted" : false,
"uploaderEmail" : null,
"uploaderId" : null
}, {
"approverDeleted" : false,
"approverEmail" : null,
"approverId" : null,
"created" : "2121-01-31T11:17:33.456Z",
"customerContract" : "42",
"downloadLinkGenerated" : false,
"downloaded" : "2121-01-31T11:27:33.456Z",
"downloadedBy" : "downloader_42",
"downloadedByClient" : "client_42",
"downloadedReferenceId" : "downloadedReferenceId_42",
"downloaderDeleted" : false,
"downloaderEmail" : "downloaderEmail_42",
"fileName" : "download2",
"id" : "00000000-0000-0000-0000-000000000002",
"metadata" : {
"anotherKey" : "anotherValue",
"anyKey" : "anyValue"
},
"referenceId" : "42",
"size" : 42,
"targetId" : "00000000-0000-0000-0000-000000000001",
"targetName" : "targetName_42",
"type" : "RESULT",
"uploaderDeleted" : false,
"uploaderEmail" : null,
"uploaderId" : null
} ],
"totalElements" : 2,
"totalPages" : 1,
"last" : true,
"first" : true,
"numberOfElements" : 2,
"size" : 35,
"number" : 0,
"sort" : [ ]
}
Response fields
| Path | Type | Description |
|---|---|---|
|
|
ID of the download |
|
|
Reference-ID of the download |
|
|
Filename of the download |
|
|
Customer-contract of the download |
|
|
Target-ID of the download |
|
|
Target-name of the download |
|
|
Creation time of the download |
|
|
Download link already created |
|
|
Download acknowledge time |
|
|
User-ID who downloaded the file |
|
|
Email of the downloader |
|
|
Client-ID who downloaded the file |
|
|
Reference-ID provided during download |
|
|
Size of the download |
|
|
Type of the download |
|
|
Authenticated uploader subject ID |
|
|
Uploader identity type. Possible values: [USER, TECHNICAL_ACCESS] |
|
|
Display name of the uploader |
|
|
Email of the uploader |
|
|
True if the uploader was deleted: an anonymized user, or a deleted technical access |
|
|
True if the downloading user was deleted and their personal data anonymized |
|
|
True if the approver was deleted and their personal data anonymized |
|
|
User-ID of the approver |
|
|
Email of the approver |
|
|
Customer-supplied metadata of the download as key-value pairs |
Count the downloads of a company
Results and reports provided for one company per month, week and day, for Profiforms administrators. Counted are the
downloads that List downloads lists. Every period is present, with 0 where nothing was provided; the last entry
of each list is the period still running.
Authentication: User authentication
Parameters
| Parameter | Description |
|---|---|
|
Company whose downloads are counted |
|
Narrows the count to one contract of the company |
|
Narrows the count to one target of the company, that is to one workflow |
|
Narrows the count to the downloads of the uploads of one technical access of the company, given by its id; at most one of customerContract, targetId and technicalAccessId |
Example request
GET /v1/downloads/statistics?companyId=00000000-0000-0000-0000-00000000c0a1 HTTP/1.1
X-PF-DWC-Requester-Role: ROLE_PF_ADMIN
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"months" : [ {
"start" : "2025-11-01",
"results" : 1,
"reports" : 2,
"bytes" : 1048576
}, {
"start" : "2025-12-01",
"results" : 2,
"reports" : 3,
"bytes" : 2097152
}, {
"start" : "2026-01-01",
"results" : 3,
"reports" : 4,
"bytes" : 3145728
}, {
"start" : "2026-02-01",
"results" : 4,
"reports" : 5,
"bytes" : 4194304
}, {
"start" : "2026-03-01",
"results" : 5,
"reports" : 6,
"bytes" : 5242880
}, {
"start" : "2026-04-01",
"results" : 6,
"reports" : 7,
"bytes" : 6291456
}, {
"start" : "2026-05-01",
"results" : 7,
"reports" : 8,
"bytes" : 7340032
}, {
"start" : "2026-06-01",
"results" : 8,
"reports" : 9,
"bytes" : 8388608
}, {
"start" : "2026-07-01",
"results" : 9,
"reports" : 10,
"bytes" : 9437184
}, {
"start" : "2026-08-01",
"results" : 10,
"reports" : 11,
"bytes" : 10485760
}, {
"start" : "2026-09-01",
"results" : 11,
"reports" : 12,
"bytes" : 11534336
}, {
"start" : "2026-10-01",
"results" : 12,
"reports" : 13,
"bytes" : 12582912
} ],
"weeks" : [ {
"start" : "2026-08-03",
"results" : 1,
"reports" : 2,
"bytes" : 1048576
}, {
"start" : "2026-08-10",
"results" : 2,
"reports" : 3,
"bytes" : 2097152
}, {
"start" : "2026-08-17",
"results" : 3,
"reports" : 4,
"bytes" : 3145728
}, {
"start" : "2026-08-24",
"results" : 4,
"reports" : 5,
"bytes" : 4194304
}, {
"start" : "2026-08-31",
"results" : 5,
"reports" : 6,
"bytes" : 5242880
}, {
"start" : "2026-09-07",
"results" : 6,
"reports" : 7,
"bytes" : 6291456
}, {
"start" : "2026-09-14",
"results" : 7,
"reports" : 8,
"bytes" : 7340032
}, {
"start" : "2026-09-21",
"results" : 8,
"reports" : 9,
"bytes" : 8388608
}, {
"start" : "2026-09-28",
"results" : 9,
"reports" : 10,
"bytes" : 9437184
}, {
"start" : "2026-10-05",
"results" : 10,
"reports" : 11,
"bytes" : 10485760
}, {
"start" : "2026-10-12",
"results" : 11,
"reports" : 12,
"bytes" : 11534336
}, {
"start" : "2026-10-19",
"results" : 12,
"reports" : 13,
"bytes" : 12582912
} ],
"days" : [ {
"start" : "2026-09-22",
"results" : 1,
"reports" : 2,
"bytes" : 1048576
}, {
"start" : "2026-09-23",
"results" : 2,
"reports" : 3,
"bytes" : 2097152
}, {
"start" : "2026-09-24",
"results" : 3,
"reports" : 4,
"bytes" : 3145728
}, {
"start" : "2026-09-25",
"results" : 4,
"reports" : 5,
"bytes" : 4194304
}, {
"start" : "2026-09-26",
"results" : 5,
"reports" : 6,
"bytes" : 5242880
}, {
"start" : "2026-09-27",
"results" : 6,
"reports" : 7,
"bytes" : 6291456
}, {
"start" : "2026-09-28",
"results" : 7,
"reports" : 8,
"bytes" : 7340032
}, {
"start" : "2026-09-29",
"results" : 8,
"reports" : 9,
"bytes" : 8388608
}, {
"start" : "2026-09-30",
"results" : 9,
"reports" : 10,
"bytes" : 9437184
}, {
"start" : "2026-10-01",
"results" : 10,
"reports" : 11,
"bytes" : 10485760
}, {
"start" : "2026-10-02",
"results" : 11,
"reports" : 12,
"bytes" : 11534336
}, {
"start" : "2026-10-03",
"results" : 12,
"reports" : 13,
"bytes" : 12582912
}, {
"start" : "2026-10-04",
"results" : 13,
"reports" : 14,
"bytes" : 13631488
}, {
"start" : "2026-10-05",
"results" : 14,
"reports" : 15,
"bytes" : 14680064
}, {
"start" : "2026-10-06",
"results" : 15,
"reports" : 16,
"bytes" : 15728640
}, {
"start" : "2026-10-07",
"results" : 16,
"reports" : 17,
"bytes" : 16777216
}, {
"start" : "2026-10-08",
"results" : 17,
"reports" : 18,
"bytes" : 17825792
}, {
"start" : "2026-10-09",
"results" : 18,
"reports" : 19,
"bytes" : 18874368
}, {
"start" : "2026-10-10",
"results" : 19,
"reports" : 20,
"bytes" : 19922944
}, {
"start" : "2026-10-11",
"results" : 20,
"reports" : 21,
"bytes" : 20971520
}, {
"start" : "2026-10-12",
"results" : 21,
"reports" : 22,
"bytes" : 22020096
}, {
"start" : "2026-10-13",
"results" : 22,
"reports" : 23,
"bytes" : 23068672
}, {
"start" : "2026-10-14",
"results" : 23,
"reports" : 24,
"bytes" : 24117248
}, {
"start" : "2026-10-15",
"results" : 24,
"reports" : 25,
"bytes" : 25165824
}, {
"start" : "2026-10-16",
"results" : 25,
"reports" : 26,
"bytes" : 26214400
}, {
"start" : "2026-10-17",
"results" : 26,
"reports" : 27,
"bytes" : 27262976
}, {
"start" : "2026-10-18",
"results" : 27,
"reports" : 28,
"bytes" : 28311552
}, {
"start" : "2026-10-19",
"results" : 28,
"reports" : 29,
"bytes" : 29360128
}, {
"start" : "2026-10-20",
"results" : 29,
"reports" : 30,
"bytes" : 30408704
}, {
"start" : "2026-10-21",
"results" : 30,
"reports" : 31,
"bytes" : 31457280
} ]
}
Response fields
| Path | Type | Description |
|---|---|---|
|
|
The last 12 calendar months including the current one, oldest first |
|
|
The last 12 weeks starting on Monday including the current one, oldest first |
|
|
The last 30 days including today, oldest first |
|
|
First day of the period; periods follow German time (Europe/Berlin) |
|
|
Results provided for download in the period |
|
|
Reports provided for download in the period |
|
|
Sum of the sizes of the provided files |
Get download
Authentication: User authentication
Example request
GET /v1/downloads/00000000-0000-0000-0000-000000000001 HTTP/1.1
X-PF-DWC-Requester-Role: ROLE_CUSTOMER_DOWNLOADER_RESULTS
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"approverDeleted" : false,
"approverEmail" : null,
"approverId" : null,
"created" : "2121-01-31T11:17:33.456Z",
"customerContract" : "42",
"downloadLinkGenerated" : false,
"downloaded" : "2121-01-31T11:27:33.456Z",
"downloadedBy" : "downloader_42",
"downloadedByClient" : "client_42",
"downloadedReferenceId" : "downloadedReferenceId_42",
"downloaderDeleted" : false,
"downloaderEmail" : "downloaderEmail_42",
"fileName" : "download1",
"id" : "00000000-0000-0000-0000-000000000001",
"metadata" : {
"anotherKey" : "anotherValue",
"anyKey" : "anyValue"
},
"referenceId" : "42",
"size" : 42,
"targetId" : "00000000-0000-0000-0000-000000000001",
"targetName" : "targetName_42",
"type" : "RESULT",
"uploaderDeleted" : false,
"uploaderEmail" : null,
"uploaderId" : "uploader_42",
"uploaderType" : "USER"
}
Response fields
| Path | Type | Description |
|---|---|---|
|
|
ID of the download |
|
|
Reference-ID of the download |
|
|
Filename of the download |
|
|
Customer-contract of the download |
|
|
Target-ID of the download |
|
|
Target-name of the download |
|
|
Creation time of the download |
|
|
Download link already created |
|
|
Download acknowledge time |
|
|
User-ID who downloaded the file |
|
|
Email of the downloader |
|
|
Client-ID who downloaded the file |
|
|
Reference-ID provided during download |
|
|
Size of the download |
|
|
Type of the download |
|
|
Authenticated uploader subject ID |
|
|
Uploader identity type. Possible values: [USER, TECHNICAL_ACCESS] |
|
|
Display name of the uploader |
|
|
Email of the uploader |
|
|
True if the uploader was deleted: an anonymized user, or a deleted technical access |
|
|
True if the downloading user was deleted and their personal data anonymized |
|
|
True if the approver was deleted and their personal data anonymized |
|
|
User-ID of the approver |
|
|
Email of the approver |
|
|
Customer-supplied metadata of the download as key-value pairs |
Create technical download draft
Creates a new draft download and returns a presigned upload URL.
Authentication: Technical authentication
This endpoint is intended for technical access only:
-
it does not use
X-PF-DWC-Requester-Role; -
it creates the
Downloaddraft before the file is uploaded to S3.
File transfer sequence
-
Call
POST /v1/downloadswith a Technical Access token containingtower/customer-uploaderand access to the target. -
Keep the returned draft
id,uploadUrl, andheaders. -
Send the entire file as the raw body of an HTTP
PUTtouploadUrl. Replay every entry ofheadersunchanged, including allx-amz-meta-*headers. Do not add API authentication headers to this request. -
After S3 accepts the object, its object-created event finalizes the existing draft asynchronously. A successful S3 response does not mean that the draft is already available.
-
An authorized human caller can retrieve the resulting file through the list, read and link operations. Those operations do not accept Technical Access tokens.
The customer contract is derived from the target; it is not a request field.
A metadata mismatch marks the draft as ERROR and keeps it hidden from the list, read and link operations.
Keep the draft identifier for diagnosis if the transfer succeeds but the download does not become visible.
Repeating the create request creates another draft; the caller’s referenceId is not an HTTP idempotency key.
Endpoint and parameters
POST /v1/downloads
Request fields
| Path | Type | Description | Constraints |
|---|---|---|---|
targetId |
String (UUID) |
Required target identifier; the caller must have access to this target. |
Must not be null |
fileName |
String |
Required non-blank original file name. |
Must not be blank |
downloadType |
String |
Required download type. Allowed values: [RESULT, REPORT] |
Must not be null |
referenceId |
String |
Required non-blank caller reference; does not make create requests idempotent. |
Must not be blank |
metadata |
Object |
Optional string key/value metadata; defaults to {} when omitted, null is rejected. At most 20 entries; keys must match [A-Za-z0-9._-]+, be at most 128 characters, and be unique ignoring case. Values must be non-blank, contain no control characters, and be at most 1024 characters. Encoded S3 metadata headers and values must fit within 2048 bytes. |
Example request
POST /v1/downloads HTTP/1.1
Content-Type: application/json;charset=UTF8
{
"downloadType" : "RESULT",
"fileName" : "generated.xml",
"metadata" : {
"sourceSystem" : "sap"
},
"referenceId" : "external-ref-42",
"targetId" : "00000000-0000-0000-0000-000000000001"
}
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"headers" : {
"x-amz-meta-contractnumber" : "contract-number-company2-1-1",
"x-amz-meta-x-v2-pf-736f7572636553797374656d" : "c2Fw"
},
"id" : "00000000-0000-0000-0000-000000000002",
"uploadUrl" : "https://s3.aws/upload"
}
Response fields
| Path | Type | Description |
|---|---|---|
|
|
Identifier of the created draft download. |
|
|
Headers that must be sent unchanged with the upload request. Additional metadata uses versioned, case-preserving S3 headers and Base64-encoded values. |
|
|
Presigned upload URL for the download payload. |
Get download link
Authentication: User authentication
Endpoint and parameters
GET /v1/downloads/{id}/generate-link
| Parameter | Description |
|---|---|
|
id of the download |
Example request
GET /v1/downloads/00000000-0000-0000-0000-000000000001/generate-link HTTP/1.1
X-PF-DWC-Requester-Role: ROLE_CUSTOMER_DOWNLOADER_RESULTS
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"downloadLink" : "https://dwc-ai-test.s3.eu-central-1.amazonaws.com/report.xml?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20220607T153352Z&X-Amz-SignedHeaders=host&X-Amz-Expires=548767&X-Amz-Credential=AKIAIOSFODNN7EXAMPLE%2F20220607%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-Signature=45a70be4763f8adc3836218c2c0de829dc17b1e598a716e2d916131935fd23cb",
"id" : "00000000-0000-0000-0000-000000000001"
}
Response fields
| Path | Type | Description |
|---|---|---|
|
|
Download identifier |
|
|
Presigned URL for retrieving the file with an HTTP GET |
Acknowledge download
Call this endpoint to acknowledge that you have downloaded the file.
Once acknowledged, the file no longer appears in List downloads with downloaded=false.
It remains eligible for downloaded=true and for lists without that filter, subject to access and other filters.
Authentication: User authentication
clientId is a required JSON request field, not an HTTP header.
Use a stable identifier for the download client and preserve it during retries.
Behavior
-
Only one client can successfully acknowledge a given download.
-
Subsequent calls using the same
clientIdwill return the same result as the first successful call. -
If a different
clientIdattempts to acknowledge an already acknowledged download, a 409 Conflict error is returned.
Endpoint and parameters
POST /v1/downloads/{id}/acknowledge
| Parameter | Description |
|---|---|
|
id of the download to acknowledge |
Request fields
| Path | Type | Description | Constraints |
|---|---|---|---|
clientId |
String |
Required non-blank download client identifier, at most 255 characters. Reuse it on retries; a different client receives 409 after acknowledgement. |
Must not be blank. Size must be between 1 and 255 inclusive |
referenceId |
String |
Optional reference in the downloader system; 1 to 255 characters when supplied. Omitted or null means no reference. |
Size must be between 1 and 255 inclusive |
Example request
POST /v1/downloads/00000000-0000-0000-0000-000000000001/acknowledge HTTP/1.1
Content-Type: application/json;charset=UTF8
X-PF-DWC-Requester-Role: ROLE_CUSTOMER_DOWNLOADER_RESULTS
{
"clientId" : "spooler_1",
"referenceId" : "idInSpooler"
}
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{
"approverDeleted" : false,
"approverEmail" : null,
"approverId" : null,
"created" : "2121-01-31T11:17:33.456Z",
"customerContract" : "42",
"downloadLinkGenerated" : false,
"downloaded" : "2121-01-31T11:22:33.456Z",
"downloadedBy" : "downloader_42",
"downloadedByClient" : "client_42",
"downloadedReferenceId" : "downloadedReferenceId_42",
"downloaderDeleted" : false,
"downloaderEmail" : "downloaderEmail_42",
"fileName" : "download1",
"id" : "00000000-0000-0000-0000-000000000001",
"metadata" : {
"anotherKey" : "anotherValue",
"anyKey" : "anyValue"
},
"referenceId" : "42",
"size" : 42,
"targetId" : "00000000-0000-0000-0000-000000000001",
"targetName" : "targetName_42",
"type" : "RESULT",
"uploaderDeleted" : false,
"uploaderEmail" : null,
"uploaderId" : null
}
Response fields
| Path | Type | Description |
|---|---|---|
|
|
ID of the download |
|
|
Reference-ID of the download |
|
|
Filename of the download |
|
|
Customer-contract of the download |
|
|
Target-ID of the download |
|
|
Target-name of the download |
|
|
Creation time of the download |
|
|
Download link already created |
|
|
Download acknowledge time |
|
|
User-ID who downloaded the file |
|
|
Email of the downloader |
|
|
Client-ID who downloaded the file |
|
|
Reference-ID provided during download |
|
|
Size of the download |
|
|
Type of the download |
|
|
Authenticated uploader subject ID |
|
|
Uploader identity type. Possible values: [USER, TECHNICAL_ACCESS] |
|
|
Display name of the uploader |
|
|
Email of the uploader |
|
|
True if the uploader was deleted: an anonymized user, or a deleted technical access |
|
|
True if the downloading user was deleted and their personal data anonymized |
|
|
True if the approver was deleted and their personal data anonymized |
|
|
User-ID of the approver |
|
|
Email of the approver |
|
|
Customer-supplied metadata of the download as key-value pairs |
Conflict response
HTTP/1.1 409 Conflict
Content-Type: application/json
{
"debugMessages" : [ "Download with id '00000000-0000-0000-0000-000000000001' was already marked as acknowledged by client 'spooler_1'" ],
"id" : "572312e9-5c7a-46a9-bf4b-bbbb65cfa53b",
"message" : "Download was marked as saved already",
"messageCode" : "de.profiforms.docxworld.connect.download.error.client.download_already_saved",
"path" : "/v1/downloads/00000000-0000-0000-0000-000000000001/acknowledge",
"status" : "CONFLICT",
"timestamp" : "2026-10-13T10:15:30Z"
}
Download error codes
Use the error messageCode and debugMessages together with the operation that failed; the full codes are listed below.
-
Correct invalid fields or malformed JSON before repeating a request. For
client.invalid_sort_argument, use one of the documented sort fields. -
For
client.role_header_missing, supply the requester-role header required by the human-access operation. Technical draft creation instead requires a Technical Access token and no requester-role header. -
If an uploaded draft is not yet visible, account for asynchronous finalization and confirm the file transfer used all returned headers. List/read/link visibility alone does not distinguish a pending draft from failed materialization or missing access.
-
For acknowledgement
409 Conflict(client.download_already_saved), another client already acknowledged the file. Keep your originalclientIdwhen retrying your own acknowledgement. -
Retain the download id and error id when diagnosing failures. Repeating Create technical download draft starts a separate draft rather than resuming the original transfer.
| Code | Description |
|---|---|
de.profiforms.docxworld.connect.download.error.client.download_not_exists |
Download not exists exception |
de.profiforms.docxworld.connect.download.error.client.invalid_sort_argument |
Invalid sort argument exception |
de.profiforms.docxworld.connect.download.error.client.no_file_attached |
No file attached exception |
de.profiforms.docxworld.connect.download.error.client.target_customer_contract_missing |
Target customer contract missing |
de.profiforms.docxworld.connect.download.error.client.download_not_available |
Download not available |
de.profiforms.docxworld.connect.download.error.client.technical_access_required |
Technical access required |
de.profiforms.docxworld.connect.download.error.client.target_not_exists |
Target not exists exception |
de.profiforms.docxworld.connect.download.error.client.file_not_exists |
File not exists exception |
de.profiforms.docxworld.connect.download.error.client.role_header_missing |
Required request header is missing |
de.profiforms.docxworld.connect.download.error.client.access_denied |
Access denied |
de.profiforms.docxworld.connect.download.error.client.malformed_request |
Malformed JSON request |
de.profiforms.docxworld.connect.download.error.client.download_already_saved |
Download was marked as saved already |
de.profiforms.docxworld.connect.download.error.client.validation |
Validation error |
de.profiforms.docxworld.connect.download.error.server.unexpected_internal |
Unexpected internal error |
de.profiforms.docxworld.connect.download.error.client.error |
Client error |