Builder Platform · Partner API

Build against your MixShift data and your connected Amazon and Walmart accounts, behind one OAuth 2.0 gateway. early access

What is in the Builder Platform

Five surfaces, one credential. Everything below is included with your MixShift subscription.

Warehouse

Read-only SQL against your own tenant database, plus the contract-stable /v1 data endpoints for accounts, ads performance, retail, and Brand Analytics.

Live Amazon operations

Cataloged SP-API and Ads API calls on the authorization your accounts already granted MixShift, including audited writes. No developer application with Amazon. Walmart Connect ads work the same way on the advertisers connected to your account.

Brand memory

The brand context your team maintains and the change log of what happened and why: launches, promotions, stockouts, and price tests, with corroboration.

Intelligence

MixShift Intelligence: finished reads served as data. Two services in one catalog: attribution (why sales and ad results moved, lost sales, the monthly read) and forecasting (whether a merchant has the history to be forecast at all).

MCP server

The same gateway as an MCP server, so Claude, ChatGPT, Cursor, Codex, and any other MCP client can work against your data in plain language.

New here, or want the plain-language version first? Builder Platform in the knowledge base walks through each surface without the reference detail.

Getting access

New to MixShift? Everything below assumes a MixShift account with activated data behind it. If you do not have one yet, create your account, then connect your Amazon accounts and activate ads + retail data (getting started guide). Most accounts are fully populated within 24-48 hours of activation; large catalogs can take longer. Then come back here to set up credentials.

Two hostnames, one service. Your code calls https://mcp.mixshift.io for everything on this page (OAuth tokens, the API, the MCP server); it is the one host to allowlist for sandboxed and scheduled clients, and it never redirects a program elsewhere. Pages a person opens in a browser (sign in, /admin, these docs) live on build.mixshift.ai; a browser that lands on the API host for one of them is sent there.

Then pick your path, depending on whose data your code touches.

Guide: Get access

most customers

Building on your own MixShift account

You do not need to register an application. A tenant admin creates a service credential at /admin ("Create with raw secret"): you get a client_id and client_secret on the spot (the secret is shown once, at creation, so store it in your secret manager as you mint it). Exchange it for a bearer token with the client_credentials grant at POST /oauth/token and start calling.

Credentials are read-only by default (ads:write is grantable at mint time), revocable and rotatable at any time, and built for unattended use: schedulers, sync pipelines, CI, and multi-user apps that serve your own team.

Setting up the MixShift Claude plugin for unattended runs rather than your own code? Use the admin console's primary setup code flow instead: a one-time code the plugin exchanges itself, so no human ever handles the secret.

partner apps

Building a product that other MixShift tenants sign into

Then you need a registered partner application so each tenant can authorize you on a consent screen. Email support@mixshift.io with your app name, redirect URIs, and the scopes you need; you receive a client_id and use the authorization-code flow with PKCE below. Every registered application is a public client: no client secret is issued for it, and the token endpoint does not take one on the authorization-code path, so the PKCE verifier and an exact redirect URI match are what protect the exchange. Client secrets exist only for service credentials, which use the client_credentials grant.

