# phone_number_not_found (/errors/phone_number_not_found)

| HTTP status | Type | Code |
| --- | --- | --- |
| 404 | `not_found_error` | `phone_number_not_found` |

## What it means [#what-it-means]

No phone number with this id is connected to your workspace. List your numbers with `GET /phone-numbers` and use one of the returned ids.

## How to handle it [#how-to-handle-it]

Check the ID in the path. It may be wrong, deleted, or belong to another workspace; the API answers 404 rather than revealing other workspaces’ data.

## Example response [#example-response]

```json
{
  "detail": "Phone number not found.",
  "error": {
    "type": "not_found_error",
    "code": "phone_number_not_found",
    "message": "Phone number not found.",
    "param": null,
    "docUrl": "https://docs.callmitra.ai/errors/phone_number_not_found",
    "requestId": "req_3f9c2a7d1b8e4c6a9f0e2d4b6a8c0e1f"
  }
}
```

Branch on `error.code`; it never changes once published. The `message` text can change. See [Errors](/errors) for the envelope.

## Returned by [#returned-by]

- `POST /api/v1/calls/` — Place a call
- `GET /api/v1/phone-numbers/{phone_id}` — Get a phone number
- `POST /api/v1/agents/{agent_id}/test-call` — Place a test call