# Agents API

Source: https://aicallstudio.com/docs/api/agents. Authentication, scopes, limits, errors and webhooks: https://aicallstudio.com/docs/api

### List agents

`GET /api/v1/agents` (scope `agents:read`)

Your AI agents, by name, with whether each takes real calls now. Use an agent's id to place a call or book a call-back.

**Answer (200): a list, each item with these fields**

| Field | Type | What it is |
| --- | --- | --- |
| `id` (required) | string (uuid) | — |
| `name` (required) | string | — |
| `language` | string, or null | The agent's main language, as a code such as hi-IN. |
| `multilingual` | boolean | Default: false. |
| `status` (required) | string | live (takes real calls), draft (not switched on yet) or paused. |

**Errors**

| Code | When |
| --- | --- |
| `401` | The token is missing, unknown or revoked, or its workspace was deleted. |
| `402` | The workspace's plan does not include API access. The token is paused, not revoked: it works again as soon as the plan includes API access. |
| `403` | The token does not have this endpoint's scope, it is a sandbox token, the workspace is suspended, or the request came from a network the workspace, or the token's IP allowlist, does not allow. |
| `429` | This token has made more requests this minute than your plan allows. The Retry-After header says how many seconds to wait. |

```bash
curl "https://aicallstudio.com/api/v1/agents" \
  -H "Authorization: Bearer mtc_YOUR_TOKEN"
```
