Gallery Platform API
Reference

List locations

Lists the gallery's managed locations with cursor pagination. Filter by `q` (name/address/notes substring), `kind`, `parent_id` (direct children of a location), or `is_active`.

GET
/gallery/locations

Lists the gallery's managed locations with cursor pagination. Filter by q (name/address/notes substring), kind, parent_id (direct children of a location), or is_active.

Authorization

bearerAuth locations:read
AuthorizationBearer <token>

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

In: header

Scope: locations:read

Query Parameters

limit?integer
Range1 <= value <= 100
Default20
cursor?string
q?string
Lengthlength <= 200
kind?string

Value in

  • "gallery"
  • "warehouse"
  • "storage"
  • "viewing_room"
  • "office"
  • "art_fair"
  • "on_loan"
  • "consignment"
  • "client_home"
  • "framer"
  • "conservator"
  • "in_transit"
  • "other"
parent_id?string
is_active?string
tag_id?array<string>
Items1 <= items <= 10
sort?string

Sort by one of: created, updated (default created).

Value in

  • "created"
  • "updated"
dir?string

Sort direction (default desc).

Value in

  • "asc"
  • "desc"

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

{  "data": [    {      "id": "string",      "name": "string",      "kind": "gallery",      "parent_id": "string",      "contact_id": "string",      "address": "string",      "notes": "string",      "is_active": true,      "created_at": "string",      "updated_at": "string"    }  ],  "next_cursor": "string"}