---
title: "Employers and employees | Docs | Payroll by R&D Copilot"
description: "Use employee identities within the legal employer of a run."
canonical: "https://payroll.rdcopilot.com/docs/concepts/employers-and-employees/"
language: en
updated: 2026-11-22
---

# Employers and employees

Use employee identities within the legal employer of a run.

## Resolve the employee

Read the employer and employee IDs before sending inputs. Keep the employer ID alongside the employee ID in your integration, and match inputs within the same employer.

curl

```bash
curl "$RDC_BASE_URL/payroll/v1/employees" \
  -H "Authorization: Bearer $RDC_TOKEN"
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/payroll/v1/employees`, {
  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"]}/payroll/v1/employees',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
)
result = response.json()
```

PHP

```php
<?php

$curl = curl_init(getenv('RDC_BASE_URL') . '/payroll/v1/employees');
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")}/payroll/v1/employees");
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
{
  "items": [
    {
      "id": "maria-costea",
      "employerId": "brumar",
      "initials": "MC"
    }
  ],
  "nextCursor": null
}
```
