Skip to main content
GET
List batch attachments for a chat
Batches already attached as chat context. Attach more with the POST sibling.

Authorizations

Authorization
string
header
required

Organisation API key from Settings → API / /api/keys/. The secret is shown once. Send Authorization: Bearer sk-abacus-…. One active key per organisation. Ingest (/api/v2/ingest/*) refuses API keys — that surface is Auth0-only with ingest:read / ingest:write scopes.

Path Parameters

thread_id
string
required

Response

id
integer
required
read-only
batch_id
integer
required
read-only
batch_name
string
required
read-only
batch_status
string
required
read-only
attached_at
string<date-time>
required
read-only
attached_by_email
string | null
required
read-only

Surface the attaching user's email or None if user was deleted.

attached_by is SET_NULL on user delete -- we keep the join row alive even after the user is gone, so this returns None when the attacher account no longer exists.

context_mode
string
required
read-only

Render mode for BatchExtractionProvider. 'full' renders the entire grid (batches over the size limit still downshift to summary); 'summary' renders schema + a small sample + a query_batch_data SQL pointer; 'schema_only' renders schema + pointer with no rows.