***

title: list
slug: /reference/python/rest/short-codes/list
description: List short codes in the project.
max-toc-depth: 3
---------------------

For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

List short codes in the project.

<EndpointSchemaSnippet endpoint="GET /api/relay/rest/short_codes" />

## **Response Example**

<EndpointResponseSnippet endpoint="GET /api/relay/rest/short_codes" />

## **Example**

```python {9}
from signalwire.rest import RestClient

client = RestClient(
    project="your-project-id",
    token="your-api-token",
    host="your-space.signalwire.com",
)

result = client.short_codes.list()
for code in result.get("data", []):
    print(code.get("short_code"), code.get("id"))
```