Gallery Platform API
Reference

Create a fair portal recipe

Saves a learned mapping for a portal domain (optionally pinned to a fair list). Unique per (gallery, portal domain, fair); use PATCH to revise an existing one.

POST
/gallery/fair-recipes

Saves a learned mapping for a portal domain (optionally pinned to a fair list). Unique per (gallery, portal domain, fair); use PATCH to revise an existing one.

Authorization

bearerAuth artworks:create
AuthorizationBearer <token>

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

In: header

Scope: artworks:create

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.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

{  "id": "string",  "portal_domain": "string",  "fair_list_id": "string",  "version": -9007199254740991,  "field_map": [    {      "source": "string",      "target_ref": "string",      "target_label": "string",      "transform": "string"    }  ],  "upload_steps": [    {      "image_slot": "string",      "target_ref": "string"    }  ],  "submit_step": {    "target_ref": "string",    "confirm": true  },  "confirmed_by": "string",  "learned_at": "string",  "created_at": "string",  "updated_at": "string"}