Gallery Platform API
Reference

Mint an invoice share link

Creates a public tokenized link for an invoice, optionally passcode-protected and/or time-limited. Returns the one-time token and share path.

POST
/gallery/invoices/{id}/shares

Creates a public tokenized link for an invoice, optionally passcode-protected and/or time-limited. Returns the one-time token and share path.

Authorization

bearerAuth sales:create
AuthorizationBearer <token>

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

In: header

Scope: sales:create

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.

Mint a public link for an invoice (optional passcode / expiry).

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

{  "id": "string",  "invoice_id": "string",  "expires_at": "string",  "revoked_at": "string",  "has_passcode": true,  "sent_at": "string",  "first_viewed_at": "string",  "last_viewed_at": "string",  "view_count": -9007199254740991,  "created_at": "string",  "token": "string",  "share_path": "string"}