Gallery Platform API
Reference

Link an artwork to a deal

Links an artwork (which must belong to the deal's gallery) to the deal, optionally with an asking-price snapshot. Carried into the sale's line items on won-conversion.

POST
/gallery/deals/{id}/artworks

Links an artwork (which must belong to the deal's gallery) to the deal, optionally with an asking-price snapshot. Carried into the sale's line items on won-conversion.

Authorization

bearerAuth deals:update
AuthorizationBearer <token>

A gallery API key, sent as Authorization: Bearer gpk_… (or the x-api-key header).

In: header

Scope: deals:update

Path Parameters

id*string

Header Parameters

Idempotency-Key?string

Optional. Send a unique key per logical operation to make retries safe: a retry with the same key replays the stored success for 14 days instead of re-running the write. Reusing a key with a different body returns 400.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Link an artwork (same gallery) to a deal.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

{  "deal_id": "string",  "artwork_id": "string",  "asking_price_cents": -9007199254740991,  "currency": "string",  "position": -9007199254740991,  "created_at": "string"}