# Números

**POST**\
`https://api.anunzi.net/v2/voice_agent_numbers`

Retrieve a list of all phone numbers assigned to a workspace in your Anunzi environment.

***

#### **Body Parameters**

| Parameter   | Type   | Required | Description                                                                                                         |
| ----------- | ------ | -------- | ------------------------------------------------------------------------------------------------------------------- |
| `workspace` | string | Yes      | The Workspace ID from which to retrieve assigned phone numbers. This can be obtained from your Anunzi Agent Portal. |

***

#### **Example Request (cURL)**

```bash
curl --request POST \
     --url https://api.anunzi.net/v2/voice_agent_numbers \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --header 'Authorization: Bearer API_KEY' \
     --data '
{
  "workspace": "1696372226173x164740052408336400"
}
'
```

***

#### **Example Response (200 OK)**

```json
{
  "status": "ok",
  "response": {
    "phone_numbers": [
      {
        "number": "+14158811313",
        "sid": "PN840358ba5ed985a2eb1f2ab4e83657f2"
      },
      {
        "number": "+14157671804",
        "sid": "PNd8a2e05b8395d5729fc889006a5c3b76"
      },
      {
        "number": "+17085723202",
        "sid": "PN52d012288194a6d42711c71dc822f4e3"
      }
    ]
  }
}
```

***

#### **Response Fields**

| Field    | Type   | Description                                 |
| -------- | ------ | ------------------------------------------- |
| `number` | string | The phone number assigned to the workspace. |
| `sid`    | string | The unique identifier for the phone number. |

***

#### **Status Codes**

| Code | Description                                 |
| ---- | ------------------------------------------- |
| 200  | Phone numbers retrieved successfully.       |
| 400  | Bad Request. Invalid or missing parameters. |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.anunzi.net/api-widgets/trabajar-con-la-api-de-llamadas/get-numbers.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
