AgentMade Print on Demand

v0.1.0
io.github.alexmensak/agentmade-print-on-demand Checked 3 days ago Published 1 month ago

Print on demand for AI agents.

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

search_products Search printable products

Use this when the user wants their own picture, words or logo printed on a T-shirt, hoodie, sweatshirt or tote bag and delivered, as a gift or for themselves. Finds products by free text, category, colour and size. Returns product_id, image_url (a product photo, or null), colours, sizes and print placements. No account needed. Not for mugs, posters, caps, stickers or embroidery.

ParameterTypeDescription
categorystring
colorstringOnly products available in this colour, e.g. "black".
querystringFree-text description, e.g. "heavyweight black t-shirt" or "hoodie".
sizestringOnly products available in this size, e.g. "XL".

get_product Get product details

Full details for one product: colours with hex codes and product photos (images: url, view, style, alt; empty when none yet; ai_generated marks AI photos), sizes, variant ids, print placements with the print area in mm, placement presets (for example center_chest, left_chest, full_front, full_back), materials and artwork guidance.

ParameterTypeDescription
product_id *stringProduct id from search_products, e.g. "tee-heavyweight".

validate_artwork Upload and validate artwork

Upload artwork and check that it prints well on one product placement. Send exactly one of: artwork with svg (markup, best for text and logos), base64 (a PNG, JPEG or SVG file up to about 2 MB, no data: prefix) or url (a public HTTPS link to the file); file (a file object from your client); or upload_link:true when you cannot send the file in this call. Returns artwork_id and PASS/WARN/FAIL checks: print size in mm, resolution (DPI), print and safe area, transparent background, contrast with the product colour. For photos and AI images use preset center_chest. Use the artwork_id in quote.

ParameterTypeDescription
product_id *stringProduct to print on.
artworkobjectNew artwork to upload: exactly one of svg, base64 or url.
artwork_idstringRe-validate artwork uploaded earlier, or validate the file of an upload link.
colorstringProduct colour, for the contrast check.
fileobjectA file that your client gives you as a file object (for example in ChatGPT).
height_mmnumberMaximum printed height in millimetres.
left_mmnumberDistance from the left edge of the print area. Default: horizontally centred.
placementstringPrint location on the product, e.g. "front" or "back". See get_product for the list.
presetstringNamed position inside the placement, e.g. "center_chest", "left_chest", "full_front". Defaults to the placement default.
sizestringGarment size, e.g. "XL". Print areas can differ by size; without it the smallest size is checked.
top_mmnumberDistance from the top of the print area to the top of the artwork.
upload_linkbooleanSet true when you cannot send the file in this call. The answer gives an artwork_id and a one-time upload_url: upload with curl, or give the link to the person. Then call validate_artwork with the art…
width_mmnumberExact printed width of the visible artwork in millimetres. Height follows the aspect ratio.

create_mockup Create a preview mockup

Render a preview PNG of the artwork on the product in the chosen colour and placement. style flat draws the placement; style packshot uses a product photo with the exact print at real size, or gives the flat preview with a note when no photo exists. Returns mockup_url, blank_image_url and image_prompt (an optional text prompt for an illustration of a person who wears the product; such an image is an illustration, not the exact print). Optional.

ParameterTypeDescription
artwork_id *string
color *stringProduct colour, e.g. "black".
product_id *string
height_mmnumberMaximum printed height in millimetres.
left_mmnumberDistance from the left edge of the print area. Default: horizontally centred.
placementstringPrint location on the product, e.g. "front" or "back". See get_product for the list.
presetstringNamed position inside the placement, e.g. "center_chest", "left_chest", "full_front". Defaults to the placement default.
sizestring
stylestringflat: quick placement drawing. packshot: product photo with the exact print at real size (where a product photo exists).
top_mmnumberDistance from the top of the print area to the top of the artwork.
width_mmnumberExact printed width of the visible artwork in millimetres. Height follows the aspect ratio.

quote Get a delivered price quote

Price printed items delivered to one destination. Returns quote_id, the total that the payer pays (products, shipping and VAT where AgentMade collects it), what is not included, the delivery estimate and the expiry. Needs artwork_id values from validate_artwork. Charges nothing. For a destination where orders are not open, the quote is for information only.

ParameterTypeDescription
items *array
ship_to *objectDestination. country_code is required; postal_code and state_code improve shipping accuracy.
buyerobjectOnly for a company purchase with an invoice. Business checkout is not open yet: the quote charges destination VAT.
currencystringISO 4217 currency of the payer, e.g. "USD". Optional. The quote states the currency that it uses.
deliver_bystringDate by which the parcel should arrive, e.g. "2026-12-20". The quote is never refused because of it: if the estimate is later, the quote says so.
preferencestringHow AgentMade picks the manufacturing route: fewest_packages (default: fewest parcels, then best price among the fastest routes), cheapest, or fastest.
purposestringWhat the order is for. Set it only if the user already said it. Do not ask for it.
speedstringShipping speed. Only standard is offered now; express returns a note and a standard quote.

purchase Place the order and get the payment link

Turn a quote into an order. Needs quote_id, the full recipient address (it must match the quoted destination) and rights_attestation=true. contact_email is the payer's own email, never the gift recipient's. Returns order_id and payment.url: the order page where the person pays by card, Apple Pay or Google Pay. Nothing is printed until the payment is confirmed. Idempotent per quote_id.

ParameterTypeDescription
rights_attestation *booleanMust be true: confirms the customer owns or is licensed to print all submitted artwork, and that it is not prohibited content.
contact_emailstringEmail of the payer, for the order confirmation and the payment receipt. Not the recipient's email: for a gift, the recipient must not see the price. Optional.
gift_messagestringShort message for the packing slip of a gift. Not printed yet: the answer says so.
ordersarrayMany parcels with one payment: one quote_id and one recipient per parcel. Not live yet: call purchase once per quote_id for now.
payment_capabilitiesarrayPayment methods the calling agent can use. "hosted_checkout" = a link that the person opens to pay by card, Apple Pay or Google Pay. Always supported.
quote_idstringquote_id returned by quote, for one parcel. Set quote_id or orders, not both.
recipientobjectShipping address. Country, state and postal code must match the quote destination. Send the full address when you have it. If you cannot collect the street address, send only country_code, postal_code…

get_order Get order status

Current order status (AWAITING_PAYMENT, PAID, SUBMITTED, IN_PRODUCTION, SHIPPED, DELIVERED or an exception state), next_step in plain language, the payment link while unpaid, shipments and a timeline.

ParameterTypeDescription
order_id *stringorder_id returned by purchase.

track_order Track shipment

Carrier, tracking number and tracking link for each shipment of an order, and the delivery estimate.

ParameterTypeDescription
order_id *stringorder_id returned by purchase.

cancel_order Cancel an order

Cancel an order. Unpaid: closes the payment link; nothing is charged. Paid and not yet in production: cancels and refunds in full. In production or shipped: cannot be cancelled; the error gives the reason. A second call on a cancelled order is safe.

ParameterTypeDescription
order_id *stringorder_id returned by purchase.
reasonstring