BillOS v1
Console llms.txt OpenAPI
POST/businesses/{bid}/files/thumbs

Batched receipt thumbnails

POST /businesses/{bid}/files/thumbs

Requires the export scope.

Small data-URI JPEG previews for up to 60 stored image files in ONE call, built for list views, where a request per row would burn the rate limit. Non-image files (PDFs) are simply absent from the answer.

Path parameters

NameTypeDescription
bidstringrequiredBusiness id, from POST /businesses.

Body

FieldTypeDescription
idsarray of stringrequired

Response

200: { "ok": true, … }

FieldTypeDescription
okboolean
thumbsobjectfileId → data URI. Missing key = no thumbnail for that file.

Errors: 400, 401, 403, 404, 429. Every failure answers { "error": …, "reason": … }. Branch on reason.

POST /businesses/{bid}/files/thumbs
curl -X POST "$BASE/businesses/$BID/files/thumbs" \
  -H "X-Api-Key: $KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "ids": []
  }'
const res = await fetch(`${BASE}/businesses/${BID}/files/thumbs`, {
  method: 'POST',
  headers: {
    'X-Api-Key': KEY,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "ids": []
  }),
})
const data = await res.json()
if (!data.ok) throw new Error(data.reason)
import requests
res = requests.post(
    f"{BASE}/businesses/{BID}/files/thumbs",
    headers={"X-Api-Key": KEY},
    json={
      "ids": []
    },
)
data = res.json()
Set BASE to https://api.billos.co.il/v1 and KEY to your bk_live_… key, or a bk_test_… key to run it against the sandbox.
Manage your businesses, keys and webhooks in the BillOS Console.