The Walls Marketplace API
Show prints and physical originals by artists on The Walls inside your marketplace, and let your users buy them. This guide is for the developers who build the integration. Version 1.
Base URL: https://thewalls.art/api/v1/partner
How it works
- You become a partner, then get keys. Apply at https://thewalls.art/partners, signed in with SolPersona. The Walls reads every application and not every site is accepted. If yours is, The Walls sends you The Walls API Partner Agreement to sign on the same page. It sets your commission and what you may and may not do with the API. Once The Walls countersigns it, an administrator creates your API keys. Until then your marketplace is pending and the API refuses it. Tell them which sites will use the widget and the exact URL that artists should come back to after connecting.
- Artists connect their accounts. On your site, an artist clicks "Connect The Walls". You send
them to The Walls, where they sign in, see your fee on their own prices, choose which works you
may show (or all of them), and approve. They come back to you with a
link_id. - You show their work. You read the works each artist made available to you, with images, sizes, materials, frames and prices, and display them however suits your platform.
- Buyers pay on The Walls. When someone wants to buy, you send them to The Walls with the cart ready. They pay there, The Walls makes and ships the print (or the artist ships the original), and the order is credited to your marketplace.
- You earn your fee. Your fee is a percentage of the artist's price on each work you sold, not of the retail price. The Walls records it and pays it to you. Your API shows each order's status and your fee.
Money, prices and agreements
- Buyers always pay The Walls' retail price. Do not add a markup on top; the price you show must match the price at checkout.
- Your fee comes out of the artist's price, at the percentage the artist approved when they connected. If your fee changes later, artists already connected keep the fee they approved until they connect again.
- You are paid when the artist is paid: your fee on a sale becomes payable at the same moment the artist's share of it does, and nothing is due on cancelled, refunded or reversed orders. Your partner agreement has the details.
- Any agreement about your fee beyond this, or about anything else, is between you and the artist. The Walls does not take part in it.
- The Walls never shares buyers' names, emails or addresses with you. You see orders you brought, their status and your fee.
Keys and access
| Key | Looks like | Where to use it | What it can do |
|---|---|---|---|
| Secret key | tw_sk_... |
Your server only | Everything below |
| Publishable key | tw_pk_... |
Browsers, on the sites The Walls allowed for you | Read the catalog and create checkout sessions |
- Send a secret key as
Authorization: Bearer tw_sk_.... Never put it in a web page, an app or a repository. Requests with a secret key from a browser are refused. - Send a publishable key as
X-TheWalls-Key: tw_pk_.... It only works from the origins The Walls registered for you (for examplehttps://market.example), and never for links or orders. - Keys are shown once when created. If one leaks, ask The Walls to revoke it and make a new one.
Requests and responses
- All responses are JSON. Money is in US cents (
priceCents: 16900is $169.00). Times are ISO 8601 in UTC. - Errors look like
{ "error": { "code": "NOT_FOUND", "message": "..." } }. Branch oncode; showmessageto people.
| Status | Code examples | Meaning |
|---|---|---|
| 401 | UNAUTHORIZED |
Missing, wrong or revoked key |
| 403 | ORIGIN_NOT_ALLOWED, SECRET_KEY_REQUIRED, MARKETPLACE_SUSPENDED, MARKETPLACE_PENDING (your partner agreement is not in force yet) |
The key is valid but not allowed to do this |
| 404 | NOT_FOUND |
Missing, or not made available to you |
| 409 | BUYING_CLOSED |
The Walls is in its Early Preview: works and prices show, but nothing can be bought yet |
| 422 | INVALID_REQUEST, NOT_AVAILABLE, INVALID_ITEMS |
The request body or items are not valid |
| 429 | RATE_LIMITED |
Slow down. Secret keys: 600 requests a minute. Publishable keys: 300 |
- Lists are paginated:
{ "items": [...], "page": { "nextCursor": "24", "limit": 24, "total": 120 } }. Pass?cursor=<nextCursor>for the next page;nullmeans the last page.limitis 1 to 100. - Every response carries
X-TheWalls-Api-Version. Breaking changes get a new path (/api/v2).
Connecting artists
Send the artist's browser to:
https://thewalls.art/connect?marketplace=<your slug>&redirect_uri=<your return URL>&state=<random value>&external_ref=<the artist's id on your site>
| Parameter | Required | Notes |
|---|---|---|
marketplace |
yes | Your marketplace slug, given by The Walls |
redirect_uri |
yes | Must match one of your registered return URLs exactly |
state |
yes | A random value you store in the artist's session, to check on return |
external_ref |
recommended | Your own id for the artist. It comes back on the link and in the API |
The artist signs in to The Walls, approves, and is sent back to:
<redirect_uri>?state=<your state>&link_id=<link id>&status=approved
or, if they decline, <redirect_uri>?state=<your state>&error=access_denied.
Always verify before you trust a link. Check that state matches what you stored, then call
GET /links/{link_id} with your secret key. Only links to your marketplace are found, and the
response tells you the artist and the externalRef you passed. Store the link_id against your
user.
Artists can change which works you may show, or disconnect, at any time from their studio. Re-read
the catalog regularly (every few minutes, or on each page view with caching) rather than keeping
copies forever. A disconnected link has status: "revoked" and its works disappear from your
catalog.
The API covers both sides of The Walls:
- The Walls (
channel: "curated"): works licensed to and certified by The Walls, and their originals. - Open Walls (
channel: "open"): work artists list themselves. Prints only, open editions, not licensed or certified by The Walls. You get these when the artist approved your link for them.
Mature works (artistic nudity), on either side, are never returned.
Wherever you show an Open Walls work, show its attribution with it: "An Open Walls piece on
TheWalls.art". Never call an Open Walls work licensed, certified or limited.
Endpoints
GET /me
Your marketplace and the key you used.
{ "marketplace": { "id": "...", "slug": "market", "name": "Market", "feePercent": 10, "status": "active" }, "key": { "kind": "secret" } }
GET /artists
Artists who connected your marketplace. Paginated.
| Field | Type | Notes |
|---|---|---|
id, name, slug |
string | The artist on The Walls |
location |
null | Always null: The Walls does not share where artists live |
bio |
string | As the artist wrote it |
resident |
boolean | A Resident Artist: their prints are sold only through The Walls |
profileUrl |
string | Their page on The Walls (at their Open Walls works, #open-walls, if they only sell there) |
openWalls |
boolean | Some of the works you can show are Open Walls works |
linkId, externalRef |
string | The link, and your id for the artist |
feePercent |
number | The fee this artist approved |
allWorks |
boolean | Every work, including new ones, or a selection |
works |
number | How many works you can show now |
connectedAt |
string | When they approved |
GET /artworks
The works you may show, newest first. Paginated. Filters: ?artist=<artist id or slug>,
?kind=originals (only works with an original for sale).
Each item:
| Field | Type | Notes |
|---|---|---|
id, slug, title, year, description |
||
categories |
string[] | e.g. ["abstract"] |
medium |
string | e.g. painting, digital |
channel |
string | curated (The Walls) or open (Open Walls) |
attribution |
string | The credit line to show with the work: "An Open Walls piece on TheWalls.art" for Open Walls, "On TheWalls.art" otherwise |
certified |
boolean | Licensed and certified by The Walls. Always false for Open Walls |
artist |
object | id, name, slug, resident, linkId, externalRef, profileUrl |
image |
object | url, width, height, placeholder (a tiny blurred data URL for loading states) |
ratio, orientation |
string | e.g. "3:4", "portrait". Works cropped to the A paper shape have "1:1.4142" (or "1.4142:1" landscape) and come in A sizes only, edge to edge |
edition |
object | type (open, limited, one_of_one), size, sold, remaining |
soldOut |
boolean | No prints left in a limited edition |
url |
string | The work on The Walls, credited to you. Link buyers here if you do not use checkout sessions |
prints |
object or null | priceFromCents, sizes (tier, name, widthIn, heightIn, widthCm, heightCm, materials: the material ids it is made in; A sizes also imageWidthIn, imageHeightIn), materials (id, name, description), frames (id, name) |
download |
object or null | priceCents of a print-ready file for personal use |
original |
object or null | The physical original, when for sale: status, priceCents, medium, support, dimensions, widthMm, heightMm, depthMm, framed, signed, condition, shipsFrom, handlingDays, shippingByQuote (always true: the artist quotes shipping to each buyer), photos, url, quoteUrl (where a buyer asks for a shipping quote and buys). The older shippingByContinent (null), shipsExclude ([]) and shippingCents (all null) stay, empty |
A work sold only as an original has prints: null and ratio: null.
GET /artworks/{id or slug}
One work, with prints.prices: the price of every print configuration that can be bought. Not
every material comes in every size or takes a frame, so this list is the one to build choices from.
{ "format": "print", "tier": "M", "substrate": "paper", "frame": "oak", "mount": true, "priceCents": 22900 }
frame is null for unframed. classic and box are framed prints on Enhanced Matte Art paper
(always framed; mount adds a 2.4mm mat). Canvas takes a float frame. paper (Hahnemühle Photo Rag) takes
a classic frame in the sizes our print partner makes it, with or without a mat, and glaze says what covers
it: acrylic or glass (float glass). German Etching, Enhanced Matte Art, metal, acrylic and photographic (C-type) prints are
not framed.
Sizes A4 to A0 are international paper sizes on the fine art papers: the whole work sits on
the sheet inside a white border, never cropped (imageWidthIn and imageHeightIn give the work's
size on the sheet).
POST /checkout-sessions
Prepare a cart and get a URL where the buyer pays on The Walls. Works with either key.
{
"items": [
{ "artwork": "ember-field", "format": "print", "tier": "M", "material": "paper", "frame": "oak", "mount": true, "quantity": 1 },
{ "artwork": "ember-field", "format": "original" }
],
"reference": "your-cart-1234"
}
| Item field | Default | Values |
|---|---|---|
artwork |
id or slug | |
format |
print |
print, digital (original is refused with ORIGINAL_NEEDS_QUOTE: send the buyer to the original's quoteUrl) |
tier |
smallest size | S, M, L, XL, XXL, XXXL, A4, A3, A2, A1, A0 (only the work's sizes in that material) |
material |
paper |
paper (Hahnemühle Photo Rag), etching (Hahnemühle German Etching), ctype, metal, acrylic, canvas, classic (Classic frame), box (Box frame) |
frame |
null |
null, black, white, oak, walnut, gold, silver, darkgrey, lightgrey (required for classic and box) |
mount |
false |
classic, box and a framed paper print |
glaze |
acrylic |
acrylic or glass, for a framed paper print |
quantity |
1 |
1 to 10; originals are always 1 |
Response:
{
"id": "...",
"url": "https://thewalls.art/checkout/session/...",
"expiresAt": "2026-10-03T19:22:06Z",
"reference": "your-cart-1234",
"currency": "USD",
"items": [{ "artworkId": "...", "title": "Ember Field", "artistName": "Mira Okafor", "description": "12 x 16 in, Fine art paper, oak frame with mat", "quantity": 1, "unitPriceCents": 22900 }],
"subtotalCents": 22900
}
Open url for the buyer (a new tab or a full redirect). It works for 24 hours. Shipping, import
duties and taxes are worked out at checkout from the buyer's address. Items the artist has not made
available to you are refused with NOT_AVAILABLE. While The Walls is in its Early Preview (works and
prices on show, buying not open yet), new checkout sessions are refused with BUYING_CLOSED.
GET /orders
Orders your marketplace brought, newest first. Secret key only. Paginated. ?since=<ISO time>
returns orders that changed after that time, for polling.
| Field | Notes |
|---|---|
number |
e.g. TW-7K2M9Q |
reference |
The reference from your checkout session, if any |
status, statusLabel |
pending_payment, confirming, paid, submitted, in_production, shipped, delivered, expired, cancelled, refunded, needs_review |
createdAt, paidAt, shippedAt |
|
items |
The items you earn on: artworkId, title, artistName, description, quantity, unitPriceCents, feeCents, shipped, delivered |
feeCents |
Your fee on the order |
feeEarned |
true once paid; fees on cancelled or refunded orders are not paid |
Fees become payable on the same schedule as the artist's share: prints once shipped, downloads once paid, originals after their return window. The Walls pays them by hand, to the method you agreed.
GET /orders/{number}
One order, same shape.
GET /links/{id}
A link, to verify a link_id from the connect flow. Secret key only.
{ "id": "...", "status": "active", "artist": { "id": "...", "name": "Mira Okafor", "slug": "mira-okafor" }, "externalRef": "user_481", "feePercent": 10, "allWorks": false, "artworkIds": ["..."], "approvedAt": "...", "revokedAt": null }
Three ways to sell
- Links. Show the works and link each one to its
url. The buyer lands on The Walls with your marketplace credited for a week. Simplest, no server code needed beyond reading the catalog. - Checkout sessions. Build your own product page with the price table, let the buyer choose a
size, material and frame, then create a checkout session from your server and send them to its
url. Best when you want buying to feel like part of your site. - The widget. Drop a script on the page and The Walls draws the works for you. Fastest.
The widget
<!-- every work an artist made available to you -->
<div data-thewalls-key="tw_pk_..." data-thewalls-artist="mira-okafor" data-thewalls-limit="12"></div>
<!-- one work, with size, material and frame choices and a buy button -->
<div data-thewalls-key="tw_pk_..." data-thewalls-artwork="ember-field" data-theme="dark"></div>
<script src="https://thewalls.art/embed/v1.js" async></script>
The widget draws inside a shadow root, so your styles do not affect it and it does not affect your
page. Add data-theme="dark" for dark pages. If you add elements after the page loads, call
window.TheWalls.scan(). It only works on sites registered for your publishable key.
Sample code
cURL
export TW_KEY=tw_sk_...
curl -s -H "Authorization: Bearer $TW_KEY" "https://thewalls.art/api/v1/partner/artworks?limit=5"
curl -s -H "Authorization: Bearer $TW_KEY" -H "Content-Type: application/json" \
-d '{"items":[{"artwork":"ember-field","tier":"M"}],"reference":"cart-1"}' \
"https://thewalls.art/api/v1/partner/checkout-sessions"
Node.js (TypeScript)
const TW = "https://thewalls.art/api/v1/partner";
const key = process.env.THEWALLS_SECRET_KEY!; // tw_sk_..., server only
async function tw<T>(path: string, init: RequestInit = {}): Promise<T> {
const res = await fetch(TW + path, {
...init,
headers: { Authorization: `Bearer ${key}`, "Content-Type": "application/json", ...init.headers },
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.error.code}: ${body.error.message}`);
return body as T;
}
// 1. send an artist to connect
export function connectUrl(artistId: string, state: string) {
const q = new URLSearchParams({
marketplace: "your-slug",
redirect_uri: "https://market.example/thewalls/callback",
state,
external_ref: artistId,
});
return `https://thewalls.art/connect?${q}`;
}
// 2. on your callback: check state, then verify the link
export async function onCallback(params: URLSearchParams, expectedState: string) {
if (params.get("state") !== expectedState) throw new Error("state mismatch");
if (params.get("error")) return null; // the artist declined
const link = await tw<{ id: string; status: string; externalRef: string }>(`/links/${params.get("link_id")}`);
return link.status === "active" ? link : null;
}
// 3. read the catalog (cache it for a few minutes)
export async function allWorks() {
const out = [];
let cursor: string | null = "0";
while (cursor !== null) {
const r: { items: unknown[]; page: { nextCursor: string | null } } = await tw(`/artworks?limit=100&cursor=${cursor}`);
out.push(...r.items);
cursor = r.page.nextCursor;
}
return out;
}
// 4. buy: create a session and redirect the buyer
export async function checkout(items: object[], cartId: string) {
const s = await tw<{ url: string }>("/checkout-sessions", {
method: "POST",
body: JSON.stringify({ items, reference: cartId }),
});
return s.url;
}
Python
import os, requests
TW = "https://thewalls.art/api/v1/partner"
KEY = os.environ["THEWALLS_SECRET_KEY"] # tw_sk_..., server only
def tw(path, method="GET", json=None):
r = requests.request(method, TW + path, json=json, headers={"Authorization": f"Bearer {KEY}"}, timeout=20)
body = r.json()
if not r.ok:
raise RuntimeError(f"{body['error']['code']}: {body['error']['message']}")
return body
works = tw("/artworks?limit=24")["items"]
session = tw("/checkout-sessions", "POST", {"items": [{"artwork": works[0]["slug"]}], "reference": "cart-1"})
print("send the buyer to", session["url"])
# poll for order updates
for order in tw("/orders?since=2026-10-01T00:00:00Z")["items"]:
print(order["number"], order["statusLabel"], order["feeCents"])
Prompts for AI coding assistants
Copy one of these into your AI coding assistant (Claude, for example), together with this whole document, from the root of your marketplace's codebase. Replace the parts in angle brackets.
1. Show The Walls catalog
Using the attached "The Walls Marketplace API" documentation, add a section to our marketplace that shows prints and originals from The Walls for artists who have connected their accounts. Read the works on the server with our secret key from the environment variable THEWALLS_SECRET_KEY (never send it to the browser), cache the catalog for 5 minutes, and show each work's image, title, artist, "prints from" price and, if present, the original's price. Link each work to its
url. Follow our existing components and styling. Show prices exactly as returned, formatted as US dollars, with no markup. Add tests for the API client.
2. Let artists connect The Walls
Using the attached documentation, add a "Connect The Walls" button to the artist profile settings in our marketplace. It should send the artist to the connect URL with our marketplace slug
, our registered return URL , a random state stored in the session, and the artist's id as external_ref. Add the callback route that checks state, calls GET /links/{link_id} with our secret key, and stores the link id, status and fee on the artist's record. Show the connection state and the fee the artist approved, with a way to reconnect. Handle error=access_denied.
3. Sell prints with checkout sessions
Using the attached documentation, add a product page for The Walls works with size, material and frame choices built from
prints.prices(GET /artworks/{id}), showing the price of the chosen configuration. The buy button should call our server, which creates a checkout session with our secret key and our cart id as the reference, then redirects the buyer to the session URL. If an original is for sale, link to its quoteUrl, where the buyer asks the artist for a shipping quote and buys it. Handle NOT_AVAILABLE and INVALID_ITEMS errors with a clear message.
4. Track orders and fees
Using the attached documentation, add a scheduled job that calls GET /orders?since=
with our secret key every 15 minutes, matches orders to our carts by reference, and stores each order's status and fee. Add an admin view of orders from The Walls and the fees we have earned (feeEarned true) by month.
5. Add the widget
Add The Walls widget to the artist profile page of our marketplace: a div with data-thewalls-key set to our publishable key from configuration, data-thewalls-artist set to the artist's The Walls slug when they have connected, and the script https://thewalls.art/embed/v1.js loaded once. Use data-theme="dark" when our dark theme is active.
Good practice
- Keep the secret key on your server, in an environment variable, and rotate it if it might have leaked.
- Cache catalog responses for a few minutes. Use the image URLs as they are; they are served by The Walls.
- Show prices and editions as returned, and re-read them before a buyer pays. Limited editions can sell out and originals sell once.
- Make it clear the work is sold and fulfilled by The Walls, and that buyers pay there.
- Show
attributionwith every Open Walls work, and keep Open Walls works visibly apart from certified ones. - Check
stateand verify everylink_idfrom your server.
Changelog
- v1 (2026-10-01): first release. Catalog, links, checkout sessions, orders, widget.
- v1 (2026-10-06): Open Walls works, when the artist approves them. New fields
channel,attributionandcertifiedon works, andopenWallson artists. Additive: nothing changed or was removed. The widget shows the attribution under Open Walls works. - v1 (2026-10-06): artists now set shipping for originals by continent and can leave countries out.
New fields
shippingByContinentandshipsExcludeonoriginal. Additive:shippingCentsstays, worked out from the new fields. - v1 (2026-10-06): the partner program. Sites apply at
/partnersand sign The Walls API Partner Agreement; keys are issued once it is countersigned. A marketplace waiting for that gets the new error codeMARKETPLACE_PENDING(403). Nothing else changed. - v1 (2026-10-15): more print materials and sizes. New material ids
etching,ctype,metalandacrylic; new sizesXXXL(Grand) andA4toA0. New fieldsmaterials(and, on A sizes,imageWidthInandimageHeightIn) on each size, anddescriptionon each material.prints.priceslists only what can be bought. Additive: nothing was renamed or removed. - v1 (2026-10-17): framed prints. New material ids
classic(Classic frame) andbox(Box frame): prints on Enhanced Matte Art paper (200gsm), always framed, with or without a mat; say so withprints.framedPaper. New frame idsgold,silver,darkgrey,lightgrey. Frames are no longer offered onpaperoretching(Prodigi frames only its own paper); useprints.pricesfor what each material comes in. Additive apart from that. - v1 (2026-10-17): framed Photo Rag.
papercan take a classic frame again where our print partner makes it, with or without a mat, under acrylic or float glass: a new optional fieldglaze(acrylic,glass) onprints.pricesentries and checkout items. Additive. - v1 (2026-10-18): every artist now has a page on The Walls, Open Walls sellers too:
profileUrlfor an Open Walls seller is their artist page at their Open Walls works (/artists/<slug>#open-walls) instead of the filtered Open Walls page. Nothing else changed. - v1 (2026-10-21): originals are now bought after the artist quotes shipping to each buyer, on The
Walls. New fields
shippingByQuoteandquoteUrlonoriginal;shippingByContinent,shipsExcludeandshippingCentsstay but are empty. Checkout sessions refuse originals with the new error codeORIGINAL_NEEDS_QUOTE(422); link the buyer toquoteUrlinstead. - v1 (2026-10-16): a new shape, the A paper shape (
ratio"1:1.4142"or"1.4142:1"), sold in A sizes only and filling the sheet. A sizes on other shapes are priced by the artist like any size. Additive.