Back to the API reference

GroceryAI API changelog

Every change to the public contract of the API (/v1) and of the events it sends, day by day, with its source in the history of the platform. The rules on what is compatible and on deprecation are in the guide, under «Versions and deprecation».

The changelog in Markdown

Every change to the public contract of the API (/v1) and of the events it sends, day by day since 7 September 2026. The rules on what is compatible and on deprecation are in the guide, section 10 («Versions and deprecation»).

  • Compatible: an integration written against the previous contract keeps working without changes (a new operation, a new optional field, a new response field, a new error code, a new event type). Ignore what you do not know.
  • Breaking: an integration written correctly against the previous contract may stop working, or behave differently.
  • Documentation: the document describes better what the API already did; no behaviour changed.

Before 1 November 2026 there was no versioning policy, and some breaking changes were made inside /v1 while the API had no integrator in production: they are listed below as Breaking, so that nothing is hidden. In the platform's own register (core.api_audit, read on 1 November 2026) the only live calls ever made are 17 calls of 7 September 2026, from three keys of a test account revoked the same day; no live key is active and no webhook endpoint is registered. From 1 November 2026 a breaking change no longer happens inside /v1: it comes with a new path version or through a deprecation with at least 12 months of notice (Deprecation and Sunset headers on every response).

The date is the day the change was written into the published specification (docs/openapi.json) or, for a change of behaviour, into the code; the release that answers you is in the x-core-version header, and «live from» names the first release that carried it where the platform's records say so. Each entry cites its source in the history of the platform (commit). This file is checked against the history of the specification by tests/api/registro-contro-storia.mjs: every operation and event type that ever appeared in the specification has its entry on the day it appeared.