Coming from legacy direct MySQL access (IP allowlist + database credentials)? The service credential replaces that setup. The same SQL runs through POST /api/query, so nothing about your workflow changes except the connection. You drop the IP dependency (any host works, and no allowlist updates when your network changes), your server never holds a database password, and compromise recovery is fast: revoke the credential, which stops new tokens at once, and any access token already issued expires within 12 hours, the current service-credential token TTL (the data endpoints check a token's signature and expiry, not whether it was later revoked). Partner API sessions run the same 12-hour TTL.

OAuth 2.0

Send the access token as Authorization: Bearer <token> on every call.

Sign-in, one-click approval and prompt

When the person is already signed in to MixShift in that browser, an authorization request from a registered partner application shows a one-click approval page instead of the password form. The page says who is signed in, lists what the application does, and has an Approve access button; no password is asked for. It also links to Sign in with a different account, which repeats the request with prompt=login. A person who is not signed in gets the password form, as before.

/oauth/authorize reads the OpenID Connect prompt parameter as a space-separated list and acts on these three values:

promptResult
loginIgnores the existing sign-in and shows the password form ("use a different account").
consentShows the approval page even where the application would otherwise be approved without one (the MixShift apps, once a person has approved them).
noneNever shows a page. Redirects to your redirect URI with error=login_required when nobody is signed in, or error=consent_required when the person is signed in but still has to approve the application.

AI connectors (the Claude connector and any application registered through POST /oauth/register) always get the password form and never read the sign-in; prompt=none from one of them answers login_required. Sign-in sessions can be switched off for the whole service, in which case none of the above applies and every request shows the password form.

Token introspection: POST /oauth/introspect

RFC 7662. Send token (an access token or a refresh token) as a form body or as JSON. No client authentication is needed: the token is the credential, and discovery advertises the endpoint with auth method none. token_type_hint is accepted and ignored.

You getMeaning
200 {"active": true, ...}The token is good. Fields: token_type (access_token or refresh_token), sub, client_id, exp, and where present scope, iat and sid. An access token also returns actor. gateway_session is live when the grant belongs to a gateway browser sign-in that is still going, or none when it does not belong to one.
200 {"active": false}Anything unknown, malformed, expired, rotated or failing verification, and any token whose sign-in or grant has ended. When the sign-in or grant has ended, the answer adds "reason": signed_out (the MixShift sign-in it belonged to ended: the person signed out, it timed out, or their password changed) or revoked (that one grant was revoked, from the home page or by the application's own call to /oauth/revoke). Other inactive tokens carry no reason.
400 invalid_requestNo token in the body, or a body that is not form data or a JSON object.
429 rate_limitedToo many calls from one IP address. Wait the Retry-After seconds.
503 temporarily_unavailableThe token store could not be read, so no verdict was guessed. Retry-After: 5 is set. Keep the person working and ask again later rather than treating this as signed out.

An access token from a service credential, or one that carries no sid, has no sign-in behind it and is checked on signature and expiry only (gateway_session: "none"). The call is read-only: it never rotates a token.

Scopes

ScopeGrants
account:readAccount and merchant metadata.
retail:readThe Amazon SP-API surfaces: on-demand reports, pricing, and the operation catalog (orders, inventory, catalog, finances, Data Kiosk).
ads:readThe Amazon Ads API surfaces: profiles, reporting v3 and the unified Reporting v1, exports, entity lists, budget usage, recommendations, change history, billing invoices, DSP reads, and ad-hoc Amazon Marketing Cloud SQL. Also the Walmart Connect ads surface.
brand_analytics:readBrand Analytics data (rides the retail surface today).
sql:queryCaller-authored SQL reach over your tenant database: POST /api/query, GET /api/tables, GET /api/table/<name>, and the equivalent MCP tools. Bundled by default when a service credential is minted with no explicit scope list; request it explicitly alongside the domain reads if you pick a specific scope set instead. See Warehouse SQL.
context:readBrand context docs: the manifest and individual doc content per brand.
timeline:readThe brand timeline: events, stakes, and the read-time Amazon Ads change projection.
shelf:readShelf data: what a shopper at a location sees on Amazon for an ASIN or a keyword (/api/shelf/* and the shelf_* MCP tools), from a licensed third-party shelf-data provider on MixShift's own key, metered against your organization's monthly allowance. In the plugin sign-in set and the service-credential default; tenant admins can deny it per person. See Shelf data.
intelligence:readMixShift Intelligence: the request catalog, running a request, and fetching an async run (/api/intelligence/* and the intelligence_* MCP tools). Granted to interactive sign-ins by default; tenant admins grant it to a service credential at /admin. See MixShift Intelligence.
corrections:writeA person's own forecast corrections and settings (/api/app-state/forecasting/*, the month rows, account settings and sub-brand definitions a person enters): written under the person's name, into the one copy of the database's state the forecasting app reads. Granted to interactive sign-ins by default; tenant admins may grant it to a service credential. See Entering forecast corrections.
appstate:writeA MixShift app's own state (every kind, including its model runs and sub-brand definitions) on /api/app-state/*. Minted only, for the app's per-database credential; never on an interactive sign-in.
context:writeChange brand context: write a brand's context docs, including the settings your app reads (PUT /api/context/doc), add and propose brand facts, and retire or restore a brand (POST /api/context/lifecycle or the context_set_brand_lifecycle MCP tool); see Writing brand context and Retiring and restoring a brand. Grant it together with context:read: every brand context call checks that first, so context:write alone is refused. An app acting for a signed-in person holds it only when MixShift lists it on the app's registration and the person approves it at sign-in, and the person's own permissions still apply. Service credentials are read-only by default: an admin opts one in at /admin. Changes are recorded as the person (or the credential's label) with your app as the channel, never a value in the request, and nothing is deleted: every write keeps the earlier revisions, a retired brand keeps its docs and history, and restore brings it back.
timeline:writeAppend timeline events (stakes, comments, action outcomes) and corroborate stakes. Opt-in per credential, granted at mint time at /admin. Appends are attributed to the signed-in credential, never to a value in the request.
ads:proposeCreate Ads change proposals: a change set a person on your team approves before anything reaches Amazon (POST /api/amazon/ads/proposals), including a revert of a committed change. It cannot approve or commit, and changes nothing at Amazon by itself. Opt-in per service credential at /admin, built for a scheduled routine that prepares changes but should never push them. Interactive sign-ins do not hold it and do not need it: ads:write covers proposing too.
ads:writeAudited Ads mutations: bids, placement and audience bid adjustments, budgets, states, negatives, and campaign, ad group and ad creation (including DSP builds), on Amazon Ads and Walmart Connect ads. Opt-in per credential: tenant admins can grant it when creating a service credential at /admin; partner applications get it case by case from MixShift. Every write defaults to a dry-run preview and is audit-logged.
listings:writeAudited listing-content updates on existing SKUs: title, Item Highlights, bullets, description, keywords, the catalog-compliance fields Amazon asks for in listing warnings (ingredients, item form), and the nine product image slots. Every change previews against Amazon first and commits only against the exact approved change set. Tenant admins can grant it when creating a service credential at /admin. See Listing content writes.
shipping:writeBuild FBA inbound shipments: create a plan, packing, placement, transportation, tracking and cancel, including the confirms that commit Amazon fees. Every step is a dry run by default, and a fee is committed only against a preview of the exact live fee. For now only service credentials hold it: tenant admins grant it when creating a service credential at /admin. See FBA inbound shipment writes.
labels:writeChange the labels on items and campaigns in MixShift's label store: preview a change, commit exactly that preview, undo a committed change, rename a value, and set an account's own name for a field (POST /api/labels/changes/*, PUT and DELETE /api/labels/fields/names, the labels_preview, labels_commit, labels_undo and labels_set_display_name tools). Every change previews first and commits only against that preview, and label writes stay off until MixShift turns them on for your database. A person's own session holds it by default (the plugin and AI connectors), except an org member or viewer, which the organization's roles deny (owner, admin, manager and builder may write); a login with no member sign-in has no roles, so everyone on it holds it. A service credential does not: an admin grants it when creating the credential at /admin. An operator view-as session never holds it. See Labels.

Raw-SQL warehouse access (POST /api/query) requires the full read set plus sql:query; see Warehouse SQL below.

Signing in from a claude.ai or Claude Desktop connector, or from MixShift added to ChatGPT as a custom app, grants every scope above, the same as signing in to the MixShift plugin: it is your own login reaching your own account. The consent screen says so before you approve, including that the connector or app can make changes to your Ads campaigns, listings, and brand context. A connector or app added before September 27 keeps the access it was first set up with until it is added again; see MCP server. Partner applications and service credentials still hold only the scopes granted to them.

Amazon operations

Live calls against the two Amazon APIs, on the authorization your accounts already granted MixShift. The operation catalogs are self-describing: list them to see every callable operation and its parameters.

Guide: Work with live Amazon operations

EndpointScopeWhat it does
GET /api/amazon/merchantsretail:readMerchants you can act for (one row per account + marketplace).
POST /api/amazon/reports + poll/documentretail:readOn-demand SP-API reports; documents return as short-lived presigned URLs.
/api/amazon/pricing/*retail:readFeatured Offer Expected Price + Competitive Summary batches; see Pricing batches for the sync size limits.
GET /api/amazon/spapi/operations
POST /api/amazon/spapi/call
retail:read
(+ listings:write for listing writes, shipping:write for inbound shipment writes)
Catalog-driven SP-API operations: orders, FBA inventory, FBA inbound shipments, catalog items, fees, finances, product type definitions, seller promotions, Data Kiosk, the guarded listing-content write, and the guarded FBA inbound shipment writes. The operations listing documents every call.
GET /api/amazon/ads/profiles
GET /api/amazon/ads/operations
POST /api/amazon/ads/call
ads:read (+ ads:write for writes)Catalog-driven Amazon Ads operations: reporting v3, the unified Reporting v1 (cross-product history, including DSP), exports, entity lists, budget usage, recommendations, change history (settings changes, last 90 days), billing invoices, DSP reads, ad-hoc Amazon Marketing Cloud SQL, and audited writes including bid adjustments and DSP builds.
POST /api/amazon/ads/proposals
GET /api/amazon/ads/proposals
GET /api/amazon/ads/proposals/{id}
POST /api/amazon/ads/proposals/{id}/approve
POST /api/amazon/ads/proposals/{id}/reject
POST /api/amazon/ads/proposals/{id}/commit
ads:read, plus ads:propose or ads:write to create; ads:write and your own sign-in to approve or reject; ads:write to commitAds change proposals: propose a write now, a person approves it, and a write credential commits it later after re-checking the live state.
GET /api/amazon/ads/changes/{auditId}ads:readRead one Ads change by its audit id: its status, the change set, the state before it, the answer from Amazon and the app that sent it. Your own account's changes only.
POST /api/amazon/ads/changes/{auditId}/revertads:read, plus ads:propose or ads:writeRevert a committed change: opens a proposal that puts back the fields the change set. Nothing reaches Amazon until a person approves it and it is committed.

Inbound shipments to FBA. The SP-API catalog covers the inbound side of FBA and not only the sellable side, so you can see stock on its way to Amazon rather than just stock that already arrived: shipment status by pipeline stage (working, shipped, in transit, receiving, closed), the line items on a date range of shipments, and expected versus received quantities per SKU on one shipment. That is what lets your own tooling attribute an out-of-stock to receiving latency instead of to demand. These operations are read-only and they run on the authorization your accounts already granted MixShift, so there is nothing extra to request from Amazon.

Two details save you a failed first call. Both of the search-style inbound calls take an explicit query type (the per-shipment item call is keyed by shipment id instead and takes none), and the shipment search additionally needs a status list or a shipment id list, including when you are querying by date range. And treat paging as load-bearing here: the per-shipment item response can return a continuation token next to a short item list, so the first page is not necessarily the shipment's whole manifest. The operations listing carries the required parameters and the paging rules for each call.

The newer Fulfillment Inbound API (version 2024-03-20) is in the same family: inbound plans, and for each shipment its carrier tracking (a tracking id per box for small parcel, the PRO and bill of lading for freight), boxes with the case-pack template they were packed with, pallets, the carrier, and the placement fees. It replaces the transport-details call Amazon removed in January 2025, and it runs on the same authorization. These calls are keyed by the plan id and Amazon's newer shipment id (sh...), not the FBA... id on labels, and Amazon offers no lookup by the FBA... id: list the plans, read each plan's shipments, and match shipmentConfirmationId on the shipment. They carry no actual received dates or received quantities; those stay on the per-shipment item call above and the inventory ledger report.

Seller promotions (read-only)

Three SP-API catalog operations read a seller's own promotions live from Amazon's Promotions API (version 2025-12-01): deals, coupons, price discounts, and basket-building offers. They need only retail:read and run on the authorization your seller accounts already granted MixShift, so there is nothing extra to request from Amazon. Nothing here creates, edits, or cancels a promotion. Sellers only: a vendor merchant gets 403 (restricted_report), which is the API being seller-only and not a re-authorization problem.

OperationWhat it returns
promotions.search_promotionsPromotions for one marketplace, filtered by status, type (DEAL, COUPON, PRICE_DISCOUNT, BASKET_BUILDING), ASIN or SKU (up to 10 each), or start, end, and update dates. Each summary carries everything except the item list.
promotions.get_promotionFull detail for one promotionId: schedule, budget, benefit, purchase requirements, fees, and issues.
promotions.get_selectionThe promotion's item list, paged: ASIN, SKU, and each item's own discount and budget (set on DEAL and PRICE_DISCOUNT items).

The chain is search, then detail, then items: take promotionId from the search result, and for the item list take both selectionId and revisionId from the promotion's selection object. revisionId is required, and a promotion that is mid-edit has several revisions, so the wrong one returns the wrong item list.

Details that save a failed call. The marketplace is injected and takes exactly one. Date filters must be ISO 8601 with a timezone offset. Search matches only live revisions unless you pass revision as LATEST or ANY. Paging uses pagination.nextToken, passed back as paginationToken with the same other arguments; Amazon can return an empty page mid-stream, so keep paging until pagination is absent, and expect the pages to occasionally sum to less than totalResults. Limit is 1 to 100, default 20. List the operations for the full parameter text.

A+ Content (read-only)

Four SP-API catalog operations read a seller's own A+ Content live from Amazon (A+ Content API version 2020-11-01). The Developer Central role they need (Brand Analytics or Product Listing) is confirmed on MixShift's app. Nothing here creates, edits, submits, or suspends content. A seller without a Brand Registry brand may get an empty result or 403 (restricted_report).

OperationWhat it returns
aplus.search_content_documentsThe seller's A+ Content documents for one marketplace, each with its contentReferenceKey, name, type, and status.
aplus.get_content_documentOne document by contentReferenceKey: its modules and metadata (includedDataSet defaults to CONTENTS,METADATA).
aplus.list_content_document_asin_relationsThe ASINs one document is attached to.
aplus.search_content_publish_recordsWhich document is published for one asin.

The marketplace is injected. Page with nextPageToken passed back as pageToken. Whether these reads return Brand Story content is not verified.

Pricing batches: sync size and async

Featured Offer Expected Price (keyed by SKU) and Competitive Summary (keyed by ASIN) each have a synchronous endpoint that returns the full response inline, and a /start endpoint that accepts any size, returns a runId, and works in the background. Poll GET /api/amazon/pricing/runs/<id> and fetch the per-item responses from GET /api/amazon/pricing/runs/<id>/result. Inputs are split into Amazon's own batches for you and paced, so you send one list.

OperationAmazon batch sizeMost items in one sync call
Featured Offer Expected Price40 SKUs200
Competitive Summary20 ASINs100

Competitive Summary batches are paced about 35 seconds apart, so 100 ASINs takes around two and a half minutes; a longer sync call would be cut off by the proxy, which is why the sync limit is 100 rather than 200. A sync call over its limit answers 400 too_many_items with max_items and items_count. That is a validation error that can never succeed on retry: send the list to the /start endpoint instead.

Creating a report: one attempt per call

reporting.create_report and reporting_v1.create_report are never retried automatically. Each call makes at most one create request to Amazon, because a server error or a lost response can arrive after Amazon accepted the report, and a second create would duplicate it. When the outcome is uncertain (a network failure, a timeout, a server error, or a success response with no readable body), the error carries "automaticRetry": false and "requestOutcome": "unknown", and no report id came back. Neither a timeout nor a 5xx proves that nothing was created, and what a resend does differs by API:

A 429 is a refusal rather than an uncertain outcome; it carries only "automaticRetry": false and keeps its usual advice (on v1, free a slot by deleting a report or waiting for one to finish).

Which merchant: sellerId and legacySellerId

Every call above acts for one merchant, and there are two ways to name one. Getting this wrong is a common first-call failure, so it is worth thirty seconds up front.

ParameterTypeWhat it is
sellerIdstringAmazon's own merchant token, the A... / ENTITY... string. Selects a merchant on its own only when the token maps to a single row. A seller trading in several marketplaces needs marketplace alongside it.
legacySellerIdpositive integerThe MixShift seller id. The durable unique key for exactly one merchant row (one seller in one marketplace). Takes precedence over sellerId and marketplace. Prefer it whenever you have it.
marketplacestringOptional hint (US, CA, MX, ...) used only to narrow a sellerId that matches more than one row.

Both values come back from GET /api/amazon/merchants, one row per account and marketplace. GET /api/amazon/spapi/operations also returns this contract as a merchantIdentifiers object next to the operation list, so a program never has to hardcode it.

There is no merchantId parameter. If you passed one it was ignored, and the call behaved as if you had named no merchant at all, which succeeds only when your credential can act for exactly one.

The same distinction reaches the warehouse. Seller-scoped tables generally carry both an integer SellerID and a varchar AmazonSellerID, and the indexes are usually built on the integer. On spapi_settlement, for instance, the integer SellerID is indexed together with the posted date, while the Amazon token is indexed with the settlement id instead. Filtering by the token plus a date range leaves the date with no usable index and turns a sub-second query into a table walk. Filter on the integer SellerID unless a table says otherwise.

Creating a complete Sponsored Brands ad

Deployed 2026-08-26. Building a full SB v4 ad from nothing takes an ad group plus one ad-type-specific create, because Amazon exposes a separate v4 endpoint per creative type instead of one shared ad shape. Build in order: sb.create_campaigns, then sb.create_ad_groups, then the create below for the ad type you want. Every SB v4 campaign, ad group and ad create or update takes at most 10 items per call, and the SB product target and negative target creates and updates take at most 100. Those are the limits in Amazon's published specs (Amazon has refused an over-limit sb.create_campaigns batch in full, creating nothing), so the gateway refuses a larger batch before the call, dry run included. SB keyword and negative keyword writes take up to 200: Amazon's text says 100, but it has accepted batches of 200 on them.

OperationAd typeCreative bodyLanding page
sb.create_ad_groupsn/a{ campaignId, name, state }. No bid: bids live on the keywords and targets created inside the ad group.n/a
sb.create_product_collection_adsPRODUCT_COLLECTION{ asins, brandName, brandLogoAssetID, brandLogoCrop, headline, customImages }Store
sb.create_brand_video_adsBRAND_VIDEO{ asins, videoAssetIds, brandName, brandLogoAssetID, brandLogoCrop, headline }Store
sb.create_video_adsVIDEO{ asins, videoAssetIds } only. No brand fields: sending them is the most common validation failure on this type.Product detail page
sb.create_store_spotlight_adsSTORE_SPOTLIGHT{ brandName, brandLogoAssetID, brandLogoCrop, headline, subpages }. No top-level asins: the advertised ASINs ride inside subpages[], one entry per Store subpage.Store subpages

Two acceptance rules Amazon enforces that this catalog cannot pre-flight for you. First, every asset id (videoAssetIds, brandLogoAssetID, customImages[].assetId) must already exist in the Creative Asset Library: there is no upload API on this surface, so a new video or logo goes in through the Amazon console first, then assets.list_recent or an existing ad's creative gives you the id. Second, on the three Store-landing types, every advertised ASIN must already appear on that Store page or Amazon rejects the ad; reading an ad already serving in the destination ad group (sb.list_ads) is the best available way to confirm this before a fresh build, since there is no cataloged pre-flight read for it yet.

Dry run does not test any of this. A dry run checks request shape and the per-operation required fields (the array is present, the per-call limit, and every field the operation declares in requiredItemFields), and never reaches Amazon, so none of the creative or landing-page rules above are validated until you commit. requiredItemFields is served on every operation by GET /api/amazon/ads/operations and is the authoritative list, so you can validate a body before calling rather than learning the rule from a 400. It is what catches the Sponsored Brands trap: the v3-era keyword, target and negative-target UPDATES each need adGroupId alongside the entity's own id, and a negative target is identified by targetId, not negativeTargetId. Amazon validates per item, so commit one ad first and read its error result before sending the rest of a batch. And unless a user explicitly asked for the ad to go live immediately, create with state: "PAUSED": an ENABLED ad inside an enabled ad group and campaign starts serving, and billing, the moment the commit lands. Enable it afterwards, as its own reviewed step, with sb.update_ads.

Changing a live Sponsored Brands ad

Four operations act on one SB ad that already exists, addressed by the adId that sb.list_ads returns. Ads built with Amazon's older v3 campaign API list there with no adId, and none of these can address them.

OperationWhat it changesBodyPer call
sb.update_adsName, and state ENABLED or PAUSED. This is how an ad created paused goes live.{ ads: [ { adId, name?, state? } ] }, each item changing at least one of the two.10 ads
sb.delete_adsArchives the ads. Irreversible: the update takes only ENABLED or PAUSED, so an archived ad cannot come back. Pause instead unless the user asked to remove it for good.{ adIdFilter: { include: [ adId, ... ] } }10 ids
sb.create_product_collection_creativeThe ASINs, headline or logo of a product collection ad, submitted as a new creative version that goes through Amazon moderation.{ adId, creative: { asins, brandName, brandLogoAssetId, brandLogoCrop, headline } }, the whole creative, at most 3 ASINs.1 ad
sb.list_creativesNothing (a read): every creative version of one ad with its moderation status.{ adId, maxResults?, nextToken? }1 ad

The creative endpoint spells the logo field differently. sb.list_ads returns brandLogoAssetID and the creative endpoint takes brandLogoAssetId, so rename it when you copy the current creative; the upper-case spelling is refused before Amazon. Send the whole creative, not only the field you are changing. Amazon marks this creative endpoint deprecated along with the product collection ad type, and says the product collection endpoints work until January 2027; its replacement for collection ads is not in the catalog yet. Since August 2026 Amazon turns product collection creates into Manual Collection ads (at least 3 ASINs, a headline of at most 32 characters, custom images accepted but not shown), so an ad created since then lists as MANUAL_COLLECTION and may not take a version here; whether those rules apply to a new version is undocumented. Amazon, not MixShift, decides which ads the endpoint accepts. Amazon's documentation does not say whether the previous version keeps serving while a new one is in moderation, so check sb.list_creatives and the ad's servingStatus before reporting a change as live.

All three writes take the usual ads:write contract: a dry run unless you commit, and the ad as sb.list_ads returns it is snapshotted to the audit log before the change. Amazon answers the update and the archive with HTTP 207, a success list and an error list by request index, so read both. The creative version is sent once and never resent automatically, because each accepted call makes a new version: after an error with no answer, read sb.list_creatives before submitting again.

Sponsored Brands theme targets

Theme targets ("keywords related to your brand", "keywords related to your landing pages") are their own Amazon resource: they are not in sb.list_targets or sb.list_keywords, and carry no keyword text, only a themeType.

OperationWhat it doesBodyPer call
sb.list_themesLists theme targets with their state and bid (a read). Page with nextToken.{ stateFilter?: { include: ['enabled', 'paused', 'archived'] }, campaignIdFilter?, adGroupIdFilter?, themeIdFilter?, maxResults?, nextToken? }; states are lower case.up to 100 ids per filter
sb.update_themesPauses, re-enables or re-bids theme targets.{ themes: [ { themeId, adGroupId, state?: 'enabled' | 'paused', bid? } ] }, each item changing at least one of the two.100 themes

The update is a dry run unless you commit, needs ads:write, and snapshots each theme's current state and bid to the audit log first. Amazon does not let a theme target be archived, so archived is refused before the call: pause it instead. Amazon refuses a bid change while the campaign has an enabled optimization rule, and answers with a success list and an error list by request index.

Placement and audience bid adjustments

Deployed 2026-09-13. sp.update_campaign_bid_adjustments and sb.update_campaign_bid_adjustments set the modifiers that used to be reachable only in the Amazon console: the percentage uplift a campaign bids by placement, and by audience cohort. They are split out of sp.update_campaigns / sb.update_campaigns rather than folded into them, so a modifier change is audited and metered as its own thing instead of arriving as an untyped campaign edit. The modifier object (dynamicBidding on SP, bidding on SB v4) is a required item field for that reason: an item without it is not a modifier change.

OperationPlacementsAudience cohorts
sp.update_campaign_bid_adjustmentsdynamicBidding.placementBidding[]: PLACEMENT_TOP, PLACEMENT_PRODUCT_PAGE, PLACEMENT_REST_OF_SEARCH, and SITE_AMAZON_BUSINESS, which is the Amazon Business (B2B) modifier riding the same array rather than a field of its own.dynamicBidding.shopperCohortBidding[]. strategy is optional here; leave it out to keep the campaign's current bidding strategy.
sb.update_campaign_bid_adjustmentsbidding.bidAdjustmentsByPlacement[]: TOP_OF_SEARCH, HOME, DETAIL_PAGE, OTHER. SB has no Amazon Business modifier.bidding.shopperCohortBidAdjustments[], alongside the bidOptimization setting they sit with.

Send the full set you want in force, and read current state first. Both operations replace the object you send: an entry you leave out does not keep its old value. Read the current modifiers from sp.list_campaigns / sb.list_campaigns (every campaign returns its dynamicBidding or bidding) and re-send the entries you are not changing. On SB the whole bidding object goes back, bidOptimization included, or a modifier edit silently flips the optimization setting with it.

Three more things worth knowing before the first call. percentage is a whole-number bid increase and 0 means no adjustment, so an SP modifier can never lower a bid. Audience ids come from the campaign list for cohorts a campaign already carries; adding a brand new audience needs an id from Amazon's audience discovery surface, which this catalog does not carry yet. And modifiers are not in the MixShift warehouse, so the live campaign list is the only current-state source: do not read them out of SQL. Performance by placement is a report, not a read, and it has its own trap: request it from reporting.create_report with groupBy set to campaignPlacement only, and ask for the placementClassification column explicitly. Adding campaign to groupBy can strip the placement rows entirely. These are ordinary ads:write operations, so they take the dry-run-by-default contract and the 200-item cap like every other write, and the current modifiers are snapshotted to the audit log before the change.

Creative Asset Library: assets.list_recent

Deployed 2026-08-28. POST /assets/search, profile-scoped, reads the newest page of a merchant's Creative Asset Library: asset ids, type, status, per-program eligibility, and file metadata.

Read it for what it actually is. It returns only the newest page (a few dozen rows) rather than the whole library, and despite its name, a filter in the body or query string is silently ignored: you get the identical page back with HTTP 200 whether or not you sent one, so never treat a result as filtered. Pagination is not currently usable: the response carries a token, but no way to spend it has been found. And the library is per-profile, not account-wide, so one merchant returning zero assets does not mean the account has none.

File metadata differs by asset type: a video asset populates resolutionWidth / resolutionHeight and durationInSeconds; an image asset populates width / height and aspectRatio. Use this operation to find the asset id of something just uploaded in the console, and to check which ad programs an asset already qualifies for (specCheckApprovedPrograms). It reads the library; it does not add to it.

Unified Reporting v1: history v3 does not have

Deployed 2026-09-13. Amazon's unified reporting API is cataloged as three operations on the same ads:read credential as everything else here: reporting_v1.create_report, reporting_v1.retrieve_report to poll, and reporting_v1.delete_report. It answers across ad products in one report, DSP included, and it is the reason to reach past reporting v3: v3 gives most report types a 95-day lookback and 31 days per request, while v1 retention runs to 24 months at daily grain and six years at monthly and yearly grain (25 months per report at monthly grain, six years at yearly). If you have been rebuilding long-run history out of the warehouse because the API would not give it to you, this is the surface that does.

It is addressed differently from the rest of the Ads catalog, which is the first thing that trips a caller. It is not profile-scoped: instead of a profile you name up to five distinct accounts in accessRequestedAccounts, as either an advertiserAccountId or a managerAccountId, from accounts.query_advertiser_accounts and accounts.list_manager_accounts. Discover DSP advertisers with accounts.list_manager_accounts. Each linked account carries two ids side by side: pass the numeric dspAdvertiserId as advertiserAccountId. The accountId next to it is a seat id, and Amazon rejects it in either slot with a 401 that reads like a permissions failure. A managerAccountId is accepted too, but in our testing 1 of 6 manager-scoped reports completed against 3 of 3 single-advertiser ones, so address advertisers directly. One report per create call, and one report id per poll.

Two shapes here will hand you a wrong answer rather than an error. First, time is a dimension in v1, not a timeUnit, and month.value and week.value carry no year. Over any window that crosses a year boundary the same month number from two years merges into one row with its metrics summed, silently. Request year.value alongside them, or report one calendar year per request. Second, a completed report arrives as completedReportParts, an array of presigned urls: the partitioned formats split deliberately, so code that reads the first part and stops truncates the report without failing. Iterate every part, and fetch each url with no Authorization header, which is enforced rather than merely advised.

Four more, each of which costs an afternoon the first time. Every call in this family answers HTTP 207 with { error: [], success: [] }, so a refused report arrives inside a 2xx: branch on a non-empty error, never on the status code. A 429 from create is a concurrency cap, not a rate cap, which inverts the usual advice: it means reports are already in flight, and backing off does not clear it. Free a slot with reporting_v1.delete_report or wait for one to reach a terminal status. The spend metric is metric.totalCost: there is no metric.cost, and like metric.sales it needs budgetCurrency.value in the same request (verified on Sponsored Ads; not yet confirmed for DSP). And DSP callers should not expect v1 numbers to tie out against v3: v1's base metrics include halo, so metric.purchases is v3's totalPurchases and metric.sales is v3's totalSales (the promoted-only equivalents are metric.purchasesPromoted / salesPromoted / roasPromoted), and v1 reports conversions on the traffic date where DSP v3 reported them on the conversion date. Field pairing, filterable fields, and the per-grain limits are carried per operation in the catalog itself; list GET /api/amazon/ads/operations for the full text before building against them.

DSP v1 reads

Deployed 2026-08-28. Six operations cover a DSP advertiser's campaigns, ad groups, and creatives, including where a creative is actually live: dsp.list_campaigns, dsp.list_ad_groups, dsp.list_ad_creatives, dsp.list_creative_associations, dsp.list_association_moderations, and dsp.list_eligible_creatives. To build or change DSP campaigns, see DSP writes.

Those are structure reads. DSP performance is a report, and which report decides how far back you can see: dsp.create_report is the DSP-native path, and unified Reporting v1 is the one that reaches years rather than months. Check the metric definitions in that section before comparing the two, because v1 redefines the DSP purchase and sales metrics.

Discovery: a brand's DSP advertiser id comes from the advertising account surfaces (accounts.list_manager_accounts, linked accounts of type DSP_ADVERTISING_ACCOUNT), not from a Sponsored Ads profile id. It is the numeric dspAdvertiserId on that linked account, not its accountId, which is the seat id and is rejected. These operations carry detailed pagination and taxonomy notes in the operation catalog itself; list GET /api/amazon/ads/operations for the full text before building against them.

Change history

One read, history.list_events (Amazon's POST /history), returns the last 90 days of settings changes on a profile's Sponsored Products and Sponsored Brands campaigns, ad groups, ads, keywords, negative keywords, product targets and themes: creation, status, budget and in-budget state, bid, placement adjustment, bidding strategy, name and dates. It runs on ads:read. Amazon does not return Sponsored Display changes and does not say who made a change.

A call: {"operation": "history.list_events", "profileId": "<id>", "body": {"fromDate": <epoch ms>, "toDate": <epoch ms>, "eventTypes": {"CAMPAIGN": {"parents": [{"useProfileIdAdvertiser": true}]}, "KEYWORD": {"parents": [{"useProfileIdAdvertiser": true}]}}, "count": 200}}. The body goes to Amazon as you send it. The answer's payload carries events (entityType, entityId, changeType, previousValue, newValue, timestamp, metadata) plus pageSize, pageOffset, maxPageNumber, totalRecords and, while more pages remain, nextToken. Ids are numeric strings that match the sp.* and sb.* lists; timestamps are epoch milliseconds.

Version 1 is the default. Theme events need version 1.1: add "pathParams": {"accept": "application/vnd.historyresponse.v1.1+json"}, which goes out as the Accept header and answers the other event types the same way. To page, repeat the same body with each nextToken until none comes back. pageOffset also works, but it is a 0-based page number, not a result offset, and Amazon stops it at 10,000 results, so a backfill should use nextToken.

Refused before anything reaches Amazon, with the fix in the error (Amazon itself answers these with a bare 400): a theme request without version 1.1, a count outside 50 to 200, a fromDate more than 90 days back, and a date sent in seconds rather than milliseconds. Start a backfill at now minus 89 days, since Amazon draws the 90-day line on its own clock.

For a permanent record, backfill each profile once, then pull a short window that overlaps the previous pull daily. Events carry no id, and two real events can differ only in metadata (both placement adjustments set in one edit), so de-duplicate on the whole event. The operation is paced to one call every 2 seconds per profile; different profiles are not paced against each other. A 429 that outlasts the gateway's own retries answers HTTP 429 with retryAfterMs in the body and a Retry-After header whenever Amazon named a wait.

Every rule above, with what was measured live and what is still Amazon's spec, is in the catalog notes: GET /api/amazon/ads/operations?family=History.

Billing: invoices

Three read operations return the invoices Amazon issues for advertising, on the same ads:read credential. Nothing is paid or changed through them.

OperationReturns
billing.list_invoice_summariesInvoice summaries across the countries of a global ads account, with filters, sorting, aggregation and paging. This is where invoice ids come from.
billing.get_invoiceOne invoice in full: a cost line per campaign, promotions, adjustments, payments, portfolios and tax.
billing.list_invoicesThe invoices of one profile: status, period start (fromDate), amountDue and remainingAmountDue. It carries no invoice id, so it cannot feed billing.get_invoice.

The usual route is two calls. First the summaries, to find the ids:

{"operation": "billing.list_invoice_summaries", "profileId": "<id>", "pathParams": {"accountId": "amzn1.ads-account.g..."}, "body": {"invoiceIssuedDateRangeFilter": {"startDate": "2026-09-01", "endDate": "2026-09-30"}, "maxResults": 100}}

Then one invoice, by id, on the profile of that invoice's country:

{"operation": "billing.get_invoice", "profileId": "<id>", "pathParams": {"invoiceId": "<id from the summaries>"}}

Billing statement downloads are not available yet. The catalog lists billing.create_statement and billing.get_statement, but when last tried every statement was accepted and then reported as failed, so do not build on them. Use the three invoice reads above. The full notes for each operation are in GET /api/amazon/ads/operations?family=Billing.

Amazon Marketing Cloud

Eight operations run ad-hoc AMC SQL on the same ads:read credential as everything else on this surface, and five more create and manage audiences. AMC is Amazon's clean room: you submit a SQL workflow against an advertiser's instance and Amazon returns aggregated results as short-lived CSV download urls. Reporting mutates nothing advertiser-facing, so it needs no write scope; audiences do (below).

Discovery runs in order, because a query needs both an instance and the entity id that reaches it: amc.list_accounts (no parameters) returns the AMC entity accounts and their marketplaces; amc.list_instances returns the instances for one entity and marketplace pair, and must be probed one pair at a time because parallel probing trips rate limits; amc.get_instance returns a single instance by id. Then the schema: amc.get_data_source for one table you can already name, or amc.list_data_sources to browse, which pages at 100 and returns every table with its full column list. Finally the run itself: amc.create_workflow_execution, amc.get_workflow_execution to poll, and amc.get_download_urls to fetch.

Audiences are the write side of AMC, and the one place this surface mutates something advertiser-facing, so they need ads:write and follow the dry-run then commit pattern of every other write here. amc.create_audience builds a rule-based audience from SQL over the instance's _for_audiences tables and activates it on one destination account, a DSP advertiser or a sponsored-ads entity; amc.list_audiences and amc.get_audience read status and Amazon's failure reason; amc.update_audience and amc.delete_audience work on FAILED audiences only, because a successful audience is immutable. The window you send is the lookback: Amazon applies it to every audience table before the SQL runs, so the query itself carries no date filter, and the service refuses before Amazon the things Amazon rejects after the run: a trailing semicolon, a refresh outside 0 to 21 days, interval date arithmetic, and a query that reads a paid dataset the instance does not have.

Whether an advertiser has AMC at all depends on their advertising login rather than on their MixShift account, so treat an empty amc.list_accounts as a normal answer and not an error. Some AMC tables are additionally gated behind paid Amazon subscriptions the advertiser holds directly, Amazon Retail Purchases among them, which is the long-window dataset behind lifetime value and cohort work. A schema read reports isPremium, and the instance carries an optionalDatasets array whose entries name each activated dataset and when it switched on. Query one an advertiser is not subscribed to and Amazon rejects it when it compiles the SQL, in a message that does not mention the subscription, so check before you build on it.

Two things worth knowing before the first query, because each returns a confident wrong answer rather than an error. timeWindowType defaults to a single day at Amazon, so a query written to cover months or years would answer for one day. This service therefore REQUIRES the field and refuses an execution that omits it, rather than letting the default decide: any of the three values is accepted, the point is that you chose one. Prefer UTC bounds, since a timezone west of UTC is converted forward and a window ending at local midnight reaches into the next UTC day. And AMC governs what a result may contain, not just what the SQL may say: each column carries a sensitivity, shopper-level identifiers can be joined and counted inside common table expressions but never returned, and rows built from too few distinct shoppers are dropped, so a short result can be a privacy floor rather than an absence of data. Submitting with dryRun validates in seconds instead of minutes. Every operation carries its parameters, its traps, and the dataset notes in the operation catalog itself; list GET /api/amazon/ads/operations for the full text before building against them.

Walmart Connect ads

Live calls against Walmart Connect's advertising API (Sponsored Search), approved by Walmart for production, on the Walmart advertisers connected to your MixShift account. MixShift holds the Walmart partner credential, so there is no developer application with Walmart and no Walmart key in your code: the same ads:read credential you use for Amazon Ads works here, and ads:write adds the guarded writes. In the MixShift plugin the same surface is the Walmart Ads skill (say "demo Walmart ads").

Connecting an advertiser

The advertiser grants the access, not MixShift: an admin on the advertiser's Walmart account (super admin, org admin or account admin) adds MixShift as a partner once per ad account, then tells us which MixShift account should use it. Walmart's guide: Account access as an admin user.

  1. In Walmart Connect Ad Center, click the Account icon at the top right and choose Manage profile and account.
  2. On the Access page, open the Partners tab and click + Add Partner.
  3. Select MixShift as the partner (it may show as MixShift.io) and choose the ad accounts to connect.
  4. Set Campaign management to Edit (writes need it), Reporting to Edit and Creative to None, then click Add partner.
  5. Email the advertiser ID to support@mixshift.io and say which MixShift account should use it. We link it and tell you when it is live; nothing changes in your credentials or code.

Until an advertiser is linked, every call answers 403 tenant_not_allowed. A production change refused because Walmart changes are turned off for your organization answers the same kind with reason: org_writes_off; previews and reads still work. Once it is, it appears in GET /api/walmart/ads/advertisers. A Walmart ad account allows at most 10 partners; if MixShift is missing from the Partner name list, tell us and we take it up with Walmart.

Endpoints

EndpointScopeWhat it does
GET /api/walmart/ads/advertisersads:readThe advertisers linked to your account, each with its advertiserId, label, api (sponsored_search or display), environment and access: owner can write, read can preview a change but not commit it.
GET /api/walmart/ads/operationsads:readThe 44-operation catalog, optionally filtered with ?family= (campaigns, ad_groups, ad_items, keywords, bid_multipliers, reports, account, display). Each entry carries the operation id, the required query parameters, the body shape and Walmart's quirks; list it before building against an operation.
POST /api/walmart/ads/callads:read (+ ads:write for writes)Runs one operation: {"operation": "ss.list_campaigns", "advertiserId": "<id>", "query": {...}, "body": ..., "dryRun": true}. The answer carries Walmart's status, its correlationId and the payload.

The MCP server carries the same three as walmart_ads_advertisers, walmart_ads_operations and walmart_ads_call.

Writes, reports and limits

Writes (creating and updating campaigns, ad groups, ad items, keywords and placement bid multipliers) need ads:write and an owner link. Every write is a preview unless the call sends "dryRun": false: the preview returns the change and an auditId, and nothing reaches Walmart. A commit is written to the change log before Walmart is called (if the log cannot be written, the change is not sent), with the entities' state before the change, and answers with auditId, beforeState, Walmart's status and correlation id. Committed changes also appear on the brand timeline. Walmart scopes some calls by campaign, ad group or keyword id alone, so the gateway checks that every such id belongs to the advertiser you named and refuses one that does not.

Reports. Create a report or snapshot, then call its download operation (ss.download_report, ss.download_snapshot_v1, ss.download_insight): the gateway fetches and parses Walmart's file for you, because the link Walmart returns is not one a client can always open. A file Walmart is still building answers ready: false; call again. groupBy totals the metrics by a column (for example campaignId) and limit caps the rows. Walmart's metric names are numAdsShown, numAdsClicks and adSpend. Data trails one to two days, so keep a report's end date at or before ss.latest_report_date. Sponsored Search history goes back two years, requested in windows of up to 62 days.

Limits and errors. Walmart's rate limits are hourly and shared across MixShift, so a throttled answer means wait about ten minutes. 403 advertiser_not_allowed means the advertiser is not linked to your account, a read link was asked to commit, or an id in the request belongs to another advertiser. 502 upstream_auth means Walmart refused MixShift's credential for that advertiser, usually because the Ad Center grant was removed or never finished.

Display writes. display.update_campaigns and display.update_ad_groups (PATCH, an array of up to 10 items, only the fields to change) and display.set_campaign_status / display.set_ad_group_status (action: PAUSE, RESUME, ARCHIVE, UNARCHIVE) preview first like every write, and a commit records the entities' prior state in the change log. A 400 bad_request that quotes INVALID_ADVERTISER_TYPE means Walmart does not offer Display to that advertiser's type; Sponsored Search is unaffected.

Display operations are in the catalog but are not available in production yet. The Walmart Marketplace seller API (/api/walmart/marketplace/*, retail:read) serves the sellers connected to your account: a seller connects once from Walmart Seller Center (Apps, MixShift, Connect), which stores that seller's authorization for your account for one year. GET /api/walmart/marketplace/sellers lists them with their sellerId, the access levels Walmart reported when the seller connected (scopes, from Walmart's token detail, with scopesNote: Walmart's labels, for information; a no_access area is not a failed connection, and MixShift does not block calls on it), and when the connection expires; pass sellerId on /call when more than one is connected. Sandbox and production sellers are served side by side, each listed with its environment; add "environment": "sandbox" | "production" on /call: it narrows the choice, is required when the same sellerId is connected in both, and with no sellerId it picks the only seller in that environment. Sandbox calls run against Walmart's Dynamic Sandbox where Walmart supports it (test orders and returns you create through its simulation APIs show up), and against the static sandbox for the rest. For replenishment, mp.sku_snapshot answers in one call, per SKU: units sold over the last 2, 7, 30 and 60 days across every order (seller-fulfilled, WFS and 3PL), and Walmart's WFS available, inbound and on-hand units, days of supply and suggested units ({ "operation": "mp.sku_snapshot", "sellerId": "..." }, optional query.sku); when complete is false, read warnings before trusting the totals. To disconnect a seller, POST /api/walmart/marketplace/sellers/disconnect with { "sellerId": "...", "environment": "sandbox" | "production" } (retail:write, so interactive sessions and the ppc app; viewer seats and AI connectors are refused). MixShift stops reading and changing that seller, deletes the stored authorization and keeps the row marked revoked; it answers { ok, sellerId, environment, disconnectedAt }. The seller can reconnect from Seller Center at any time. MixShift's seller app is in Walmart's pilot phase: a seller can connect in production, and the Walmart sandbox seller stays available for testing. Building a product that other MixShift tenants sign into? Talk to us before you use the Walmart surface: Walmart's partner terms govern third-party access to its API.

MCP server

The same tool surface is exposed as an MCP server, so AI clients can use the warehouse and the Amazon surfaces directly. Two transports:

Guide: Connect AI tools over MCP (per-client setup for Claude, ChatGPT, Cursor, and Codex)

EndpointTransportUse with
POST /mcpStreamable HTTPCursor, Codex CLI and IDE, claude.ai, and any current MCP client.
GET /mcp/sseHTTP + SSE (legacy)Older MCP clients. Kept for compatibility.

Authenticate with Authorization: Bearer <access_token> on every request. Unattended setups mint from a service credential via client_credentials (see Getting access), while interactive users can manually mint a token at /login?mode=direct. Client setup examples for Cursor and Codex live in the auth setup guide. claude.ai and Claude Desktop connectors register automatically: add a connector with the server URL https://mcp.mixshift.io/mcp and sign in with your MixShift account when the OAuth window opens. For ChatGPT, turn on developer mode in ChatGPT's settings, then add MixShift as a custom app with the server URL https://mcp.mixshift.io/mcp and OAuth, and sign in when prompted. ChatGPT registers itself; there is no token to paste. A connector or app gets the MixShift plugin set minus Walmart Marketplace changes (retail:write), write tools included. A claude.ai or Claude Desktop connector connected before September 27 keeps the read-only access it was approved with: remove the connector and add it again to get the full set. If you added MixShift to ChatGPT before September 27, add it again to get the full access: reconnecting keeps the access it was first set up with.

Tools cover the warehouse (legacy_query, table listing, describe), the Amazon SP-API and Ads surfaces (amazon_*, including the Ads proposal tools that list, read, approve and reject proposals), and the org-brain services: timeline_list, timeline_add_event, timeline_corroborate, context_list_docs, context_get_doc, and context_set_brand_lifecycle; and MixShift Intelligence: intelligence_catalog, intelligence_run, intelligence_poll, and intelligence_get; and Walmart Connect ads: walmart_ads_advertisers, walmart_ads_operations, and walmart_ads_call; and shelf data: shelf_get_buybox, shelf_get_offers, shelf_search, shelf_get_product, shelf_get_seller, shelf_list_zips, shelf_get_rank_history, and shelf_get_usage (scope shelf:read). A credential may connect when it holds the scope for at least one tool, and each tool checks its own scope on every call: the SQL tools need the full read set plus sql:query, the timeline tools need timeline:read (writes also need timeline:write), the context tools need context:read (retiring or restoring a brand also needs context:write), and the intelligence tools need intelligence:read. A tool you lack the scope for returns a clear insufficient-scope result rather than data. Which scopes a token holds depends on how it was issued. A token minted at /login?mode=direct is an interactive sign-in and holds the same scopes as a MixShift plugin sign-in, context and timeline read and write included, and so does a sign-in from a claude.ai or Claude Desktop connector or a ChatGPT custom app (see above if yours was added before September 27). Service credentials and partner applications hold only the scopes granted to them.

MixShift Intelligence

Finished reads served as data, not rows to interpret. MixShift Intelligence is a catalog of named requests; each returns a JSON result your report, agent, or app can quote directly, with the arithmetic checked server-side. Open to every tenant by default and included in the subscription; every run is metered by request id so usage reports roll up per service.

The catalog is organized by service. Each request id carries its service prefix, and ids are append-only: a request never changes meaning, and a new capability is a new id.

ServicePrefixWhat it answers
AttributionINS-Why a number moved, decomposed into contributions that sum exactly to the change, with the caveats the engine raises on its own (dark periods, promotions, surge and matched windows, restatements, end-of-life exclusions). Five requests today, listed below.
ForecastingFCT-What should happen next, at a planned spend, from the merchant's own history. Three requests today: the history flag, the published baseline, and the report-month tracker, both served from the forecast the MixShift forecasting app publishes with its users' corrections applied; the plan solve joins the same catalog, gate, and metering when it ships. A forecast is never the brand's plan: the plan is the brand's own targets and budget; the forecast is the sanity check on the front end of planning and the operator's efficiency measure on the back end.
RequestWhat it answers
INS-OPS-BRIDGE-01Why ordered sales moved between two periods, item by item: traffic, conversion, price, and mix, bridged to the total.
INS-ADS-BRIDGE-01Why advertising results moved, at campaign, ad group, keyword or target, search term, or ASIN grain.
INS-DUO-01Both bridges on the same period, joined: TACOS, attributed share, paid pressure, and ad AOV against ASP.
INS-LOSTSALES-01Sales lost to stock-outs, sellable inventory, and weeks of cover.
INS-MONTHLY-01The monthly read: month over month and year over year, retail and advertising, in one bundle. The substrate of the Monthly Report Max plugin skill.
FCT-READINESS-01Is this merchant forecastable: months of sales and ad spend in the warehouse (one seller row, a brand scope of several rows summed month by month, or a sub-brand of one seller read by its labels), the trainable overlap against the served floors (12 complete months required, 18 recommended), the first month a request would read each verdict if both feeds keep producing, and what would close the gap, including what an Amazon Reporting v1 ad-spend backfill would add. A correction row the gateway holds for the scope (a replacement sales or ad-spend figure, which is how a backfill lands) makes its month trainable, listed under coverage.corrected with the warehouse-only count beside it, so readiness and the computed baseline never disagree about a backfilled month. Never fits a model; the history flag onboarding and the health check read first.
FCT-BASELINE-01The forecast baseline as the MixShift forecasting app published it, corrections included: the model, its monthly expectations and 95% ranges, the measured backtest, the readiness it trained on and the corrections it stands on, months keyed YYYY-MM, with the age of the published copy. Revenue or units; a merchant or one of its sub-brands. A units forecast is served as the forecast contract's units document (forecast_bridge.units_document/v1, contract 0.2.0). The answer carries spend_basis, ads_only or ads_plus_dsp, which says whether the spend the forecast stands on includes DSP spend: for a published copy, DSP typed into the forecasting app; for a computed one, the merchant's warehouse DSP spend by month added to sponsored spend when the scope's includeDspSpend setting is on (a person sets it through the forecasting app-state route; a typed DSP figure wins over its month), with figures.spend naming the months. Where nothing is published for a merchant or one of its sub-brands, a revenue baseline the gateway computes from the warehouse with the same engine the app runs, labeled source: computed, with its backtest and the corrections the gateway holds for the scope; a published copy always wins. Answers available: false with the reason when the forecast was withdrawn, it is below the served floor, or nothing is published and the warehouse history is below the floor.
FCT-ACTUALS-01The month series a forecast stands on, as the gateway reads it for one merchant or sub-brand: sales, sponsored ad spend and DSP spend by month with each figure's provenance (warehouse, a correction row, missing), the spend basis from the scope's DSP switch, how DSP was keyed (the merchant's mapped advertisers, or its seller id), and which months readiness holds out. The series the forecasting app reads instead of the warehouse tables.
FCT-TRACK-01The forecast figures for one report month in the monthly report's figure contract: the year to date, the month itself, the months still to come, and what the forecast stands on. For a closed month it serves two expectations, each under its own name: the forecast, made before the month closed, and the projection, from the current model, which has already seen the month. A beat or a miss is stated against the forecast, never the projection. Carries forecast_state (provided_current, stale or not_provided) so a report shows a forecast only when it is current. A units forecast is served as the units document (contract 0.2.0), with the same figure ids. The answer carries spend_basis (ads_only or ads_plus_dsp), and so does every spend or budget figure in it.
EndpointWhat it does
GET /api/intelligence/idsThe deployed catalog: id, version, content revision, service, and a one-line purpose.
POST /api/intelligence/run{ "id", "params" }. Params name the merchant (sellerId plus marketplaceId, or brand) and the period. Add "evidence": true for the What We Know statements. On the retail-backed requests a large account answers account_too_large_use_async; retry with "async": true and poll. Each account may hold two computing requests at a time; a third answers busy.
GET /api/intelligence/runs/<runId>Poll or fetch an async run you started.

Every result stamps the engine and evidence versions it was computed with, and the public GET /health reports the versions currently serving. Results carry a limitations list; read it before quoting figures. The same requests are available as the intelligence_* MCP tools and through the plugin command line (mixshift intelligence). Intelligence is not part of the /v1 partner contract: the result shape is versioned by the engine, not by the /v1 conventions.

When lost sales cannot be read. Lost sales comes from an account's daily sales and inventory history. If that history cannot be read for a run (it took too long, or it is too large to read in one run), the run still completes: lost sales is left out of the whole run, never priced as zero for one period, and limitations says so in words. This applies to any run that includes lost sales, such as INS-LOSTSALES-01 (which then returns its inventory figures only) or INS-OPS-BRIDGE-01 with lost sales among its metrics. You will see one of these two sentences:

Check limitations for these sentences before you quote a lost-sales figure or read its absence as zero. A per-item lost-sales breakdown on the same run comes back empty and says why rather than reading as "no item lost sales". If you ask for lost sales alone (a metrics list of just lost_sales on INS-OPS-BRIDGE-01) there is nothing left to return, so the run fails instead: decomposition_budget_exceeded (422) when the history is too large, engine_error (500, retry later) when it timed out.

Errors follow the { ok:false, kind, friendly } shape: not_enrolled (403) means MixShift switched Intelligence off for this account; bad_params (400); merchant_not_resolved (422); no_data_for_period (404); busy (429) when the service or this account is at its concurrency cap, retry shortly.

Entering forecast corrections (corrections:write)

A person's month-by-month corrections to the forecast (a sales or spend figure they know better than the model, a budget, a status) are stored by MixShift and applied to the forecasts served above. With corrections:write you can read and write them under your own name through these endpoints, and the forecasting app reads the very same rows. Interactive sign-ins hold the scope by default, and a tenant admin may grant it to a service credential at /admin.

EndpointWhat it does
GET /api/app-state/forecasting/doc?key=One document: key, kind, version, doc, updated_at, updated_by. 404 not_found when nothing is stored under the key.
GET /api/app-state/forecasting/docs?prefix=&scope_id=&after=&limit=Documents by key prefix, in key order. The prefix names one kind of one merchant, fb:<kind>:src:<database>:<merchant>, and so also matches that merchant's sub-brands; the optional scope_id keeps only the rows of exactly the scope it names (a merchant's leaves its sub-brands out). limit is 1 to 500 (200 by default); pass the returned next_after as after for the next page.
POST /api/app-state/forecasting/batchWrites, all or nothing.
GET /api/app-state/forecasting/scopes?legacy_seller_id=The sub-brands and item groups of your connected merchants, or of one of them: definitions, each with its scopeId and version.
POST /api/app-state/forecasting/scopesA new sub-brand or item group: { "create": { "legacySellerId", "kind", "name", "itemValues", "campaignValues" } } (or merchantId in place of legacySellerId). MixShift mints its key and answers definition (with its id) and version.
GET /api/app-state/forecasting/revisions?scope_id=&month=&after=The change log of a scope, one row per field that changed: id, scopeId, month, field, before, after, reason, actor, createdAt. month is optional and must be YYYY-MM-01; after is a revision id.

A batch body is { "writes": [ { "key", "expected_version", "doc" } ], "reason" }. reason is optional (one line, up to 500 characters) and lands in the change log. doc is the document to store, or null to delete it (404 not_found when nothing is stored there). Every write names the version it read in expected_version, and 0 means the key must not exist yet. If any key is stale, nothing is written and the answer is 409 conflict with a conflicts list naming every stale key (key, expected, actual). Read again, reapply your change, and resend. A batch holds up to 1,000 writes and 8 MB, one document up to 512 KB, and a key may appear once; over a size limit the answer is 400 too_large. A success returns results, one per write, with version and changed. A save that changes nothing writes nothing and does not advance the version.

What a person may write:

A month row carries scopeId and month (both must match the key), the fields sales, units, adSpend, adBudget and dspSpend, a status of auto, final or draft, and a note. Each money or unit field is { "mode", "value", "sourceObserved" } (adBudget has no sourceObserved), where mode is inherit, replace or suppress (dspSpend takes only the first two) and replace needs a value. A field you leave out of a write is kept as stored, not cleared: say inherit to clear it. MixShift stamps version, updatedAt and actor on the row and ignores any value you send for them. The change log records each change under the field names sales, units, ad_spend, ad_budget, dsp_spend and status.

A sub-brand or item group is a share of one merchant named by labels: { "id", "merchantId", "kind", "name", "itemValues", "campaignValues", "createdAt", "updatedAt" }, where kind is sub_brand or item_group, itemValues are the product labels (the brand on Seller Central items, the custom brand on Vendor Central items, or the item group) and campaignValues the campaign labels it counts, up to 100 a side. A side with no values holds nothing. Create one with POST /api/app-state/forecasting/scopes and forecast it with scopeKey on FCT-READINESS-01 and FCT-BASELINE-01; its month rows and settings live under its own scopeId, never the merchant's. Deleting a definition leaves its month rows; delete those in the same batch to remove its state. A forecast the forecasting app published for the sub-brand is still served until it is withdrawn in the app.

Your calls count as your account's API usage; they are not free the way MixShift's own app traffic is. A request that fails (status 400 or higher) is recorded but not charged. Other errors you can meet: 400 bad_params for a key or body that does not parse, and 503 unavailable when the database's home login could not be checked (retry).

Partner data plane: /v1

Guide: Use the /v1 data endpoints

The /v1 endpoints are the contract-stable partner surface: snake_case params, cursor pagination, explicit currency on money fields, and date windows anchored to the latest fully complete Amazon data day. Domain errors use { "error": { "code", "message" } } with a small stable code vocabulary (account_required, account_not_found, validation_error, rate_limited, ...).

EndpointScopeWhat it does
GET /v1/meaccount:readWho this token is: tenant id, person label, granted scopes.
GET /v1/accountsaccount:readEvery account/brand the tenant exposes, with per-domain auth status (retail, ads) and currency, plus brand ({ id, name }): the brand your organization groups the account under, or null for a tenant that is in no organization. Pass an account's id as account_id on data endpoints.
GET /v1/brands
POST /v1/brands
POST /v1/brands/:id/rename
POST /v1/brands/:id/merge
POST /v1/brands/:id/accounts
account:read, plus a verified member sign-inYour organization's brands, each with its accounts ({ brands: [{ id, name, accounts }], suggestions: [{ a, b, reason }] }). Any member reads; only an owner or admin creates, renames, merges or moves an account. Suggestions are never applied for you. A name already used by another brand answers 409.
GET /v1/ads/account-summary
GET /v1/ads/account-pacing
GET /v1/ads/campaign-performance
GET /v1/ads/search-terms
GET /v1/ads/asin-performance
ads:readWindowed ads performance: account rollups, MTD pacing, and per-campaign / search-term / ASIN aggregates with cursor pagination.
GET /v1/retail/sales
GET /v1/retail/traffic
retail:readDaily retail series (sales, orders, units, sessions, page views) with window totals.
GET /v1/retail/inventory
GET /v1/retail/inventory-history
retail:readFBA stock position: current on-hand units, days of supply and Amazon's health alert per ASIN (a snapshot, so it carries data_through rather than a window), plus a daily on-hand series for trend and stockout work. Filter the snapshot with at_risk_only=true or days_of_supply_lte.
GET /v1/brand-analytics/search-query-performancebrand_analytics:readSearch Query Performance aggregated by query (weekly grain). search_query_volume is the query's total searches counted once per week; the three *_share fields are the seller's share of the query total in percent, computed from counts; metric_definitions in the response defines every field. Domains without data return 200 with an availability block.

The brand memory endpoints are /v1 too and follow the same conventions; they get their own section below.

Brand memory

The data endpoints above tell you what the numbers did. Brand memory is the part of the platform that knows why, and it is reachable with the same credential. Two halves: the brand context your team maintains (what a brand sells, how the account is structured, what normal looks like) and the change log of what actually happened to it, including the advertising changes committed through MixShift.

A stake is the change-log entry that says "this is a thing that changes how the numbers should be read": it carries a category (launch, promotional window, stockout, price test, media spike, brand migration, and more), a time window, and a required plain-language interpretation. Stakes can then be corroborated by someone else, so agreement is earned rather than asserted. This is what lets your own dashboard explain a spend spike instead of just drawing it.

Guide: Work with brand memory

EndpointScopeWhat it does
GET /v1/timelinetimeline:readThe brand timeline: native events plus the read-time Amazon Ads change projection, filterable by brand, family, kind, date window, and the stake facets (category, source, status, affects, tag, interval overlap, future). Cursor pagination via next_cursor.
POST /v1/timeline/eventtimeline:read + timeline:writeAppend one event: a structural stake (category plus interpretation), a comment, or an action outcome. Attributed to your credential. knowledge.* and server-reserved kinds are rejected.
POST /v1/timeline/event/<id>/corroboratetimeline:read + timeline:writeCorroborate a stake: append a corroboration and refresh the stake status and close date in one step.
GET /v1/context/docscontext:readThe brand context manifest: every doc per brand with its type, revision, and content hash. Each brand carries a lifecycle field (active or retired, and when, by whom, and through which surface it last changed), and the response carries retired_count. Retired brands are always listed here, never dropped.
GET /v1/context/doccontext:readOne context doc by brand and type (corpus docs also take a name), with content and revision.

These return the partner envelope like the rest of /v1: a bare success body, or { "error": { "code", "message" } } on failure. timeline:read and context:read come with a read-only credential; timeline:write is opt-in at mint time. Brand context docs are read on /v1 and written on /api with the same token: an app a person signed in to can change them for that person, described next, and so can the MixShift plugin. The same capabilities are available as MCP tools (see MCP server).

Writing brand context

When a person signs in to your app with MixShift, your app acts for that person, and it may change that person's brand context as far as the person may. Three things must all hold: your app's registration lists context:read and context:write (MixShift adds them), the person approved them on the sign-in screen, and the person's own access allows it. An admin can turn off brand context changes for one person on the People page (matched on the work email the person signs in with, which is verified when your organization uses member sign-in), and in an organization that uses member sign-in a person with the Viewer role cannot change brand context. Every change is recorded as that person, with your app as the channel.

EndpointScopeWhat it does
GET /api/context/manifestcontext:readEvery doc per brand with its revision, content_hash, updated_by_actor (who saved it last) and updated_by_client_id (through which app).
GET /api/context/doc?brand=&type=context:readOne doc with its content and revision. type is context (context.yaml), narrative (narrative.md), config (config.yaml, the skill and app settings), brain or corpus (with name).
PUT /api/context/doccontext:read + context:writeSave a whole doc: { "brand_slug", "doc_type", "content", "base_revision", "corpus_name"?, "sensitivity"?, "source_ref"? }. Text docs up to 1 MB. Answers { ok: true, status, revision } with status created, updated or noop (the same content again: nothing saved).
GET /api/context/facts?brand=context:readThe brand's facts: short statements your team holds true, each tier 2 (suggested) or 3 (confirmed by a person).
POST /api/context/factscontext:read + context:writeAdd a fact. A confirmed fact ("tier": 3) needs a person: someone in the MixShift plugin, or the person an app acts for when MixShift has enabled that app for confirming facts (today MixShift PPC Engine). Any other app adds suggested facts and proposes confirmed ones. Superseding or retiring a confirmed fact (POST /api/context/facts/<id>/supersede, /retire) needs a person too, and so does verifying any fact (/verify).
POST /api/context/facts/reviewscontext:read + context:writePropose a new fact, a correction, a retirement or a verification for a person to accept.
POST /api/context/facts/reviews/<id>/resolvecontext:read + context:write, and a person (the plugin, or an enabled app){ "decision": "accept" | "reject", "resolution_note"? }. Accepting applies the proposal.

Saving over someone else's change. Send base_revision: the revision you read the doc at (leave it out, or send 0, only to create a doc that does not exist yet). If someone saved the doc after you read it, the answer is 409 revision_conflict with the saved version in server (revision, content, content_hash, updated_at, updated_by_actor): nothing is overwritten. Show the person both versions, merge, and save again with server.revision as the new base_revision. A conflict whose server.revision is 0 and whose other fields are null means the doc does not exist: read the manifest again.

How a change is recorded. The person is the person who signed in to your app (their work email, from their sign-in), and the channel is your app's client id. Both are taken from the token, never from the request: the doc's updated_by_actor and updated_by_client_id, the revision history, and a knowledge.doc_created or knowledge.doc_revised event on the brand timeline (GET /v1/timeline?family=knowledge) whose actor and client_id say who and through which app. Facts record the same pair.

Refusals. The /api envelope (see Errors and limits). 403 insufficient_scope carries a reason: credential_kind (the token does not carry context:write), member_ceiling (an admin turned it off for this person) or role (the person's role does not include it). 403 tier3_forbidden means a confirmed-fact change, a verification or a review decision came from a token with no person behind it, or from an app not enabled for confirming facts: propose it with POST /api/context/facts/reviews instead.

Service credentials are read-only by default. An admin can grant one context:write at /admin, and its changes are then recorded under its own label; even so it cannot confirm, verify or retire a confirmed fact, or resolve a review: it proposes, and a person decides. The same holds for Claude connectors and ChatGPT apps, for an app MixShift has not enabled for confirming facts, and for any token that carries no signed-in person.

Retiring and restoring a brand

A brand your team no longer works on can be retired for everyone on the account, and restored later. Retiring deletes nothing: the brand keeps its context docs, their revision history, and its change log, and reports and warehouse data are untouched. What changes is the brand's lifecycle state in the brand context listing. This write is not on /v1: call POST /api/context/lifecycle, or the context_set_brand_lifecycle MCP tool, which takes the same arguments and runs the same checks. Both need context:read and context:write.

FieldRequiredWhat it takes
brand_slugyesThe brand's slug as the listing shows it: lowercase letters, digits, and hyphens, up to 64 characters.
actionyesretire or restore.
reason_codenoclient_left, duplicate, superseded, or other.
notenoUp to 280 characters, one line of plain text.
on_behalf_ofnoUp to 254 characters, one line of plain text: who asked for the change. Recorded as given and never used as the actor.

A success is 200 { ok: true, brand_slug, state, changed, at, event_id? }, where state is "active" or "retired". changed: true means this call made the change, and at and event_id identify its change log event. Repeating the current state is a no-op: changed: false and no second event, so a retry is safe. Errors use the /api envelope (see Errors and limits), with the code in kind: 404 unknown_brand when the account has no brand context for that slug, 400 bad_params when the body breaks a rule above, and 403 insufficient_scope without the scopes. Through the MCP tool, a missing scope comes back in the tool result as error: "insufficient_scope" with the required_scopes listed, not as an HTTP 403. The change is recorded as the credential that made the call, never as a name in the body.

Reading the state. Every brand in the brand context listing carries a lifecycle object, and the listing carries retired_count, the number of retired brands.

KeyWhat it holds
stateactive or retired.
changed_atWhen the current state began.
changed_byWho the change was recorded as: a work email, an svc: label, or a client id. Print it as given.
surfaceWhere the change came from: plugin, mcp, api, partner:<id>, or mixshift-app.
reason_codeThe reason sent with the change, if any.

A brand that has never been retired reads state: "active" with the other four keys null. Which brands a listing includes depends on where you read it. GET /api/context/manifest and the context_list_docs MCP tool take lifecycle: active leaves retired brands out (retired_count still counts them) and all includes them. The default is all, so retired brands stay listed, marked retired, rather than dropped. GET /v1/context/docs always lists every brand and ignores the parameter. An integration that should skip retired brands filters on lifecycle.state.

Each change also lands on the brand timeline, so GET /v1/timeline and timeline_list return it as a structural.brand_retired or structural.brand_restored event, with reason_code, note, on_behalf_of, and surface in its payload. The timeline endpoints cannot append either kind: this route is the only way a brand's state changes.

Ads tags

A tag is a short name your team puts on an advertising entity (a campaign, ad group, keyword or target) so you can find it again, filter by it, act on it in bulk, and key automation off it: brand, competitor, hero-sku, do-not-touch. Tags belong to your account, not to one app: MixShift PPC Engine, the MixShift plugin, your own agent and this API all read and write the same rows, and every change is logged and undoable.

Entities are addressed by their Amazon id under the MixShift seller row (legacySellerId, one profile and marketplace), the same ids the Amazon operations return. A tag's slug (lowercase letters, digits, - and _, up to 64 characters) is the join key everywhere; its name is for people.

EndpointScopeWhat it does
GET /api/tags?seller=&archived=ads:readYour tags, each with the number of entities it is on for that seller row (or across every seller without seller). Archived tags appear only with archived=true.
POST /api/tagsads:read + context:writeCreate a tag: { "name", "slug"?, "color"?, "description"? }. The slug is derived from the name when omitted. A duplicate slug is 409 exists.
PATCH /api/tags/<slug>ads:read + context:writeRename, recolor, describe, archive ("archived": true) or restore. Archiving keeps the tag's assignments and stops offering it.
GET /api/tags/assignments?seller=&type=&ids=ads:readThe tags on up to 500 entities of one type: { "tags": { "<id>": ["slug", ...] } }.
GET /api/tags/entities?seller=&tag=&type=ads:readThe entities carrying a tag, [{ "type", "id" }], capped at 5,000 with truncated set when the cap hit.
POST /api/tags/applyads:read + context:writeTag and untag a batch in one atomic change: { "seller", "entities": [{ "type", "id" }], "add": [slug], "remove": [slug], "create_missing"?, "note"?, "skill_id"?, "model_id"? }, up to 2,000 entities and 20 slugs. Answers the change_id and how many rows were actually added and removed. An unknown slug is 404 unknown_tag unless create_missing is true; adding an archived tag restores it (it is listed in created, so undoing the change archives it again).
GET /api/tags/changes?seller=&limit=ads:readThe change log, newest first: each apply with exactly what it added and removed, tag creates and edits, and undos.
POST /api/tags/changes/<id>/undoads:read + context:writeReverse one apply: removes exactly what it added and restores exactly what it removed. Once per apply.

Writes take context:write, the same grant as brand facts and brand context, and deliberately not ads:write: a person who may not push changes to Amazon can still organize. Attribution (who, through which client, and the optional skill_id / model_id) is recorded on every change. The same operations are MCP tools: ads_tags_list, ads_tags_lookup, ads_tags_entities, ads_tags_apply, ads_tags_edit, ads_tags_changes and ads_tags_undo.

Labels

A label is a value your team puts on an item (an ASIN) or on an Amazon campaign to organize it: Item Group, Brand, Nickname, Parent ASIN, Item Label 1 and 2, Tag 1 to 4, and on campaigns also Manager and Objective. These endpoints read labels from one place, so an app, the plugin or your own agent shows the same labels Dash does without querying the legacy tables. Reading is free. Changing a label is a separate, metered path (below): it previews, then commits, and writes MixShift's label store; until the sync step copies a changed value to Dash, that value reads pending and Dash still shows the old one.

Every call takes account, the MixShift seller row (legacySellerId, one merchant in one marketplace) of a live, non-agency account of your own database; any other id answers 404 not_found, whatever the reason. MixShift turns labels on for your database. Until then every call answers 403 not_enabled (and /state says off). While a database is observing the store is a copy kept current from Dash about every 15 minutes, so it can be up to 15 minutes behind an edit just made there; once on it is the source of truth. Every answer carries state.

EndpointScopeWhat it does
GET /api/labels/statefull read setWhether labels are on (off, observing or on), when the first full copy finished, and the last refresh run: mode, status, times and counts. No account.
GET /api/labels/fields?account=&entity=item|campaignfull read setThe fields for that account's item type (Seller or Vendor) or for campaigns: key, legacy column, longest value, your own display_name when one is set, and the values in use with how many carry each, most used first. At most 500 values per field (and 200,000 characters); values_truncated says when the list was cut. The values are cached for up to a minute: values_as_of and values_age_seconds say how old they are.
GET /api/labels/items?account=&field=&value=&cursor=&limit=full read setThe account's items with their labels, in ASIN order, limit 1 to 200 (default 50). Only the fields that are set come back, each as { value, sync, updated_at }, and fields lists every field the account has so a blank is known. field with value lists only the items whose field equals that value exactly (case, spacing and long values included). Pass next_cursor back as cursor for the next page.
POST /api/labels/items/lookupfull read set{ "account", "ids": [ASIN, ...] }, up to 500. Each result is seen (with its labels, empty when blank) or unseen (the service has never read that id; also listed in unseen). Seen and blank is not the same as unseen.
GET /api/labels/campaigns?account=&field=&value=&cursor=&limit=, POST /api/labels/campaigns/lookupfull read setThe same for Amazon campaigns. Campaign ids are sent as digit strings.
GET /api/labels/drift?account=&entity=&cursor=&limit=full read setIdentities whose legacy rows disagree with each other on a field (for example a new SKU that inherited another marketplace's value): the distinct legacy values, the value Dash's own rule picks, and what the store holds. Paged.
GET /api/labels/changes?account=&since=&cursor=&limit=full read setThe change log as a forward feed, oldest first. since is a UTC time like 2026-11-12T08:30:00Z (inclusive); keep next_cursor and pass it as cursor to poll without missing or repeating a change (not with since). Each change has source (service, dash, backfill or inherit), before (null means never set), after, time and the actor when a person or agent made it. Changes appear after a two-minute settle delay; as_of says how far the answer reaches.

sync on a value is synced (nothing is waiting to be copied to Dash), pending or failed. Errors are { ok: false, kind, friendly }: not_enabled and not_available (403; 503 with retryable when a check could not be made), not_found (404), bad_params (400), insufficient_scope (403). A credential limited to named accounts cannot read labels. The same reads are MCP tools: labels_state, labels_fields, labels_get, labels_search, labels_drift and labels_changes.

Changing labels (labels:write)

A label drives how every report groups your items and campaigns, so a change is previewed first and committed only against that exact preview. Nothing is written by a preview. A change reaches an account through its scope: region (the default) is every account that shares the merchant token (one merchant's marketplaces), marketplace is the one account, all is every account of the same merchant type in your database. A campaign belongs to one account, so only marketplace is accepted for campaigns (422 scope_not_supported). Only items and campaigns the service has already seen are changed; the others are dropped and counted. A write needs labels:write on top of the read scopes, labels turned on for your database to commit (a preview is allowed while observing), and LABELS_WRITE_ENABLED on at MixShift; otherwise every write answers 403 not_enabled with a reason. The actor, client and surface come from your token; skill_id and model_id are optional labels you attest.

EndpointWhat it does
POST /api/labels/changes/preview{ account, entity: "item"|"campaign", selection, set, scope? }. selection is { ids: [...] } (up to 1,000 per change set), { filter: { field, value } } (every item or campaign whose field equals the value, resolved now and frozen) or { rename: { field, from, to } } (every one in the chosen accounts whose field equals from becomes to; no set). set maps a field key to its new value, or to null to clear it; a field you leave out is not touched. A value is trimmed, may not be blank, hold a control character or be longer than the legacy column (422 invalid_value lists every problem). Answers the change_set_id, expires_at (24 hours), the approval_hash, row counts per account, what was dropped and why, a sample of before and after, and warnings: the change removes the last use of a value a stored forecast sub-brand or item group names, a value differs only in capitals from one in use, or the account is not on yet.
POST /api/labels/changes/{id}/commit{ approval_hash }. One transaction for the whole change set. Each item is compared with what the preview saw: one that someone changed since is left untouched in all its fields and reported stale; the rest apply. ok: true only when nothing was stale or refused; otherwise partially_applied, stale or failed (409 or 422) with the full needs_attention list. Committing twice returns the stored results and writes nothing. Refused: approval_mismatch, change_set_expired, change_set_cancelled, not_enabled.
GET /api/labels/changes/sets?account=&limit=&before=, GET /api/labels/changes/sets/{id}Free reads. The change sets that reach an account, newest first (pass next_before back as before), and one change set as a preview or with what happened per item. (The feed GET /api/labels/changes above is unchanged.)
POST /api/labels/changes/sets/{id}/cancelCancel a preview.
POST /api/labels/changes/sets/{id}/undoA NEW preview that sets every field of a committed change set back to its earlier value, expecting the values the change set wrote: an item changed again since is reported stale at commit and left alone. Commit it like any preview.
PUT /api/labels/fields/names, DELETE /api/labels/fields/names?account=&entity=&field=Set, or remove, an account's own name for a field, for example "Pattern ID" for Item Label 2 ({ account, entity, field, name }, at most 80 characters). GET /api/labels/fields returns it as display_name.

An agent previews, shows the person the counts and the scope, and commits only after the person confirms that exact change set in a separate turn. The same calls are the MCP tools labels_preview, labels_commit, labels_undo, labels_change_set (a free read) and labels_set_display_name. Write errors add invalid_value, empty_selection, too_many_entities (422; one change set holds at most 1,000 items and campaigns; split a larger change, and a commit the database stops for taking too long answers commit_too_large (422, do not retry it as it is: split it)), too_many_open_previews (429; 25 open previews), change_set_not_found (404), nothing_to_undo, invalid_name and name_in_use.

Warehouse SQL: /api/query

Guide: Query the warehouse (includes migrating off direct MySQL access)

Read your warehouse directly with SQL when the /v1 endpoints do not cover what you need. Your credential resolves server-side to your own tenant database (the standard MixShift schema) over a read-only connection, so a query only ever sees your own data.

EndpointScopeWhat it does
POST /api/queryfull read set + sql:queryRun read-only SQL. Body { sql, params?, queryTimeoutMs? }; params is a positional array (? placeholders) or a named object. Returns { ok: true, rows, rowCount, durationMs } or { ok: false, kind, friendly }.
GET /api/tablesfull read set + sql:queryList the tables in your database.
GET /api/table/<name>full read set + sql:queryColumns for one table (a SHOW COLUMNS result).

Raw SQL spans every data domain, so this surface needs the full read set (account:read, ads:read, retail:read, brand_analytics:read) plus sql:query, the separate grant for caller-authored reach. Both are included by default when a service credential is minted with no explicit scope list; if you request a specific scope set instead, add sql:query explicitly, or the four domain reads alone will not reach this endpoint. Per-call limits: queryTimeoutMs defaults to 60s and caps at 120s; a response caps at 50,000 rows (too_many_rows) and 10 MB (response_too_large), so paginate large extracts with LIMIT / OFFSET or chunk by date. Raw SQL couples you to the warehouse schema; prefer /v1 when you want a versioned contract.

Named queries: /api/named-query

MixShift keeps a catalog of vetted warehouse queries on the server, so a client can ask for a result by id instead of carrying the SQL itself. The query text can be corrected or tuned without you shipping anything, and every result tells you which version answered it. The catalog ids are also published unauthenticated at /.well-known/mixshift-query-pack, so a client can check which ids exist before it holds a token.

EndpointScopeWhat it does
POST /api/named-queryfull read setRun one catalog entry. Body { id, params?, sellerIds?, queryTimeoutMs? }. Returns the same envelope as /api/query plus revision (a content hash of the SQL that ran, so a result stays attributable to exact query text) and applied_params. An id this deployment does not carry returns 404 with kind: "unknown_query".
GET /api/named-query/idsfull read setThe deployed catalog: every entry id with its current revision. Diff this against the ids you depend on before you ship, rather than discovering skew through a failed call.

Check applied_params before you treat a result as filtered. Entry parameter schemas are deliberately tolerant: a parameter the deployed entry does not declare is dropped and the query still runs, which is what lets your integration and this service deploy on separate schedules. The cost of that tolerance is that a filter we do not recognise is ignored silently and you still get ok: true. So every successful response carries applied_params, the sorted names of the parameters this execution actually bound. If a parameter you sent is missing from that list, it was dropped and your rows are unfiltered on that dimension. Names only, never values. Failed responses do not carry it: nothing ran, and the error kind already tells you why.

Sub-brand labels. Some sellers run several distinct brands under a single Amazon account, separated only by a brand label on the retail and ads records. The catalog carries discovery entries (sbd-01 retail, sbd-02 ads, sbd-03 vendor, sbd-04 cross-side match rate) that report the distinct labels per side, how much of the catalog or ad spend carries no label yet, and how well the retail and ads labels agree with each other. The entries behind brand context accept optional retail_brand_label and ads_brand_label filters. Both are optional and both default to no filter, which is exactly why applied_params matters here: it is how you confirm a label filter was honored rather than dropped, and that is the difference between one brand's numbers and the whole account's.

Sub-brand economics. Three more catalog entries rank labels by dollars instead of by count: sbd-05 retail (mws_items.Brand), sbd-06 ads (campaign.Brand), and sbd-07 vendor (vendor_items.CustomBrand). Each returns trailing 365-day revenue or ad spend per label, a trailing 90-day slice of it, and the last date the label sold or spent, one row per label per seller. Every label is included, including ones you may go on to treat as dormant, so totals built from these entries still reconcile against Seller Central, Amazon Ads, or Vendor Central. None take entry-specific params beyond the sellerIds every named-query call already sends.

Report batteries. Several multi-statement entries serve the Report Center and need only the four domain read scopes: RPT-RETAIL-ADS-VENDOR-01 (Vendor Central) and RPT-RETAIL-ADS-SELLER-01 (Seller Central) return one report document for a period. Both also accept an optional filters array (up to 5 rules of { dim, values[] }, one per dimension, up to 1000 values each; AND across rules, IN within a rule) and every figure follows it; check applied_params for filters. RPT-RETAIL-ADS-SELLER-01 also takes skuGrain (boolean, default false): when true each item row also carries skuRows, one per SKU; session, page view, Buy Box and offer count are blank per SKU; order-item figures are summed per SKU (pack revision 6). Both also take an optional series (seller: { dim, limit? }, dim a catalog dimension other than sku; vendor: { attribute?, limit? }; limit 1 to 100) that adds per-day rows for the top values by spend plus the rest, as report.series. RPT-RETAIL-ADS-VENDOR-01 also takes items (boolean, default false): when true the document also carries report.items, one row per ASIN with its figures and every vendor catalog dimension, so a report can group by several dimensions at once (pack revision 12). RPT-CATALOG-VALUES-SELLER-01 takes { sellerIds, dims?, period?, compare?, scope? } and returns the distinct catalog values per dimension with item counts (asin and sku are counted, not listed), to fill a filter picker; with a period it offers only values active in that range. RPT-CATALOG-VALUES-VENDOR-01 takes { sellerIds, dims?, period?, compare?, scope?, view? } and does the same for a Vendor Central catalog (asin is counted, not listed); view is manufacturing (default) or sourcing and picks the retail table a period reads.

Sponsored Ads batteries. RPT-SPONSORED-ADS-SELLER-01 (Seller Central) and RPT-SPONSORED-ADS-VENDOR-01 (Vendor Central) return one ad-only report document for a period: { sellerIds, period, compare?, currency?, months?, campaignType?, viewBy?, filters?, series? }, where campaignType is all (default), sp, sb or sd, viewBy is asin (default), campaign, adGroup, keyword, target, matchType, campaignType or portfolio, and filters are up to 5 { dim, values[] } rules over the 16 ad dimensions. Ad spend, ad sales, orders, units, clicks and impressions only; compute ratios from the sums. An optional series ({ dim, limit? }, limit 1 to 100) adds per-day rows for one ad dimension, top values by spend plus the rest, as report.series. RPT-AD-VALUES-SELLER-01 and RPT-AD-VALUES-VENDOR-01 take { sellerIds, dims?, period?, compare? } and return the distinct ad dimension values active in the period, to fill a filter picker.

Write safety model

Two write surfaces, two shapes. Both audit every change and both put a preview in front of it.

Amazon Ads writes (ads:write)

DSP writes

DSP orders (campaigns), line items (ad groups), targeting, tracked products and ads are built and changed through the same /api/amazon/ads/call contract: a dry run unless you send "dryRun": false, an audit row for every call, and no automatic resend. Each write below takes the numeric DSP advertiser id in pathParams.advertiserId (see DSP reads for where to find it) and answers HTTP 207 with per-item results, each carrying its position in the request as index. A 207 is a completed call, so read every list. A campaign, ad group, target or ad create can also answer partialSuccess: that entity exists, with errors on some fields, so do not create it again. A 5xx or a lost response means the outcome is unknown: read the entity back before trying again, because a resent create makes a duplicate and this catalog has no delete for DSP campaigns, ad groups or ads.

OperationWhat it doesMost per call
dsp.update_campaignsState, budget caps, flights and other settings of an order. Flights are a full replacement, so send every flight you keep. Switching an order on is read first (below).5
dsp.update_ad_groupsState, budget, bids, pacing, dates and other settings of a line item.20
dsp.create_campaignsOrders, created PAUSED.5
dsp.create_ad_groupsLine items in an order, created PAUSED.20
dsp.create_targetsAudiences, locations, domains and other targeting on a line item.200
dsp.delete_targetsRemoves targets by id. A DSP target has no paused state, so removing it is how one is stopped; the dry run and the audit row keep a snapshot of the removed targets, so they can be added back with dsp.create_targets.1,000
dsp.create_ad_associationsLinks a creative, or an ad from dsp.create_ads, to a line item.20
dsp.create_conversion_tracking_productsAdds the products (ASINs) an order tracks, with campaignId in pathParams. A retail order needs them before it can be switched on.200
dsp.delete_conversion_tracking_productsRemoves tracked products. It takes the same body as the add and is not snapshotted, so read the list first; sending the same body to the add puts them back.200
dsp.create_adsA responsive ecommerce ad, created PAUSED. See DSP ads.10

Checked before Amazon. These DSP builds are refused before anything is sent, on the dry run and the commit alike, so a preview catches them.

You sendWhy it is refusedSend instead
dsp.create_campaigns with no optimizations.primaryInventoryTypes, or a value other than AUDIO, DISPLAY, VIDEO_OLV or VIDEO_STVAn order created without it shows no media type and no creatives in the DSP console.The inventory type of the line items you will create, for example ["DISPLAY"].
A deprecated goal KPI on an order (optimizations.goalSettings.kpi) or a line item (optimization.goalSettings.kpi)Amazon can store it as a different goal, and the order then fails activation with CONVERSION_TRACKING_REQUIRED.COST_PER_ACTION: use COST_PER_CONVERSION_OFF_AMAZON. RETURN_ON_AD_SPEND: use ROAS_PROMOTED. TOTAL_RETURN_ON_AD_SPEND: use ROAS. COMBINED_RETURN_ON_AD_SPEND: use ROAS_COMBINED.
dsp.create_ad_groups with no advertisedProductCategoryIds, an empty list, or an id that is not a non-empty stringAmazon refuses a line item without it, although the Campaign Management spec does not mark it required.Subcategory ids (rows with a parentId) from dsp.list_advertised_product_categories. Ids copied from the category picker in the DSP console are refused by Amazon, and a parent id is accepted only on a VIDEO line item.
frequencies on an order or line item in the read shape (maxImpressions, timeUnitCount, levelType, frequencyType), missing one of the four create fields, or out of rangeThe shape dsp.list_ad_groups returns is not the create shape.{ eventMaxCount, frequencyTargetingSetting: "USER" | "HOUSEHOLD", timeCount, timeUnit: "DAYS" | "HOURS" | "MINUTES" }, up to 3 entries; timeCount 1 to 60, eventMaxCount 1 to 500 on a line item and 1 to 99,000 on an order.
dsp.create_targets with an audience target whose audienceId.defaultValue is 9 digits or fewerThat is an AMC dspAudienceId, which Amazon refuses ("Invalid Audience identifiers").The 18-digit dspCanonicalId from amc.list_audiences; for an audience not from AMC, the audienceId from dsp.search_audiences.
An item of dsp.create_campaigns, dsp.create_ad_groups, dsp.create_targets or dsp.create_ads without adProduct: "AMAZON_DSP", or an order or line item not created PAUSEDThese operations create DSP entities only, and Amazon creates DSP orders and line items paused only.adProduct: "AMAZON_DSP" and state: "PAUSED"; switch them on later with dsp.update_campaigns and dsp.update_ad_groups.
dsp.query_campaigns, dsp.query_ad_groups, dsp.query_targets or dsp.query_ads without the ad product filterAmazon requires the filter and takes one ad product.adProductFilter: { include: ["AMAZON_DSP"] }.
dsp.search_audiences or dsp.list_audience_categories without adType: "DSP"The same endpoint serves Sponsored Display and Sponsored TV audiences.adType: "DSP" in the body.
A tracked-products add or delete with an entry missing productId, productAssociation or domain, a productId that is not 10 characters, or a value Amazon does not accept on this writeAmazon requires all three on every entry, on the delete too.{ productId: "<ASIN>", productAssociation: "FEATURED" | "FEATURED_WITH_VARIATION" | "NOT_FEATURED", domain: "AMAZON_US" }.

Each refusal answers 400 invalid_request with source: "request" and retryable: false, and nothing is sent to Amazon. friendly names the item and the field, fix gives the shape to send, operation names the operation, and missing_params (a required field is absent) or invalid_params (a value is wrong) lists the field paths. The first problem found is the one reported, so fix it and preview again: { "ok": false, "kind": "invalid_request", "friendly": "adGroups[0].advertisedProductCategoryIds is required ...", "fix": "List the ids with dsp.list_advertised_product_categories ... Nothing was sent to Amazon.", "operation": "dsp.create_ad_groups", "missing_params": ["adGroups[0].advertisedProductCategoryIds"], "source": "request", "retryable": false }.

Switching an order on. When a dsp.update_campaigns item sets state: "ACTIVE", the gateway reads those campaigns first, on the dry run and the commit alike. A campaign that is not already active, whose goal is a retail sales goal (ROAS or ROAS_PROMOTED, or their deprecated names; a goal the item sets counts over the live one) and that tracks no products is refused before Amazon with invalid_request: missingTrackedProducts lists those campaign ids, and fix says to add the products with dsp.create_conversion_tracking_products. Amazon would otherwise refuse the activation with CONVERSION_TRACKING_REQUIRED. If the check cannot read the campaigns or their products, the change goes through and Amazon decides. A conversion set up off Amazon (Events manager) cannot be read through the API, so an order with an off-Amazon goal is not checked: confirm that one yourself. Line items are not checked.

Reads for a build. dsp.query_campaigns, dsp.query_ad_groups, dsp.query_targets and dsp.query_ads read back what a create made. dsp.list_advertised_product_categories lists the category ids a line item needs (a row with a parentId is a subcategory; the tree has thousands of rows, so page with nextToken). dsp.list_conversion_tracking_products lists the products an order tracks, with campaignId in pathParams. dsp.search_audiences finds the audience segments an advertiser can target, by name or category, and dsp.list_audience_categories browses the category tree; both take adType: "DSP" in the body. The API has no switch for automatically created responsive ads, which exists only on the Create order screen of the DSP console; dsp.create_ads builds that ad by hand.

DSP ads

dsp.create_ads builds a responsive ecommerce ad from products, and dsp.query_ads reads DSP ads back, including ads built in the DSP console. Proven live on a MixShift test advertiser on 2026-11-06: an ad created paused, linked to a paused line item, and read back.

A call: {"operation": "dsp.create_ads", "pathParams": {"advertiserId": "<DSP advertiser id>"}, "body": {"ads": [{"adProduct": "AMAZON_DSP", "adType": "COMPONENT", "name": "<name>", "state": "PAUSED", "creative": {"componentCreative": {"responsiveEcommerceSettings": {"products": [{"productId": "<ASIN>", "productIdType": "ASIN"}], "language": "en_US", "inventoryTypes": ["DISPLAY"], "optimizationGoalKpi": "CLICK_THROUGH_RATE", "responsiveSizingBehavior": "ENABLED", "supportedThirdPartySellers": "NONE"}}}}]}}, with the merchant selected as on any other Ads call (it picks the stored authorization and the regional host). Checked before Amazon:

A DSP ad cannot be deleted or archived through the API. A wrong ad stays on the advertiser (one with no association does not serve), so preview first, and look for an ad of the same name with dsp.query_ads (nameFilter, EXACT_MATCH) before committing. A create is never resent automatically: after a 5xx or a lost response, read back before trying again, or a retry makes a duplicate.

dsp.query_ads needs adProductFilter: { include: ["AMAZON_DSP"] } (refused before Amazon without it). Filter by adIdFilter or nameFilter: a DSP ad links to line items by association, so adGroupIdFilter and campaignIdFilter may return nothing for it, and dsp.list_creative_associations shows the links. status.deliveryReasons can include AD_NOT_ASSOCIATED_WITH_AD_GROUP until the ad is linked. Read back what was stored: in the live proof Amazon stored responsiveSizingBehavior as DISABLED although ENABLED was sent.

Ads change proposals (ads:propose)

A proposal splits an Ads write into three steps taken by different hands, so a scheduled routine can prepare a change that a person signs off on before it reaches Amazon.

  1. Propose. POST /api/amazon/ads/proposals with the same body as /api/amazon/ads/call (without dryRun or contentTypeOverride), plus optional title, rationale, evidence and expiresInHours (default 72, 1 to 168). The operation must be one the guard below fully checks: sp.update_campaigns, sp.update_keywords, sp.update_targets, sp.update_ad_groups, dsp.update_campaigns or dsp.update_ad_groups; any other operation is refused with invalid_request (make it with /call). It runs the dry run's checks, reads the live state of every entity it changes, and stores the change set with a payloadHash. Every entity the change set addresses must come back from that read: when one does not (an archived or deleted id, or one under another profile), nothing is stored and the answer is proposal_before_state_unavailable naming the missing ids. Needs ads:propose or ads:write. Nothing is sent to Amazon. An account holds at most 50 open proposals.
  2. Approve or reject. POST /api/amazon/ads/proposals/{id}/approve with { "payloadHash": "..." }, the hash of the change set the approver was shown, so an approval covers only what was seen. A person approves from their own sign-in (the MixShift plugin, a claude.ai connector, a ChatGPT app, or a direct sign-in) holding ads:write. A proposal is how an agent hands a change to a person: a change an AI connector proposed is approved from a different sign-in than the connector session that proposed it, while a person's own proposal is theirs to decide in the same sign-in. The connector session that proposed, a service credential, a partner application or an operator view-as session gets approval_requires_human, for a rejection too. .../reject, with an optional reason, ends a proposal for good.
  3. Commit. POST /api/amazon/ads/proposals/{id}/commit with the same payloadHash, by any credential holding ads:write, service credentials included. The gateway reads the live state again and compares every field the change set sets with what the proposal saw. If anything moved, the proposal ends STALE with the list of what changed (proposal_stale with drift; nothing is sent). Otherwise the change goes out through the same audited path as a /call with "dryRun": false, and the proposal ends COMMITTED (Amazon's per-item results under response, the audit row under commitAuditId), FAILED (Amazon refused it), or UNCERTAIN (a server error or a lost response after it was sent: it is never sent again, so check the live state).

Blast-radius guard. When a proposal moves a budget or a bid by more than 25% in either direction from its current value, or sets one that has no current value, the item is listed under guard.flagged and the approval must carry "acknowledgeGuard": true (otherwise proposal_guard_ack_required). Guarded fields: Sponsored Products campaign daily budgets, keyword and target bids, and ad group default bids; DSP campaign and ad group budgets, budget caps, flight budgets and bids. Sponsored Products placement bid adjustments (dynamicBidding.placementBidding[].percentage on sp.update_campaigns) are already percentages, so they are measured in percentage points: one is flagged when it moves by more than 25 points or is raised from 0 (or from no entry), with the change under pointsChange. Every proposal carries guard.evaluated: true. Audience bid adjustments (dynamicBidding.shopperCohortBidding) and a dynamicBidding without placementBidding cannot be proposed yet (invalid_request); make those through the preview-and-confirm /call path.

A proposal's status is PROPOSED, APPROVED, REJECTED, COMMITTING, COMMITTED, FAILED, UNCERTAIN, STALE, or EXPIRED (proposed or approved, and past its window). GET /api/amazon/ads/proposals?status=&limit= lists them newest first; GET /api/amazon/ads/proposals/{id} returns one in full, with the exact request it will send and the live state it was proposed against. On MCP: amazon_ads_proposals_list, amazon_ads_proposal_get, amazon_ads_proposal_approve and amazon_ads_proposal_reject. Each step is recorded on the brand timeline with the proposal id.

Errors, all decided before anything is sent: proposal_not_found (404); proposal_expired, proposal_not_approved (the proposal is not in a state this step accepts; proposalStatus says where it is), proposal_hash_mismatch, proposal_stale, proposal_guard_ack_required and proposal_before_state_unavailable (at create, the live read did not return every entity, with missingIds; at commit, the live state could not be read when it was proposed, so propose it again), all 409; approval_requires_human (403); and proposal_limit_reached (429, not retryable until proposals are approved, rejected or expire).

Reading one change

GET /api/amazon/ads/changes/{auditId} answers one Ads change from the audit log by its auditId: the id a /call write answers with, dry run or commit, or a proposal's commitAuditId. It needs ads:read and changes nothing. Use it when a commit's answer was lost (a timeout, a dropped connection) to find out whether it applied before you send anything again, and to list the changes your app sent by the audit ids it kept. The answer is never cached.

200 { "ok": true, "change": { auditId, status, dryRun, operation, profileId, legacySellerId, advertiserId, itemsCount, actor, clientId, intent, createdAt, completedAt, requestPayload, beforeState, responsePayload, errorDetail } }. requestPayload is the change set as sent, beforeState the entities' state read just before the write (updates only, and best-effort: null when nothing was read, and { "unavailable": "<reason>" } when the read failed), responsePayload the answer from Amazon, and intent the x-mixshift-intent the write was sent with (null when none was). status is one of:

Only changes made under your own MixShift login are answered, for every seller and Ads profile under it: a change made under another login, an unknown id and a malformed id all answer 404 change_not_found, the same way. A credential without ads:read is refused 403 insufficient_scope.

Reverting a committed change

POST /api/amazon/ads/changes/{auditId}/revert puts a committed Ads change back the way it was. It writes nothing itself: it opens a new proposal whose change set sets every field the original change set touched back to the value in that change's pre-write snapshot, and that proposal then takes the three steps above. {auditId} is the audit id of a committed write: the auditId a /call with "dryRun": false answers with, or a proposal's commitAuditId. Opening a revert needs ads:propose or ads:write, the same as proposing, and an operator view-as session is refused (insufficient_scope).

The body is optional. { "preview": true } answers 200 and stores nothing: { "ok": true, "preview": { operation, profile_id, request_payload, reverted, skipped } }, where request_payload is the change set the proposal would hold. Without it the proposal is created, and the answer is 201 { "ok": true, "status": "ok", proposal, reverted, skipped }. proposal is the stored proposal in the shape POST /api/amazon/ads/proposals returns: status PROPOSED, its payloadHash and guard, a title that starts with "Revert:", and evidence.kind: "revert" with the id of the change it reverts. reverted is [{ id, fields }], each entity and the top-level fields put back; skipped is [{ index, id }], items Amazon refused in the original change, which never applied and are left out.

What can be reverted. A committed update made by one of the four Sponsored Products operations a proposal can hold: sp.update_campaigns, sp.update_keywords, sp.update_targets or sp.update_ad_groups. Creates, deletes, the DSP updates and every other operation are not revertible. There are no partial reverts: every applied item goes back, each top-level field it set taken whole from the snapshot, or nothing is proposed. A change that cannot be reverted answers 409 not_revertible (source: "request", retryable: false), with code saying why and, for some codes, detail:

codeMeaning
not_appliedThe change did not finish as DONE. A FATAL change was not applied. A PENDING one lost its answer from Amazon and may have applied, so check the live state.
dry_runThe audit id is a dry run. Nothing was sent, so there is nothing to put back.
operation_not_revertibleThe operation is not one of the four above.
no_before_stateNo snapshot was recorded for the change.
before_state_unavailableThe snapshot read failed when the change was made.
field_missingThe snapshot has no value for a field the change set, for example one the change added; detail names the id and the field.
item_not_in_snapshotAn entity the change touched is not in the snapshot.
item_unreadableA recorded item has no readable entity id.
inverse_not_proposableThe values to put back have a shape a proposal cannot hold yet: dynamicBidding without placementBidding, or audience bid adjustments.
nothing_to_revertEvery item failed at Amazon, or the change had no items, so nothing applied.

An unknown or malformed id, or a change that belongs to another account, answers 404 change_not_found. A preview that is not true or false, or a JSON body that is not an object, answers 400 invalid_request. Opening the proposal can also be refused the way any proposal can, for example proposal_before_state_unavailable when the live read does not return every entity, or proposal_limit_reached.

Approving and committing a revert. It is an ordinary proposal. Approve it with its payloadHash (and "acknowledgeGuard": true when the guard flags it, for example a budget or bid that moves back by more than 25%), then commit it with ads:write. The proposal is made against a fresh read of the live state, and its commit reads Amazon again: if anything it sets moved in between, it ends STALE with proposal_stale and nothing is sent. A person holding ads:write who opens a revert from their own sign-in (the MixShift plugin, a direct sign-in, or the Revert button on the Activity page) can approve it in that same sign-in. A revert an AI connector opened is approved from a different sign-in than the connector session that opened it, and a service credential holding ads:propose can open a revert but never approve one.

Listing content writes (listings:write)

Listing writes use a stronger two-call contract on listings.patch_listings_item, because the content is customer facing and Amazon applies parts of it asynchronously.

Images apply asynchronously, and that changes how you verify. An image value is a list of { marketplace_id, media_location } (no language_tag) where media_location is an https:// or s3:// URL Amazon can reach. Amazon accepts the patch, then fetches your URL and re-hosts the image itself, so a later read returns an m.media-amazon.com URL and never the URL you sent, and a fetch failure appears as a listing issue minutes later rather than in the patch response. Do not verify an image by comparing your URL to what a read returns, because it will never match. Verify that the slot's URL changed and that the listing's issues stayed clean.

ACCEPTED means Amazon accepted the submission for processing. It does not mean the change is published. Confirm publication by reading the listing (listings.get_listings_item with includedData=summaries,attributes,issues) and the shared catalog record (catalog.get_item). This surface deliberately does not poll Amazon on your behalf: your workflow decides how long to wait and what to do next.

A failed write does not always mean nothing happened. This is the part of the contract most worth building around, because getting it wrong duplicates a customer-facing change. Three failure kinds are ambiguous by nature, since none of them proves Amazon rejected your change before applying it: upstream_unavailable (Amazon's own server failed while processing the request), throttled (shed, but a throttle response can arrive after acceptance), and host_unreachable (no response at all, so the request may still have landed). An unclassified transport failure counts as ambiguous too, because the safe reading of "we do not know" is that it might have applied. Every other kind is a definitive Amazon-side rejection, and there "nothing was applied" is safe to assume. On the ambiguous three, verify before you act and never blindly re-send the mutation, or you can apply the same change twice.

You are not left to work that out alone. MixShift auto-retries a read through an Amazon server error and deliberately does not do the same for a write, because that retry is exactly the move that could double-apply. Instead the affected SKU comes back UNCERTAIN rather than failed, and the service performs one read-back against Amazon, comparing what is live now against both the value you asked for and the value it captured before the write, then reports per attribute what it could confirm. Everything confirmed reads back as ACCEPTED; anything it cannot confirm stays UNCERTAIN with a detail that says so; and a change set where some content did land never terminates as though nothing changed, so a partial outcome stays visible.

For text attributes, an inconclusive read-back leaves the change set resumable, and the safe next step is to re-run the commit with the same changeSetId: it re-reads and reconciles the same attempt instead of sending a second one. Image slots settle in that single pass rather than staying open, because Amazon fetches and re-hosts those asynchronously and a later read of the listing is the only real confirmation available. Either way, the rule for your integration is the same: on an ambiguous outcome, read before you write again.

Not yet available from the bundled mixshift CLI: use the REST endpoint or the amazon_spapi_call MCP tool. CLI support is coming.

FBA inbound shipment writes (shipping:write)

The fulfillment_inbound.* write operations build an FBA inbound shipment on Amazon's Fulfillment Inbound 2024-03-20 API, one step at a time, through POST /api/amazon/spapi/call or the amazon_spapi_call MCP tool. Amazon's inbound plan is the only state: each step is its own call, and your integration walks them in Amazon's order (create the plan, generate and confirm packing, set box contents, generate and confirm placement, generate and confirm transportation, labels, tracking).

Each step is audit-logged with the credential that sent it. The operations listing (GET /api/amazon/spapi/operations?family=Fulfillment%20Inbound) documents every body.

Shelf data

What a shopper at a given location sees on Amazon right now, for an ASIN or a keyword: the Buy Box, the whole offer list, the search results page, the product page, a seller's storefront. The data is a public shelf observation supplied by a licensed third-party shelf-data provider through MixShift, on MixShift's own key. It is joined to nothing of yours and never uses your Amazon credentials: an ASIN, a keyword or a seller id is the only input. Scope shelf:read. Beta: every enrolled organization can use it on a monthly discovery allowance; the same calls are the shelf_* MCP tools and the plugin's mixshift shelf commands (say "demo Amazon shelf" in the plugin for a walkthrough).

EndpointWhat it does
POST /api/shelf/buybox{ "asin", "zip"?, "country"?, "fresh"? }. The Buy Box (featured offer) at that location: price, seller and seller id, ships-from, Prime, stock, the delivery promise as text and as days (promise_days_free, promise_days_fastest). MCP tool shelf_get_buybox.
POST /api/shelf/offers{ "asin", "zip"?, ... }. The featured offer plus every other offer on the listing: price (as text and price_num), FBA or merchant-shipped, condition, seller id, promise days per offer. shelf_get_offers.
POST /api/shelf/search{ "query", "surface"?: "desktop" | "mobile", "page"?: 1..5, "zip"?, ... }. The results page as the shopper sees it: every position with rank and absolute_rank, sponsored or organic, price, rating, reviews, "bought in past month", badges, coupon, stock text, delivery promise; sponsored-brand banners; categories, brands, related keywords. Desktop is 60 positions a page, mobile 15 (no review counts). One page is one answer. shelf_search.
POST /api/shelf/product{ "asin", "zip"?, ... }. The product page, parsed: title, bullets, details, images, best-seller ranks, rating, badge, the Buy Box block, "customers say". The answer carries beta: true: a field can be missing on some listings. shelf_get_product.
POST /api/shelf/seller{ "seller_id", "country"?, "fresh"? }. A third-party seller's storefront: name, rating and count, description, the business details Amazon shows. No zip. shelf_get_seller.
GET /api/shelf/zips?country=The shopper locations shelf data can be observed from, per country (us default; ca uk de fr it es in). Free. shelf_list_zips.
GET /api/shelf/rank-history?query=&zip=&surface=&from=&to=&asin=Where your tracked ASINs ranked for a keyword over time: per snapshot and ASIN observed_at, absolute_rank, organic_rank and sponsored_rank (up to 5,000 points; truncated: true when the oldest were cut). Only the keywords, zips and views MixShift tracks for your organization (ask MixShift to add more); name an asin or have ASINs on your tracking set. Free. shelf_get_rank_history.
GET /api/shelf/usageYour organization's allowance for the current month: allowance, used, remaining, resets_at. Free. shelf_get_usage.

Every data answer has one shape: { "ok": true, "kind", "retailer": "amazon", "country", "zip", "subject", "observed_at", "source": "shelf", "data" }. observed_at is when the shelf looked like this: MixShift may answer from a recent observation (within hours for the Buy Box, offers and search; a day for the product page; a week for a seller), and "fresh": true asks for the shelf as of now at the same cost. Use it when the question needs timeliness, for example right after a price change. Nothing in an answer says how it was produced.

The allowance. Every data answer counts one against your organization's monthly shelf allowance, whether or not MixShift had to observe the shelf for it; the zip list and the usage read are free, and unused requests do not roll over. The first month carries a larger discovery allowance, later months a monthly one. When it is used up the call answers 402 shelf_allowance_exhausted with period, allowance, used, resets_at and request_more, which says how to ask for more: from the plugin, say "request more shelf requests" (it sends your organization and period to MixShift), or reply to any MixShift message. MixShift raises it from your organization's settings, with effect this month.

Errors follow the { ok:false, kind, friendly, source, retryable } shape: shelf_not_enabled (403, shelf data is switched off for your organization), shelf_not_enrolled (403, your account has no organization yet; ask MixShift), shelf_allowance_exhausted (402), zip_unavailable (400, the zip is not on the list; it carries available_count), not_tracked (400, the rank-history keyword, zip and view are not tracked for your organization), bad_request (400, refused as sent, for example no such ASIN or seller), invalid_request (400, the body did not pass; nothing was sent), throttled (429, retry after retryAfterMs), upstream_unavailable (502, shelf data is temporarily unavailable; retry in a minute).

Errors and limits

Guide: Limits and guardrails

Failures share one envelope: { "ok": false, "kind": "...", "source": "...", "retryable": ..., "friendly": "...", "message": "..." }. Branch on kind (insufficient_scope, reauth_required, throttled, paced, merchant_not_found, ...), not HTTP status. friendly is a short summary safe to show a user; message carries the specific reason, so read it when you need to fix something. A rejected listing patch, for example, names the SKU, the attribute, the item index, and what was wrong with it.

On the Amazon and Walmart API surfaces (and the MCP tool denials), source answers "whose problem is it" in one word: request (fix your request), account (the account owner acts: scopes, re-authorization, activation), amazon_rejected (Amazon answered no to this specific ask — its verbatim words are under amazon: { status, code, message }), amazon_unavailable (transient; wait and retry) or mixshift (ours; report it). retryable says whether re-sending the SAME call can ever succeed — when it is false, a retry loop cannot terminate. Some envelopes also carry fix: a concrete next step.

On the MCP tools, a failed call carries the envelope as its result text and also sets the MCP result's isError: true, so a client can tell a failure from a success without parsing the text. The text itself is unchanged.

Whose problem is it, and should you retry?

The single most useful thing the envelope tells you is whether the failure is yours, ours, or Amazon's. Retrying the wrong class of failure is the most common way to waste an afternoon, so the status code and the kind are chosen to answer that directly.

You getWhat it meansDo
400 invalid_requestWe rejected your request before it reached Amazon. An operation id not in the catalog, a missing path param, a body where none is taken, a malformed body, or a request Amazon is known to refuse (see what we check before Amazon) (source: "request").Fix the request. The friendly text and fix say exactly what to change; nothing was sent to Amazon. (These used to arrive as 500 unknown.)
400 bad_requestAmazon rejected your request. Your parameters. Carries Amazon's own status and amazon_error_code (InvalidInput, InvalidParameterValue, ...) plus its full response under responsePayload.Fix the request and send it again. Re-sending it unchanged will fail identically every time, so a blind retry loop never terminates. If our own docs led you here, tell us (below).
403 restricted_reportAmazon refused access. Usually a role or restricted-data grant, sometimes an authorization that predates a newer role.Do not retry. Re-authorize the merchant, or use a different operation.
409 reauth_requiredThe merchant's Amazon authorization was lost.Re-connect the account, then retry.
422 merchant_inactiveThe merchant is real and its authorization is fine, but it is not activated for Amazon Ads in MixShift, so Amazon will not serve its campaign data.Do not retry and do not re-authorize. This needs a person to activate the merchant in the MixShift platform. Until then every call against it fails identically, so skip it rather than running the rest of a change set against it.
403 profile_not_authorizedAmazon says the advertising login this merchant is connected through does not have access to it. The MixShift connection itself is working.Do not retry, and re-authorizing will not change it. Check that the advertising login has access to the advertiser in Amazon Ads, or ask us to re-map it.
429 throttledRate limited. Most often the platform answered 429 (Amazon or Walmart; an SP-API 503 lands here too; source: "amazon_unavailable"), or you passed the 240 requests per minute limit on your credential (no source; the friendly text names the limit). Shelf data answers throttled with source: "mixshift", both when its provider throttles and when its own queue is full. A report-creation 429 that says too many reports are already running is a concurrency cap: waiting does not clear it, delete or finish a report first.Back off and retry, and wait retryAfterMs when the body has it. A Retry-After header is set for the credential limit and for operations whose catalog entry says Amazon named a wait, such as change history; do not rely on it elsewhere.
429 pacedOurs, and retryable. The gateway paces SP-API calls per seller to stay inside the limits Amazon sets. When your call would have to wait more than 45 seconds for its turn, it is refused instead of queued (source: "mixshift", retryable: true, retryAfterMs in the body). Nothing was sent to Amazon. This is not an Amazon throttle and is not counted as throttled.Wait retryAfterMs and send the same call again; a retry is safe. A paced answer sets no Retry-After header, so read the body. To avoid it, spread a fan-out across time rather than sending it at once.
502 upstream_unavailable / host_unreachableAmazon's side failed, or we could not reach it. We already retried reads.Retry later. For writes, check whether it applied first: a 5xx does not prove Amazon rejected it before acting.
500 unknownGenuinely unclassified, and now rare. Treat it as ours.Retry once; if it persists, report it.

What we check before Amazon

Requests are checked against Amazon's own published request definitions and against rules measured from Amazon's answers, so a call Amazon would refuse is refused here first, with invalid_request, and nothing is sent to Amazon. The fix names the parameter and, where Amazon's definition lists them, the accepted values. missing_params, conflicting_params and invalid_params carry parameter names, never values.

Enum membership is not checked: Amazon adds values, so a value our copy of the definition does not list still goes to Amazon, and the answer from Amazon is the one you get. The DSP build values listed under DSP writes and DSP ads are the exception.

Before this, an Amazon 400 came back as a 500 — and until the invalid_request split, so did a request we ourselves refused pre-Amazon. If you built retry logic against that, you can simplify it: a 4xx from us now means stop, and a 5xx means it may be worth trying again. Simpler still: branch on retryable, which encodes exactly that decision per kind. merchant_inactive and profile_not_authorized are newer still, and they are a split rather than an addition: until 2026-09-15 an inactive merchant and an unmapped advertiser both arrived as 409 reauth_required, which sent callers into a re-authorize loop that could never succeed. If your integration branches on the status code rather than on kind, these two now land somewhere you may not handle.

Every Amazon API call now goes through one classifier (October 2026). The few differences that remain are Amazon's: a 401 means a refused profile on Ads but a lost grant on SP-API, and SP-API sheds load with 503 where Ads uses it for a server error. Two answers moved as a result. An Amazon server error on the SP-API reports surface is 502 upstream_unavailable (retryable), as it already was on every other surface; it used to arrive as 500 unknown. An Ads 425 (an identical request is already in flight) is 400 bad_request, not 500 unknown; its message still names the report to poll. A throttle from an Amazon API, every SP-API 401 and a reports 403 now also carry Amazon's own status (and its code and words, when it gave any) under amazon.

Reporting an error (and why it is worth your 30 seconds)

If a call fails and our own documentation told you to make it that way, that is a bug on our side, not yours. The operation catalog is hand-maintained: a required parameter Amazon enforces but does not document, a casing rule, a combination that is only valid together. When our notes are wrong, every caller hits the same wall.

We see that a call failed and which operation. We do not see your parameters. So the fastest fix starts with you sending three things:

Send it to support@mixshift.io. Plugin users can run mixshift feedback instead, which attaches the context automatically. A recurring amazon_error_code on one operation is how a documentation gap gets found and fixed, and it usually turns into a catalog note the next caller never trips over.

Questions: support@mixshift.io · build.mixshift.ai