# List port requests

`GET https://api.morevoice.ai/v1/ports`

Your requests to move phone numbers to this platform, newest first, whether filed in the app or through this API. Filter by `status`. Needs a live key.

Authenticate with a secret API key: `Authorization: Bearer $MOREVOICE_API_KEY`.

Operation ID: `ports_list`.

## Parameters

### Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `limit` | `integer` | no | How many objects to return, 1–100 (default 20). |
| `starting_after` | `string` | no | A cursor (`next_cursor`) or object ID: return the objects after it (older). |
| `ending_before` | `string` | no | A cursor or object ID: return the objects before it (newer). |
| `status` | `"draft" \| "submitted" \| "in_review" \| "submitted_to_carrier" \| "docs_required" \| "scheduled" \| "completed" \| "rejected" \| …` | no | Only ports in this status. |

### Headers

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `MoreVoice-Version` | `string` | no | The API version to use for this request. Defaults to the version the API key is pinned to. |

## Responses

### 200 OK

OK Returns `PortingOrderList`.

| Field | Type | Description |
| --- | --- | --- |
| `object` | `"list"` | — |
| `data` | `PortingOrder[]` | — |
| `has_more` | `boolean` | Whether more objects follow in the requested direction. |
| `next_cursor` | `string \| null` | Pass as starting_after (or ending_before, when paging backwards) to continue; null on the last page. |
| `url` | `string` | The list's path. |

Example:

```json
{
  "data": [
    {
      "cancellable": true,
      "completed_at": null,
      "created": "2026-11-23T09:00:00.000Z",
      "current_carrier": "Bezeq",
      "documents": {
        "invoice": true,
        "loa": true
      },
      "estimate_business_days": {
        "max": 10,
        "min": 7
      },
      "id": "port_4KqLm8XzT2vR9bYc1NdWe",
      "livemode": true,
      "numbers": [
        "+97235550100",
        "+972775556789"
      ],
      "object": "porting_order",
      "port_date": null,
      "rejection_reason": null,
      "requested_date": "2026-12-01",
      "source": "api",
      "status": "in_review",
      "submitted_at": "2026-11-23T09:00:00.000Z",
      "timeline": [
        {
          "at": "2026-11-23T09:00:00.000Z",
          "note": null,
          "status": "submitted"
        },
        {
          "at": "2026-11-23T11:20:00.000Z",
          "note": null,
          "status": "in_review"
        }
      ],
      "updated": "2026-11-23T11:20:00.000Z"
    }
  ],
  "has_more": false,
  "next_cursor": null,
  "object": "list",
  "url": "/v1/ports"
}
```

### 400 Bad Request

The request is invalid: a parameter is missing, malformed or unknown, or the version header is unknown. Returns `ErrorEnvelope`.

### 401 Unauthorized

No valid API key was sent. Returns `ErrorEnvelope`.

### 403 Forbidden

The key may not do this (a missing scope, a plan limit, or a compliance block). Returns `ErrorEnvelope`.

### 404 Not Found

No object with this ID (in the path or the body) exists in this organisation and mode. Returns `ErrorEnvelope`.

### 429 Too Many Requests

Too many requests, or no call capacity right now. Retry after the Retry-After delay. Returns `ErrorEnvelope`.

### 500 Internal Server Error

Something went wrong on MoreVoice's side. Retry with the same Idempotency-Key. Returns `ErrorEnvelope`.

## Code samples

**TypeScript**

```ts
import MoreVoice from "@morevoice/sdk";

const mv = new MoreVoice(); // MOREVOICE_API_KEY from the environment

for await (const port of mv.ports.list()) {
	console.log(port);
}
```

**Python**

```python
from morevoice import MoreVoice

client = MoreVoice()  # MOREVOICE_API_KEY from the environment

for port in client.ports.list():
    print(port)
```

**cURL**

```sh
curl https://api.morevoice.ai/v1/ports \
  -H "Authorization: Bearer $MOREVOICE_API_KEY"
```
