---
title: "Create Flow"
description: "How to call Create Flow (POST /api/flows) in the Klaviyo REST API: authentication, parameters, request and response bodies, and an example request."
url: "https://developers.klaviyo.com/en/v2026-07-15/reference/create_flow"
revision: "2026-07-15"
latestUrl: "https://developers.klaviyo.com/en/reference/create_flow"
operationId: "create_flow"
method: "POST"
endpoint: "https://a.klaviyo.com/api/flows"
authentication: "privateKey"
scopes: ["flows:write"]
rateLimits: {"burst":"1/s","steady":"15/m","daily":"100/d"}
revisionHeader: {"name":"revision","required":true}
deprecated: false
openApi: "https://raw.githubusercontent.com/klaviyo/openapi/2026-07-15/openapi/stable/apis/create_flow.json"
jsonApi: {"fields":{"flow":["archived","created","definition","definition.actions","definition.entry_action_id","definition.profile_filter","definition.profile_filter.condition_groups","definition.reentry_criteria","definition.reentry_criteria.duration","definition.reentry_criteria.unit","definition.triggers","id","name","status","trigger_type","updated"]},"additionalFields":{"flow":["definition"]}}
related: ["https://developers.klaviyo.com/en/v2026-07-15/reference/flows/llms.txt","https://developers.klaviyo.com/en/v2026-07-15/reference/get_flows.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_flow.md","https://developers.klaviyo.com/en/v2026-07-15/reference/update_flow.md","https://developers.klaviyo.com/en/v2026-07-15/reference/delete_flow.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_flow_action.md","https://developers.klaviyo.com/en/v2026-07-15/reference/update_flow_action.md","https://developers.klaviyo.com/en/v2026-07-15/reference/delete_flow_action.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_flow_message.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_actions_for_flow.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_action_ids_for_flow.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_tags_for_flow.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_tag_ids_for_flow.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_flow_for_flow_action.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_flow_id_for_flow_action.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_flow_action_messages.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_message_ids_for_flow_action.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_action_for_flow_message.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_action_id_for_flow_message.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_template_for_flow_message.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_template_id_for_flow_message.md"]
---

# Create Flow

> This is the Markdown version of https://developers.klaviyo.com/en/v2026-07-15/reference/create_flow

```http
POST https://a.klaviyo.com/api/flows
```

Create a new flow using an encoded flow definition.

New objects within the flow definition, such as actions, will need to use a `temporary_id` field for identification. These will be replaced with traditional `id` fields after successful creation.

A successful request will return the new definition to you.

- Revision header: `revision: 2026-07-15` (required)
- Scopes: `flows:write`
- Rate limits: Burst: `1/s`, Steady: `15/m`, Daily: `100/d`
- OpenAPI: [Download this endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-07-15/openapi/stable/apis/create_flow.json)

## Example request

```bash
curl --request POST \
     --url 'https://a.klaviyo.com/api/flows' \
     --header 'Authorization: Klaviyo-API-Key your-private-api-key' \
     --header 'accept: application/vnd.api+json' \
     --header 'revision: 2026-07-15' \
     --header 'content-type: application/vnd.api+json' \
     --data '{
  "data": {
    "type": "flow",
    "attributes": {
      "name": "Welcome Flow",
      "definition": {
        "triggers": [
          {
            "type": "list"
          }
        ],
        "actions": [
          {
            "id": "123",
            "temporary_id": "action-1",
            "type": "action-output-split"
          }
        ],
        "entry_action_id": "123"
      }
    }
  }
}'
```

## Query parameters

