---
title: "Rewind Flow Comments"
method: POST
path: "/v1/flow_automation/rewind_flow_comments"
tags: ["flow_automation"]
---

# Rewind Flow Comments

`POST /v1/flow_automation/rewind_flow_comments`

## Request

- Base URL: `https://api.linktodm.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.linktodm.com/v1/flow_automation/rewind_flow_comments`
- Auth: none declared

Queue callback: process one page of one post's comments.

## Headers

- `x-admin-api-key` string

## Request body

- FlowRewindCommentsPayload: Queue payload for one page of one post's comments. `pending_media_ids` are the posts still to walk after this one, so the run completes exactly once even when the flow has several comment triggers.
  - `flow_rewind_id` integer, required
  - `media_id` string, required
  - `pending_media_ids` string[]
  - `comment_response` InstagramCommentResponse, required
    - `data` InstagramCommentData[], nullable
      - `text` string, nullable
      - `id` string, required
      - `timestamp` string, nullable
      - `from` CommentFrom, required
        - `id` string, nullable
        - `username` string, required
    - `paging` Paging
      - `next` string, nullable
      - `cursors` InstagramCursorsResponse
        - `before` string, nullable
        - `after` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/linktodm/apis/salesmorph.md) - [All operations](https://skmtc.dev/linktodm/apis/salesmorph/llms.txt) - [OpenAPI document](https://skmtc.dev/linktodm/apis/salesmorph/revisions/4af0ad5dbe92?raw)
