# List agent voices

> GET https://api.nabrah.ai/api/ext/agent/voices

Group: Agents. Page: https://www.nabrah.ai/en/docs/api-reference/agents/list-agent-voices

Lists the voices an agent can speak with: public voices and voices assigned to your project. Use a voice's `id` as `voice_id` when you create or update an agent. This is a different list from GET /api/ext/tts/voices, which holds the text-to-speech voices for speech generation; those IDs are not accepted as an agent's `voice_id`.

## Response fields

Returns an array of voices.

- **id**: The voice ID to send as `voice_id` on Create Agent or Update Agent. Fields: `id`.
- **name and description**: The voice's display name and a short description of how it sounds. Fields: `name`, `description`.
- **voice_country and voice_gender**: The accent's country and the voice's gender, to help you pick a voice that fits your callers. Fields: `voice_country`, `voice_gender`.
- **is_local**: `true` for voices with a local accent. Fields: `is_local`.

## Authorization

- `X-API-Key` (string, header, required): your workspace API key.

## Response

### 200 Successful Response

Content type: `application/json`

```json
[
  {
    "id": "00000000-0000-4000-8000-000000000000",
    "name": "string",
    "description": "string",
    "voice_country": "SA",
    "voice_gender": "male",
    "is_local": false
  }
]
```

## Request examples

### cURL

```bash
curl --request GET \
  --url 'https://api.nabrah.ai/api/ext/agent/voices' \
  --header 'X-API-Key: <your-api-key>'
```

### Python

```python
import requests

url = "https://api.nabrah.ai/api/ext/agent/voices"
headers = {"X-API-Key": "<your-api-key>"}

response = requests.get(url, headers=headers)
response.raise_for_status()
print(response.json())
```

### JavaScript

```javascript
const response = await fetch("https://api.nabrah.ai/api/ext/agent/voices", {
  method: "GET",
  headers: { "X-API-Key": "<your-api-key>" },
});

const data = await response.json();
console.log(data);
```

### Go

```go
package main

import (
	"fmt"
	"io"
	"net/http"
)

func main() {
	req, _ := http.NewRequest("GET", "https://api.nabrah.ai/api/ext/agent/voices", nil)
	req.Header.Set("X-API-Key", "<your-api-key>")

	res, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	defer res.Body.Close()

	out, _ := io.ReadAll(res.Body)
	fmt.Println(string(out))
}
```
