---
title: "People | Docs | HR by R&D Copilot"
description: "Hire a person, read the people of your account, and set a last day of work."
canonical: "https://hr.rdcopilot.com/docs/api-reference/people/"
language: en
updated: 2026-11-22
---

# People

Hire a person, read the people of your account, and set a last day of work.

## List people

GET `/hr/v1/employees`

Returns the people of your account in pages, by staff number.

### Parameters

| Name | In | Type | Required | Meaning |
| --- | --- | --- | --- | --- |
| `status` | query | `string` | Nooptional | Only people in this status. One of `active`, `onboarding`, `on_leave`, `offboarding`, `left` |
| `departmentId` | query | `string` | Nooptional | Only people of this department. One of `finance`, `sales`, `hr`, `payroll`, `purchasing`, `warehouse`, `logistics`, `retail`, `it` |
| `managerId` | query | `string (uuid)` | Nooptional | Only the people who report to this manager. |
| `externalId` | query | `string` | Nooptional | The person that carries this `externalId`. |
| `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. | `EmployeePage` |
| `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` |
| `429` | The request was refused. The `code` is `rate_limited`. | `Error` |
| `503` | The request was refused. The `code` is `unavailable`. | `Error` |

### Request

curl

```bash
curl "$RDC_BASE_URL/hr/v1/employees?limit=20" \
  -H "Authorization: Bearer $RDC_TOKEN"
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/hr/v1/employees?limit=20`, {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.RDC_TOKEN}`,
  },
});
const result = await response.json();
```

Python

```python
import os
import requests

response = requests.request(
    'GET',
    f'{os.environ["RDC_BASE_URL"]}/hr/v1/employees?limit=20',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
)
result = response.json()
```

PHP

```php
<?php

$curl = curl_init(getenv('RDC_BASE_URL') . '/hr/v1/employees?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#

```csharp
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/hr/v1/employees?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`

JSON

```json
{
  "items": [
    {
      "id": "93c566c1-799c-4ccf-afac-244ff06d2537",
      "number": "A-0052",
      "name": "Raluca Toma",
      "job": "Sales representative",
      "departmentId": "sales",
      "managerId": "46419e0c-a16f-4e44-bed0-0b9700635fd6",
      "workplaceId": "office",
      "contractType": "indefinite",
      "contractEnd": null,
      "startDate": "2026-12-08",
      "lastDay": null,
      "status": "onboarding",
      "externalId": null,
      "revision": 2
    },
    {
      "id": "11729ba4-78ca-4dfb-9165-03367b42d67a",
      "number": "A-0041",
      "name": "Dan Ilie",
      "job": "Picker",
      "departmentId": "warehouse",
      "managerId": "21bd8239-2794-4320-adba-9128b6a6219b",
      "workplaceId": "warehouse",
      "contractType": "indefinite",
      "contractEnd": null,
      "startDate": "2022-02-07",
      "lastDay": null,
      "status": "active",
      "externalId": "hr-0187",
      "revision": 1
    }
  ],
  "nextCursor": null
}
```

## Hire a person

POST `/hr/v1/employees`

Records a person with their first period of employment and creates their onboarding checklist. The person is `onboarding` until their first day of work. Read the person with `listEmployees` and `externalId` once `status` of the operation is `completed`.

### Request body

| Field | Type | Required | Meaning |
| --- | --- | --- | --- |
| `operationId` | `string (uuid)` | Yesrequired | A UUID you choose for this change. Send it again to repeat the request. |
| `name` | `string` | Yesrequired | Name of the person. |
| `job` | `string` | Yesrequired | The job. |
| `departmentId` | `string` | Yesrequired | The department. One of `finance`, `sales`, `hr`, `payroll`, `purchasing`, `warehouse`, `logistics`, `retail`, `it` |
| `managerId` | `string (uuid)` | Nooptional | The manager, `null` or absent at the top. |
| `workplaceId` | `string` | Yesrequired | The workplace. One of `office`, `warehouse`, `shop` |
| `contractType` | `string` | Yesrequired | `indefinite` or `fixed-term`. One of `indefinite`, `fixed-term` |
| `contractEnd` | `string (date)` | Nooptional | The last day of a fixed-term contract. Required for it, absent or `null` for an indefinite one. |
| `grossSalary` | `string` | Yesrequired | Gross monthly salary in RON, as a decimal string. |
| `startDate` | `string (date)` | Yesrequired | The first day of work, today or later and a working day. |
| `externalId` | `string` | Nooptional | Your own identifier for the person. It is unique among the people of your account. |

### 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 `manager_not_found`, `department_not_found` or `workplace_not_found`. | `Error` |
| `409` | The request was refused. The `code` is `operation_reused`. | `Error` |
| `422` | The request was refused. The `code` is `external_id_taken`, `name_required`, `job_required`, `date_not_valid`, `date_in_the_past`, `not_a_working_day`, `salary_not_valid` or `contract_not_valid`. | `Error` |
| `429` | The request was refused. The `code` is `rate_limited`. | `Error` |
| `503` | The request was refused. The `code` is `unavailable`. | `Error` |

### Request

curl

```bash
curl -X POST "$RDC_BASE_URL/hr/v1/employees" \
  -H "Authorization: Bearer $RDC_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Teodora Nistor",
  "job": "Buyer",
  "departmentId": "purchasing",
  "managerId": "68830a58-d574-4401-9f7d-90be0b6c1dbf",
  "workplaceId": "office",
  "contractType": "indefinite",
  "grossSalary": "6500.00",
  "startDate": "2026-12-02",
  "externalId": "hr-0231",
  "operationId": "3c9d2f6a-5b1e-4d7a-8f20-6a1b9c0e4d12"
}'
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/hr/v1/employees`, {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.RDC_TOKEN}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "name": "Teodora Nistor",
    "job": "Buyer",
    "departmentId": "purchasing",
    "managerId": "68830a58-d574-4401-9f7d-90be0b6c1dbf",
    "workplaceId": "office",
    "contractType": "indefinite",
    "grossSalary": "6500.00",
    "startDate": "2026-12-02",
    "externalId": "hr-0231",
    "operationId": "3c9d2f6a-5b1e-4d7a-8f20-6a1b9c0e4d12"
  }),
});
const result = await response.json();
```

Python

```python
import os
import requests

