# Sortyra REST API: keys, permissions and example calls

> How to connect Sortyra to your ERP or your own system via the REST API: creating a key, permission scopes, available endpoints, example calls and error codes.

Source: <https://sortyra.com/knowledge-base/rest-api-product-feeds>

---

[Sortyra](https://sortyra.com/) [Knowledge base](https://sortyra.com/knowledge-base) [Integrations and API](https://sortyra.com/knowledge-base#integrations)

# REST API

Sortyra team · September 11, 2026 · 10 min read

Search the knowledge base

[Knowledge base](https://sortyra.com/knowledge-base)

**Feed basics**

- [What is a product feed](https://sortyra.com/knowledge-base/what-is-a-product-feed)
- [Feed types: XML, CSV, TSV, JSON, Google Sheets and API](https://sortyra.com/knowledge-base/feed-types-xml-csv-json)
- [What a product feed is used for](https://sortyra.com/knowledge-base/what-product-feeds-are-used-for)
- [What is a feed manager and when do you need one?](https://sortyra.com/knowledge-base/what-is-a-feed-manager)
- [Supplier feeds, wholesale and dropshipping](https://sortyra.com/knowledge-base/supplier-feed-dropshipping)
- [Feeds for price comparison sites (Heureka, Zboží and others)](https://sortyra.com/knowledge-base/price-comparison-site-feed)
- [Google Merchant Center and Google Shopping feed](https://sortyra.com/knowledge-base/google-merchant-center-feed)
- [Catalogue for Facebook and Instagram](https://sortyra.com/knowledge-base/facebook-instagram-catalogue-feed)
- [Feeds for marketplaces](https://sortyra.com/knowledge-base/marketplace-product-feeds)
- [EAN, GTIN, MPN and product codes](https://sortyra.com/knowledge-base/ean-gtin-mpn-product-code)
- [Product categories and category trees](https://sortyra.com/knowledge-base/product-categories-category-tree)
- [Product attributes and variants](https://sortyra.com/knowledge-base/product-attributes-and-variants)
- [Product matching on comparison sites](https://sortyra.com/knowledge-base/product-matching-comparison-sites)
- [Availability, stock and delivery time](https://sortyra.com/knowledge-base/availability-stock-delivery-time)
- [Price, VAT and currency in a feed](https://sortyra.com/knowledge-base/price-vat-currency-in-feed)
- [Images in feeds](https://sortyra.com/knowledge-base/images-in-product-feeds)
- [How often to update a feed](https://sortyra.com/knowledge-base/how-often-to-update-a-feed)
- [The most common feed errors and how to fix them](https://sortyra.com/knowledge-base/common-feed-errors-how-to-fix)

**Getting started**

- [Getting started with Sortyra – an overview](https://sortyra.com/knowledge-base/getting-started-with-sortyra)
- [Adding your first feed](https://sortyra.com/knowledge-base/adding-your-first-feed)
- [Your first output for a channel](https://sortyra.com/knowledge-base/first-output-for-a-channel)
- [Dashboard](https://sortyra.com/knowledge-base/feed-and-alerts-dashboard)
- [Team, roles and access](https://sortyra.com/knowledge-base/team-roles-and-access)
- [Subscription, payments and free trial](https://sortyra.com/knowledge-base/subscription-payments-free-trial)
- [Billing details](https://sortyra.com/knowledge-base/company-billing-details)
- [Booking a 15-minute call and what to prepare](https://sortyra.com/knowledge-base/book-a-15-minute-call)

**Catalogue**

- [Sources](https://sortyra.com/knowledge-base/sources-input-feeds)
- [Source settings: field mapping, item ID, download schedule, login](https://sortyra.com/knowledge-base/feed-source-settings)
- [Products: search and filters](https://sortyra.com/knowledge-base/products-search-and-filters)
- [Manual edits and locked fields](https://sortyra.com/knowledge-base/manual-edits-locked-fields)
- [Fields and values](https://sortyra.com/knowledge-base/feed-fields-and-values)
- [Categories in Sortyra: your own tree, assignment and channel mapping](https://sortyra.com/knowledge-base/product-categories-in-sortyra)
- [Thematic and seasonal categories: Christmas, gifts, Black Friday](https://sortyra.com/knowledge-base/thematic-seasonal-categories)
- [Renaming a category without losing SEO: 301 redirects for each platform](https://sortyra.com/knowledge-base/rename-category-301-redirects)
- [SortyMigration: moving your shop step by step](https://sortyra.com/knowledge-base/migrating-from-another-platform)
- [Duplicates and the same product from several suppliers](https://sortyra.com/knowledge-base/duplicate-products-multiple-suppliers)

**Processing**

- [Rules: how they work](https://sortyra.com/knowledge-base/feed-rules-bulk-editing)
- [Rule recipes – examples](https://sortyra.com/knowledge-base/feed-rule-recipes-examples)
- [AI Copilot: set up and edit your feed in a conversation](https://sortyra.com/knowledge-base/ai-copilot-plain-language-feed-edits)
- [AI Copilot prompt examples](https://sortyra.com/knowledge-base/ai-copilot-prompt-examples)
- [AI content: titles, descriptions, attributes](https://sortyra.com/knowledge-base/ai-content-descriptions-titles-attributes)
- [Prompt examples for AI content](https://sortyra.com/knowledge-base/ai-content-prompt-examples)
- [Translations, glossary and translation memory](https://sortyra.com/knowledge-base/translate-product-feed-glossary-memory)
- [Image studio](https://sortyra.com/knowledge-base/image-studio-feed-product-photos)
- [Feed visuals (image editor)](https://sortyra.com/knowledge-base/feed-visuals-image-editor)
- [Output check and data quality](https://sortyra.com/knowledge-base/check-feed-before-publishing)

**Outputs and channels**

- [Outputs and feed links](https://sortyra.com/knowledge-base/outputs-and-feed-links)
- [Channel formats and custom specifications](https://sortyra.com/knowledge-base/channel-formats-custom-specification)
- [Sharing feeds with partners](https://sortyra.com/knowledge-base/sharing-feeds-with-partners)
- [Connecting your shop via API](https://sortyra.com/knowledge-base/connect-online-shop-via-api)
- [Marketplaces: connection, offers, orders](https://sortyra.com/knowledge-base/marketplaces-connection-offers-orders)
- [Marketplace pricing: exchange rate, commission, VAT and minimum margin](https://sortyra.com/knowledge-base/marketplace-pricing)
- [Heureka Marketplace: connection, shipping and orders](https://sortyra.com/knowledge-base/heureka-marketplace-connection-orders)

**Prices and sales**

- [Prices and competition](https://sortyra.com/knowledge-base/competitor-based-pricing)
- [Price position](https://sortyra.com/knowledge-base/price-position-on-comparison-sites)
- [Connecting Google Merchant Center: market prices and product performance](https://sortyra.com/knowledge-base/connect-google-merchant-center)
- [Bidding on comparison sites](https://sortyra.com/knowledge-base/cpc-bidding-heureka-zbozi)
- [Product matching with comparison sites in Sortyra](https://sortyra.com/knowledge-base/comparison-site-matching-in-sortyra)
- [Stock and delivery](https://sortyra.com/knowledge-base/stock-and-delivery-times)
- [Own warehouse: marking a source, several warehouses and "in stock"-only feeds](https://sortyra.com/knowledge-base/own-warehouse-stock-feed)
- [Exporting stock from a warehouse program to a feed](https://sortyra.com/knowledge-base/stock-export-warehouse-software)
- [POHODA: exporting stock to your shop, Heureka and Google](https://sortyra.com/knowledge-base/pohoda-stock-export-feed)
- [Money S3: exporting stock to a feed for your shop and comparison sites](https://sortyra.com/knowledge-base/money-s3-stock-export-feed)
- [ABRA Flexi: stock and price-list prices straight into your feed](https://sortyra.com/knowledge-base/abra-flexi-stock-feed)
- [KROS Omega: stock card list into your feed](https://sortyra.com/knowledge-base/kros-omega-stock-feed)
- [Price quotes for customers](https://sortyra.com/knowledge-base/price-quotes-for-business-customers)
- [External and web data](https://sortyra.com/knowledge-base/external-data-and-web-data)

**Insights and checks**

- [Insights and alerts](https://sortyra.com/knowledge-base/feed-insights-and-alerts)
- [Freshness guard and feed update history](https://sortyra.com/knowledge-base/feed-freshness-guard)
- [Safeguards: prices and blocked terms](https://sortyra.com/knowledge-base/feed-safeguards-prices-blocked-terms)
- [Change history and undo](https://sortyra.com/knowledge-base/change-history-and-undo)
- [System status](https://sortyra.com/knowledge-base/system-status-feed-runs)

**Integrations and API**

- [AI and integrations: your own key or Managed AI](https://sortyra.com/knowledge-base/ai-integrations-own-api-key)
- [Alerts by email, Slack, Telegram and webhook](https://sortyra.com/knowledge-base/feed-alerts-email-slack-telegram-webhook)
- [REST API](https://sortyra.com/knowledge-base/rest-api-product-feeds)
- [Working through an AI agent – MCP](https://sortyra.com/knowledge-base/mcp-ai-agent-product-feeds)
- [Agencies and client management](https://sortyra.com/knowledge-base/agencies-client-feed-management)
- [Partner programme: sign-up, commissions and invoices](https://sortyra.com/knowledge-base/partner-programme-commissions)
- [Data and privacy: export, deletion and improving the service](https://sortyra.com/knowledge-base/data-privacy-export-deletion)

**Troubleshooting**

- [The feed is not downloading](https://sortyra.com/knowledge-base/feed-not-downloading-source-error)
- [The supplier stopped updating the feed – how to spot it before your customers do](https://sortyra.com/knowledge-base/supplier-stopped-updating-feed)
- [Products missing from the output](https://sortyra.com/knowledge-base/products-missing-from-feed-output)
- [A comparison site or Google rejects your feed](https://sortyra.com/knowledge-base/comparison-site-or-google-rejects-feed)
- [AI not working or limit reached](https://sortyra.com/knowledge-base/ai-not-working-limit-reached)
- [Frequently asked questions](https://sortyra.com/knowledge-base/sortyra-faq)

The REST API lets your systems – an ERP, an internal tool or a script – manage sources, outputs, rules, the category tree and output settings in Sortyra, read and edit products and start recalculation without opening the app. Access is controlled by API keys with a precisely defined permission scope, which you can revoke at any time.

**In this article**

1. What this feature does
2. Where to find it
3. Step by step: creating a key
4. Available endpoints
5. Example calls
6. Error codes
7. Examples
8. Tips and common mistakes
9. Frequently asked questions

## What this feature does

You control the Sortyra app with your mouse in a browser. The **REST API** is a second door into the same app – meant for programs, not people. Your system sends a request to an address (for example "give me the list of outputs") and receives a response in JSON format, which is structured text that a computer can read easily.

The API works with the same data and rules as the app. Whatever you change via the API, you'll see in the app and in **Change history** with "API" as the author – and you can undo it within 24 hours.

In the API, an output is called a **project**. It's the same thing as an output in the app – a feed for one channel.

## Where to find it

In the **System → Integrations and API** menu, on the **API and MCP keys** tab. This is where you create and revoke keys, and the **API documentation** button opens the technical description of the API in OpenAPI 3.1 format: `/api/v1/openapi.json`. Keys are created by the owner or an administrator. You can see every call (without the content of the request) on the **Call log** tab.

The API is part of the subscription. During the free trial it returns at most 10 products, just like the output preview.

## Step by step: creating a key

1. Open **Integrations and API**, the **API and MCP keys** tab and click **New key** (or **New API key** in the top bar).
2. In **Key name**, write where you'll use it – for example "ERP warehouse" or "agency script". That makes it easier to tell later which one to revoke.
3. In the **Scope** field, choose the permission:

- **read-only** – reading outputs, sources, products, rules, the category tree and settings,
- **read and edit** – additionally manual product edits, rules, adding and editing sources, category assignment and starting runs,
- **full management (sources, outputs, settings – owner only)** – additionally creating, editing and deleting outputs and their settings, deleting sources and uploading the category tree; only the owner can create it.

1. Click **Create key**.
2. Copy the key (it starts with `fc_`) straight away. It is shown only once – Sortyra can't show it to you again.
3. In your system, send the key in the `Authorization: Bearer fc_…` header.

**Warning:** A key never has more rights than its creator. If the creator only has access to selected feeds or areas, the same applies to the key. When the creator leaves the team, the key stops working (in the list you'll see "not working – the key's creator is no longer on the team, create a new one").

For each key you can see its scope, which feeds it has access to and when it was last used. The **Revoke** button blocks it immediately – apps using it lose access.

## Available endpoints

The base address is `https://app.sortyra.com/api/v1`. The Scope column shows the lowest key scope that is enough for the call.

### Outputs

| Method and endpoint | What it does | Scope |
| --- | --- | --- |
| `GET /projects` | List of outputs: channel, number of products, last export, feed address. | read |
| `POST /projects` | Creates an output for a channel from sources (`name`, `channel`, `sourceIds`, optionally `locale` and `dedupe`) and returns the `projectId` and feed address. | full management |
| `GET /projects/{id}` | Output detail including its settings. | read |
| `PATCH /projects/{id}` | Changes the name, sources, language, on/off state, drop threshold or duplicate merging; the output is recalculated. | full management |
| `DELETE /projects/{id}?confirmName=…` | Moves the output to the bin; the exact output name is required as confirmation. | full management |
| `GET /projects/{id}/options` | Output settings (currency, country, file name, GZIP, shipping, recalculation times…) and the feed address. | read |
| `PATCH /projects/{id}/options` | Changes only the settings you send as `{"options": {…}}`; a `null` value clears a setting. | full management |
| `PUT /projects/{id}/mapping` | Field mapping for a channel with its own structure: channel field → product field, parameter or template. | edit |
| `POST /projects/{id}/run` | Starts recalculation and export of the output. | edit |

### Sources

| Method and endpoint | What it does | Scope |
| --- | --- | --- |
| `GET /sources` | List of sources and their status (secret parts of addresses are hidden). | read |
| `POST /sources/inspect` | Preview of a feed from its address: format, fields and suggested mapping. Saves nothing. | edit |
| `POST /sources` | Adds a source with the suggested (optionally adjusted) mapping and downloads it straight away. | edit |
| `GET /sources/{id}` | Source detail: mapping, download schedule, status. | read |
| `PATCH /sources/{id}` | Changes the name, address, number or exact times of downloads, priority, on/off state and other source options. | edit |
| `DELETE /sources/{id}` | Moves the source to the bin and disconnects it from outputs. | full management |
| `POST /sources/{id}/fetch` | Downloads the source right now (at most once every 15 minutes). | edit |
| `GET /sources/{id}/runs` | Download history: result, counts, duration and error. | read |
| `GET /sources/{id}/input` | Import adjustments: currency, exchange rate, VAT, excluded categories, allowed brands, price cap, approval of new products. | read |
| `PATCH /sources/{id}/input` | Changes only the import adjustments you send; outputs are recalculated. | edit |

### Products

| Method and endpoint | What it does | Scope |
| --- | --- | --- |
| `GET /products?projectId=…` | The output's products after rules; filters `q`, `status`, `sourceId`, pagination `limit` (at most 500) and `offset`. | read |
| `GET /products/{id}?projectId=…` | Product detail: input, output, edits, history, rule trace. | read |
| `PATCH /products` | Manual edit of a field for one or more products, locked by default. | edit |

### Rules

| Method and endpoint | What it does | Scope |
| --- | --- | --- |
| `GET /rules?projectId=…` | The output's rules in order of execution. | read |
| `POST /rules` | Creates a rule. | edit |
| `PATCH /rules/{id}` | Changes a rule's definition, on/off state, source restriction or group. | edit |
| `DELETE /rules/{id}` | Deletes a rule. | edit |
| `PUT /rules/order` | Sets a new order for the output's rules. | edit |
| `POST /rules/dry-run` | A test run of proposed rules without saving: how many products will change or be hidden, with examples. | read |

### Category tree and mapping

| Method and endpoint | What it does | Scope |
| --- | --- | --- |
| `GET /categories/tree` | Paths of the shop's category tree. | read |
| `PUT /categories/tree` | Replaces the shop's category tree with new paths in the form "A > B > C". | full management |
| `GET /categories/proposals` | Suggested tree categories for uncategorised products, grouped by supplier category. | read |
| `POST /categories/proposals` | Assigns a supplier category's products to a tree category and remembers it for new products; only a full management key can add a new category to the tree. | edit |
| `GET /categories/taxonomy?tree=…&q=…` | Searches a channel's taxonomy by text and returns the category ID and path. | read |
| `GET /categories/channel?projectId=…&taxonomy=…` | Shop categories in the output with the assigned channel category and number of products. | read |
| `PUT /categories/channel` | Assigns a channel category to a shop category – for all outputs or just one. | edit |

The `status` parameter for products takes the values `visible`, `hidden`, `no_ean` (without EAN), `no_category` (without category), `locked` (manually edited) `warnings` (with a rule error), `awaiting_approval` (awaiting approval) and `input_excluded` (excluded at input).

Other endpoints – for example supplier categories, the range of an output's categories or image templates – are described in the technical OpenAPI description.

## Example calls

List of outputs:

`curl -H "Authorization: Bearer fc_YOUR_KEY" https://app.sortyra.com/api/v1/projects`

Changing the price of a tent with a lock, so rules don't overwrite it:

`curl -X PATCH https://app.sortyra.com/api/v1/products \ -H "Authorization: Bearer fc_YOUR_KEY" -H "Content-Type: application/json" \ -d '{"productIds":["…"],"field":"PRICE_VAT","value":"249.90","locked":true}'`

Adding a source – Sortyra detects the feed's format and fields and downloads the source straight away:

`curl -X POST https://app.sortyra.com/api/v1/sources \ -H "Authorization: Bearer fc_YOUR_KEY" -H "Content-Type: application/json" \ -d '{"name":"Tent supplier","url":"https://supplier.sortyra.com/feed.xml","updatesPerDay":4}'`

Creating a Google output from that source and changing its currency:

`curl -X POST https://app.sortyra.com/api/v1/projects \ -H "Authorization: Bearer fc_YOUR_KEY" -H "Content-Type: application/json" \ -d '{"name":"Google CZ","channel":"google","sourceIds":["…"],"locale":"cz"}' curl -X PATCH https://app.sortyra.com/api/v1/projects/OUTPUT_ID/options \ -H "Authorization: Bearer fc_YOUR_KEY" -H "Content-Type: application/json" \ -d '{"options":{"currency":"CZK","country":"CZ"}}'`

Fields have the same names as in the app, for example `NAME`, `PRICE_VAT`, `EAN`, `MANUFACTURER` or `PARAM:Colour`. If you add `projectId`, the edit applies only to that output. The easiest way to find out the rule format is to read rules created in the app via `GET /rules`.

## Error codes

| Code | Meaning |
| --- | --- |
| 401 | The API key is missing or invalid. |
| 402 | The REST API is not included in the organisation's plan, or the subscription has ended. |
| 403 | The key doesn't have permission (for example it's read-only); the `scope` field in the response says which scope is needed. |
| 404 | The record doesn't exist or you don't have access to it. |
| 422 | Invalid request, for example `projectId` is missing; the `issues` field lists the invalid fields. |
| 429 | Too many requests – try again in a minute. |

Errors always take the form `{"error": "description"}`.

## Examples

- **Your ERP sends prices:** after a price list change, your system sets the new prices via `PATCH /products` and calls `POST /projects/{id}/run`.
- **Agency:** every morning a script reads `GET /projects` for all clients and checks the date of the last export.
- **New agency client:** a script with a full management key adds the client's feed via `POST /sources`, creates an output via `POST /projects` and configures it via `PATCH /projects/{id}/options`.
- **Quality control:** an internal tool uses `status=no_ean` to list products without an EAN for the purchasing team.
- **A safe rule:** a developer first sends a new rule to `POST /rules/dry-run`, checks the effect and only then saves it via `POST /rules`.
- **Alerts into your system:** you don't read events (source error, unpublished output) via the API – you receive them by [webhook](https://sortyra.com/knowledge-base/feed-alerts-email-slack-telegram-webhook).

## Tips and common mistakes

- **Grant as few rights as possible.** A read-only key is enough for reports.
- **One key per system.** If a key leaks, you only need to revoke that one.
- **Locked fields** are not overwritten by rules or a new feed. More in [Manual edits and locked fields](https://sortyra.com/knowledge-base/manual-edits-locked-fields).
- **For an AI agent**, use [MCP](https://sortyra.com/knowledge-base/mcp-ai-agent-product-feeds) instead – the keys and permissions are the same.
- Send technical questions to support@sortyra.com. See also [the API on our website](https://sortyra.com/features/api-and-mcp).

## Frequently asked questions

### Does Sortyra have an API?

Yes, a REST API with keys and precise permissions. It's part of the subscription, and you'll find its description at `/api/v1/openapi.json`.

### How do I create an API key?

In **Integrations and API → API and MCP keys**, click **New key**, enter a name, choose a scope and click **Create key**. The key is shown only once, so copy it straight away.

### Can I change product prices via the API?

Yes, with a read and edit key via `PATCH /products` with the `PRICE_VAT` field. The edit is recorded in Change history and can be undone.

### Can I create a source or an output via the API?

Yes. You add a source via `POST /sources` with a read and edit key, and create an output via `POST /projects` with a full management key. You can also change output settings, rules and the category tree via the API.

### Why does the API return only 10 products?

During the free trial, the API returns at most 10 products. Once you pay for a subscription, you have full access.

### What if a key leaks?

In **Integrations and API → API and MCP keys**, click **Revoke** next to the key. It stops working immediately.

[← Previous article **Alerts by email, Slack, Telegram and webhook**](https://sortyra.com/knowledge-base/feed-alerts-email-slack-telegram-webhook) [Next article → **Working through an AI agent – MCP**](https://sortyra.com/knowledge-base/mcp-ai-agent-product-feeds)

## More articles: Integrations and API

- [AI and integrations: your own key or Managed AI](https://sortyra.com/knowledge-base/ai-integrations-own-api-key)
- [Alerts by email, Slack, Telegram and webhook](https://sortyra.com/knowledge-base/feed-alerts-email-slack-telegram-webhook)
- [Working through an AI agent – MCP](https://sortyra.com/knowledge-base/mcp-ai-agent-product-feeds)
- [Agencies and client management](https://sortyra.com/knowledge-base/agencies-client-feed-management)
- [Partner programme: sign-up, commissions and invoices](https://sortyra.com/knowledge-base/partner-programme-commissions)
- [Data and privacy: export, deletion and improving the service](https://sortyra.com/knowledge-base/data-privacy-export-deletion)

## Try it on your own feed

[Try it free](https://app.sortyra.com/registracia?lang=en) [Book a 15-min call](https://sortyra.com/contact)
