Try it

Feature · Monitoring and automation

REST API and MCP for product feeds with precise permissions

The REST API and MCP for product feeds open up Sortyra’s outputs, sources, products and rules to your software and your AI assistant. Every access has its own key or consent with a precise scope, and every change is recorded in the history along with its author.

When you need this feature

Prices and promotions live in your ERP

You want changes from your internal system to reach the feed without exporting and importing spreadsheets.

A report should arrive by itself every morning

You want to send purchasing a list of products without an EAN or category automatically, not after filtering by hand.

You work in an AI assistant

The assistant should see your outputs and rules and suggest edits directly on top of them.

How it works in the app

Everything is under System → Integrations and API, in the API and webhooks and MCP server tabs. Keys are created by the owner or an administrator.

  1. A key for your software

    In the API and webhooks tab, fill in the Key name, choose the Scope and click Create key. The key starts with fc_ and is shown only once.

  2. REST API calls

    Your software sends the key in the Authorization: Bearer header to endpoints under https://app.sortyra.com/api/v1. An OpenAPI 3.1 description is available at /api/v1/openapi.json.

  3. Connecting an AI agent

    Add the URL from the MCP server tab to your AI client as a custom connector. After signing in, click Allow on the App access screen.

  4. Events via webhook

    In Settings → Alerts, add a channel of the Webhook type with an https URL. Events arrive as a POST with JSON and a signature in the X-Sortyra-Signature header.

  5. Access control

    For each key you see when it was last used, and the Revoke button blocks it. You disconnect an agent in the Connected apps section with the Disconnect button.

What you can set

SettingWhat it doesWhen to use it
read-onlyThe key reads outputs, sources, products, rules, the category tree and settings, and may dry-run a rule.For reports, dashboards and agency monitoring scripts.
read and editAdds manual product edits, rules, adding and editing sources, category assignment and starting runs.For an ERP that sends prices and triggers output recalculation.
full management (sources, outputs, settings – owner only)Adds creating, editing and deleting outputs and their settings, deleting sources and uploading the category tree – via both the REST API and MCP; only the owner can create this key.For a script or AI agent that sets up outputs for new markets or clients.
Key nameYour label, named after the system that uses the key.If you suspect a leak, you know straight away which key to revoke.
App accessThe screen where you allow an AI agent connecting via the browser to read, or also to edit.When connecting Claude, ChatGPT or another MCP-capable agent for the first time.
Minimum severityThe webhook only sends events from the chosen level up: Info, Warning or Error.Error is enough for monitoring; Warning for a detailed log.
Alert typesA choice of events, such as a source error or an unpublished output; All also includes types added later.When your system should only react to certain events.

REST API for product feeds: what your software can read and change

The API works with the same data and rules as the app and responds in JSON. In the API, an output is called a project. Fields have the same names as in the app, for example NAME, PRICE_VAT, EAN or PARAM:Colour, and an edit with the projectId parameter applies to one output only. A product list returns at most 500 records at a time; you get the rest by paging. A rule dry run shows how many products will change or be hidden and adds examples. Your software can therefore:

  • load outputs with their channel, product count, last export and feed URL,
  • filter products after rules by status: shown, hidden, without EAN, without category, manually edited or with a rule error,
  • change a field on one or many products, locked against overwriting by default,
  • dry-run a rule, save, edit or delete it and start an output recalculation,
  • add a source from a feed URL, change its download schedule and import adjustments, download it right away or delete it,
  • create, edit and delete an output and change its settings, such as currency, country or file name,
  • upload the shop’s category tree and assign channel categories.

MCP: an AI agent works with your outputs, and you confirm the changes

