---
title: "Retrieve a campaign step"
method: GET
path: "/campaign_steps/{id}"
tags: ["Campaign steps"]
---

# Retrieve a campaign step

`GET /campaign_steps/{id}`

## Path parameters

- `id` string, required

## Response `200`

The campaign step — the same shape as the entries in a campaign's `steps` array

- union
  - object
    - `type` 'email', required — The step type. Always "email" for this step
    - `custom_step_id` string — Optional. The ID of the custom step to use in this step. The type of the custom step must be "email" as well
    - `email_template_id` string, required — The ID of the email template to use in this step
  - object
    - `type` 'email', required — The step type. Always "email" for this step
    - `custom_step_id` string — Optional. The ID of the custom step to use in this step. The type of the custom step must be "email" as well
    - `subject` string, required — The subject of the email template to use at this step
    - `body` string, required — The body of the email template to use at this step
  - object
    - `type` 'sms', required — The step type. Always "sms" for this step
    - `custom_step_id` string — Optional. The ID of the custom step to use in this step. The type of the custom step must be "sms" as well
    - `sms_template_id` string, required — The ID of the SMS template to use in this step
  - object
    - `type` 'sms', required — The step type. Always "sms" for this step
    - `custom_step_id` string — Optional. The ID of the custom step to use in this step. The type of the custom step must be "sms" as well
    - `message` string, required — The message to send in this step
  - object
    - `type` 'wait', required — The step type. Always "wait" for this step
    - `duration` integer, required — The number of seconds to wait
  - object
    - `type` 'if', required — The step type. Always "if" for this step
    - `filter` string, required — The filter to use in this step

---

[API](https://skmtc.dev/pocketflows/apis/pocketflows-api.md) · [All operations](https://skmtc.dev/pocketflows/apis/pocketflows-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pocketflows/pocketflows-api/revisions/26723490b96f/schema)
