---
title: "Get Messages For Flow Action"
description: "How to call Get Messages For Flow Action (GET /api/flow-actions/{id}/flow-messages) in the Klaviyo REST API: authentication, parameters, request and response bodies, and an example request."
url: "https://developers.klaviyo.com/en/reference/get_flow_action_messages"
revision: "2026-10-15"
operationId: "get_flow_action_messages"
aliases: ["get_messages_for_flow_action"]
method: "GET"
endpoint: "https://a.klaviyo.com/api/flow-actions/{id}/flow-messages"
authentication: "privateKey"
scopes: ["flows:read"]
rateLimits: {"burst":"3/s","steady":"60/m"}
revisionHeader: {"name":"revision","required":true}
deprecated: false
openApi: "https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/get_flow_action_messages.json"
jsonApi: {"fields":{"flow-message":["channel","created","definition","definition.action_buttons","definition.add_info_link","definition.add_opt_out_language","definition.add_org_prefix","definition.add_tracking_params","definition.additional_filters","definition.additional_filters.condition_groups","definition.android_link","definition.automation_id","definition.badge","definition.badge_options","definition.badge_options.badge_config","definition.badge_options.set_from_property","definition.badge_options.value","definition.bcc_email","definition.body","definition.cc_email","definition.conversion_metric_id","definition.custom_tracking_params","definition.dynamic_image","definition.expiry_hours","definition.from_email","definition.from_label","definition.headers","definition.id","definition.image_id","definition.include_contact_card","definition.ios_link","definition.kv_pairs","definition.message_hierarchy","definition.name","definition.on_open","definition.preview_text","definition.push_type","definition.reply_to_email","definition.shorten_links","definition.smart_sending_enabled","definition.sms_quiet_hours_enabled","definition.sound","definition.subject_line","definition.template_id","definition.title","definition.to_emails","definition.transactional","definition.url","definition.vendor_id","definition.video_asset_id","definition.web_url","id","updated"]},"filter":{"id":{"operators":{"list":["any"]},"type":"string"},"name":{"operators":{"single":["contains","ends-with","equals","starts-with"]},"type":"string"},"created":{"operators":{"single":["equals","greater-or-equal","greater-than","less-or-equal","less-than"]},"type":"string<date-time>"},"updated":{"operators":{"single":["equals","greater-or-equal","greater-than","less-or-equal","less-than"]},"type":"string<date-time>"}},"sort":["created","-created","id","-id","name","-name","updated","-updated"],"pagination":{"style":"cursor","defaultPageSize":"50"}}
related: ["https://developers.klaviyo.com/en/reference/flows/llms.txt","https://developers.klaviyo.com/en/reference/get_flows.md","https://developers.klaviyo.com/en/reference/get_flow.md","https://developers.klaviyo.com/en/reference/create_flow.md","https://developers.klaviyo.com/en/reference/update_flow.md","https://developers.klaviyo.com/en/reference/delete_flow.md","https://developers.klaviyo.com/en/reference/get_flow_action.md","https://developers.klaviyo.com/en/reference/create_flow_action.md","https://developers.klaviyo.com/en/reference/update_flow_action.md","https://developers.klaviyo.com/en/reference/delete_flow_action.md","https://developers.klaviyo.com/en/reference/get_flow_message.md","https://developers.klaviyo.com/en/reference/get_actions_for_flow.md","https://developers.klaviyo.com/en/reference/get_action_ids_for_flow.md","https://developers.klaviyo.com/en/reference/get_tags_for_flow.md","https://developers.klaviyo.com/en/reference/get_tag_ids_for_flow.md","https://developers.klaviyo.com/en/reference/get_flow_for_flow_action.md","https://developers.klaviyo.com/en/reference/get_flow_id_for_flow_action.md","https://developers.klaviyo.com/en/reference/get_message_ids_for_flow_action.md","https://developers.klaviyo.com/en/reference/get_action_for_flow_message.md","https://developers.klaviyo.com/en/reference/get_action_id_for_flow_message.md","https://developers.klaviyo.com/en/reference/get_template_for_flow_message.md","https://developers.klaviyo.com/en/reference/get_template_id_for_flow_message.md"]
---

# Get Messages For Flow Action

> This is the Markdown version of https://developers.klaviyo.com/en/reference/get_flow_action_messages

```http
GET https://a.klaviyo.com/api/flow-actions/{id}/flow-messages
```