MCP is an open standard through which Claude, ChatGPT or another agent that supports it connects to Sortyra. The agent can search products and explain why they look the way they do, propose a rule with a dry run, prepare an output for a channel, set up a pricing strategy or draft a price quote. Your AI client comes with ready-made workflows, such as Build a catalogue from feeds, Check an output and Why does this product look like this. A tool that saves a change does nothing on the first call: it returns a preview and a one-time confirmation code, and the change is saved only by a second call with that code and the same data within 10 minutes. The agent is instructed to show you the preview and use the code only after your consent; Sortyra can’t verify that it really asked you, so you can undo any change within 24 hours in Change history. It can’t see the secret parts of feed URLs. An agent that can’t sign in via a browser uses an API key. Details are in the guide Working via an AI agent – MCP.

Permissions that never exceed the author’s

A key or connected agent has at most the same rights as the user who created it. If the author only has access to selected feeds or areas, the key is restricted in the same way. When the author leaves the team, the key stops working and is flagged in the list as needing to be replaced. Some steps, such as creating an output, require the full management scope. A separate key for each system is worth it: if one leaks, you revoke it and your other integrations keep running.

A trail for every automated change

Changes via the REST API are recorded in the Change history with “API” as the author, changes from an agent with “MCP”, always with the before and after value. You can undo them with one click within 24 hours, just like your colleagues’ changes. Errors have a consistent format with a description and standard codes: 401 for an invalid key, 403 for missing permission, 422 for an invalid request and 429 when your system sends too many requests and should try again in a minute. During the trial, the API and MCP return at most 10 products, so you can test the integration before paying.

Example: a weekend promotion from the ERP and a recalculation from an AI assistant

A tool shop has 6,200 products in its Google output. For a weekend promotion, the warehouse system (ERP) cuts the price of 85 cordless drills, and the marketing manager works in an AI assistant with MCP connected.

  1. The administrator creates an “ERP promotions” key with the read and edit scope; when connecting the assistant, the manager also allows edits.
  2. On Friday, the ERP sends PATCH /products with the PRICE_VAT field and a lock for the 85 products.
  3. The manager writes to the assistant: “Recalculate the Google output and tell me how many products are hidden.”
  4. The assistant shows what it’s going to start and, after she confirms, starts the run and reports the result.

The 85 promotional prices are in the Google feed right after the recalculation, without opening the app. In the Change history, the price edits have “API” as their author, so whoever checks can see where they came from. If the ERP had sent a wrong price, the change could be undone within 24 hours.

What the feature doesn’t do

  • It doesn’t write products into your online shop. For now, that’s done by importing from the output URL, and a direct online shop API connection is in the works.
  • It isn’t a polling channel for tracking events. Your system finds out about a source error or an unpublished output via webhook, as described in the guide Alerts.
  • It doesn’t provide the AI agent with the AI itself – you have your own agent and subscription. If you want to give edit instructions in plain words directly in the app, use AI Copilot.
  • During the trial it returns no more than 10 products. You get the full scope after paying for a subscription, according to our pricing.

Frequently asked questions

Are the REST API and MCP included in the subscription?

Yes, both are part of the subscription at no extra charge. When working via an AI agent, you pay your AI client for the AI; Sortyra charges nothing for it.

How do I connect Sortyra to Claude or ChatGPT?

Copy the URL from the MCP server tab, add it to your AI client as a custom connector, sign in and click Allow on the App access screen.

Can an AI agent change data without my consent?

Not without a confirmation code. On the first call, a tool that changes data only returns a preview of the change and a one-time code valid for 10 minutes; the change is saved only by a second call with that code and the same data. The agent is instructed to use the code only after your consent – Sortyra can’t verify that it really asked you. So give it only the access it needs, and undo any unwanted change within 24 hours in Change history.

How do I verify that a webhook really came from Sortyra?

Verify the X-Sortyra-Signature header: an HMAC-SHA256 of the timestamp and body string, calculated with the signing key shown when the webhook was created.

Can I write to WooCommerce or Shopify via the API?

No. The REST API connects your systems to Sortyra. Writing directly to your online shop is a separate feature that’s in the works.

Your first output feed can be ready today.

7 days free, no credit card. We'll set up your first feed together on a free 15-minute online call.