# List saved replies (https://notert.io/docs/api/reference/list-saved-replies)

`GET /api/v1/saved-replies`

A page of the team's saved replies, the answers it sends again and again from the inbox, by title, each with what it says in full.

Access: A token with conversations:read.

## Query parameters

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `query` | string | No | Words every saved reply listed holds in its title or what it says, whatever their case or accents. At most 200 characters. |
| `limit` | integer | No | How many saved replies the page holds, at most 200. 1 to 200. Default 50. |
| `cursor` | string | No | The nextCursor of the page before. At most 4096 characters. |

## Response 200

| Field | Type | Description |
| --- | --- | --- |
| `items` | object[] | The page's saved replies, by title whatever its case. |
| `items.id` | string | The saved reply's id. |
| `items.title` | string | The title the team finds it by in the inbox, the workspace's once in any case. |
| `items.body` | string | What it says, as plain text, as the team sends it. {first_name} stands for the customer's first name and {my_name} for the writer's, filled in as it is sent. |
| `nextCursor` | string or null | Where the next page starts, to send as cursor. Null on the last page. |

## Errors

| Status | Code | Message |
| --- | --- | --- |
| 400 | `BAD_REQUEST` | Input validation failed. |
| 401 | `UNAUTHORIZED` | Send a valid API token as a Bearer token. |
| 403 | `HOLDER_NOT_ALLOWED` | The teammate who holds this API token's secret can't do this in the workspace now. A teammate who can should roll it in the workspace's settings. |
| 403 | `INSUFFICIENT_SCOPE` | This API token can't read conversations. Create one that may in the workspace's settings. |
| 403 | `NETWORK_NOT_ALLOWED` | This API token works only from the networks it was made for. Call from one of them, or create a token for this one in the workspace's settings. |
| 429 | `TOO_MANY_REQUESTS` | Too Many Requests. Its data holds `retryAfter`. |

## Example request

```sh
curl "https://app.notert.io/api/v1/saved-replies?query=refund" \
  -H "Authorization: Bearer $NOTERT_API_TOKEN"
```

## Example response 200

```json
{
  "items": [
    {
      "id": "5d2b8f1a-3c4e-4a6b-9d0f-1e3a5c7b9d24",
      "title": "Refunds",
      "body": "Hi {first_name}, we refund any order within 14 days."
    }
  ],
  "nextCursor": "WyJyZWZ1bmRzIiwiNWQyYjhmMWEtM2M0ZS00YTZiLTlkMGYtMWUzYTVjN2I5ZDI0Il0"
}
```