- `additional-fields[flow]` (string[]): Request additional fields not included by default in the response. Supported values: 'definition' Allowed values: `definition`
- `fields[flow]` (string[]): For more information please visit [API overview](https://developers.klaviyo.com/en/v2026-07-15/reference.md) Allowed values: `archived`, `created`, `definition`, `definition.actions`, `definition.entry_action_id`, `definition.profile_filter`, `definition.profile_filter.condition_groups`, `definition.reentry_criteria`, `definition.reentry_criteria.duration`, `definition.reentry_criteria.unit`, `definition.triggers`, `id`, `name`, `status`, `trigger_type`, `updated`

## Headers

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

## Request body

Content type: `application/vnd.api+json` (required)

- `data` (object, required)
  - `type` (string, required): Allowed values: `flow`
  - `attributes` (object, required)
    - `name` (string, required): The name of the Flow Example: `Welcome Flow`
    - `definition` (object, required)
      - `triggers` (oneOf[], required): Corresponds to the object which triggers the flow. Only one trigger is supported. Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-07-15/openapi/stable/apis/create_flow.json).
      - `profile_filter` (object, nullable): Filters for users entering the flow. These filters are used on every action in the flow. Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-07-15/openapi/stable/apis/create_flow.json).
      - `actions` (oneOf[], required): A list of actions that make up the flow. Actions are linked to each other by their ids. Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-07-15/openapi/stable/apis/create_flow.json).
      - `entry_action_id` (string, required, nullable): The ID of the action that is the entry point of the flow. Example: `123`
      - `reentry_criteria` (object): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-07-15/openapi/stable/apis/create_flow.json).

### Example request body

```json
{
  "data": {
    "type": "flow",
    "attributes": {
      "name": "Welcome Flow",
      "definition": {
        "triggers": [
          {
            "type": "list"
          }
        ],
        "actions": [
          {
            "id": "123",
            "temporary_id": "action-1",
            "type": "action-output-split"
          }
        ],
        "entry_action_id": "123"
      }
    }
  }
}
```

## Responses

### 201: Success

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

- `data` (object, required)
  - `type` (string, required): Allowed values: `flow`
  - `id` (string, required)
  - `attributes` (object, required)
    - `name` (string, nullable)
    - `status` (string, nullable)
    - `archived` (boolean, 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`
    - `trigger_type` (string, nullable): Corresponds to the object which triggered the flow. Allowed values: `Added to List`, `Date Based`, `Low Inventory`, `Metric`, `Price Drop`, `Unconfigured`
    - `definition` (object): Same fields as FlowDefinition in the request body above.
  - `relationships` (object)
    - `flow-actions` (object)
      - `data` (object[]): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-07-15/openapi/stable/apis/create_flow.json).
      - `links` (object): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-07-15/openapi/stable/apis/create_flow.json).
    - `tags` (object)
      - `data` (object[]): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-07-15/openapi/stable/apis/create_flow.json).
      - `links` (RelationshipLinks): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-07-15/openapi/stable/apis/create_flow.json).
  - `links` (object, required)
    - `self` (string<uri>, required)
- `links` (ObjectLinks): Same fields as the first ObjectLinks above.
- `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",
    "id": "string",
    "attributes": {
      "name": "string",
      "status": "string",
      "archived": true,
      "created": "2022-11-08T00:00:00+00:00",
      "updated": "2022-11-08T00:00:00+00:00",
      "trigger_type": "Added to List",
      "definition": {
        "triggers": [
          {
            "type": "list",
            "id": "string"
          }
        ],
        "profile_filter": {
          "condition_groups": [
            {
              "conditions": [
                {
                  "type": "profile-property",
                  "property": "properties['Favorite Color']",
                  "filter": {
                    "type": "string",
                    "operator": "contains",
                    "value": "string"
                  }
                }
              ]
            }
          ]
        },
        "actions": [
          {
            "id": "123",
            "temporary_id": "action-1",
            "type": "action-output-split",
            "links": {
              "next_if_true": "string",
              "next_if_false": "string"
            },
            "data": {
              "action_output_filter": {
                "condition_groups": [
                  {
                    "conditions": [
                      {
                        "type": "action-output",
                        "output_config_id": 0,
                        "field": "string",
                        "filter": {
                          "type": "string",
                          "operator": "contains",
                          "value": "string"
                        }
                      }
                    ]
                  }
                ]
              }
            }
          }
        ],
        "entry_action_id": "123",
        "reentry_criteria": {
          "duration": 0,
          "unit": "day"
        }
      }
    },
    "relationships": {
      "flow-actions": {
        "data": [
          {
            "type": "flow-action",
            "id": "string"
          }
        ],
        "links": {
          "self": "https://www.example.com",
          "related": "https://www.example.com"
        }
      },
      "tags": {
        "data": [
          {
            "type": "tag",
            "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"
  },
  "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"
      }
    }
  ]
}
```
