BillOS v1
Console llms.txt OpenAPI
GET/businesses

List your businesses

GET /businesses

Requires the businesses scope.

Every business created under your key, newest first. Signing-key material is never included.

Response

200: { "ok": true, … }

FieldTypeDescription
okbooleanrequired
businessesarray of Businessrequired

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

GET /businesses
curl -X GET "$BASE/businesses" \
  -H "X-Api-Key: $KEY"
const res = await fetch(`${BASE}/businesses`, {
  method: 'GET',
  headers: {
    'X-Api-Key': KEY,
  },
})
const data = await res.json()
if (!data.ok) throw new Error(data.reason)
import requests
res = requests.get(
    f"{BASE}/businesses",
    headers={"X-Api-Key": KEY},
)
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.