---
updatedAt: 2026-04-28T09:31:16.000Z
agentTools:
  projectIndex: https://docs.makaira.io/llms.txt
---

# Create product feed

Create a new product feed

Creates a new product feed configuration.

Requires authentication.

## Request

**`POST /productfeed`**

### Headers

| Header          | Value              |
| --------------- | ------------------ |
| `Authorization` | `Bearer <token>`   |
| `Content-Type`  | `application/json` |

### Request Body

| Field               | Type    | Required | Description                                                                          |
| ------------------- | ------- | -------- | ------------------------------------------------------------------------------------ |
| `name`              | string  | Yes      | Feed name. Must be unique. Special characters are replaced with underscores in URLs. |
| `stream`            | number  | Yes      | Stream ID that defines which products are included in this feed.                     |
| `contentType`       | string  | Yes      | Output format (e.g. `csv`, `xml`, `json`).                                           |
| `separator`         | string  | No       | Field separator for CSV feeds.                                                       |
| `wrapping`          | string  | No       | Field wrapping character for CSV feeds.                                              |
| `token`             | string  | No       | Authentication token required to access the generated feed URL.                      |
| `parents`           | boolean | No       | Include parent product groups.                                                       |
| `children`          | boolean | No       | Include child variants.                                                              |
| `parentsSingleOnly` | boolean | No       | Only include parent groups with a single variant.                                    |
| `innerStream`       | number  | No       | Secondary stream for inner-loop product filtering.                                   |
| `header`            | string  | No       | Header template for the feed output.                                                 |
| `footer`            | string  | No       | Footer template for the feed output.                                                 |
| `lineSeparator`     | string  | No       | Line separator between feed entries.                                                 |
| `content`           | string  | No       | Row template for each product in the feed.                                           |

### Example Request

```json
{
  "name": "Google Shopping Feed",
  "stream": 1,
  "contentType": "csv",
  "separator": ",",
  "wrapping": "\"",
  "children": true
}
```

## Response

Returns the created product feed object.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Makaira API",
    "version": "1.0",
    "contact": {
      "name": "Makaira GmbH",
      "url": "https://www.makaira.io/",
      "email": "support@makaira.io"
    },
    "description": "API of the powerful Makaira Search/Recommendation and Marketing Suite"
  },
  "servers": [
    {
      "url": "https://{yourinstance}.makaira.io"
    }
  ],
  "paths": {
    "/productfeed": {
      "post": {
        "summary": "",
        "tags": [
          "Feeds"
        ],
        "operationId": "post-productfeed",
        "parameters": [
          {
            "$ref": "#/components/parameters/instance"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "stream": {
                    "type": "number"
                  },
                  "contentType": {
                    "type": "string"
                  },
                  "token": {
                    "type": "string"
                  },
                  "separator": {
                    "type": "string"
                  },
                  "wrapping": {
                    "type": "string"
                  },
                  "parents": {
                    "type": "boolean"
                  },
                  "children": {
                    "type": "boolean"
                  },
                  "parentsSingleOnly": {
                    "type": "boolean"
                  },
                  "innerStream": {
                    "type": "number"
                  },
                  "header": {
                    "type": "string"
                  },
                  "footer": {
                    "type": "string"
                  },
                  "lineSeparator": {
                    "type": "string"
                  },
                  "content": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "description": "Create a new product feed"
      }
    }
  },
  "components": {
    "parameters": {
      "instance": {
        "in": "header",
        "name": "X-Makaira-Instance",
        "required": true,
        "description": "Makaira Instance ID",
        "schema": {
          "type": "string"
        }
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "Authentication by JSON Web Token\n"
      }
    }
  },
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```