Get all flow messages associated with the given flow action ID.

Returns a maximum of 50 flow message relationships per request, which can be paginated with cursor-based pagination.

- Revision header: `revision: 2026-10-15` (required)
- Scopes: `flows:read`
- Rate limits: Burst: `3/s`, Steady: `60/m`
- OpenAPI: [Download this endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/get_flow_action_messages.json)

## Example request

### curl

```bash
curl --request GET \
     --url 'https://a.klaviyo.com/api/flow-actions/id/flow-messages' \
     --header 'Authorization: Klaviyo-API-Key your-private-api-key' \
     --header 'accept: application/vnd.api+json' \
     --header 'revision: 2026-10-15'
```

### CLI

```bash
klaviyo flows get-flow-action-messages id
```

Sign in first with `klaviyo auth login`. [Install the Klaviyo CLI](https://developers.klaviyo.com/en/docs/klaviyo_cli.md)

### Python

```python
from klaviyo_api import KlaviyoAPI

klaviyo = KlaviyoAPI("your-private-api-key")

response = klaviyo.Flows.get_flow_action_messages("id")
```

Install it with `pip install klaviyo-api`. [The Python SDK on GitHub](https://github.com/klaviyo/klaviyo-api-python)

### Node.js

```javascript
import { ApiKeySession, FlowsApi } from 'klaviyo-api'

const session = new ApiKeySession('your-private-api-key')
const flowsApi = new FlowsApi(session)

const response = await flowsApi.getFlowActionMessages('id')
```

Install it with `npm install klaviyo-api`. [The Node.js SDK on GitHub](https://github.com/klaviyo/klaviyo-api-node)

### Ruby

```ruby
require 'klaviyo-api-sdk'

KlaviyoAPI.configure do |config|
  config.api_key['Klaviyo-API-Key'] = 'Klaviyo-API-Key your-private-api-key'
end

response = KlaviyoAPI::Flows.get_flow_action_messages('id')
```

Install it with `gem install klaviyo-api-sdk`. [The Ruby SDK on GitHub](https://github.com/klaviyo/klaviyo-api-ruby)

### PHP

```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');

use KlaviyoAPI\KlaviyoAPI;

$klaviyo = new KlaviyoAPI('your-private-api-key');

$response = $klaviyo->Flows->getFlowActionMessages('id');
```

Install it with `composer require klaviyo/api`. [The PHP SDK on GitHub](https://github.com/klaviyo/klaviyo-api-php)

## Path parameters

- `id` (string, required)

## Query parameters

- `fields[flow-message]` (string[]): For more information please visit [API overview](https://developers.klaviyo.com/en/reference.md) Allowed values: `channel`, `created`, `definition`, `definition.action_buttons`, `definition.add_info_link`, `definition.add_opt_out_language`, `definition.add_org_prefix`, `definition.add_tracking_params`, `definition.additional_filters`, `definition.additional_filters.condition_groups`, `definition.android_link`, `definition.automation_id`, `definition.badge`, `definition.badge_options`, `definition.badge_options.badge_config`, `definition.badge_options.set_from_property`, `definition.badge_options.value`, `definition.bcc_email`, `definition.body`, `definition.cc_email`, `definition.conversion_metric_id`, `definition.custom_tracking_params`, `definition.dynamic_image`, `definition.expiry_hours`, `definition.from_email`, `definition.from_label`, `definition.headers`, `definition.id`, `definition.image_id`, `definition.include_contact_card`, `definition.ios_link`, `definition.kv_pairs`, `definition.message_hierarchy`, `definition.name`, `definition.on_open`, `definition.preview_text`, `definition.push_type`, `definition.reply_to_email`, `definition.shorten_links`, `definition.smart_sending_enabled`, `definition.sms_quiet_hours_enabled`, `definition.sound`, `definition.subject_line`, `definition.template_id`, `definition.title`, `definition.to_emails`, `definition.transactional`, `definition.url`, `definition.vendor_id`, `definition.video_asset_id`, `definition.web_url`, `id`, `updated`
- `filter` (string): For more information please visit [API overview](https://developers.klaviyo.com/en/reference.md)\
  Allowed field(s)/operator(s):\
  `id`: `any` (string)\
  `name`: `contains`, `ends-with`, `equals`, `starts-with` (string)\
  `created`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than` (date-time)\
  `updated`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than` (date-time) Example: `any(id,['example'])`
- `page[cursor]` (string): For more information please visit [API overview](https://developers.klaviyo.com/en/reference.md)
- `page[size]` (integer): Default: 50. Min: 1. Max: 50.
- `sort` (string): For more information please visit [API overview](https://developers.klaviyo.com/en/reference.md) Allowed values: `created`, `-created`, `id`, `-id`, `name`, `-name`, `updated`, `-updated`

## Headers

- `revision` (string, required): API endpoint revision (format: YYYY-MM-DD[.suffix]) Default: `2026-10-15`

## Responses

### 200: Success

Content type: `application/vnd.api+json`

- `data` (object[], required)
  - `type` (string, required): Allowed values: `flow-message`
  - `id` (string, required)
  - `attributes` (object, required)
    - `channel` (string, nullable)
    - `created` (string<date-time>, nullable): Example: `2022-11-08T00:00:00+00:00`
    - `updated` (string<date-time>, nullable): Example: `2022-11-08T00:00:00+00:00`
    - `definition` (oneOf, nullable): The encoded flow message definition.
      - One of:
        - Option 1: `FlowEmail` Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/get_flow_action_messages.json).
        - Option 2: `FlowInternalAlert` Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/get_flow_action_messages.json).
        - Option 3: `FlowPushNotification` Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/get_flow_action_messages.json).
        - Option 4: `FlowSms` Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/get_flow_action_messages.json).
        - Option 5: `FlowWebhook` Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/get_flow_action_messages.json).
        - Option 6: `FlowWhatsApp` Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/get_flow_action_messages.json).
        - Option 7: `FlowWhatsAppWithAC` Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/get_flow_action_messages.json).
  - `relationships` (object)
    - `flow-action` (object)
      - `data` (object): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/get_flow_action_messages.json).
      - `links` (object): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/get_flow_action_messages.json).
    - `template` (object)
      - `data` (object): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/get_flow_action_messages.json).
      - `links` (RelationshipLinks): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/get_flow_action_messages.json).
  - `links` (object, required)
    - `self` (string<uri>, required)
