***

title: Short Codes
slug: /reference/python/rest/short-codes
description: Manage short codes.
max-toc-depth: 3
---------------------

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

[restclient]: /docs/server-sdks/reference/python/rest/client

[list]: /docs/server-sdks/reference/python/rest/short-codes/list

[get]: /docs/server-sdks/reference/python/rest/short-codes/get

[update]: /docs/server-sdks/reference/python/rest/short-codes/update

Manage short codes assigned to your SignalWire project. Short codes are
pre-provisioned, so this resource supports listing, retrieving, and updating
only -- there are no create or delete operations.

Access via `client.short_codes` on a [`RestClient`][restclient] instance.

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

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

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

## **Methods**

<CardGroup cols={3}>
  <Card title="list" href="/docs/server-sdks/reference/python/rest/short-codes/list">
    List short codes in the project.
  </Card>

  <Card title="get" href="/docs/server-sdks/reference/python/rest/short-codes/get">
    Retrieve a specific short code.
  </Card>

  <Card title="update" href="/docs/server-sdks/reference/python/rest/short-codes/update">
    Update a short code's configuration.
  </Card>
</CardGroup>