Gallery Platform API
Reference

List contact documents

Lists a contact's internal documents (agreements, invoices, shipping paperwork, correspondence). A first-party session gets a short-lived signed download URL for each; an API-key principal gets the rows but no download link (`url` is null).

GET
/gallery/contacts/{id}/documents

Lists a contact's internal documents (agreements, invoices, shipping paperwork, correspondence). A first-party session gets a short-lived signed download URL for each; an API-key principal gets the rows but no download link (url is null).

Authorization

bearerAuth contacts:read
AuthorizationBearer <token>

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

In: header

Scope: contacts:read

Path Parameters

id*string

The contact id.

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",      "contact_id": "string",      "storage_path": "string",      "url": "string",      "kind": "agreement",      "title": "string",      "file_name": "string",      "content_type": "string",      "byte_size": -9007199254740991,      "position": -9007199254740991,      "created_at": "string",      "updated_at": "string"    }  ]}