Gallery Platform API
Reference

Mark a thread read or unread

Marks the thread's inbound messages read (default) or unread, then recomputes the thread's unread count.

POST
/gallery/inbox/threads/{id}/read

Marks the thread's inbound messages read (default) or unread, then recomputes the thread's unread count.

Authorization

bearerAuth inbox:create
AuthorizationBearer <token>

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

In: header

Scope: inbox: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.

Mark a thread read (default) or unread.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

{  "id": "string",  "channel": "email",  "contact_id": "string",  "contact_name": "string",  "connection_id": "d3547de1-d1f2-4344-b4c2-17169b7526f9",  "provider_thread_id": "string",  "subject": "string",  "last_from": "string",  "last_snippet": "string",  "last_message_at": "string",  "unread_count": -9007199254740991,  "state": "open",  "assigned_to": "string",  "snooze_until": "string",  "created_at": "string",  "updated_at": "string"}