---
title: "List sequences in Trash"
method: GET
path: "/sequences/trash/"
tags: ["sequences"]
---

# List sequences in Trash

`GET /sequences/trash/`

## Request

- Base URL: `https://api.getoneprofile.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.getoneprofile.ai/sequences/trash/`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

The workspace's sequences in Trash, newest move first, or by name. Each can be restored (POST /sequences/{id}/restore/), or deleted for good early (DELETE /sequences/{id}/purge/); otherwise Trash deletes it 30 days after it went there.

## Query parameters

- `filters` ListTrashedSequencesFilterParamsSchema, required: Query parameters for filtering the sequences in Trash.
  - `name__contains` string, nullable: Only the sequences whose name holds this text, in any case.
- `limit` integer: The number of items to return.
- `order_by` 'deleted_at' | 'name'
- `order_direction` 'asc' | 'desc'
- `cursor` string, nullable: Set the cursor to the next or previous page. You can get the cursor from the previous page's response.

## Response `200`

Successful Response

- PaginatedResponseTrashedSequenceReadSchema
  - `data` TrashedSequenceReadSchema[]: The list of ResponseItems.
    - `audience_table_id` string, uuid, nullable: The table its status and messages columns stay on while it is in Trash.
    - `audience_table_name` string, nullable: That table's name; None when it has none, or the table is in Trash too.
    - `contacts` integer, nullable: The contacts it had, from the workspace's cached list stats; None while they have not been built.
    - `deleted_at` string, date-time, required: When it went to Trash. It is deleted for good once it has been there as long as Trash keeps anything (30 days).
    - `id` string, uuid, required
    - `name` string, required
    - `status` 'draft' | 'running' | 'paused' | 'completed', required: Lifecycle of a sequence. DRAFT until launch; RUNNING sequences are locked against structural edits (pause → edit → resume); PAUSED stops scheduling while leaving every enrolment exactly where it is; COMPLETED is terminal.
  - `next_page_cursor` string, nullable: The cursor to the next page. If there are no more pages, this is None.
  - `previous_page_cursor` string, nullable: The cursor to the previous page. If there are no previous pages, this is None.

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `422`: Invalid request made to the API.
- `500`: Internal server error.
- `502`: Bad gateway error.
- `503`: Service unavailable.

---

[API](https://skmtc.dev/getoneprofile/apis/api-reference-oneprofile.md) · [All operations](https://skmtc.dev/getoneprofile/apis/api-reference-oneprofile/llms.txt) · [OpenAPI document](https://skmtc.dev/getoneprofile/apis/api-reference-oneprofile/revisions/4a6bd71e3f02?raw)