- `links` (object)
  - `self` (string<uri>, required)
  - `prev` (string<uri>)
  - `next` (string<uri>)
- `meta` (object): Response-level metadata
  - `agent_hints` (object): Optional hints emitted by the API for agent callers
    - `next_steps` (string[]): Suggested follow-up actions for agents to take after this response

#### Example response body

```json
{
  "data": [
    {
      "type": "flow-message",
      "id": "string",
      "attributes": {
        "channel": "string",
        "created": "2022-11-08T00:00:00+00:00",
        "updated": "2022-11-08T00:00:00+00:00",
        "definition": {
          "from_email": "string",
          "from_label": "string",
          "reply_to_email": "string",
          "cc_email": "string",
          "bcc_email": "string",
          "subject_line": "string",
          "preview_text": "string",
          "template_id": "string",
          "smart_sending_enabled": true,
          "transactional": false,
          "add_tracking_params": false,
          "custom_tracking_params": [
            {
              "param": "string",
              "value": "string"
            }
          ],
          "additional_filters": {
            "condition_groups": [
              {
                "conditions": [
                  {
                    "type": "profile-property",
                    "property": "properties['Favorite Color']",
                    "filter": {
                      "type": "string",
                      "operator": "contains",
                      "value": "string"
                    }
                  }
                ]
              }
            ]
          },
          "name": "string",
          "id": "string"
        }
      },
      "relationships": {
        "flow-action": {
          "data": {
            "type": "flow-action",
            "id": "string"
          },
          "links": {
            "self": "https://www.example.com",
            "related": "https://www.example.com"
          }
        },
        "template": {
          "data": {
            "type": "template",
            "id": "string"
          },
          "links": {
            "self": "https://www.example.com",
            "related": "https://www.example.com"
          }
        }
      },
      "links": {
        "self": "https://www.example.com"
      }
    }
  ],
  "links": {
    "self": "https://www.example.com",
    "prev": "https://www.example.com",
    "next": "https://www.example.com"
  },
  "meta": {
    "agent_hints": {
      "next_steps": [
        "string"
      ]
    }
  }
}
```

### 4XX: Client Error

Content type: `application/vnd.api+json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```

### 5XX: Server Error

Content type: `application/vnd.api+json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```
