Documents
Issue a certificate from its template, list the certificates of a person and read the text of one in either language.
On this page
List documents
GET /hr/v1/employees/{employeeId}/documents
Returns the certificates issued for a person, the oldest first.
Parameters
| Name | In | Type | Required | Meaning |
|---|---|---|---|---|
employeeId | path | string (uuid) | Yesrequired | The person. |
limit | query | integer | Nooptional | Records per page. Default 100 Range 1 – 500 |
cursor | query | string | Nooptional | The nextCursor of the previous page. |
Responses
| Status | Meaning | Body |
|---|---|---|
200 | A page of records. | DocumentPage |
401 | The token is missing, not valid or has ended. | Error |
403 | The token does not give access to this data, or to this account. | Error |
404 | The request was refused. The code is employee_not_found. | Error |
429 | The request was refused. The code is rate_limited. | Error |
503 | The request was refused. The code is unavailable. | Error |
Request
curl
curl "$RDC_BASE_URL/hr/v1/employees/11729ba4-78ca-4dfb-9165-03367b42d67a/documents?limit=20" \
-H "Authorization: Bearer $RDC_TOKEN" JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/hr/v1/employees/11729ba4-78ca-4dfb-9165-03367b42d67a/documents?limit=20`, {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
},
});
const result = await response.json(); Python
import os
import requests
response = requests.request(
'GET',
f'{os.environ["RDC_BASE_URL"]}/hr/v1/employees/11729ba4-78ca-4dfb-9165-03367b42d67a/documents?limit=20',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
)
result = response.json() PHP
<?php
$curl = curl_init(getenv('RDC_BASE_URL') . '/hr/v1/employees/11729ba4-78ca-4dfb-9165-03367b42d67a/documents?limit=20');
curl_setopt_array($curl, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('RDC_TOKEN'),
],
]);
$result = json_decode(curl_exec($curl), true);
curl_close($curl); C#
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/hr/v1/employees/11729ba4-78ca-4dfb-9165-03367b42d67a/documents?limit=20");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); Response 200
{
"items": [
{
"id": "b2a20d6b-1c5e-4606-90c8-e2738bbb563f",
"number": "AD-2026-0001",
"employeeId": "11729ba4-78ca-4dfb-9165-03367b42d67a",
"kind": "employment",
"issuedOn": "2026-11-23",
"issuedById": "a31a1dd1-9214-434e-a00a-db907727f048"
}
],
"nextCursor": null
} Issue a document
POST /hr/v1/employees/{employeeId}/documents
Issues a certificate from its template: an employment certificate, or a salary certificate that also states the gross monthly salary. It takes the next number and is listed in the record of the person. Only the HR lead issues documents, and only for a person who has started and has not left.
Parameters
| Name | In | Type | Required | Meaning |
|---|---|---|---|---|
employeeId | path | string (uuid) | Yesrequired | The person. |
Request body
| Field | Type | Required | Meaning |
|---|---|---|---|
operationId | string (uuid) | Yesrequired | A UUID you choose for this change. Send it again to repeat the request. |
expectedRevision | integer | Yesrequired | The revision of the person you read. |
kind | string | Yesrequired | The template: employment or salary. One of employment, salary |
actorId | string (uuid) | Yesrequired | The person on whose behalf the change is made. |
Responses
| Status | Meaning | Body |
|---|---|---|
202 | The change was accepted. The body is the operation result. | OperationResult |
400 | The request cannot be read or breaks the contract: the JSON is malformed, a field is missing or unknown, or a type is wrong. fields names each one. | Error |
401 | The token is missing, not valid or has ended. | Error |
403 | The token does not give access to this data, or to this account. | Error |
404 | The request was refused. The code is employee_not_found. | Error |
409 | The request was refused. The code is revision_conflict or operation_reused. | Error |
422 | The request was refused. The code is kind_not_valid, not_allowed, not_started or employment_ended. | Error |
429 | The request was refused. The code is rate_limited. | Error |
503 | The request was refused. The code is unavailable. | Error |
Request
curl
curl -X POST "$RDC_BASE_URL/hr/v1/employees/11729ba4-78ca-4dfb-9165-03367b42d67a/documents" \
-H "Authorization: Bearer $RDC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"expectedRevision": 1,
"kind": "employment",
"actorId": "a31a1dd1-9214-434e-a00a-db907727f048",
"operationId": "48763436-0b7b-45d9-9c0d-ca96d286fe7d"
}' JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/hr/v1/employees/11729ba4-78ca-4dfb-9165-03367b42d67a/documents`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"expectedRevision": 1,
"kind": "employment",
"actorId": "a31a1dd1-9214-434e-a00a-db907727f048",
"operationId": "48763436-0b7b-45d9-9c0d-ca96d286fe7d"
}),
});
const result = await response.json(); Python
import os
import requests
response = requests.request(
'POST',
f'{os.environ["RDC_BASE_URL"]}/hr/v1/employees/11729ba4-78ca-4dfb-9165-03367b42d67a/documents',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
json={
'expectedRevision': 1,
'kind': 'employment',
'actorId': 'a31a1dd1-9214-434e-a00a-db907727f048',
'operationId': '48763436-0b7b-45d9-9c0d-ca96d286fe7d',
},
)
result = response.json() PHP
<?php
$body = <<<'JSON'
{
"expectedRevision": 1,
"kind": "employment",
"actorId": "a31a1dd1-9214-434e-a00a-db907727f048",
"operationId": "48763436-0b7b-45d9-9c0d-ca96d286fe7d"
}
JSON;
$curl = curl_init(getenv('RDC_BASE_URL') . '/hr/v1/employees/11729ba4-78ca-4dfb-9165-03367b42d67a/documents');
curl_setopt_array($curl, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('RDC_TOKEN'),
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => $body,
]);
$result = json_decode(curl_exec($curl), true);
curl_close($curl); C#
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/hr/v1/employees/11729ba4-78ca-4dfb-9165-03367b42d67a/documents");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
"expectedRevision": 1,
"kind": "employment",
"actorId": "a31a1dd1-9214-434e-a00a-db907727f048",
"operationId": "48763436-0b7b-45d9-9c0d-ca96d286fe7d"
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); Response 202
{
"operationId": "48763436-0b7b-45d9-9c0d-ca96d286fe7d",
"status": "accepted",
"aggregateRevision": 2
} Get a document
GET /hr/v1/employees/{employeeId}/documents/{documentId}
Returns the document and, with language, its text as lines that can be printed.
Parameters
| Name | In | Type | Required | Meaning |
|---|---|---|---|---|
employeeId | path | string (uuid) | Yesrequired | The person. |
documentId | path | string (uuid) | Yesrequired | The document. |
language | query | string | Nooptional | The language of the text: en or ro. Without it the text is not returned. One of en, ro |
Responses
| Status | Meaning | Body |
|---|---|---|
200 | The record at its current revision. | Document |
401 | The token is missing, not valid or has ended. | Error |
403 | The token does not give access to this data, or to this account. | Error |
404 | The request was refused. The code is employee_not_found or document_not_found. | Error |
429 | The request was refused. The code is rate_limited. | Error |
503 | The request was refused. The code is unavailable. | Error |
Request
curl
curl "$RDC_BASE_URL/hr/v1/employees/11729ba4-78ca-4dfb-9165-03367b42d67a/documents/b2a20d6b-1c5e-4606-90c8-e2738bbb563f" \
-H "Authorization: Bearer $RDC_TOKEN" JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/hr/v1/employees/11729ba4-78ca-4dfb-9165-03367b42d67a/documents/b2a20d6b-1c5e-4606-90c8-e2738bbb563f`, {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
},
});
const result = await response.json(); Python
import os
import requests
response = requests.request(
'GET',
f'{os.environ["RDC_BASE_URL"]}/hr/v1/employees/11729ba4-78ca-4dfb-9165-03367b42d67a/documents/b2a20d6b-1c5e-4606-90c8-e2738bbb563f',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
)
result = response.json() PHP
<?php
$curl = curl_init(getenv('RDC_BASE_URL') . '/hr/v1/employees/11729ba4-78ca-4dfb-9165-03367b42d67a/documents/b2a20d6b-1c5e-4606-90c8-e2738bbb563f');
curl_setopt_array($curl, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('RDC_TOKEN'),
],
]);
$result = json_decode(curl_exec($curl), true);
curl_close($curl); C#
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/hr/v1/employees/11729ba4-78ca-4dfb-9165-03367b42d67a/documents/b2a20d6b-1c5e-4606-90c8-e2738bbb563f");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); Response 200
{
"id": "b2a20d6b-1c5e-4606-90c8-e2738bbb563f",
"number": "AD-2026-0001",
"employeeId": "11729ba4-78ca-4dfb-9165-03367b42d67a",
"kind": "employment",
"issuedOn": "2026-11-23",
"issuedById": "a31a1dd1-9214-434e-a00a-db907727f048",
"language": "en",
"lines": [
"Certificate AD-2026-0001",
"Brumar Distribuție SRL certifies that Dan Ilie has worked at the company since 7 February 2022 as Picker, in the Warehouse department, on an indefinite contract.",
"Issued on 23 November 2026."
]
}