# List saved replies

**GET** `/saved-replies`

Returns the saved replies the caller can see, ordered by `title`, then `id`: every
workspace reply, the team replies of the caller's teams, and the caller's own personal
replies. Workspace owners and admins, and API keys, see every team reply, and also
another user's personal replies when they filter by `createdBy`.

- `400` with code `gateway_invalid_request`: a parameter breaks this schema, for
  example an unknown `scope`, a negative `pageSize` or a `query` over 200 characters.
- `400` with code `messaging_saved_reply_invalid_page_token`: `pageToken` is invalid,
  older than 24 hours, or was issued for other filters or another caller.

Authentication: bearerAuth
Required scopes: `saved_reply:list`
Allowed roles: `owner`, `admin`, `agent`
Authorization: List saved replies visible to the caller.

## Parameters

- `scope` (query array<[SavedReplyScope](/api/reference/schemas/saved-reply-scope.md)>, optional) - Return only replies with one of these scopes.
- `availableInTeamId` (query string, optional) - Return the replies the inbox offers to members of this team: workspace replies,
replies of scope `teams` that list this team, and the caller's personal replies.
Combine with `scope` to narrow. An unknown or deleted team returns the workspace and
personal replies, not an error. For an agent, a team they aren't a member of adds
only the replies they can already read through one of their own teams; workspace
owners, admins and API keys get that team's replies.
- `createdBy` (query string, optional) - Return only replies created by this user. Another user's personal replies are
included only for workspace owners and admins, and API keys.
- `query` (query string, optional) - Case-insensitive substring match on `title`, `shortcut` and `body`.
- `unusedSince` (query string, optional) - Return only replies never used, or last used before this time.
- `usesSince` (query string, optional) - Count `uses` from this date (UTC) instead of all-time.
- `pageSize` (query integer, optional) - Values above 100 are reduced to 100; 0 or omitted uses the default (50).
- `pageToken` (query string, optional) - `nextPageToken` from the previous page, with the same filters. A token expires
after 24 hours.

## Responses

- `200` ([ListSavedRepliesResponse](/api/reference/schemas/list-saved-replies-response.md)): Saved replies
- `default` ([ProblemDetails](/api/reference/schemas/problem-details.md)): Error
