Fold Laboratories
v0.2.1Original art from galleries and artists: search, details, delivered prices and checkout links.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
search_artworks Search artworks
Use this when someone wants to find original paintings, prints, photographs or sculpture from independent artists: by subject, style, colour, size or budget; for a particular wall; or like a work or a photo they have. It returns only works that meet everything asked for, each with what it met. near_matches come apart, each saying what it misses or what its seller left unsaid: a blank fact is unknown, never a no. Write the request in words ("a large blue abstract painting under $2,000"; misspellings, and Spanish, Portuguese, French, Italian and German, are read) or send filters — min_price_us…
| Parameter | Type | Description |
|---|---|---|
colors | array | Every one of these among the colours the seller confirmed for the work. |
edition | string | unique: one of a kind; edition: one impression of an edition. |
framed | boolean | Framed (true) or unframed (false), as the seller stated. |
include_sold | boolean | Also include works that have already sold. Off by default. Works taken off sale are never returned either way. |
limit | integer | Maximum matches. Default 10, hard cap 100. |
max_height_in | number | Height at most this, in inches. |
max_price_usd | number | Highest acceptable price, in US dollars. |
max_width_in | number | Width at most this, in inches. |
medium | array | Any of these media; a family such as painting or print includes its members. |
min_height_in | number | Height at least this, in inches. |
min_price_usd | number | Lowest acceptable price, in US dollars. |
min_width_in | number | Width at least this, in inches. |
orientation | array | Any of: portrait (taller than wide), landscape (wider than tall), square. |
query | string | What the buyer is looking for, in their words. Leave it out only to search by a wall or similar_to alone. |
ready_to_hang | boolean | Ready to hang, as the seller stated. |
ships_to | object | Where the buyer wants it delivered. Fold delivers to the 50 US states and DC. |
signed | boolean | Signed by the artist, as the seller stated. |
similar_to | object | A work, or a photo, the works must look like. |
style | array | Any of these styles. |
subject | array | Any of these subjects. |
wall | object | The wall the work will hang on: only works whose size suits it. |
get_artwork Get artwork detail
Use this when someone wants the full facts about one work before deciding: what it is, its size, how it looks, what delivery costs and when it ships, whether it can be returned, who made it, and what Fold verified about the seller. Full detail for one artwork: attribution, medium, dimensions, edition structure, provenance, seller, and every individual impression that can be bought with its own price and availability. A numbered edition has one entry per impression — including artist proofs (AP), printer proofs (PP), and the bon à tirer (BAT), which are separate objects from the numbered run…
| Parameter | Type | Description |
|---|---|---|
artwork_id * | string | artwork_id from search_artworks. |
check_availability Check availability
Use this when time has passed since a search or a work’s detail answered — the buyer came back later, or is weighing several works — to re-check whether specific impressions can still be bought before offering them. Each work here is unique or from a small edition, so an impression can sell at any time: never offer one as available from an old answer. A search’s offers and get_artwork say what can be bought as they answer, and the checkout checks again itself, so no call is needed between them and the checkout.
| Parameter | Type | Description |
|---|---|---|
listing_ids * | array | listing_id values from get_artwork. |
save_search_alert Save a search and alert on new works
Use this when a buyer wants to hear about works listed later that match what they are looking for. It saves the search — the buyer’s words in query and the same filters as search_artworks — and tells the buyer by e-mail, or your own system by webhook, when a work that matches it is listed: only works that meet everything asked, never near matches, at most one alert a day, for 180 days. An e-mail alert starts only when the buyer confirms it from the one e-mail Fold sends to ask; ask the buyer before giving Fold their address. Every alert e-mail has one-click unsubscribe. A webhook alert s…
| Parameter | Type | Description |
|---|---|---|
colors | array | Every one of these among the colours the seller confirmed for the work. |
edition | string | unique: one of a kind; edition: one impression of an edition. |
email | string | The buyer’s e-mail address, which they gave for this alert. Fold sends it one e-mail to confirm, and nothing else until they do. |
framed | boolean | Framed (true) or unframed (false), as the seller stated. |
include_mature | boolean | Also announce works their sellers flagged as mature content. Only when the buyer asked. |
max_height_in | number | Height at most this, in inches. |
max_price_usd | number | Highest acceptable price, in US dollars. |
max_width_in | number | Width at most this, in inches. |
medium | array | Any of these media; a family such as painting or print includes its members. |
min_height_in | number | Height at least this, in inches. |
min_price_usd | number | Lowest acceptable price, in US dollars. |
min_width_in | number | Width at least this, in inches. |
orientation | array | Any of: portrait (taller than wide), landscape (wider than tall), square. |
query | string | What the buyer is looking for, in their words, as for search_artworks. |
ready_to_hang | boolean | Ready to hang, as the seller stated. |
ships_to | object | Where the buyer wants it delivered. Fold delivers to the 50 US states and DC. |
signed | boolean | Signed by the artist, as the seller stated. |
style | array | Any of these styles. |
subject | array | Any of these subjects. |
wall | object | Only works whose size suits this wall, as search_artworks’ wall reads it. |
webhook_url | string | Your https endpoint for search_alert.new_works events, signed as Standard Webhooks specifies. It must echo the verification event’s data.challenge. |
get_search_alert Read a saved alert
Use this when a buyer asks about an alert for new works they saved: whether it is waiting for them to confirm it, active or ended, what it watches, when it last sent works and when it ends. Needs the search_alert_id and manage_token save_search_alert gave.
| Parameter | Type | Description |
|---|---|---|
manage_token * | string | The manage_token save_search_alert gave. |
search_alert_id * | string | The search_alert_id save_search_alert gave. |
cancel_search_alert Stop a saved alert
Use this when a buyer wants to stop an alert for new works. Nothing more is sent, and the saved words, filters and address are erased. Needs the search_alert_id and manage_token save_search_alert gave; a buyer can also stop it from any alert e-mail in one click.
| Parameter | Type | Description |
|---|---|---|
manage_token * | string | The manage_token save_search_alert gave. |
search_alert_id * | string | The search_alert_id save_search_alert gave. |
start_checkout Get a checkout link
Use this when the buyer has chosen one work and wants to buy it. It answers with checkout_url, a page on Fold’s own site for that one work, where the buyer enters the delivery address, sees the total with sales tax and the terms, and pays. It charges nothing and reserves nothing: the work can still sell to someone else until the buyer presses Pay, and the link works once and lapses at expires_at. Give the link to the buyer or open it in your browser. It checks availability itself, so call it straight from a search’s offer.listing_id or get_artwork’s listings, with no other call first; on…
| Parameter | Type | Description |
|---|---|---|
listing_id * | string | A single listing_id from get_artwork or check_availability. |
get_delivered_quote Estimate the delivered price
Use this when a buyer asks what a work will cost delivered to them and when it would arrive. Given one listing_id and a US destination (a five-digit ZIP code, and the state if known), it answers with the price, the seller’s delivery charge, an ESTIMATE of sales tax from Fold’s tax engine for that ZIP code, the total, the date the seller says it ships by and the arrival window their transit estimate gives, the returns that apply, the policy links and how to check out. Read-only: nothing is opened or reserved. Checkout calculates the exact tax from the full address before the buyer pays. Fol…
| Parameter | Type | Description |
|---|---|---|
destination * | object | |
listing_id * | string | A listing_id from get_artwork. |
get_order_status Look up an order
Use this when a buyer asks where their order is or what they can still claim. With the token from the order page’s address, or the order reference from the confirmation e-mail and the e-mail address the buyer gave at checkout, it answers with the order’s status, the tracking the seller recorded, and each return or claim window with when it closes. An order is shown only to whoever proves they placed it; an unknown order and a wrong proof get the same answer.
| Parameter | Type | Description |
|---|---|---|
buyer_email | string | The e-mail address the buyer gave at checkout. Send with order_reference. |
order_reference | string | The order reference printed in the confirmation e-mail. Send with buyer_email. |
order_token | string | The token in the order page’s address, from the confirmation e-mail: /order/<token>. |
open_claim Open a return or claim
Use this when a buyer wants to return a work or report a problem with an order: damage or a difference from the description on arrival, non-delivery, a doubt about authenticity or title, an agent purchase they did not authorise, cancelling before dispatch, or a 30-day return. It checks the ground against the Returns policy’s window for this order, records the request for a person at Fold, and answers with a link for sending photographs. It refunds nothing: a person at Fold decides every request and replies by e-mail. Needs the same proof as get_order_status.
| Parameter | Type | Description |
|---|---|---|
ground * | string | The ground, as Returns §2 names it. |
buyer_email | string | The e-mail address the buyer gave at checkout. Send with order_reference. |
description | string | What went wrong, in the buyer’s words. |
order_reference | string | The order reference printed in the confirmation e-mail. Send with buyer_email. |
order_token | string | The token in the order page’s address, from the confirmation e-mail: /order/<token>. |