2026-11-09

  • Compatible · new operation POST /v1/catalog/imports: the whole catalog in one call, asynchronously. Up to 50,000 products in the body (products: the same items as PUT /v1/products, GS1 codes included), a CSV in the body (Content-Type: text/csv, the columns of the portal file, mode in the query), or the url of a file (format: json, jsonl, csv, xlsx, google_merchant_xml, google_merchant_tsv). The body can be up to 16 MiB on this operation only (1 MiB everywhere else, unchanged). The answer is an immediate 202 with the import (status: queued) and a Location header; the import is written afterwards in chunks of 500 with the same rules as PUT /v1/products (merge by sku) or as the portal file, and with mode: snapshot it withdraws at the end the active products it does not carry, behind the 90 % gate (with an agent key, mode: snapshot waits for a person's approval). At most 5 unfinished imports per environment (409 IMPORTAZIONI_IN_CORSO). New error code IMPORTAZIONI_IN_CORSO (409). Live from the database migration 20261109100000 and the release of core-api and core-events that carries it. Source: corsia MASSIVO-1.
  • Compatible · new operations GET /v1/catalog/imports (the imports of the environment, most recent first, cursor pagination), GET /v1/catalog/imports/{import_id} (the status: queued, running, succeeded, partial, failed, with the counts while it works) and GET /v1/catalog/imports/{import_id}/errors (the rejected rows, or the warnings with type=warnings, row by row, with index of the JSON item or row of the file). New error code IMPORTAZIONE_SCONOSCIUTA (404). Source: corsia MASSIVO-1.
  • Compatible · new event type catalog_import.completed (schema_version 1): once per import, whatever its outcome (data.import.status), to every webhook endpoint subscribed to it, signed like every other event. resource_id is the import id. Not available via pull: the status stays readable with GET /v1/catalog/imports/{import_id}. The portal accepts catalog_import.completed among the event types of an endpoint. Source: corsia MASSIVO-1.
  • Documentation · the pages of CORPO_TROPPO_GRANDE and LOTTO_TROPPO_GRANDE name the two limits (1 MiB and 500 items per call; 16 MiB and 50,000 items for POST /v1/catalog/imports). Source: corsia MASSIVO-1.
  • Compatible · GET /v1/status: every component's availability may carry two new fields, month (the current calendar month in UTC, so far) and previous_month (the closed one, null if the component was not measured yet), with the rule of the service commitments (docs/api/impegni-di-servizio.en.md): measured_minutes, outage_minutes, degraded_minutes, downtime_minutes (outage and degraded together), availability_percent, objective_percent and objective_met. The 30d and 90d windows are unchanged. The fields appear once the release that carries them and the database migration 20261109060000 are live; until then they are absent, never estimated. Source: corsia IMPEGNI-1 (commit bcc4c28b).
  • Compatible · Limits per plan, with bursts absorbed. The request limit of a key no longer is the same 120 per minute for everyone, counted in fixed one-minute windows: it comes from the store's plan and is counted with a bucket per key (guide, §4, «Limits per plan»): trial 5 requests per second with a burst of 120; small 25 per second (burst 250), mid 50 (burst 500), enterprise 100 (burst 1000) for live keys; test keys lower (10 to 25 per second). No plan goes below the previous ceiling (2 per second sustained, 120 in a row). A request the bucket refuses does not use up tokens. A key minted with rate_limit_per_min keeps it as its own cap, when lower than the plan; a key minted without it now follows the plan instead of 120 per minute. Headers: RateLimit-Policy becomes "key";q=<requests per second>;w=1;burst=<burst> (still «q requests in w seconds», draft -11 §3; burst is an extra parameter, §3.1) and RateLimit "key";r=<requests you can make now>;t=<seconds to the next token>; a key with its own cap adds a "key-minute" item to both lists. Retry-After stays equal to the t of the policy that refused. A client that reads q together with w, as the draft says, needs no change; one that assumed w=60 reads the new window from w. The MCP server keeps one-minute windows, on the plan's equivalent per-minute ceiling. Source: branch corsia/LIMITI-PIANO-1 (src/api/limiti.ts, migration 20261109070000_limiti_piano1_limiti_per_piano.sql).

2026-11-06

  • Compatible · POST /v1/orders/{order_id}/status also reports the order's progress, before the outcome: five new values of status (preparing, ready, out_for_delivery, delayed, rescheduled) and three new optional fields (eta with start and end, the expected or agreed window, required with rescheduled; reason, a code among stock, capacity, traffic, weather, customer_request, shop_request, failed_attempt, other, with delayed, rescheduled and not_delivered; tracking_url, https on a tracking domain declared for the shop). Progress never counts for billing: the last outcome still decides, exactly as before. No value accepted before is refused now. The response carries a new field kind (outcome or progress), echoes eta, reason and tracking_url when sent, and superseded: true for progress older than the last one reported. New error codes: ETA_MANCANTE, ETA_NON_AMMESSA, MOTIVO_NON_VALIDO, URL_NON_AMMESSO (400), TRANSIZIONE_NON_AMMESSA (409: progress after an outcome). Guide, section 7-bis. Live from the release that carries it and from the database migration 20261106160000 (until then a progress value answers 503 REGISTRO_ASSENTE). Source: corsia P163-A.
  • Compatible · new event type order.updated (schema_version 1): one delivery per recorded report (progress or outcome) to every webhook endpoint subscribed to it, signed like every other event (Standard Webhooks). resource_id is the identifier of the report (data.order.event_id); the order is data.order.id. The same status reported again is not sent twice; progress older than the last one is not sent. No customer data and no amounts in the body. Not available via pull. The portal accepts order.updated among the event types of an endpoint. Source: corsia P163-A.

2026-11-05

  • Compatible · rate-limit headers in the form of the IETF draft draft-ietf-httpapi-ratelimit-headers (version -11): every response of a keyed route, except 401, 403 and the 404/405 of a path that does not exist, carries RateLimit-Policy: "key";q=<ceiling>;w=60 and RateLimit: "key";r=<requests left in this window>;t=<seconds to its end>, from the same count that decides the 429; the 429 carries r=0 and a Retry-After equal to t. The routes without a key do not carry them. Same limits as before (120 per minute per key unless set differently). Guide, section 4. Source: corsia LIMITI-API-1.
  • Compatible · the MCP server (core-mcp) carries the same RateLimit-Policy and RateLimit headers on every response that follows the count of the key (also its error responses after the count and the 429, whose Retry-After equals t); the metadata, an origin that is not allowed and the refusals of the key come before the count and do not carry them. Same limit and same counter as before. docs/api/mcp.en.md, «Limits». Source: corsia LIMITI-API-2.
  • Compatible · SDKs (TypeScript and Python, the hand-written client): when a response says r=0, the client waits t seconds before its next request instead of being refused with 429; a missing or unreadable header changes nothing. On by default, off with throttle: false / throttle=False; the retry on 429 after Retry-After is unchanged. docs/api/sdk.md. Source: corsia LIMITI-API-2.
  • Compatible · new operation GET /v1/status, without a key: the status of each component of the service (assistant, web_chat, api, events, portal, mcp) as operational, degraded, outage or unknown, from the same rules as the alarms that measure the service every minute; the availability of the last 30 and 90 days on measured minutes only; the latest incidents. Cache-Control: public, max-age=30, ETag and 304. New error code 503 STATO_NON_MISURABILE (the status cannot be read: unknown, not operational). Source: corsia STATO-PUBBLICO-1.
  • Compatible · GET /v1/status: the mcp component is now measured by its own probe (until now it was always unknown), and the availability of every component counts from when its own probe started, not from the start of the alarms' history: mcp from 5 November 2026, the others from 24 October 2026. A component whose probe has not completed a round yet is unknown. Same fields, same schema. Source: corsia STATO-MCP-1.
  • Compatible · new key format with a checksum: new keys look like gai_live_ab12cd34_ followed by 38 characters (32 random, then a 6-character checksum: CRC32 of everything before it, in base 62). Keys created before keep working without changes. A key in the new format whose checksum is wrong is refused before any lookup with the new error code 401 CHIAVE_SOMMA_ERRATA. Source: corsia KEYS-2.
  • Compatible · optional IP allowlist per secret key (set in the portal): a request from an address outside the list, or whose origin address is unknown, is refused with the new error code 403 IP_NON_AMMESSO on every route with a key. Keys without a list behave as before. Source: corsia KEYS-2.
  • Compatible · agent keys and human approval: a secret key marked as an agent key in the portal receives 202 with an approval on the destructive operations (DELETE /v1/products/{sku}; POST /v1/products/snapshots/{snapshot_id}/commit without dry_run; POST /v1/orders/{order_id}/status with not_delivered or returned), and nothing changes until a person approves it in the portal; then the same request sent again with the header GroceryAI-Approval-Id runs once. New operation GET /v1/approvals/{approval_id}; new error codes APPROVAZIONE_SCONOSCIUTA, APPROVAZIONE_IN_ATTESA, APPROVAZIONE_RIFIUTATA, APPROVAZIONE_SCADUTA, APPROVAZIONE_GIA_USATA, APPROVAZIONE_DIVERSA, APPROVAZIONI_ASSENTI. Keys that are not agent keys behave as before. Source: corsia KEYS-2.
  • Compatible · food information of Article 14 of Regulation (EU) 1169/2011 in the catalog: new optional product fields allergens and may_contain (the 14 allergens of Annex II as contract codes, or their GS1 AllergenTypeCode; none in allergens declares none of them), ingredients, nutrition_basis (100g/100ml) with energy_kj, energy_kcal, fat_g, saturated_fat_g, carbohydrate_g, sugars_g, protein_g, salt_g, fibre_g, storage_conditions, usage_instructions, food_business_operator, origin, alcohol_percent, food_info_url; same fields in the portal file, its templates and the feed. New error code INFORMAZIONI_ALIMENTARI_INCOERENTI and new warnings ENERGIA_NON_COERENTE, NUTRIZIONE_INCOMPLETA. Items without these fields behave as before. Source: corsia CAT-1169-1.

2026-11-01

  • Compatible · new test route GET /v1/_deprecation_probe (gai_test_… keys only; 404 ROTTA_SCONOSCIUTA with a live key): it carries the Deprecation (RFC 9745), Sunset (RFC 8594) and Link: rel="deprecation" headers of a deprecated operation, so you can test the code that reads them. It is deprecated by construction and is never retired. From today a deprecated operation carries deprecated: true and x-deprecation in the specification and the three headers on every response once the route is known (not on a 401). No real operation is deprecated. Source: corsia VER-1, e7238d40.
  • Compatible · GET /v1/products: next_cursor is present only when another page really exists (on a last page that happens to be full it is now null; before, it was set on every full page and the next call came back empty). Following next_cursor until null returns the same products. Live from core-api v23. Source: 96118f03, c4fcfa0d (SANDBOX-2).

2026-10-31

  • Breaking · webhooks follow Standard Webhooks 1.0.0: the headers webhook-id (the event id, the same on every retry), webhook-timestamp (Unix seconds of the attempt) and webhook-signature: v1,<base64> over <id>.<timestamp>.<body> (two signatures during a secret rotation) replace the five x-gai-* headers; the event type and the attempt stay in the body (type, attempt). Verify with the official standardwebhooks library. No endpoint was registered when the format changed. Live from core-events v20. Source: 525691396, 7cc675668, merged in 4b0a71225 (HOOK-STD-1).
  • Breaking · the signing secret is whsec_<base64 of 32 bytes> and the HMAC key is the decoded bytes (before: whsec_ and 64 hexadecimal characters, used whole). Source: 525691396 (HOOK-STD-1).
  • Breaking · how your receiver's answer is read: 410 Gone disables the endpoint (no more deliveries until it is created again); redirects are not followed; Retry-After lengthens the wait (at most 24 hours); every other 4xx/5xx is retried. Source: 525691396 (HOOK-STD-1).
  • Compatible · longer retries and more time to answer: ten attempts over about three days (immediately, then 1 min, 5 min, 30 min, 2 h, 5 h, 10 h, 14 h, 20 h, 24 h, with ±10 % jitter) instead of six in about 8.5 hours; 15 seconds to answer instead of 10. Source: 525691396 (HOOK-STD-1).
  • Compatible · every event body carries the new field timestamp (equal to occurred_at). Source: 7cc675668 (HOOK-STD-1).
  • Compatible · secret rotation from the portal, with two valid signatures for an overlap of up to 72 hours (a portal route, not /v1). Source: b40a428eb (HOOK-STD-1).
  • Compatible · new operations GET /v1/errors and GET /v1/errors/{code}: the catalog of error codes, readable without a key; every error response carries the new field error.doc_url, the page of its code. Live from core-api v21. Source: f85bb86f, merged in 2cfb89f3 (DOCS-AGENTI-1).
  • Compatible · GET /v1/openapi.json is readable without a key, with ETag, Cache-Control: public, max-age=300, 304 on If-None-Match and Access-Control-Allow-Origin: *. Live from core-api v21. Source: f85bb86f (DOCS-AGENTI-1).
  • Documentation · the specification is published in English, with a tested request and response example for every operation and event; the limit bounds (1 to 200) already enforced by the code are written in the schemas; AGENTS.md, the integration prompt and the quickstart. Source: f85bb86f (DOCS-AGENTI-1).
  • Compatible · PUT /v1/customers also accepts the field names of the customer model (customer_ref as an alternative to external_ref, full_name, street, house_number, city, postal_code, floor, intercom, delivery_notes, language, exemption); a field of neither list is not written and the response says so in warnings (CAMPO_SCONOSCIUTO). Live from core-api v19. Source: 81f58e6d, merged in db852976 (VALID-1).
  • Breaking · PUT /v1/customers: the phone must be international E.164 (TELEFONO_NON_E164; before, any text was accepted) and is stored as + and digits; new rejections CAMPO_IN_DUE_POSTI, VALORE_NON_AMMESSO, TESTO_TROPPO_LUNGO. Live from core-api v19. Source: 81f58e6d (VALID-1).

2026-10-30

  • Breaking · PUT /v1/products became a merge: on a product that already exists only the fields the item names are updated, attributes are merged and a key set to null is removed (before, an item with only the price cleared the other fields). Live from core-api v16. Source: c3be5b5e2, 5f57be07 (DATA-C2).
  • Breaking · the catalog contract fields (min_order_qty, min_order_unit, sold_by_weight, avg_piece_weight_kg, items_per_pack, pack_only, stock_managed, unit_price, gross_weight_kg, tare_kg, list_price, subcategory, vat_rate, diet_tags, the offer_* fields) are typed fields of the product and are validated also when they arrive inside attributes, where before they entered unchecked; new item codes NUMERO_NON_VALIDO, UNITA_NON_AMMESSA, DATA_NON_VALIDA, BOOLEANO_NON_VALIDO, VALORE_NON_AMMESSO, DATE_INVERTITE, CAMPO_IN_DUE_POSTI. Source: c3be5b5e2 (DATA-C2).
  • Compatible · the batch responses of products, inventory and customers carry the new field warnings (the item is written, but something in it will not be used, for example OFFERTA_NON_SCONTATA). Source: 5f57be07 (DATA-C2).
  • Breaking · PUT /v1/inventory: an item with store_code is rejected (PUNTO_VENDITA_SCONOSCIUTO) unless the shop has that point of sale; before, store_code was ignored and the price applied to the whole shop. Source: c3be5b5e2 (DATA-C2).
  • Compatible · PUT /v1/inventory also accepts the strike-through list_price, the offer fields (offer_price, offer_start, offer_end, offer_min_qty, offer_label; null removes) and is_online. Source: 5f57be07 (DATA-C2).
  • Compatible · new operations for the catalog lifecycle: DELETE /v1/products/{sku} (withdraw a product: it is switched off, not deleted; sending it again puts it back on sale), POST /v1/products/snapshots and POST /v1/products/snapshots/{snapshot_id}/commit (a full snapshot that switches off what it does not contain, with a 90 % gate; optional snapshot_id in PUT /v1/products), GET /v1/catalog/freshness, GET /v1/catalog/feed, PUT /v1/catalog/feed and POST /v1/catalog/feed/run (a scheduled catalog feed). Live from core-api v16; the freshness read answered 500 on v16 and works from v17. Source: 5f57be07, 359226607 (DATA-C2, API-TX1).
  • Compatible · new operation PUT /v1/order_history with the new scope history:write (shops that live on GroceryAI only). Source: 201de93f, merged in 50b4b304 (DATA-C3).
  • Compatible · new operation POST /v1/chat_identity_tokens (scope chat:write, secret key): opens the site chat to a customer signed in on your site. Source: a1d2e892, merged in e36ff354 (WEB-ID-1).
  • Compatible · new operations GET /v1/rules, PUT /v1/rules, POST /v1/rules/preview, GET /v1/store_texts and PUT /v1/store_texts with the new scopes rules:read, rules:write, texts:read, texts:write; their error envelope may carry a list errors next to error. Live from core-api v17. Source: cf3546b0, merged in 853b5293 (DATA-C4).
  • Compatible · new operations GET /v1/stores and PUT /v1/stores (points of sale; the PUT is the whole list); PUT /v1/inventory accepts a declared store_code; optional store_code parameter in GET /v1/products. Live from core-api v18. Source: 8db0588e, merged in 3eaac8ed (DATA-C6).

2026-10-27

  • Compatible · new field order.currency (ISO 4217) in the orders of shops that live on GroceryAI. Live from core-chat v66 and core-events v16. Source: b28ae23a (COMM-4B).

2026-10-26

  • Compatible · in the order event, order.customer.phone and email are filled when the customer gave them in the chat (fields that already existed and could be null). Source: e1c7a56d7 (ORD-6).

2026-10-23

  • Breaking · Idempotency-Key is scoped to the shop and the environment (before, the same key used first with a test key and then with a live one replayed the test response in live without writing) and expires after 24 hours (before, never). Live from core-api v14. Source: 8327216b (SEC-2).
  • Compatible · new scope chat:write (opening chat sessions from your server with the secret key). Source: 8327216b (SEC-2).

2026-10-22

  • Breaking · the meaning of delivered_amount in POST /v1/orders/{order_id}/status changed: from «the value of the goods, without delivery or extras» to «the total the customer paid for what was delivered, delivery and extras included». The route accepts the same body; what the shop must send changed. Source: 05f4c844 (BILL-2).

2026-10-21

  • Compatible · new operation POST /v1/orders/{order_id}/status: the shop reports what happened to an order (delivered, substituted, not delivered, returned). Live from core-api v13. Source: aaf3773d, merged in 098d60ef (BILL-1).

2026-10-13

  • Documentation · the specification describes the events sent to your endpoint, order.confirmed, support.requested and webhook.ping (section webhooks), the shapes of every response, the error codes per status and the headers; info.version stays 1.0.0. The guides for integrators are published. Source: 6d4643a5, 0e3b08c69 (PORTAL-D10).
  • Compatible · a failure between the reservation of an Idempotency-Key and the handler no longer leaves the key stuck (before: 500, then 409 RICHIESTA_IN_CORSO forever; now the retry replays the 500). Live from core-api v8. Source: d6c9e326b (PORTAL-D10).

2026-10-12

  • Compatible · new operations GET /v1/support_requests and POST /v1/support_requests/{support_id}/ack: customer support requests in pull, with acknowledgement; new event type support.requested. Live from core-api v7. Source: 6d34ddcf (P232).

2026-10-11

  • Compatible · the order event order.confirmed reaches version 2 (schema_version: 2): order.customer carries channel, fullName, address, city, zip, phone, email, notes, missing_fields; no field removed. Source: cafb061b0 (ORD-1), 51547f1a9 (ORD-3).

2026-10-07

  • Compatible · a second kind of key, the publishable gai_pk_<environment>_…, without scopes: on /v1 it opens nothing (403 AMBITO_MANCANTE); a key whose name and record disagree on its kind gets 401 CHIAVE_INCOERENTE. Source: c0cb23b9a (W1).

2026-09-14

  • Breaking · PUT /v1/products: a price in a currency other than the shop's is a rejected item (before, any ISO 4217 code was accepted). Source: 32173ff30 (D4).
  • Compatible · new header x-core-version on every response (the release that answered). Source: 9d1d53bff (P29).

2026-09-07

  • Compatible · first published contract: GET /v1/openapi.json, PUT /v1/products, GET /v1/products, PUT /v1/inventory, PUT /v1/customers, GET /v1/customers/{external_ref}, GET /v1/orders and POST /v1/orders/{order_id}/ack; API keys per account with environment (test, live) and scopes, rate limit with Retry-After, batches of up to 500 items validated one by one, Idempotency-Key on writes, request_id on every response, one error format. Source: 18453327 (D1).
  • Compatible · signed webhooks (x-gai-signature: sha256=<hex>, HMAC-SHA256 of timestamp and body) with retries. Source: 78ce7e5fd (D2).
  • Breaking, reverted the same day · GET /v1/orders and POST /v1/orders/{order_id}/ack answered 409 to test keys; the same day the 409 became a filter: a test key sees the test orders, a live key the real ones, and every event carries environment. Source: c78c8e11, def35b43 (D1, D3).