Gallery Platform API
Reference

Mint a signed publication cover-image upload URL

Returns a one-time signed target for uploading a publication's cover image directly to Storage. The server derives the gallery-scoped object key; the client uploads the bytes, then sets it via PATCH /gallery/publications/{id} with `cover_image_path`. Requires a first-party session.

POST
/gallery/publications/{id}/cover-upload-url

Returns a one-time signed target for uploading a publication's cover image directly to Storage. The server derives the gallery-scoped object key; the client uploads the bytes, then sets it via PATCH /gallery/publications/{id} with cover_image_path. Requires a first-party session.

Authorization

bearerAuth publications:update
AuthorizationBearer <token>

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

In: header

Scope: publications:update

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Request a signed URL to upload an image object.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

{  "storage_path": "string",  "token": "string",  "signed_url": "string"}