response = requests.request(
    'POST',
    f'{os.environ["RDC_BASE_URL"]}/hr/v1/employees',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
    json={
        'name': 'Teodora Nistor',
        'job': 'Buyer',
        'departmentId': 'purchasing',
        'managerId': '68830a58-d574-4401-9f7d-90be0b6c1dbf',
        'workplaceId': 'office',
        'contractType': 'indefinite',
        'grossSalary': '6500.00',
        'startDate': '2026-12-02',
        'externalId': 'hr-0231',
        'operationId': '3c9d2f6a-5b1e-4d7a-8f20-6a1b9c0e4d12',
    },
)
result = response.json()
```

PHP

```php
<?php

$body = <<<'JSON'
{
  "name": "Teodora Nistor",
  "job": "Buyer",
  "departmentId": "purchasing",
  "managerId": "68830a58-d574-4401-9f7d-90be0b6c1dbf",
  "workplaceId": "office",
  "contractType": "indefinite",
  "grossSalary": "6500.00",
  "startDate": "2026-12-02",
  "externalId": "hr-0231",
  "operationId": "3c9d2f6a-5b1e-4d7a-8f20-6a1b9c0e4d12"
}
JSON;

$curl = curl_init(getenv('RDC_BASE_URL') . '/hr/v1/employees');
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#

```csharp
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/hr/v1/employees");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
  "name": "Teodora Nistor",
  "job": "Buyer",
  "departmentId": "purchasing",
  "managerId": "68830a58-d574-4401-9f7d-90be0b6c1dbf",
  "workplaceId": "office",
  "contractType": "indefinite",
  "grossSalary": "6500.00",
  "startDate": "2026-12-02",
  "externalId": "hr-0231",
  "operationId": "3c9d2f6a-5b1e-4d7a-8f20-6a1b9c0e4d12"
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync();
```

### Response `202`

JSON

```json
{
  "operationId": "3c9d2f6a-5b1e-4d7a-8f20-6a1b9c0e4d12",
  "status": "accepted",
  "aggregateRevision": 1
}
```

## Get a person

GET `/hr/v1/employees/{employeeId}`

### Parameters

| Name | In | Type | Required | Meaning |
| --- | --- | --- | --- | --- |
| `employeeId` | path | `string (uuid)` | Yesrequired | The person. |

### Responses

