ApparelHub

v0.26.0
io.github.ApparelHub-AI/apparelhub-mcp Checked 1 day ago Published 14 hours ago

Run a custom-merch store from an agent: design, build products, list on every channel, fulfill.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

check_setup_readiness Check account setup

What this account already has, what it still needs, and the single next action to take. Returns ready_to_design / ready_to_fulfill / ready_to_sell, a per-store breakdown, and an ordered next_steps list. Start here for any first-time setup, and call it again after each connection to confirm the state actually changed. Read-only, makes no provider calls, and is safe to poll. [#01f20c]

ParameterTypeDescription
workspacestringWorkspace uuid the store lives in (agency accounts) — use the store's workspace.uuid from list_my_stores. Omit only for single-workspace accounts; omitting it on a multi-workspace account targets th…

list_connectable_providers List connectable providers

Fulfillment providers and sales channels this account may connect, each marked with how it connects: connect_mode "in_chat" means you can complete it here by asking for a credential, "browser" means you must dispatch an authorization link with start_channel_connect and poll. Also returns where the merchant generates the credential, when there is one. Use this before asking a user for anything, so you ask for the right thing. Toolbox POD (a US print shop) connects by browser sign-in only: never ask for a Toolbox POD key. A provider whose `ships_to` lists countries (Toolbox POD: US) can only del…

ParameterTypeDescription
workspacestringWorkspace uuid the store lives in (agency accounts) — use the store's workspace.uuid from list_my_stores. Omit only for single-workspace accounts; omitting it on a multi-workspace account targets th…

connect_fulfillment_provider Connect a fulfillment provider

Connect an API-token fulfillment provider (Printify, Gelato) to a store, entirely in chat. Validates the token first, so a bad token fails before anything is stored. If the token maps to more than one shop the result asks you to pick one and lists them — call again with shop_id set. For Printful and Toolbox POD use start_channel_connect instead: they connect by browser sign-in, and Toolbox POD has no token to paste. Never repeat the token back to the user. [#1be957]

ParameterTypeDescription
api_token *stringThe merchant's provider API token. Get the generation URL from list_connectable_providers (credential_url). Treat as a secret: do not echo it.
provider_uuid *stringProvider uuid (from list_connectable_providers).
store_uuid *stringStore uuid (from list_my_stores or create_store).
shop_idstringWhich shop to connect, when the token maps to several. Omit on the first call.
workspacestringWorkspace uuid the store lives in (agency accounts) — use the store's workspace.uuid from list_my_stores. Omit only for single-workspace accounts; omitting it on a multi-workspace account targets th…

connect_sales_channel Connect a sales channel

Connect an API-key sales channel (WooCommerce, Wix) to a store, entirely in chat. For Shopify and TikTok Shop use start_channel_connect instead: they need a browser. Credentials are write-only and are never returned. [#c9093d]

ParameterTypeDescription
credentials *objectChannel credentials, e.g. WooCommerce { store_url, consumer_key, consumer_secret }; Wix { api_key, site_id }. Treat as secrets: do not echo them.
provider_uuid *stringProvider uuid (from list_connectable_providers).
store_uuid *stringStore uuid (from list_my_stores or create_store).
workspacestringWorkspace uuid the store lives in (agency accounts) — use the store's workspace.uuid from list_my_stores. Omit only for single-workspace accounts; omitting it on a multi-workspace account targets th…

start_channel_connect Start a browser connection

Begin a browser-based connection (Printful, Toolbox POD, Shopify, TikTok Shop, Fourthwall). Toolbox POD: the user signs in to (or creates) their own Toolbox POD account, picks which of their Toolbox POD stores to connect, and approves; they pay Toolbox POD directly, and should set a spending limit on that consent screen, because until purchasing is on with a limit, orders wait for them to pay. After it connects, call check_fulfillment_connection and relay any `fixes` to the user word for word. Shopify additionally requires shop_url, the merchant myshopify domain — ask for it before calling.…

ParameterTypeDescription
kind *stringWhich family this provider belongs to (from list_connectable_providers.family).
provider_uuid *stringProvider uuid (from list_connectable_providers).
callback_urlstringOMIT THIS. The platform fills in the callback registered with the provider, and for Shopify that registered URL is the only one that works — anything else is refused, either by us or by Shopify with…
shop_urlstringRequired for Shopify only: the merchant's myshopify domain, e.g. your-store.myshopify.com. Ask the user for it; it is the domain in their Shopify admin URL, not their custom storefront domain. Omit fo…
store_namestringName for a NEW store. Required, and not blank, when connecting fulfillment without store_uuid. Not used when store_uuid is given.
store_uuidstringStore to attach to. Required for sales_channel. For fulfillment, pass it whenever the account already has a store (see list_my_stores): the provider is connected into that store and no second store is…
workspacestringWorkspace uuid the store lives in (agency accounts) — use the store's workspace.uuid from list_my_stores. Omit only for single-workspace accounts; omitting it on a multi-workspace account targets th…

check_connection_status Check connection status

Poll whether a dispatched connection has completed. Call this repeatedly after start_channel_connect while the user authorizes in their browser, and announce the result when it lands: they cannot see this conversation from the tab they authorized in, so if you do not tell them, nobody does. Read-only, makes no provider call, and is safe to poll every few seconds. connected true means say so and continue setup. connected false means keep waiting. needs_reconnect means retrying will never work and you must dispatch a fresh link with start_channel_connect. [#807361]

ParameterTypeDescription
provider_uuidstringThe provider you are waiting for — pass the same provider_uuid you gave start_channel_connect. REQUIRED in practice when waiting on a sales channel (Shopify, TikTok Shop): without it this answers on…
store_uuidstringNarrow the answer to one store. Omit to get the whole account.
workspacestringWorkspace uuid the store lives in (agency accounts) — use the store's workspace.uuid from list_my_stores. Omit only for single-workspace accounts; omitting it on a multi-workspace account targets th…

check_fulfillment_connection Check a fulfillment provider connection

Live check of one store's fulfillment provider connection: does the credential still work, and is anything on the provider side blocking orders. `healthy` is true (working), false (the merchant must act) or null (could not tell: the provider was throttling or unreachable; do NOT ask the user to reconnect on null). Some providers (Toolbox POD) also return an itemised report: `checks` (token, me, scopes, mode, purchasing, webhook), each with `ok` true, false or null (unknown), and `fixes`, plain sentences telling the merchant exactly what to switch on. Relay every `fixes` entry to the user word…

ParameterTypeDescription
provider_uuid *stringProvider uuid (from list_connectable_providers).
store_uuid *stringStore uuid (from list_my_stores or create_store).
workspacestringWorkspace uuid the store lives in (agency accounts) — use the store's workspace.uuid from list_my_stores. Omit only for single-workspace accounts; omitting it on a multi-workspace account targets th…

list_my_workspaces List workspaces

List the workspaces this account can act in, each with its uuid. Agency / multi-brand accounts have more than one (e.g. a workspace per client); a single account just has Default. The store / product / order / design tools operate on the Default workspace unless you pass workspace=<uuid>. Use this FIRST to resolve a workspace by name (e.g. a client's name) to the uuid those tools need. Read-only. [#358d40]

list_my_stores List stores

List the merchant's ApparelHub stores, each with its fulfillment providers (Printful, Printify, Gelato, Toolbox POD, ...) and connected sales channels (Shopify/WooCommerce/Wix/TikTok Shop). A provider carrying `ships_to` (ISO country codes) can only deliver to those countries. A store carrying `shipping_warnings` sells on a channel that ships to more countries than one of its providers can reach: tell the user each warning's `message`, because orders from those other countries will be held rather than printed. Read-only. [#d47536]

ParameterTypeDescription
workspacestringWorkspace uuid to scope to (agency accounts). Omit for the Default workspace.

list_my_designs List designs

List the merchant's generated design images (newest first). Read-only. Use these design_uuids with the design/product tools. Pass on_products=false to find orphan designs (designs not used by any live product), the supported way to audit a workspace for unused designs before archiving them. Pass archived=true to list already-archived designs. A design with no full_url carries processing_status: "pending"/"processing" means it is still being made and is worth polling, while "failed" means it gave up and processing_error says why. Branch on processing_error_code rather than matching the message…

ParameterTypeDescription
archivedbooleantrue returns archived designs instead of active ones (default false).
limitintegerMax results (default 20).
on_productsbooleanfalse returns only designs NOT used by any live product (orphans, safe to archive). true returns only designs in use. Omit for no filter.
searchstringMatch title/prompt where supported.
sortstringSort order (default newest).
sourcestringFilter by AI source name, e.g. "Nano Banana". Comma-separated for several; case-insensitive. An unrecognised name is rejected with the list of valid sources, so a result set that comes back is genuine…
workspacestringWorkspace uuid (agency accounts).

get_design_collection Get related designs

List the OTHER designs that came out of the same generation as this one. When generate_image is called with concepts > 1, one generation produces a themed set; every design is saved separately and this is how you find its siblings. The design you ask about is never included, and the list is oldest first. An ordinary design returns an empty list, which is the honest answer, not an error (an inaccessible or unknown uuid also reads as empty, so an empty list does not prove the design exists). Read-only and not metered. Each entry carries title and concept_description: the product name and retail…

ParameterTypeDescription
design_uuid *stringAny design from the generation (usually the image_uuid generate_image returned).
workspacestringWorkspace uuid (agency accounts).

list_my_products List products

List the merchant's products with their fulfillment and sales-channel sync status. Each channel entry also carries `health` — what the channel last said about the listing. A channel can remove or deactivate a listing at any time, so check `health`, not just `sync_status`: a product can read 'Synced' historically and still be gone. `ships_to` (ISO country codes) appears on a product whose provider only delivers to some countries; absent means worldwide. Pass store_uuid to scope to one store; omit for all products. Read-only. [#93ce7d]

ParameterTypeDescription
limitinteger
searchstring
statusstring
store_uuidstringScope to one store (omit for all products).
sync_statestring
workspacestring

list_my_orders List orders

List the merchant's recent orders across channels. An order with `fulfilled_by: 'merchant'` is for the merchant's own products (brought in from their sales channel, not made in ApparelHub): their store fulfils it, ApparelHub only records it, and approve / submit / confirm / cancel / hold / record-payment refuse it with `fulfilled_by_merchant`; tell the user to act on it in their store. An order carrying `hold_details` with code 'destination_unsupported' is going to a country its fulfillment provider cannot deliver to: it was not sent for printing and the merchant was not charged. Open it with…

ParameterTypeDescription
fulfilled_bystring'merchant' = orders for the merchant's own products, fulfilled by their store; 'apparelhub' = orders ApparelHub fulfils. Omit for both.
limitinteger
sincestringISO date lower bound where supported.
statusstring
store_uuidstring
workspacestring

get_order_details Get order details

Full detail for one order: line items, payment + fulfillment status, shipments/tracking, and `ship_by_at` (the sales channel's ship-by deadline, UTC) when the channel has one. If `needs_attention` is present the order will not complete on its own; tell the user its `title` and `message`. When its `kind` is `provider_failed`, `reason` is the provider's own words (e.g. "No payment method added") and the order reads `fulfillment_status` cancelled with `status` failed: not an ordinary cancellation. If `recovery_action` is `resubmit_to_fulfillment`, have the merchant fix the cause on their provider…

ParameterTypeDescription
order_uuid *stringThe order uuid (from list_my_orders).
workspacestring

browse_catalog Browse a provider catalog

Browse ONE fulfillment provider's catalog for garments to print on. `category` is resolved against THAT provider's own taxonomy (providers use different vocabularies for the same idea) and an unknown category is rejected with the valid list rather than quietly returning everything. `keyword` matches product names across the whole catalog. ALWAYS read `warnings` in the response: they tell you when your results are narrower than you asked for -- e.g. a category that only exists inside one department. Each garment carries `decoration_method` / `accepts_photoreal` (`accepts_photoreal` absent means…

ParameterTypeDescription
provider *stringThe fulfillment provider to browse, by name (case-insensitive). Must be a provider this account has access to — call list_catalog_providers to see valid values (the set is account-specific). An unre…
categorystringe.g. "t-shirts", "hoodies", "mugs".
has_aopbooleanFilter to all-over-print garments. All-over print is the weakest part of the decoration signal (not every provider declares the technique, so some are recognised by name) and this searches ONE provide…
keywordstring
pageinteger
per_pageinteger
workspacestring

get_garment_details Get garment details

Full detail for one garment: the variant matrix (colors/sizes/costs), print templates, ApparelHub pricing floor, and quality tier. Variant `cost` is the provider's live base cost; read it here every time rather than reusing a number from memory, because provider prices change. `ships_to` (ISO country codes) appears when the garment can only be delivered to some countries; tell the user before building on it if they sell to buyers elsewhere. Toolbox POD garments ship to US addresses only and their shipping is one flat charge per order, not per item, so the cost advantage grows with items per or…

ParameterTypeDescription
product_ref_id *stringThe garment ref id from browse_catalog (a string).
provider *stringThe fulfillment provider to browse, by name (case-insensitive). Must be a provider this account has access to — call list_catalog_providers to see valid values (the set is account-specific). An unre…
workspacestring

find_garments Find garments across providers

Search EVERY fulfillment provider on the account at once for garments matching a capability. USE THIS BEFORE TELLING A USER AN ITEM CANNOT BE BUILT. A capability limit is almost always scoped to one provider, not to the category of garment: one provider carrying only embroidered headwear says nothing about another's printed caps. browse_catalog answers 'what does THIS provider carry'; this answers 'what on this ACCOUNT can take this design'. Provider scope defaults to every provider available — pass `providers` only to deliberately narrow it. Returns a compact ranked shortlist (confirmed cap…

ParameterTypeDescription
accepts_photorealbooleantrue for photographic / gradient-heavy / fine-detail artwork; false to find garments you can embroider. This is the filter that answers "can this design go on this thing".
categorystringGarment kind, e.g. "hat", "t-shirt", "mug". Matched against product names across each provider's whole catalog, including the words providers actually use ("hat" also finds cap / beanie / snapback / t…
decoration_methodarrayAny match qualifies. "print" means a print process the provider does not name more precisely.
include_unknownbooleanKeep garments whose decoration method the provider never published. Default true: unclassified is not the same as unsuitable, and excluding them hides real options.
keywordstringExtra substring match on name/brand.
limitintegerDefault 20.
providersarrayProvider NAMES to restrict to. OMIT to search every provider on the account — that is the default and the recommended usage.
verifybooleanConfirm low-confidence matches with a per-garment lookup. Defaults on when filtering by capability. Bounded, so a very broad search may leave some unverified.
workspacestring

recommend_garment Recommend a garment

Recommend a garment type for a design/use-case, encoding ApparelHub's garment trade-offs (BC 3001 vs Comfort Colors, budget vs premium, pricing floors). Returns a pick + rationale + alternatives. Advisory / knowledge-based. [#66d03b]

ParameterTypeDescription
budget_tierstring
design_uuidstringOptional design for context. Design-content-based ranking is a future enhancement; not required today.
target_audiencestring

list_catalog_providers List catalog providers

List the fulfillment providers this account can browse catalogs from. Use this to discover valid `provider` values for browse_catalog / get_garment_details — the set is account-specific and auth-gated on the platform (a provider only appears if this account is entitled to it), so never assume a fixed list. A provider with `ships_to` (ISO country codes) delivers only to those countries; no `ships_to` means worldwide. Read-only. [#aa3da9]

ParameterTypeDescription
workspacestring

generate_image Generate a design image

Generate a design image (split primitive of design_apparel). The platform decides the background from the prompt and reports it: isolated artwork (a logo, lettering, a character) comes back with its background already removed, while a full scene, poster or all-over pattern is left exactly as written. Read print_ready, background_state and design_intent on the result, and call process_transparency only when the design needs a transparent background and print_ready.applied is not true. Rate-limit errors are classified (model_rate_limited = one model's provider vs platform_rate_limited = this key…

ParameterTypeDescription
prompt *string
augment_prompt_for_transparencybooleanAdd the solid-green-background hint so the background can be keyed out (default true).
auto_keybooleanLeave unset for ordinary work. false sends the prompt exactly as written and removes no background: use it for an all-over or full-bleed design, or when you want the raw image. It also turns off the g…
conceptsintegerHow many distinct design concepts to ask ONE generation for. Leave unset (1) for ordinary work. Raise it when the prompt is a whole brand or collection brief you want to keep (prompt_improvement repor…
no_fallbackbooleanDisable the model-fallback ladder. By default a rate-limited/transient model transparently retries with a different model (see fallback_trail); set true to fail on the chosen source alone.
prompt_improvementstringLeave unset (advisory) for ordinary work. "skip" keeps your exact wording when the prompt names or depicts the product; a background instruction may still be added and the background is still removed…
sizestringOutput shape. 1024x1024 = square; 1024x1792 = tall/portrait (phone cases, posters, banners); 1792x1024 = wide/landscape (mugs, laptop sleeves, wide banners). Pick to match the product's print area —…
sourcestringExplicit model name, or omit to auto-pick (Nano Banana; OpenAI for abstract).
stylestring
workspacestring

process_transparency Remove a design background

Key a solid background out of a generated image to true RGBA transparency (flood-fill + enclosed-region sweep + tight crop) and upload the result. Runs server-side (Python + Pillow). If the generator produced a tinted/muted green instead of pure #00FF00, it auto-recovers by re-keying in green-dominance mode (safe for art with no bright-green/lime elements). Returns a NEW image_uuid plus keying_mode. [#3cd7e7]

ParameterTypeDescription
image_uuid *string
background_modestringHow to detect the background. auto (default): box-key a pure-green screen, else auto-recover in dominance mode for a tinted/muted green. box: strict pure-#00FF00 keying (best for colorful designs with…
forcebooleanBypass the pure-green safety check and box-key anyway. Use only when you have visually confirmed the palette has no colors near the green background.
image_urlstringThe image URL, if known (else resolved from the uuid).
workspacestring

verify_design_text Check spelling in a design

Read the text in a design with local OCR (tesseract) when available, so the agent can confirm spelling. Advisory: pass expected_text to get a match verdict, otherwise the detected text is returned for visual review. has_text is null when OCR is unavailable, meaning UNKNOWN — not "no text"; read the design image yourself in that case. [#57c0af]

ParameterTypeDescription
image_uuid *string
expected_textstring
image_urlstring
workspacestring

design_apparel Design apparel end to end

End-to-end apparel design with the platform lessons baked in: solid-green-background prompt, transparency keying, and (optionally) a local text check. Returns ready-to-use design(s). Streams progress. Set needs_transparency=false for all-over-print products. Rate-limit errors are classified (model_rate_limited = one model's provider vs platform_rate_limited = this key's ApparelHub throttle vs request_not_sent = the call never reached ApparelHub), and each design's fallback_trail shows any model substitutions. This GENERATES new artwork — when the merchant already owns the file (a logo, a bra…

ParameterTypeDescription
prompt *string
countinteger
garment_typestringHints source selection.
needs_transparencyboolean
no_fallbackbooleanDisable the model-fallback ladder. By default a rate-limited/transient model transparently retries with a different model (per-design fallback_trail); set true to fail on the chosen source alone.
sourcestring
stylestring
verify_textboolean
workspacestring

iterate_design Create a design variation

Generate a variation of an existing design via img2img (e.g. "make the cactus blue"). Almost every source supports editing; only Google Imagen 4 is text-to-image-only (rejected). Multi-reference edits (several source images) work on Seedream, Flux 2 Pro, and Wan; slow-model edits return 202 and are polled automatically. [#63592e]

ParameterTypeDescription
change_description *string
source_design_uuid *string
no_fallbackbooleanDisable the model-fallback ladder. By default a rate-limited/transient editing model transparently retries with another edit-capable model (see fallback_trail); set true to fail on the chosen source a…
preservearray
sourcestringEditing source (default Nano Banana).
workspacestring

fit_aspect Fit a design to an aspect ratio

Fit an EXISTING design image to a target aspect ratio without generating a new one. mode="pad" letterboxes it onto a background (keeps the whole design, nothing cropped); mode="crop" center-crops (trims the edges to fill the shape). QUOTA-FREE: this reshapes an existing image and does NOT consume an image-generation credit. Use to adapt a square design to a product's print area (e.g. a tall 9:16 for a phone case or poster, a wide 16:9 for a mug or banner). Returns a NEW design (image uuid + url). Note: for an AI-generated EXTENSION of the borders (outpainting) instead of a flat pad/crop, gener…

ParameterTypeDescription
aspect *Target aspect ratio as "W:H". Common: 9:16 tall (phone cases, posters), 16:9 wide (mugs, banners), 1:1 square, 4:5 portrait.
image_uuid *stringThe uuid of an existing design to reshape (from generate_image / list_my_designs).
mode *stringpad (default): letterbox onto a background, keeping the whole design (nothing lost). crop: center-crop to fill the shape, trimming the edges.
backgroundstringFill color for the padded bars as #RRGGBB (pad mode only; ignored for crop). Defaults to transparent/white on the platform when omitted.
workspacestring

archive_design Archive design

Archive a design so it stops showing in the default gallery listing. Reversible with restore_design, and safe: it never touches products that already use the design. This is the right way to retire an unwanted or orphan design. Prefer it over delete_design unless the design must be removed permanently. Find orphan designs first with list_my_designs(on_products=false). [#16a475]

ParameterTypeDescription
design_uuid *stringThe design uuid to archive.
workspacestringWorkspace uuid (agency accounts).

restore_design Restore design

Restore a previously archived design so it appears in the default gallery listing again. List archived designs with list_my_designs(archived=true). [#f0d74b]

ParameterTypeDescription
design_uuid *stringThe design uuid to restore.
workspacestringWorkspace uuid (agency accounts).

delete_design Delete design

Permanently delete a design and its stored files. Irreversible. Refused with design_in_use if any live product still uses the design, in which case archive_design is the safe alternative. Use archive_design unless the design genuinely must be erased. [#02e216]

ParameterTypeDescription
design_uuid *stringThe design uuid to delete permanently.
workspacestringWorkspace uuid (agency accounts).

upload_design Upload your own artwork

Upload artwork the merchant ALREADY OWNS and turn it into a design_uuid usable by create_product / ship_product. This is the way to build products from a client's own files — a logo, a brand mark, a cleared cover, a photograph — instead of generating something new. If a client says their mark must not be redrawn, use this; never regenerate or approximate a mark to work around a missing file. Three ways to supply the file: 1. `source_url` — an https URL the server can fetch. One call, no context cost, full resolution. Use it whenever the file is hosted or reachable by a link that does no…

ParameterTypeDescription
content_typestringDeclared MIME type. Detected from the file when the bytes are supplied, so it is only needed for the presigned mode (defaults to image/png). Use image/svg+xml to upload vector.
filenamestringOriginal filename. Used for the default title.
image_base64stringBase64-encoded file bytes (a data: URI is accepted). Expensive in context — prefer source_url or the presigned mode. Capped at 4MB decoded.
image_uuidstringFinish a presigned upload: pass the image_uuid from a previous upload_design call after you have PUT the bytes. Also use this to resume polling if processing was still running.
presignedbooleanAsk for a presigned upload_url instead of supplying the file. Only set this if you can PUT the bytes yourself AND call upload_design again with the image_uuid; otherwise the reserved design is left as…
source_urlstringPublic https URL of the artwork. The server fetches it. Must not require sign-in.
titlestringDisplay title for the design. Defaults to the filename stem.
upscalestringHow to resample if the file is below the 512px print minimum. "pixel" = nearest-neighbour, keeps pixel art and hard-edge marks crisp. "smooth" = for photographic art. "auto" (default) detects. Pass "p…
workspacestringWorkspace uuid (agency accounts).

ship_product Design to listed product in one step

End-to-end pipeline in ONE call: take a design, generate + verify a mockup (one per imported color, so every color variant has a matching mockup), create the product with the correct field names, add all variants, associate with a store, sync to fulfillment, then (optionally) sync to sales channels as DRAFT. Handles EMBROIDERY garments automatically WHEN the garment is actually embroidered: routes the design to the real embroidery placement and attaches thread colors (derived from the design, or pass thread_colors). Headwear is NOT inherently embroidered -- some providers carry printed (DTF) c…

ParameterTypeDescription
design_uuid *stringThe design to print. Comes from generate_image / design_apparel, OR from upload_design when the merchant already owns the artwork (a logo, a brand mark, a cleared cover). Never regenerate a mark you w…
garment *object
pricing *object
product_meta *object
variants *array
design_urlstringThe design URL, if known (else resolved).
generate_mockupbooleanDefault true.
print_stylestringHow the design sits on the print face. "fill": recompose onto a matching background and print edge-to-edge (default for face goods like canvas/backpacks/bags/socks/towels/blankets/pillows/cases). "pla…
store_uuidstringOmit to create a standalone (unassociated) product.
sync_to_channelsarray
thread_colorsarrayEMBROIDERY garments only: explicit Printful thread palette colors. Omit to auto-derive from the design (mapped to the fixed 15-color palette).
workspacestring

create_product Create product

Create a STANDALONE product from a design (split primitive) — it is NOT placed on any store yet. Applies the correct field names + pricing floor, routes EMBROIDERY garments (caps/beanies) to their real embroidery placement with Printful thread colors (derived or explicit), and defaults face goods (canvas/backpacks/bags/socks/towels/blankets/pillows/cases...) to print_style "fill" (design recomposed onto a matching background, printed edge-to-edge). Set generate_mockup: true to render a garment mockup as the display image (it auto-derives representative variants from the catalog, so you do NO…

ParameterTypeDescription
design_uuid *stringThe design to print. Comes from generate_image / design_apparel, OR from upload_design when the merchant already owns the artwork (a logo, a brand mark, a cleared cover). Never regenerate a mark you w…
garment *object
pricing *object
product_meta *object
design_urlstring
generate_mockupboolean
mockup_variant_idsarrayRepresentative variant ids for the mockup preview (numeric on Printful/Printify, string productUids on Gelato).
print_stylestringHow the design sits on the print face. "fill": recompose onto a matching background and print edge-to-edge (default for face goods). "placed": transparency preserved (default for apparel and embroider…
thread_colorsarrayEMBROIDERY garments only: explicit Printful thread palette colors. Omit to auto-derive from the design.
workspacestring

add_variants Add variants

Add variants to an existing product (split primitive). Resolves provider_variant_ids by color+size from the product's provider options (or pass them explicitly). Warns on the AQUA-vs-Navy trap. Variants must exist before syncing. [#c9cff4]

ParameterTypeDescription
product_uuid *string
variants *array
product_ref_idstringEnables the AQUA-vs-Navy guard for BC 3001 ("71").
workspacestring

sync_to_fulfillment Sync product to fulfillment provider

Associate a product with a store AND sync it to that store's fulfillment provider (Printful/Printify). This is the REQUIRED step before sync_to_channel: it both puts the product on the store (a product from create_product is standalone) and creates the manufacturing path the sales-channel listing binds to. Run it after the product has variants. [#58f859]

ParameterTypeDescription
product_uuid *string
store_uuid *string
workspacestring

sync_to_channel List product on a sales channel

Sync one product to a sales channel (WooCommerce/Shopify/Wix) as a listing. PREREQUISITE: the product must first be associated with the store AND synced to its fulfillment provider — call sync_to_fulfillment(product_uuid, store_uuid) FIRST (it does the store association too). If that prerequisite is missing, this tool now AUTO-HEALS it (associate + fulfillment-sync, then retries once) instead of failing with "product not associated with store" — but the clean, explicit order is sync_to_fulfillment then sync_to_channel, and ship_product does the whole pipeline in one call. Defaults to DRAFT…

ParameterTypeDescription
integration_uuid *string
product_uuid *string
store_uuid *string
statestring
workspacestring

update_product Update product

Update a product (name, description, price). For a price change that must propagate to synced channels, prefer cascade_price_change. Optionally set tiktok_listing to enrich the TikTok Shop listing (SEO search terms, product highlights, brand, packaging, TikTok-only title/description, and category_id) — applied when the product is synced to a TikTok channel; ignored by other channels. For channel-defined ATTRIBUTES (Material, Style, Washing Instructions...) use set_listing_attributes instead: it validates against the listing category's real schema and tells you which values the channel refuse…

ParameterTypeDescription
changes *object
product_uuid *string
workspacestring

set_product_images Set product images

Set an existing product's listing images: attach an uploaded photo or a generated lifestyle shot, reorder them, and choose the cover. Use this AFTER the product exists — create_product / ship_product pick the initial mockup themselves. ⚠️ THE LIST REPLACES, IT DOES NOT MERGE. What you send becomes the whole gallery, in the order given. To add one image, READ the current list first and send it back with the new entry in it — sending the new entry alone deletes every other image. Pass `images: null` to reset the gallery back to the product's provider mockups. ⚠️ ORDER IS FUNCTIONAL…

ParameterTypeDescription
product_uuid *stringThe product whose listing images to set.
coverstringURL of the image to show as the listing cover. Independent of gallery order. Added to the gallery if it is not already in it.
imagesThe COMPLETE ordered gallery, replacing whatever is there. Null resets to the product's provider mockups. Omit to change only the cover.
workspacestringWorkspace uuid (agency accounts).

generate_listing_image Generate a listing photo

Generate listing photography for an existing product — an on-model shot, a detail crop, a flat lay, or the product in a real setting. HOW IT WORKS: this EDITS the product's own rendered mockup. It is not text-to-image, and that is the point — the photo shows the actual colourway and the actual printed design, so it depicts the product a shopper will receive. ⚠️ A PRODUCT WITH NO MOCKUP IS REFUSED, not silently generated from scratch. A from-scratch product photo invents a product that does not exist and publishes it as photography of one that does — a listing-takedown and chargebac…

ParameterTypeDescription
product_uuid *stringThe product to photograph. Its existing mockup is what gets edited.
style *stringWhich preset to use. `on_model` = worn by a person; `detail` = close crop showing fabric and print texture; `flat_lay` = styled flat, shot from above; `lifestyle` = the product in a real setting. The…
attachbooleanAppend the result to the product's listing gallery (default false). Existing images are kept. Leave false to review the image before it reaches a storefront.
guidancestringOptional extra direction layered on top of the preset (setting, mood, lighting). Truncated at 500 characters by the platform.
set_as_coverbooleanWhen attaching, also make it the listing cover. Ignored unless `attach` is true.
source_image_urlstringWhich of the product's existing listing images to edit. Must be one of them and must not be raw print artwork. Defaults to the product's best mockup — usually leave unset.
workspacestringWorkspace uuid (agency accounts).

unsync_from_channel Remove product from a sales channel

Remove a product from ONE sales channel, leaving every other channel and the fulfillment provider untouched. The product stays in ApparelHub; only that channel listing goes away. Use this to delist from a single channel — do NOT hand-roll it against the raw unsync endpoint: that endpoint is product-level and defaults to detaching fulfillment AND cascading to every channel, so getting the parameters slightly wrong unsyncs far more than you asked for. To remove a product from EVERYTHING, use archive_product instead. [#bd6407]

ParameterTypeDescription
integration_uuid *stringThe sales-channel integration to remove the listing from. Required: without it the platform would cascade to fulfillment and every other channel.
product_uuid *string
store_uuid *string
workspacestring

delete_product Delete product

Delete (default) or archive a product. Hard delete cascades to variants; if the product is synced to channels, unsync it first to avoid orphan listings — unsync_from_channel for one channel, archive_product for all of them. (sync_to_channel cannot unsync; it only syncs.) [#020483]

ParameterTypeDescription
product_uuid *string
archive_onlybooleanDefault false (hard delete).
workspacestring

diagnose_tiktok_listings Diagnose TikTok Shop listings

Diagnose TikTok Shop listing quality and optionally apply TikTok's own recommendations. TikTok grades each listing POOR/FAIR/GOOD and a low grade suppresses reach. Returns, per listing: the current tier, the machine-readable issues behind it (code + how_to_solve + the tier that ONE fix unlocks), and TikTok's recommended search terms / titles / descriptions. READ-ONLY unless you pass `apply`. `apply:['search_terms']` is the safe default action — search terms are hidden listing metadata. Passing 'title' or 'description' replaces merchant-visible copy with machine-generated text, so ask the use…

ParameterTypeDescription
store_uuid *string
applyarrayOmit for a read-only diagnosis. Provide the fields to overwrite with TikTok's recommendations.
dry_runbooleanWith `apply`: report what would change without writing or syncing.
integration_uuidstringOnly needed when the store has more than one connected TikTok Shop integration.
product_uuidsarrayLimit to these products. Omit to cover every listing synced to TikTok.
workspacestring

analyze_what_works Analyze what sells

Surface insights from the merchant's own products + orders: best sellers, top channel, average order value. Read-only. Own-account signal (cross-merchant intelligence is a future feature). [#f6f4f3]

ParameterTypeDescription
scopestring
store_uuidstring
time_windowstring
workspacestring

auto_optimize_listings Optimize listings

Propose (and, with dry_run=false, apply) optimizations across listings. Uses the sales channel's own demand data, so a listing that people SEE but do not buy is flagged for a listing fix rather than archived — that listing is proven demand with broken conversion, and archiving it destroys the best opportunity in the catalogue. Only a listing the channel reports as genuinely inert is ever archived. Where no demand data is available the proposal is "review" and NOTHING is applied. DEFAULTS TO DRY-RUN; applying only ever archives (never deletes, never goes live). [#170c11]

ParameterTypeDescription
dry_runbooleanDefault true — preview only.
scopestring
store_uuidstring
workspacestring

cascade_price_change Change price everywhere

Change a product price once and propagate it: the platform cascades to all variants, and (when store_uuid is given) this re-syncs each connected channel so the price is consistent everywhere. Avoids the "changed on one channel, forgot the others" footgun. [#b8aca8]

ParameterTypeDescription
new_price *number
product_uuid *string
also_update_channelsbooleanDefault true.
store_uuidstringRequired to re-sync channels.
workspacestring

set_prices_by_margin Set prices by target margin

Set each variant's price to hit a target profit margin off its OWN cost: price = cost / (1 - margin). Reads per-variant production cost (populated after the fulfillment sync), applies a per-variant price, then re-syncs connected channels. Use this instead of one flat price when costs tier by size (larger sizes cost more, so a single price gives a different margin per size — and can go negative on the biggest). Requires store_uuid (cost lives on the store-products list, not product detail). [#54cd6b]

ParameterTypeDescription
margin *numberTarget profit margin as a fraction of the selling price, e.g. 0.15 = 15%.
product_uuid *string
store_uuid *stringThe store the product is in — needed to read per-variant cost and to re-sync channels.
also_update_channelsbooleanDefault true.
workspacestring

recover_from_outage Retry failed syncs

Find products in a failed sync state (fulfillment or channel) and, with dry_run=false + a store_uuid, retry the syncs. DEFAULTS TO DRY-RUN (diagnose only). [#57cf54]

ParameterTypeDescription
dry_runbooleanDefault true — diagnose only.
scopestring
store_uuidstring
workspacestring

verify_design_quality Check design print quality

Local QC gate for a design: transparency correctness (alpha, clean corners, white premultiply), resolution, and detected text. Returns a 0-100 score + issues. Needs local Python + Pillow. [#8e74ec]

ParameterTypeDescription
design_uuid *string
image_urlstring
needs_transparencybooleanDefault true; set false for all-over-print.
workspacestring

check_design_compliance Check design for IP and content risk

Advisory pre-flight for IP / trademark / prohibited-content risk. Scans the prompt/name and any detected text against common protected marks. NOT legal advice, and NOT an image-content trademark check. [#fba5cb]

ParameterTypeDescription
design_uuidstring
image_urlstring
namestringThe intended product name (scanned).
promptstringThe prompt that produced the design (scanned for risk terms).
target_channelsarray
workspacestring

verify_mockup_quality Check mockup quality

QC gate for a rendered product MOCKUP (verify_design_quality checks the design; this checks the render on the garment). Deterministically catches three defects that have actually shipped: an un-keyed chroma-green background printed onto the product, an empty render, and a render too small to judge. It does NOT decide whether the design is upright, clipped, seam-split, or whether every face is printed: those need looking at the image, and a pixel statistic that guessed would be confidently wrong on exactly those cases. It returns a fixed visual_checklist for you to answer by VIEWING the render,…

ParameterTypeDescription
preview_url *stringURL of the rendered mockup to grade.

approve_order Approve order

Approve an order that is awaiting approval, releasing it for fulfillment. For sales-channel (webhook) orders this also auto-submits the order to the fulfillment provider (Printful/Printify). ALWAYS check auto_submitted in the result: false means the order is approved but NOT in production, and submit_error says why. Use when an order is held for review and the user wants to let it proceed. [#87b954]

ParameterTypeDescription
order_uuid *stringThe order uuid (from list_my_orders / get_order_details).
workspacestringWorkspace uuid to scope to (agency accounts). Omit for Default.

unapprove_order Unapprove order

Revert an approved order back to pending so it can be reviewed / re-approved. Only works if the order has NOT yet been submitted to the fulfillment provider. Use to undo an approve_order that was done too early. [#1d050e]

ParameterTypeDescription
order_uuid *stringThe order uuid (from list_my_orders / get_order_details).
workspacestringWorkspace uuid to scope to (agency accounts). Omit for Default.

hold_order Hold order

Put an order on hold with an optional reason, pausing it before it is submitted to fulfillment. Use when the user wants to stop an order from proceeding (e.g. to double-check the design or address). Release it later with approve_order. [#9a2fd5]

ParameterTypeDescription
order_uuid *stringThe order uuid to hold.
reasonstringWhy the order is being held (defaults to "Manual hold").
workspacestringWorkspace uuid (agency accounts).

cancel_order Cancel order

Cancel an order. Cancels it locally and, where possible, cancels the draft/order at the fulfillment provider (Printful/Printify). This does NOT refund the customer on the sales channel — the channel is the source of payment. Destructive: only cancel when the user explicitly asks. Toolbox POD: an order the merchant has already paid for is final and usually cannot be cancelled once paid; if the cancel is refused, tell the user to contact Toolbox POD support about that order. An order held because its provider cannot deliver to the address was never sent or charged, so cancelling it is always p…

ParameterTypeDescription
order_uuid *stringThe order uuid (from list_my_orders / get_order_details).
workspacestringWorkspace uuid to scope to (agency accounts). Omit for Default.

confirm_order Confirm order

Confirm a DRAFT order to send it into production at the fulfillment provider. Only works for orders in "draft" status that have already been submitted to a provider (have a provider order id). Use after submit_order_to_fulfillment on a "prepare, then I confirm" store. Toolbox POD: confirming is what PAYS for the order, charged to the card on the merchant's own Toolbox POD account within the spending limit they set when connecting; with no spending limit on, the order waits for the merchant to pay. Once paid it is final (cancellation is usually not possible). If the result carries `hold_details…

ParameterTypeDescription
order_uuid *stringThe order uuid (from list_my_orders / get_order_details).
workspacestringWorkspace uuid to scope to (agency accounts). Omit for Default.

submit_order_to_fulfillment Submit order to fulfillment provider

Manually submit an order to its fulfillment provider (Printful/Printify) as a DRAFT. For sales-channel orders this auto-fetches the recipient from the channel. Use to un-stick a paid order that never got submitted; confirm it afterward with confirm_order if the store requires confirmation. An order going to a country its provider cannot deliver to (see `ships_to`) is refused and stays held with `hold_details` code `destination_unsupported`; resubmitting will not help. Also the recovery for a PROVIDER-FAILED order (`needs_attention.kind` = `provider_failed`, `recovery_action` = `resubmit_to_ful…

ParameterTypeDescription
order_uuid *stringThe order uuid (from list_my_orders / get_order_details).
workspacestringWorkspace uuid to scope to (agency accounts). Omit for Default.

add_order_item Add order item

Add an item (e.g. another variant of the same product) to a DRAFT order, before it is confirmed to production. Optionally set custom_price (the new item's per-unit retail price) and/or shipping_cost (the order-level retail shipping the customer pays — NOT the provider's cost); omit them and the variant price / existing shipping are kept. Only works while the order is in "draft" status. Printful and Gelato edit the existing provider draft IN PLACE; Printify has no edit API, so it CANCELS + RE-CREATES the order — the result then carries edit_method="recreated" and a new fulfillment_external_…

ParameterTypeDescription
order_uuid *stringThe DRAFT order uuid (from list_my_orders / get_order_details).
variant_uuid *stringThe product variant to add (e.g. another color/size of the same product).
custom_pricenumberPer-unit retail price for the new item. Omit to use the variant's own price.
quantityintegerQuantity to add (default 1).
shipping_costnumberOrder-level retail shipping price (what the customer pays, not the provider cost). Omit to keep the order's current shipping.
workspacestringWorkspace uuid (agency accounts). Omit for Default.

remove_order_item Remove order item

Remove a line item from a DRAFT order (the order must keep at least one item). Same provider semantics as add_order_item: Printful/Gelato edit in place, Printify cancels + re-creates. Only works while the order is a draft. Get the order_item_id from get_order_details (each item carries an id). [#b20b6e]

ParameterTypeDescription
order_item_id *integerThe order item id to remove (from get_order_details items[].id).
order_uuid *stringThe DRAFT order uuid.
workspacestringWorkspace uuid (agency accounts).

check_order_status Refresh order status

Poll the fulfillment provider for the latest status of an order and update it locally (including any design-approval holds). Read-mostly refresh, safe to call repeatedly. Use to see whether an order has shipped or is on hold at the provider. A result with `status` `cancelled` and `provider_status` `failed` is a PROVIDER-FAILED order: terminal on its own and no longer polled, but recoverable. Do not keep polling it; call get_order_details and read `needs_attention` (`reason`, `recovery_action`), then follow its guidance (fix the cause on the provider account, resubmit the SAME order with submit…

ParameterTypeDescription
order_uuid *stringThe order uuid (from list_my_orders / get_order_details).
workspacestringWorkspace uuid to scope to (agency accounts). Omit for Default.

reconcile_order Reconcile order with its channel

Reconcile a sales-channel order with the channel it came from: pull payment / cancellation FROM the channel and push fulfillment status + tracking TO it. Only sales-channel orders can be reconciled (native orders return reconcilable=false). Use to re-sync an order that drifted (e.g. tracking not relayed to the storefront). [#ac6b88]

ParameterTypeDescription
order_uuid *stringThe order uuid (from list_my_orders / get_order_details).
workspacestringWorkspace uuid to scope to (agency accounts). Omit for Default.

reroute_order Move a held order to a provider that ships there

Move an order that is held because its fulfillment provider cannot deliver to the address (get_order_details shows `hold_details.code` `destination_unsupported`) to the same design on a provider that ships there. Pass the product_uuid from `hold_details.suggested_reroute.product_uuid`; use a different product only if the user names it. The platform creates the order in the store that sells that product, sends it there as a draft, and closes the held original; the storefront link and tracking move with it. Allowed only when the target product's store is connected to the SAME storefront the orde…

ParameterTypeDescription
order_uuid *stringThe held order uuid (from list_my_orders / get_order_details).
product_uuid *stringThe product to fulfill the order with: hold_details.suggested_reroute.product_uuid, unless the user names another product with the same design.
workspacestringWorkspace uuid (agency accounts).

list_order_holds List design-approval holds

List the design-approval holds on an order (active and released). Set refresh=true to also poll the fulfillment provider for newly-discovered holds. Read-only. Use to see why an order is stuck at the provider and get the hold_uuid for approve_order_hold / request_hold_changes. [#2c7422]

ParameterTypeDescription
order_uuid *stringThe order uuid to list holds for.
refreshbooleanAlso poll the provider for new holds (default false).
workspacestringWorkspace uuid (agency accounts).

approve_order_hold Approve a design-approval hold

Approve a design-approval hold on an order so the provider can proceed. If the provider can't flip the hold via its API (Printful today), the result is deferred with a dashboard_url to finish the approval manually — the hold stays active until the provider's release fires. Get the hold_uuid from list_order_holds. [#7b5295]

ParameterTypeDescription
hold_uuid *stringThe hold uuid (from list_order_holds).
order_uuid *stringThe order uuid the hold belongs to.
workspacestringWorkspace uuid (agency accounts).

request_hold_changes Request changes on a held order

Request design changes on a held shipment instead of approving it. change_kind is 'minor' (notes REQUIRED — describe the edit) or 'full_replacement' (re-do the design). If the provider can't action it via API (Printful today), the result is deferred with a dashboard_url. Get the hold_uuid from list_order_holds. [#acd99f]

ParameterTypeDescription
change_kind *string'minor' = tweak the current design (notes required); 'full_replacement' = new design.
hold_uuid *stringThe hold uuid (from list_order_holds).
order_uuid *stringThe order uuid the hold belongs to.
notesstringWhat to change. Required when change_kind='minor'.
workspacestringWorkspace uuid (agency accounts).

report_fulfillment_issue Report a fulfillment issue

Report a post-sale fulfillment issue (defect) on an order: the item does not match the approved mockup, poor print quality, damaged in transit, wrong/missing item, late or lost. Creates a tracked issue and computes the provider report window (30 days from delivery). Follow up with check_fulfillment_issue for the provider-ready problem report and resolve_fulfillment_issue to file/close it or create a replacement order. [#dc88bc]

ParameterTypeDescription
category *stringWhat went wrong (e.g. mockup_mismatch = print does not match the approved mockup).
description *stringWhat happened, in the words the provider report should carry.
order_uuid *stringThe order the issue is on (from list_my_orders / get_order_details).
itemsarrayThe affected line items. Omit to report the issue against the order as a whole.
resolution_requestedstringWhat to ask the provider for (default 'reprint'). Providers typically resolve as a free reprint or a wallet refund.
shipment_refstringThe shipment reference the issue belongs to (multi-shipment orders).
titlestringShort title (defaults to the category label).
workspacestringWorkspace uuid to scope to (agency accounts). Omit for the Default workspace.

list_fulfillment_issues List fulfillment issues

List fulfillment issues. With order_uuid: that order's issues plus its report-window eligibility. Without: the workspace-wide issues inbox, filterable by status ('open_any' = open + filed upstream) and store, with limit/offset paging. Read-only. [#533758]

ParameterTypeDescription
limitintegerInbox page size (default 50).
offsetintegerInbox page offset.
order_uuidstringScope to one order (the inbox filters below apply only without it).
statusstringInbox filter; 'open_any' = open + submitted_upstream.
storestringInbox filter: a store uuid.
workspacestringWorkspace uuid to scope to (agency accounts). Omit for the Default workspace.

check_fulfillment_issue Get a fulfillment issue

Fetch one fulfillment issue in full (affected items, evidence attachments, provider claim tracking, resolution) and, by default, the provider-ready problem report: a copy-paste summary_text plus the provider dashboard deep-link where the report must be filed (Printful/Printify accept problem reports only in their own dashboards). Read-only. [#2f6bdb]

ParameterTypeDescription
issue_uuid *stringThe issue uuid (from list_fulfillment_issues).
include_reportbooleanAlso build the provider-ready problem report (default true).
workspacestringWorkspace uuid to scope to (agency accounts). Omit for the Default workspace.

resolve_fulfillment_issue Update a fulfillment issue

Progress a fulfillment issue. action='submit_upstream' records that the problem report was filed with the provider (optionally with their claim reference) and returns the dashboard link + summary. action='resolve' closes it with a resolution_type (reprint, refund_wallet, refund_customer, replacement_order, other, none). action='create_replacement' builds a one-click zero-charge replacement (reship) draft order from the affected items; if it cannot be built automatically (no recipient on the provider record, an unlinked variant, or a replacement already exists) the error says what to do instead…

ParameterTypeDescription
action *stringWhich lifecycle step to take.
issue_uuid *stringThe issue uuid (from list_fulfillment_issues).
notesstringResolution notes (for action='resolve').
provider_claim_refstringThe provider's claim/case reference (for action='submit_upstream').
resolution_typestringHow the issue was resolved. REQUIRED when action='resolve'.
workspacestringWorkspace uuid to scope to (agency accounts). Omit for the Default workspace.

analytics_summary Analytics summary

Headline order/merch KPIs for a date range (gross revenue, orders, units, AOV, COGS, gross profit, margin, cancel/refund/hold rates, fulfillment velocity) plus prior-period deltas. Defaults to the last 30 days. Requires an Advanced Analytics plan (Professional or Enterprise). Read-only. [#6b72a2]

ParameterTypeDescription
currencystringReporting currency (e.g. "USD"). Currencies are segmented, never summed.
endstringEnd date (YYYY-MM-DD). Omit to default to today (UTC).
startstringStart date (YYYY-MM-DD). Omit to default to 30 days before end.
storestringStore uuid to narrow to one store. Omit for all accessible stores.
workspacestringWorkspace uuid to scope to (agency accounts). Omit for the Default workspace.

analytics_timeseries Analytics trend over time

KPI trend series over a date range, bucketed by day, week, or month (zero-filled). Each bucket carries gross revenue, gross profit, COGS, order count, units, AOV, average margin, and margin coverage. Requires an Advanced Analytics plan. Read-only. [#48246d]

ParameterTypeDescription
currencystringReporting currency (e.g. "USD"). Currencies are segmented, never summed.
endstringEnd date (YYYY-MM-DD). Omit to default to today (UTC).
intervalstringBucket granularity (default day).
startstringStart date (YYYY-MM-DD). Omit to default to 30 days before end.
storestringStore uuid to narrow to one store. Omit for all accessible stores.
workspacestringWorkspace uuid to scope to (agency accounts). Omit for the Default workspace.

analytics_breakdown Analytics breakdown

Aggregate KPIs broken down by one dimension: product_type, sales_channel, fulfillment_provider, product, variant, or hold_reason. Rows are sorted for display; overflow past the limit folds into an "(everything else)" row so totals still reconcile. Requires an Advanced Analytics plan. Read-only. [#127113]

ParameterTypeDescription
dimension *stringThe dimension to break down by (required).
currencystringReporting currency (e.g. "USD"). Currencies are segmented, never summed.
endstringEnd date (YYYY-MM-DD). Omit to default to today (UTC).
limitintegerMax rows before folding the rest into "(everything else)" (default 50).
startstringStart date (YYYY-MM-DD). Omit to default to 30 days before end.
storestringStore uuid to narrow to one store. Omit for all accessible stores.
workspacestringWorkspace uuid to scope to (agency accounts). Omit for the Default workspace.

analytics_ops Operations analytics

Operational health for a date range: fulfillment velocity (payment→submit→ship→deliver averages), order counts, and cancellation / refund / hold rates, plus a hold-reason breakdown. Requires an Advanced Analytics plan. Read-only. [#ed8ddd]

ParameterTypeDescription
currencystringReporting currency (e.g. "USD"). Currencies are segmented, never summed.
endstringEnd date (YYYY-MM-DD). Omit to default to today (UTC).
startstringStart date (YYYY-MM-DD). Omit to default to 30 days before end.
storestringStore uuid to narrow to one store. Omit for all accessible stores.
workspacestringWorkspace uuid to scope to (agency accounts). Omit for the Default workspace.

analytics_portfolio Portfolio analytics (all clients)

Cross-client portfolio: per-workspace (per-client) KPIs plus rolled-up totals — the agency view. Groups store rollups by each store's current workspace over every workspace you can view analytics in. Requires an agency (Enterprise) account with Advanced Analytics; other accounts get a feature_unavailable error. Read-only. [#65a008]

ParameterTypeDescription
currencystringReporting currency (e.g. "USD"). Currencies are segmented, never summed.
endstringEnd date (YYYY-MM-DD). Omit to default to today (UTC).
startstringStart date (YYYY-MM-DD). Omit to default to 30 days before end.
workspacestringWorkspace uuid to scope to (agency accounts). Omit for the Default workspace.

describe_listing_attributes Describe listing attributes

Discover the channel-defined listing fields you can set — TikTok product attributes, eBay item specifics, WooCommerce product attributes — and what is currently set. READ-ONLY. Call this BEFORE set_listing_attributes or set_channel_settings: the field names and their allowed values are defined by the channel, so guessing them gets the value dropped. Pass `product_uuid` for one listing, or `integration_uuid` alone for the shop-wide settings (compliance answers, the shipping template, and a fallback size chart). BRAND and the per-listing SIZE CHART are per-PRODUCT, not shop-wide — both d…

ParameterTypeDescription
store_uuid *string
include_valuesstring'all', or a comma-separated list of field keys, to inline allowed values that are elided by default.
integration_uuidstringWhich connected sales channel. Required when `product_uuid` is omitted; otherwise only needed if the store has more than one channel connected.
product_uuidstringThe listing to inspect. Omit for the shop-wide settings.
workspacestring

set_listing_attributes Set listing attributes

Set channel-defined listing attributes on ONE product (Material, Style, Washing Instructions and similar). Call describe_listing_attributes first to learn the field keys and their allowed values. A PARTIAL WRITE SUCCEEDS. Send four values with one bad and the three good ones are stored while the bad one is reported — you do not have to get them all right at once. A value the channel refuses comes back in `rejected` with a machine-readable `reason` and the allowed values echoed, so you can correct it in one more turn rather than guessing. Rejections are never dropped silently. ⛔ NEVER INV…

ParameterTypeDescription
product_uuid *string
store_uuid *string
values *objectfield key -> value. Use an array for a field whose `cardinality` is "multi", and an object for one whose `value_type` is "object" (build it from that field's `channel_ref.object_schema`). Values are r…
integration_uuidstringOnly needed when the store has more than one connected channel.
removearrayField keys to clear.
syncbooleanPush the listing to the channel immediately after storing.
workspacestring

set_channel_settings Set sales channel settings

Set SHOP-WIDE listing settings for one connected sales channel: product compliance attestations, the shipping template, and a fallback size chart. These apply to every listing on that channel, so they are set once rather than per product. Call describe_listing_attributes with `integration_uuid` (and no `product_uuid`) first to see which settings this channel defines and what each one accepts. ⚠️ BRAND and the per-listing SIZE CHART are NOT here — they are per-product (use set_listing_attributes), because both describe the blank rather than the shop. `default_size_measurements` is the on…

ParameterTypeDescription
integration_uuid *string
store_uuid *string
values *objectsetting key -> value, exactly as the merchant supplied it. Use an object for a setting whose `value_type` is "object".
removearraySetting keys to clear.
workspacestring

import_size_measurements Get garment size measurements

Get the blank's real per-size measurements from its fulfillment provider, in the exact shape `size_chart_measurements` takes. READ-ONLY. Use this instead of asking a merchant to type a size chart, and never instead of asking them when it comes back unavailable. It imports nothing by itself — adopting a set of measurements is the merchant's decision. Show them the table, let them correct it, then write it back with set_listing_attributes as `size_chart_measurements`. `available: false` is an ANSWER, not a failure. Branch on `reason`: • `provider_publishes_no_size_guide` — this provider…

ParameterTypeDescription
product_uuid *string
store_uuid *string
workspacestring

channel_performance Sales channel listing performance

What the sales channel reports about each of your listings: impressions, clicks, click-through rate and units sold, plus a state telling you what to do about it. Use this to find listings people SEE but do not BUY — the order-based analytics tools cannot show you those, because to them a listing with 5,000 views and no sales looks identical to one nobody has ever seen. States: winner (scale it), conversion_blocked (lots of views, few clicks — the listing card is losing them), pdp_blocked (they click but do not buy — the product page is losing them), starved (too few views to judge; needs…

ParameterTypeDescription
endstringEnd date (YYYY-MM-DD), channel-local. Defaults to yesterday.
limitintegerCap listings returned.
providerstringOnly listings from this sales channel, by name (e.g. "TikTok Shop"). Case-insensitive. channels_present lists the channels that actually have data.
startstringStart date (YYYY-MM-DD), in the sales channel's own local dates. Defaults to 28 days back.
statestringFilter to one state, e.g. "conversion_blocked" to list only proven-demand listings that are failing to convert.
storestringOnly listings from this store uuid.
workspacestringWorkspace uuid to scope to (agency accounts). Omit for the Default workspace.

channel_opportunities Listings losing the most demand

The listings wasting the most demand: proven traffic, broken conversion, ranked by how many people saw them and did not buy. This is the natural starting point for an optimisation pass — fix these before touching anything else, because the demand is already there and only the listing is in the way. Also returns per-state counts and, separately, the listings that are genuinely inert (state "dead") and therefore safe to archive. Nothing else is safe to archive. READ `shop` BEFORE acting on anything else here. If the shop as a whole is getting almost no views, safe_to_archive will be empty and…

ParameterTypeDescription
endstringEnd date (YYYY-MM-DD), channel-local. Defaults to yesterday.
providerstringNarrow to one sales channel, by name.
startstringStart date (YYYY-MM-DD), in the sales channel's own local dates. Defaults to 28 days back.
storestringNarrow to one store uuid.
workspacestringWorkspace uuid to scope to (agency accounts). Omit for the Default workspace.

channel_coverage Sales channel reporting coverage

Which of your connected sales channels report performance data, and which metrics each one supplies. Check this before concluding a listing has no traffic: a channel that reports nothing looks identical to a channel reporting zeros unless you look here. Also flags shops that must be RECONNECTED before performance data can flow. Read-only. [#df2820]

ParameterTypeDescription
workspacestringWorkspace uuid to scope to.

listing_changes Listing change history

What has been changed on your listings, and whether it worked. The other half of channel_performance: that says what to fix, this says whether the last fix landed. Every shopper-visible change — title, description, images, price, search terms, variants, availability — is recorded automatically when it is made, along with the signal state that prompted it. Once the channel has finalised enough days either side, a verdict is computed on the ONE metric that change should have moved (a title is judged on click-through, not revenue). ⛔ `unmeasurable` IS THE DEFAULT VERDICT, NOT AN ERROR, an…

ParameterTypeDescription
daysintegerHow far back to look. Default 90.
kindstringLimit to one kind of change, e.g. "title" or "price".
productstringLimit to one product uuid — that listing's change history.
storestringLimit to one store uuid.
verdictstringLimit to one verdict, e.g. "improved" or "worsened".
workspacestringWorkspace uuid to scope to.

import_channel_catalog Import a sales channel catalog

Bring the products a merchant ALREADY sells on a connected sales channel into ApparelHub as TRACKED listings, so you can see their whole catalog, not just what ApparelHub made. Use it when an established seller wants to see or manage what they already sell. READ-ONLY against the channel: nothing is written to the merchant's store, and those products keep being fulfilled exactly as they are today (ApparelHub never fulfils them). Tell the merchant both of those things before you start. Listings ApparelHub created are recognised and linked to their product, not duplicated. Images stay the channel…

ParameterTypeDescription
integration_uuid *stringThe sales channel's integration uuid (list_my_stores -> ecommerce_integrations).
store_uuid *stringThe store uuid (from list_my_stores).
workspacestringWorkspace uuid (agency accounts). Omit for the Default workspace.

get_catalog_import_run Check catalog import progress

Progress of a catalog import started with import_channel_catalog. status is queued, running, completed or failed, with counts: pages read, listings seen, created, updated, ours (listings ApparelHub made, linked to their product), removed (left the channel since the last import) and images_fetched. A failed run states `error`; what was read before it stopped is kept and nothing is marked removed on a partial pass. Poll every few seconds while queued/running. Read-only. [#f0059c]

ParameterTypeDescription
run_uuid *stringThe run uuid import_channel_catalog returned.
store_uuid *stringThe store uuid the import was started on.
workspacestringWorkspace uuid (agency accounts). Omit for the Default workspace.

list_tracked_listings List tracked listings

The listings imported from a store's sales channels with import_channel_catalog, plus each channel's import state (catalog_read, last_run, and shop_last_run: the shop's latest import across every store connected to it; offer an import only when THAT is null). Each listing is the channel's view: title, description, price, currency, channel_status (live/draft/archived/unknown), SKUs, variants and the channel's own image_url. made_in_apparelhub + product_uuid mark a listing ApparelHub created. scope "external" returns only the merchant's own listings (what they sold before ApparelHub), "ours" onl…

ParameterTypeDescription
store_uuid *stringThe store uuid (from list_my_stores).
include_removedbooleanAlso return listings that have left the channel (removed_at set). Default false.
integrationstringLimit to one sales channel (its integration uuid).
limitintegerPage size, 1-500. Default 100.
offsetintegerRows to skip. Default 0.
scopestring"external" = only listings ApparelHub did not create; "ours" = only ones it did. Default all.
workspacestringWorkspace uuid (agency accounts). Omit for the Default workspace.

bind_tracked_listing Fulfill a tracked listing through ApparelHub

Make a tracked listing (a product the merchant already sells on their channel that ApparelHub did not make) FULFILLABLE by binding it to an ApparelHub product, so ApparelHub sends that listing's orders to the product's fulfillment provider as ordinary orders. Build the product first the normal way (their artwork on one of our blanks, variants added, synced to fulfillment), in the same store. The merchant's channel listing is NOT changed, and while bound the product cannot be synced to that channel (it would duplicate their listing). Tell the merchant both things. Every variant on the listing m…

ParameterTypeDescription
listing_uuid *stringThe tracked listing uuid (list_tracked_listings).
product_uuid *stringThe ApparelHub product that will fulfil it (same store).
store_uuid *stringThe store uuid.
variant_mapobjectChannel variant id -> ApparelHub variant uuid, for options that do not auto-match. A listing with no variants is keyed by its own external_id.
workspacestringWorkspace uuid (agency accounts). Omit for the Default workspace.

unbind_tracked_listing Stop fulfilling a tracked listing

Undo bind_tracked_listing. The listing is tracked again and its new orders are recorded as fulfilled by the merchant's own store (fulfilled_by: 'merchant'), not sent to a provider. Orders already submitted are not affected. Nothing changes on the channel. [#049adb]

ParameterTypeDescription
listing_uuid *stringThe bound listing uuid.
store_uuid *stringThe store uuid.
workspacestringWorkspace uuid (agency accounts). Omit for the Default workspace.

where_its_listed Where every product is listed

Where every product is listed, by storefront, across all of the merchant's stores and (by default) all of their workspaces. One table: `storefronts` are the real shops (provider + shop) with every ApparelHub store connected to each and the shop's `admin_url`; `rows` are products ApparelHub made (`kind: product`, one row however many stores hold it) and the merchant's own channel listings (`kind: tracked`, one row per shop), each with created_at / updated_at / synced_at / listed_at, `ordered` + `last_ordered_at` (a yes/no from non-cancelled orders; counts and revenue are on the analytics tools)…

ParameterTypeDescription
all_workspacesbooleanDefault true: every workspace you can reach. false = one workspace (see `workspace`).
dirstringDefault asc.
filterstring"nowhere" = listed on no storefront; "failed" = a failed sync somewhere; "external" = only the merchant's own channel listings; "ordered" = ordered at least once. Default all.
fulfillment_providerstringOnly products made with this fulfillment provider (a uuid from `fulfillment_providers` in the response), plus channel listings bound to one. An unknown uuid returns no rows.
groupstring"workspace": rows come back grouped by their first store's workspace, each carrying `workspace`.
limitintegerRows per page, 1-1000. Default 200.
listed_afterstringYYYY-MM-DD. Only rows that last went live on a sales channel on or after this UTC day. A row never listed matches neither bound.
listed_beforestringYYYY-MM-DD. Only rows that last went live on a sales channel on or before this UTC day (inclusive).
offsetintegerRows to skip. Default 0.
providerstringOnly storefronts on this sales channel, by name (e.g. "WooCommerce", "TikTok Shop").
qstringProduct name contains this text.
sortstringRow order. listed_at = last time it went live on a shop; synced_at = last sync to its fulfillment provider; last_ordered_at = latest non-cancelled order. Rows without the value come last either way. D…
storestringOnly this store uuid and the storefronts it is connected to.
synced_afterstringYYYY-MM-DD. Only rows synced with their fulfillment provider on or after this UTC day. A row never synced matches neither bound.
synced_beforestringYYYY-MM-DD. Only rows synced with their fulfillment provider on or before this UTC day (inclusive).
workspacestringWorkspace uuid. Only used with all_workspaces=false. Omit to see every workspace you can reach.

list_collections List collections

List a store's product collections (categories/groups), each with its product count and per-channel sync status. Read-only. [#1d7020]

ParameterTypeDescription
store_uuid *string
workspacestring

get_collection Get collection

Get a single collection by uuid, including its member products and per-channel sync status. Read-only. [#71cbae]

ParameterTypeDescription
collection_uuid *string
store_uuid *string
workspacestring

create_collection Create collection

Create a new (empty) collection in a store. Provide a name (sent to the platform as the collection title) and an optional description. Add products with add_products_to_collection, then sync_collection to push it to a sales channel. [#ff2c5e]

ParameterTypeDescription
name *string
store_uuid *string
descriptionstring
workspacestring

update_collection Update collection

Update a collection's name and/or description. A name change is sent to the platform as the collection title. Editing a synced collection marks it for re-sync. [#1d73cf]

ParameterTypeDescription
collection_uuid *string
store_uuid *string
descriptionstring
namestring
workspacestring

delete_collection Delete collection

Delete a collection. If it is synced to any sales channel, the platform unsyncs it there first. The member products are NOT deleted, only the grouping. [#afdbfe]

ParameterTypeDescription
collection_uuid *string
store_uuid *string
workspacestring

add_products_to_collection Add products to collection

Add one or more products (by uuid) to a collection. The products must already be associated with the store. If the collection is synced to a channel, the products are added there too. [#e8080a]

ParameterTypeDescription
collection_uuid *string
product_uuids *array
store_uuid *string
workspacestring

remove_product_from_collection Remove product from collection

Remove a single product from a collection (the product itself is not deleted). If the collection is synced to a channel, the product is removed there too. [#c2fc5a]

ParameterTypeDescription
collection_uuid *string
product_uuid *string
store_uuid *string
workspacestring

sync_collection Sync collection

Sync a collection to a sales channel (creates/updates the channel-side category and places all products in it that are already synced there). integration_uuid selects which channel; not all channels support collections (e.g. TikTok Shop), which returns a clear "collections_unsupported" error. [#7f246a]

ParameterTypeDescription
collection_uuid *string
integration_uuid *stringThe sales-channel integration to sync this collection to (required by the platform).
store_uuid *string
workspacestring

copy_product_to_workspace Copy product to workspace

Copy a product into another workspace (agency accounts). Non-destructive: the original is untouched and the copy lands as an unsynced DRAFT (no store mapping, fresh variants). Use list_my_workspaces to get the destination workspace uuid. If the product lives in a non-Default workspace, pass source_workspace too. [#d046a8]

ParameterTypeDescription
destination_workspace *stringDestination workspace uuid to copy/move into. Get it from list_my_workspaces (resolve a client/brand name to its uuid).
product_uuid *stringThe product to transfer.
source_workspacestringThe workspace the asset currently lives in. Omit only if it is in your Default workspace; otherwise you must pass it (the platform scopes reads to a single workspace).

move_product_to_workspace Move product to workspace

Move a product to another workspace (agency accounts) by re-stamping its workspace. Fails with a 409 (blocking list) if the product is mapped to a store or has orders — copy it instead in that case (check first with check_product_move). Use list_my_workspaces for the destination uuid; pass source_workspace if the product is not in your Default workspace. [#f36e77]

ParameterTypeDescription
destination_workspace *stringDestination workspace uuid to copy/move into. Get it from list_my_workspaces (resolve a client/brand name to its uuid).
product_uuid *stringThe product to transfer.
source_workspacestringThe workspace the asset currently lives in. Omit only if it is in your Default workspace; otherwise you must pass it (the platform scopes reads to a single workspace).

check_product_move Check whether a product can move

Dry run: report whether a product can be MOVED to another workspace, without changing anything. Returns {eligible, blockers} — a non-empty blockers list (e.g. asset_in_use, asset_has_orders, forbidden_source/destination) means move would fail, so copy instead. Read-only. [#81f916]

ParameterTypeDescription
destination_workspace *stringDestination workspace uuid (from list_my_workspaces).
product_uuid *stringThe product to check.
source_workspacestringThe product's current workspace uuid; omit only if it is in your Default workspace.

copy_design_to_workspace Copy design to workspace

Copy a generated design image into another workspace (agency accounts). Non-destructive: the original stays put and the copy gets its own duplicated image file. Use list_my_workspaces for the destination uuid; pass source_workspace if the design is not in your Default workspace. [#3090dc]

ParameterTypeDescription
design_uuid *stringThe design to transfer.
destination_workspace *stringDestination workspace uuid to copy/move into. Get it from list_my_workspaces (resolve a client/brand name to its uuid).
source_workspacestringThe workspace the asset currently lives in. Omit only if it is in your Default workspace; otherwise you must pass it (the platform scopes reads to a single workspace).

move_design_to_workspace Move design to workspace

Move a generated design image to another workspace (agency accounts). Fails with a 409 (blocking list) if a product that uses the design is mapped to a store or has orders — copy it instead in that case (check first with check_design_move). Use list_my_workspaces for the destination uuid; pass source_workspace if the design is not in your Default workspace. [#8b8b8a]

ParameterTypeDescription
design_uuid *stringThe design to transfer.
destination_workspace *stringDestination workspace uuid to copy/move into. Get it from list_my_workspaces (resolve a client/brand name to its uuid).
source_workspacestringThe workspace the asset currently lives in. Omit only if it is in your Default workspace; otherwise you must pass it (the platform scopes reads to a single workspace).

check_design_move Check whether a design can move

Dry run: report whether a generated design can be MOVED to another workspace, without changing anything. Returns {eligible, blockers} — a non-empty blockers list (a product using the design is in use, or forbidden_source/destination) means move would fail, so copy instead. Read-only. [#1e988c]

ParameterTypeDescription
design_uuid *stringThe design to check.
destination_workspace *stringDestination workspace uuid (from list_my_workspaces).
source_workspacestringThe design's current workspace uuid; omit only if it is in your Default workspace.

create_workspace Create workspace

Create a new workspace in the account (agency / Enterprise). Name must be unique within the account. Needs an account-wide key; a tier without the agency feature gets feature_unavailable. Returns the new workspace uuid. [#51f6a7]

ParameterTypeDescription
name *stringWorkspace name (unique within the account, max 128 chars).

update_workspace Update workspace

Rename a workspace or archive/unarchive it (agency / Enterprise). The Default workspace cannot be archived. Needs an account-wide key. [#e8ebf4]

ParameterTypeDescription
workspace_uuid *stringWorkspace uuid (from list_my_workspaces).
archivedbooleanArchive (true) or unarchive (false). Ignored for the Default workspace.
namestringNew name (max 128 chars).

check_workspace_deletion Preview workspace deletion

Dry run: preview deleting a workspace (agency / Enterprise) — the stores that would move to the Default workspace and the members whose assignment would be revoked. Changes nothing. Read-only. [#bcfd4e]

ParameterTypeDescription
workspace_uuid *stringWorkspace uuid (from list_my_workspaces).

delete_workspace Delete workspace

Delete a workspace (agency / Enterprise). Its stores are reassigned to the Default workspace and member assignments revoked first. The Default workspace cannot be deleted. Preview with check_workspace_deletion. Needs an account-wide key. [#c566a1]

ParameterTypeDescription
workspace_uuid *stringWorkspace uuid (from list_my_workspaces).

assign_workspace_member Assign workspace member

Assign an account member to a workspace with a role, or update their existing role (agency / Enterprise). The target must already be a member of the account (invite_member first). Needs an account-wide key. [#5ec6df]

ParameterTypeDescription
role *stringWorkspace role: director (full control), creator (design/build), merchandiser (price/publish), operator (post-sale), viewer (read-only).
user_public_id *stringThe member's user public_id (from list_account_members).
workspace_uuid *stringWorkspace uuid (from list_my_workspaces).

unassign_workspace_member Unassign workspace member

Revoke a member's assignment to a workspace (agency / Enterprise). The account owner cannot be unassigned from the Default workspace. Needs an account-wide key. [#7d3ad6]

ParameterTypeDescription
user_public_id *stringThe member's user public_id.
workspace_uuid *stringWorkspace uuid (from list_my_workspaces).

move_store_to_workspace Move store to workspace

Move a store into one of the account's workspaces (agency / Enterprise). This changes who can access the store, so it needs account owner/admin + an account-wide key. [#9dde84]

ParameterTypeDescription
store_uuid *stringThe store to move (from list_my_stores).
workspace_uuid *stringDestination workspace uuid (in the same account).

get_account_overview Get account overview

Account name, your role, whether the agency feature is enabled, and seat accounting (used / included / billable). Agency / Enterprise; needs an account-wide key. Read-only. [#bf5472]

get_role_matrix Get workspace roles

The workspace roles and the role → capability matrix, so you can pick a role before assigning a member. Agency / Enterprise; needs an account-wide key. Read-only. [#894f5c]

list_account_members List account members

List account members and their per-workspace assignments (agency / Enterprise). Filterable + paginated. Needs an account-wide key. Read-only. [#b3bd65]

ParameterTypeDescription
account_rolestringFilter by account role.
in_workspacestringOnly members assigned to this workspace uuid.
pageintegerPage number (default 1).
per_pageintegerPage size (default 50, max 100).
qstringFree-text match on email/username.
workspace_rolestringMembers holding this workspace role (combine with in_workspace for "role in that workspace").

remove_member Remove member

Remove a member from the account entirely (agency / Enterprise): all their workspace assignments are revoked and seat billing synced. The account owner cannot be removed. Needs an account-wide key. [#e5169b]

ParameterTypeDescription
user_public_id *stringThe member's user public_id (from list_account_members).

invite_member Invite member

Invite someone to the account by email, optionally pre-assigning a workspace + role (agency / Enterprise). An existing ApparelHub user is auto-added immediately; a new email gets a pending invite. Needs an account-wide key. [#d3c424]

ParameterTypeDescription
email *stringEmail to invite.
account_rolestringAccount role (default member).
rolestringWorkspace role (required when workspace_uuid is set).
workspace_uuidstringOptional: pre-assign to this workspace uuid.

list_invites List invites

List the account’s pending invites, each with the target workspace name and a copyable accept URL (agency / Enterprise). Needs an account-wide key. Read-only. [#0cf62c]

revoke_invite Revoke invite

Revoke a pending invite so its token can no longer be used (agency / Enterprise). Needs an account-wide key. [#8a3ee8]

ParameterTypeDescription
invite_uuid *stringThe pending invite uuid (from list_invites).

resend_invite Resend invite

Re-send a pending invite’s email with the SAME token and extend its TTL 14 days (agency / Enterprise). Needs an account-wide key. [#4dd71c]

ParameterTypeDescription
invite_uuid *stringThe pending invite uuid (from list_invites).

accept_invite Accept invite

Accept a pending invite by token. The authenticated key-holder’s email must match the invite. Works on any tier and with a workspace-scoped key (the invitee side). Returns the account + workspace you were added to. [#e7e5ee]

ParameterTypeDescription
token *stringThe invite token (from the invite email / accept URL).

get_store_settings Get store settings

Read a store's fulfillment workflow + notification settings: fulfillment_mode (auto/confirm/review), approval_authority (human/agent/rules), the margin / high-value / first-time-customer hold guardrails, auto-reconcile, and payment settings. Read-only. [#3b3cd0]

ParameterTypeDescription
store_uuid *stringThe store uuid (from list_my_stores).
workspacestringWorkspace uuid to scope to (agency accounts). Omit for the Default workspace.

update_store_settings Update store settings

Update a store's fulfillment workflow / notification settings. Only the fields you pass are changed. fulfillment_mode: "auto" (auto-pilot: paid -> draft -> auto-confirm -> production), "confirm" (auto-draft, you confirm each order), "review" (held before submission for approval). The hold_* guardrails escalate an otherwise-auto/confirm order to a pre-submission review. Set hold_orders_above_amount / hold_below_margin_pct to null to disable that guardrail. hold_channel_risk_review is ON by default and OVERRIDES fulfillment_mode (including "auto"): an order the sales channel is reviewing is neve…

ParameterTypeDescription
store_uuid *stringThe store uuid to update.
approval_authoritystringWho decides when a review is required: human (UI queue), agent (API/callback), rules (auto unless a guardrail trips).
auto_fulfill_on_paymentbooleanAuto-submit to the provider once payment clears.
auto_reconcile_ordersbooleanPeriodically re-sync open sales-channel orders with their channel (manual reconcile always works regardless).
fulfillment_modestringAutomation level: auto (auto-pilot), confirm (you confirm each), review (approve before submit).
hold_below_margin_pctnumber | nullAuto-hold orders below this profit-margin percent. null disables the guardrail.
hold_channel_risk_reviewbooleanON by default. Hold an order the SALES CHANNEL has flagged as under its own risk review, so it is never sent to fulfillment while the channel may still void it. Unlike the other guardrails this one OV…
hold_first_time_customerbooleanAuto-hold the first order from a new customer.
hold_on_negative_marginbooleanAuto-hold orders that would lose money.
hold_orders_above_amountnumber | nullAuto-hold orders whose total exceeds this amount. null disables the guardrail.
notify_on_new_orderbooleanSend a notification when a new order arrives.
notify_on_shipmentbooleanSend a notification when an order ships.
notify_on_tracked_ordersbooleanAlso notify about orders for the merchant's own products (not made in ApparelHub, fulfilled by their store). Off by default; the orders are recorded either way.
require_payment_before_fulfillbooleanBlock fulfillment until the order is paid.
workspacestringWorkspace uuid to scope to (agency accounts). Omit for the Default workspace.

create_store Create store

Create a new ApparelHub store. Only a name is required. The store starts CLOSED — connect a fulfillment provider (Printful/Printify), then call activate_store to make it ACTIVE. In an agency account pass workspace=<uuid> to create it in a specific client workspace. [#9d5cbc]

ParameterTypeDescription
name *stringStore name (must be unique within the account).
descriptionstringOptional store description.
logostringOptional logo image URL.
workspacestringWorkspace uuid to scope to (agency accounts). Omit for the Default workspace.

archive_store Archive store

Archive a store (use instead of delete for stores with order history — order records are kept for accounting, but the store is hidden from the default listing and stops ingesting new orders). Restore it later with unarchive_store. Set disconnect_provider=true to also disconnect every connected fulfillment provider and remove its stored credentials. [#b85c96]

ParameterTypeDescription
store_uuid *stringThe store uuid to archive.
disconnect_providerbooleanAlso disconnect connected fulfillment providers and remove their credentials (default false).
workspacestringWorkspace uuid to scope to (agency accounts). Omit for the Default workspace.

unarchive_store Unarchive store

Restore an archived store. It comes back as CLOSED (or ACTIVE if a fulfillment provider is still connected); if it landed CLOSED, connect a provider and call activate_store to reopen it. [#468f04]

ParameterTypeDescription
store_uuid *stringThe store uuid to unarchive.
workspacestringWorkspace uuid to scope to (agency accounts). Omit for the Default workspace.

activate_store Activate store

Activate a store so it can list products and ingest orders. Requires at least one fulfillment provider (e.g. Printful) to be connected first — otherwise this fails. Use after create_store or unarchive_store once a provider is connected. [#87c31f]

ParameterTypeDescription
store_uuid *stringThe store uuid to activate.
workspacestringWorkspace uuid to scope to (agency accounts). Omit for the Default workspace.

record_order_payment Record a manual payment

Record a manual payment on an order that is awaiting payment (payment_status="pending"). Use payment_method="sales_channel" for an order already paid on its storefront (Shopify/WooCommerce/Wix — the channel is the source of payment), or "stripe" for an order taken through ApparelHub's own card flow. This marks the order paid; it does not charge a card. [#81d42b]

ParameterTypeDescription
order_uuid *stringThe order uuid (from list_my_orders).
payment_method *stringe.g. "sales_channel" (paid on the storefront) or "stripe" (ApparelHub card flow).
amountnumberOptional amount for the caller's intent; the recorded amount comes from the order total.
workspacestringWorkspace uuid to scope to (agency accounts). Omit for the Default workspace.

mark_order_no_payment Mark order as no payment expected

Mark an order as having no payment expected (e.g. a free / comp / sample order). Sets its payment status to "no payment". Use when an order should proceed without a recorded payment. [#23c7f4]

ParameterTypeDescription
order_uuid *stringThe order uuid to mark as no-payment.
workspacestringWorkspace uuid to scope to (agency accounts). Omit for the Default workspace.

set_order_payment_method Change recorded payment method

Change the recorded payment method on an order that already has a payment recorded (e.g. correct "stripe" to "sales_channel"). This is a bookkeeping label change; it does not move any money. [#588a7f]

ParameterTypeDescription
order_uuid *stringThe order uuid to update.
payment_method *stringThe new payment method label (e.g. "sales_channel", "stripe").
workspacestringWorkspace uuid to scope to (agency accounts). Omit for the Default workspace.

sync_orders Import and refresh orders

Import orders that never reached ApparelHub and refresh order status from fulfillment providers. For each connected Shopify shop it imports recent orders a webhook should have delivered, scoped to orders placed after the shop was connected and excluding cancelled or already-fulfilled ones (an imported paid order is sent to the fulfillment provider like a live one). Pass store_uuid to sync one store; omit it for all stores. Read `shopify[]`: `processed` imported now, `not_eligible_reasons` why others were left alone, `truncated` means run again, `outcome: "auth_revoked"` carries a reconnect_url…

ParameterTypeDescription
store_uuidstringScope the sync to one store (omit for all stores).
workspacestringWorkspace uuid to scope to (agency accounts). Omit for the Default workspace.

estimate_order_costs Estimate order costs

Estimate production + shipping + tax + total for an order WITHOUT creating it (read-only against the fulfillment provider, no order placed). Give the store, the recipient, and the variants + quantities. Use to preview landed cost before placing an order. AVAILABLE FOR PRINTFUL, GELATO AND TOOLBOX POD ONLY: Printify offers no pre-order estimate, so a Printify-fulfilled store returns a refusal rather than a number — do not retry it, and do not present a cross-provider landed-cost comparison that silently omits Printify. Toolbox POD delivers to US addresses only (a non-US recipient is refused)…

ParameterTypeDescription
items *arrayLine items to price.
recipient *objectShip-to details. country_code and address1 are both required; city/state/zip improve accuracy.
store_uuid *stringThe store the order would be placed in.
currencystringCurrency code (defaults to USD).
workspacestringWorkspace uuid to scope to (agency accounts). Omit for the Default workspace.

get_orders_summary Orders dashboard summary

Aggregated stats for the orders dashboard: counts of orders pending approval / awaiting payment / in fulfillment / shipped today, plus today's revenue and profit, and a per-store breakdown. Read-only. [#88d8a4]

ParameterTypeDescription
workspacestringWorkspace uuid to scope to (agency accounts). Omit for the Default workspace.

list_pending_fulfillments List pending fulfillments

List orders in a store that have pending fulfillment data needing attention (used by the reconciliation view). Read-only. Use to find orders that stalled before reaching the provider. [#80ba1e]

ParameterTypeDescription
store_uuid *stringThe store uuid to check.
workspacestringWorkspace uuid to scope to (agency accounts). Omit for the Default workspace.

archive_product Archive product

Archive a product: unsync it from every connected sales channel and its fulfillment provider, then hide it. Fails (returns blocking_orders) if any pending order still references its variants — cancel or fulfill those first. Restore it later with restore_product. Use archive rather than delete_product when a product has order history. [#4b1462]

ParameterTypeDescription
product_uuid *stringThe product uuid to archive.
workspacestringWorkspace uuid to scope to (agency accounts). Omit for the Default workspace.

restore_product Restore product

Restore a previously archived product (sets it back to active). It is not re-synced to any sales channel automatically — sync it again afterward if you want it live. Use to undo archive_product. [#8d20f7]

ParameterTypeDescription
product_uuid *stringThe product uuid to restore.
workspacestringWorkspace uuid to scope to (agency accounts). Omit for the Default workspace.

get_api_reference Get API reference

Discover the full ApparelHub agent API: returns a compact index of every endpoint (path, methods, summary) from the live OpenAPI spec. Use this when no dedicated tool covers what you need, then call it with api_get (reads) or api_create / api_update / api_delete (changes). Read-only. Also returns `connector`, which reports what THIS server actually serves: its version, and the name of every tool. **If a capability seems missing, check that first.** A tool listed in `connector.tool_names` that you cannot call means your own tool list is stale, not that the tool is unbuilt — say so and tell t…

ParameterTypeDescription
filterstringOnly return endpoints whose path contains this substring (e.g. "orders", "collections").

api_get Read from the ApparelHub API

Read from the ApparelHub Agent API (https://apparelhub.ai/developer/api-docs) with an authenticated GET, as the connected account. Read-only: it cannot change anything. PREFER a dedicated tool when one exists (they return clean, guarded results); use this only for capabilities no tool covers. Call get_api_reference first to find the right path. `path` is relative (e.g. "orders", "store/<uuid>/settings"); no full URLs. Scoped to the account's own permissions. [#79cbf5]

ParameterTypeDescription
path *stringRelative path under /agents/v1, e.g. "orders" or "product/<uuid>/archive". No host, no "..".
queryobjectQuery-string parameters.
workspacestringWorkspace uuid to scope to (agency accounts).

api_create Create via the ApparelHub API

Create something or run an action in the ApparelHub Agent API (https://apparelhub.ai/developer/api-docs) with an authenticated POST, as the connected account. Changes data. PREFER a dedicated tool when one exists (they return clean, guarded results); use this only for capabilities no tool covers. Call get_api_reference first to find the right path. `path` is relative (e.g. "orders", "store/<uuid>/settings"); no full URLs. Scoped to the account's own permissions. [#610fa1]

ParameterTypeDescription
path *stringRelative path under /agents/v1, e.g. "orders" or "product/<uuid>/archive". No host, no "..".
bodyobjectJSON request body.
queryobjectQuery-string parameters.
workspacestringWorkspace uuid to scope to (agency accounts).

api_update Update via the ApparelHub API

Update something in the ApparelHub Agent API (https://apparelhub.ai/developer/api-docs) with an authenticated PATCH (partial update, the default) or PUT (full replace), as the connected account. Changes data. PREFER a dedicated tool when one exists (they return clean, guarded results); use this only for capabilities no tool covers. Call get_api_reference first to find the right path. `path` is relative (e.g. "orders", "store/<uuid>/settings"); no full URLs. Scoped to the account's own permissions. [#ad1154]

ParameterTypeDescription
method *stringPATCH (default) or PUT, as the endpoint requires.
path *stringRelative path under /agents/v1, e.g. "orders" or "product/<uuid>/archive". No host, no "..".
bodyobjectJSON request body.
queryobjectQuery-string parameters.
workspacestringWorkspace uuid to scope to (agency accounts).

api_delete Delete via the ApparelHub API

Delete something in the ApparelHub Agent API (https://apparelhub.ai/developer/api-docs) with an authenticated DELETE, as the connected account. Changes data and may be irreversible: confirm with the user first. PREFER a dedicated tool when one exists (they return clean, guarded results); use this only for capabilities no tool covers. Call get_api_reference first to find the right path. `path` is relative (e.g. "orders", "store/<uuid>/settings"); no full URLs. Scoped to the account's own permissions. [#7b60f1]

ParameterTypeDescription
path *stringRelative path under /agents/v1, e.g. "orders" or "product/<uuid>/archive". No host, no "..".
bodyobjectJSON request body.
queryobjectQuery-string parameters.
workspacestringWorkspace uuid to scope to (agency accounts).