---
title: "To get the sequences and steps of a user"
method: GET
path: "/v1/sequences"
tags: ["sequences"]
---

# To get the sequences and steps of a user

`GET /v1/sequences`

## Query parameters

- `sequenceName` string
- `pageSize` number
- `page` number
- `sort` 'ASC' | 'DESC'
- `sortBy` 'sequence.createdAt' | 'sequence.title'
- `clientIds` string

## Response `200`

Successfully fetched all sequences and their associated steps

- GetSequenceDto
  - `message` string — Response message indicating the status of the operation
  - `payload` Sequence[] — Array of sequences and their associated details
    - `id` string — Unique identifier for the sequence
    - `title` string — Title of the sequence
    - `active` boolean — Indicates whether the sequence is active or not
    - `steps` Step[] — Steps included in the sequence
      - `id` string — Unique identifier for the step in the sequence
      - `name` string — Name of the step in the sequence
    - `client` Client
      - `id` string — Unique identifier for the client associated with the sequence
      - `companyName` string — Company name of the client
      - `firstName` string — First name of the client
      - `lastName` string — Last name of the client
    - `user` SequenceUser
      - `id` number — Unique identifier for the sequence owner
      - `firstName` string — First name of the sequence owner
      - `lastName` string — Last name of the sequence owner
      - `email` string — Email address of the sequence owner

## Other responses

- `400` — 4000: Failed to fetch sequences and their steps<br><br>
- `500` — 5001: Internal server error, please try again later<br><br>

---

[API](https://skmtc.dev/saleshandy/apis/develop-with-saleshandy.md) · [All operations](https://skmtc.dev/saleshandy/apis/develop-with-saleshandy/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/saleshandy/develop-with-saleshandy/revisions/fdaa0f2dcdfb/schema)
