---
title: "List employee definitions visible to the caller"
---

> Documentation Index
> Fetch the complete documentation index at: https://tryshiba.dev/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Shiba public API › employees

`GET /employees`

## Authentication

Requires one of the following:

- `bearerAuth`, http, header `Authorization`, format `API key`
- `cookieAuth`, apiKey, in cookie

## Code samples

### cURL

```bash
curl --request GET \
  --url '<base-url>/api/v1/employees' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = '<base-url>/api/v1/employees';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "<base-url>/api/v1/employees"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

Success

#### Example

```json
{
  "ok": true,
  "agents": [
    {
      "id": "string",
      "orgId": "string",
      "slug": "string",
      "version": 9007199254740991,
      "config": {
        "property1": null,
        "property2": null
      },
      "createdAt": 0,
      "updatedAt": 0,
      "archivedAt": 0
    }
  ]
}
```

- `ok` (`listEmployees.response.200.ok`; boolean, required)
- `agents` (`listEmployees.response.200.agents`; array<object>, required)
  - `id` (`listEmployees.response.200.agents.id`; string, required)
  - `orgId` (`listEmployees.response.200.agents.orgId`; string, required)
  - `slug` (`listEmployees.response.200.agents.slug`; string, required)
  - `version` (`listEmployees.response.200.agents.version`; integer, required)
    - max 9007199254740991
  - `config` (`listEmployees.response.200.agents.config`; map<unknown>, required)
  - `createdAt` (`listEmployees.response.200.agents.createdAt`; number, required)
  - `updatedAt` (`listEmployees.response.200.agents.updatedAt`; number, required)
  - `archivedAt` (`listEmployees.response.200.agents.archivedAt`; number, optional)

### 401

Unauthorized

#### Example

```json
{
  "ok": false,
  "error": "string",
  "detail": "string",
  "code": "string"
}
```

- `error` (`listEmployees.response.401.error`; string, required)
- `ok` (`listEmployees.response.401.ok`; boolean, optional)
- `detail` (`listEmployees.response.401.detail`; string, optional)
- `code` (`listEmployees.response.401.code`; string, optional)


Source: https://tryshiba.dev/reference/api/employees/listEmployees/index.md