| Status | Meaning | Body |
| --- | --- | --- |
| `200` | The record at its current revision. | `Employee` |
| `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

```bash
curl "$RDC_BASE_URL/hr/v1/employees/11729ba4-78ca-4dfb-9165-03367b42d67a" \
  -H "Authorization: Bearer $RDC_TOKEN"
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/hr/v1/employees/11729ba4-78ca-4dfb-9165-03367b42d67a`, {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.RDC_TOKEN}`,
  },
});
const result = await response.json();
```

Python

```python
import os
import requests

response = requests.request(
    'GET',
    f'{os.environ["RDC_BASE_URL"]}/hr/v1/employees/11729ba4-78ca-4dfb-9165-03367b42d67a',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
)
result = response.json()
```

PHP

```php
<?php

$curl = curl_init(getenv('RDC_BASE_URL') . '/hr/v1/employees/11729ba4-78ca-4dfb-9165-03367b42d67a');
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#

```csharp
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");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync();
```

### Response `200`

JSON

```json
{
  "id": "11729ba4-78ca-4dfb-9165-03367b42d67a",
  "number": "A-0041",
  "name": "Dan Ilie",
  "job": "Picker",
  "departmentId": "warehouse",
  "managerId": "21bd8239-2794-4320-adba-9128b6a6219b",
  "workplaceId": "warehouse",
  "contractType": "indefinite",
  "contractEnd": null,
  "startDate": "2022-02-07",
  "lastDay": null,
  "status": "active",
  "externalId": "hr-0187",
  "revision": 1
}
```

## Set a last day of work

POST `/hr/v1/employees/{employeeId}/offboard`

Sets the last day of the person. The period of employment that runs ends on that day, the person is `offboarding` until it has passed and `left` after it. It is refused while a pending or approved leave request ends after that day.

### 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. |
| `lastDay` | `string (date)` | Yesrequired | The last day of work, today or later. |

### 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 `already_offboarding`, `not_started`, `date_not_valid` or `leave_after_last_day`. | `Error` |
| `429` | The request was refused. The `code` is `rate_limited`. | `Error` |
| `503` | The request was refused. The `code` is `unavailable`. | `Error` |

### Request

curl

```bash
curl -X POST "$RDC_BASE_URL/hr/v1/employees/1ae6d1c6-00ec-4dfc-82b8-c19a68bc30cd/offboard" \
  -H "Authorization: Bearer $RDC_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "expectedRevision": 1,
  "lastDay": "2026-12-18",
  "operationId": "c98191a2-d3af-47a2-a455-c289848c4b6a"
}'
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/hr/v1/employees/1ae6d1c6-00ec-4dfc-82b8-c19a68bc30cd/offboard`, {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.RDC_TOKEN}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "expectedRevision": 1,
    "lastDay": "2026-12-18",
    "operationId": "c98191a2-d3af-47a2-a455-c289848c4b6a"
  }),
});
const result = await response.json();
```

Python

```python
import os
import requests

response = requests.request(
    'POST',
    f'{os.environ["RDC_BASE_URL"]}/hr/v1/employees/1ae6d1c6-00ec-4dfc-82b8-c19a68bc30cd/offboard',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
    json={
        'expectedRevision': 1,
        'lastDay': '2026-12-18',
        'operationId': 'c98191a2-d3af-47a2-a455-c289848c4b6a',
    },
)
result = response.json()
```

PHP

```php
<?php

$body = <<<'JSON'
{
  "expectedRevision": 1,
  "lastDay": "2026-12-18",
  "operationId": "c98191a2-d3af-47a2-a455-c289848c4b6a"
}
JSON;

$curl = curl_init(getenv('RDC_BASE_URL') . '/hr/v1/employees/1ae6d1c6-00ec-4dfc-82b8-c19a68bc30cd/offboard');
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#

```csharp
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/hr/v1/employees/1ae6d1c6-00ec-4dfc-82b8-c19a68bc30cd/offboard");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
  "expectedRevision": 1,
  "lastDay": "2026-12-18",
  "operationId": "c98191a2-d3af-47a2-a455-c289848c4b6a"
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync();
```

### Response `202`

JSON

```json
{
  "operationId": "c98191a2-d3af-47a2-a455-c289848c4b6a",
  "status": "accepted",
  "aggregateRevision": 2
}
```
