BillOS v1
Console llms.txt OpenAPI
GET/accountant/invite-link/preview

Who a client link comes from

GET /accountant/invite-link/preview

Requires the businesses scope.

What a link says, for the screen the client approves on: the office name and the accountant's email. A link that was altered, is not ours or has expired answers 404, the same for all three. Session only.

Query parameters

NameTypeDescription
tstringrequiredThe token from the link.

Response

200: { "ok": true, … }

FieldTypeDescription
okbooleanrequired
emailstringrequiredThe accountant's email.
labelstringrequiredThe office name.
expiresAtstringWhen the link stops working.

Errors: 400, 401, 403, 404, 429. Every failure answers { "error", "reason", "hint", "param", "doc_url", "retryable", "request_id" }: branch on reason, and read hint for what to change (https://docs.billos.co.il/errors.md).

GET /accountant/invite-link/preview
curl -X GET "$BASE/accountant/invite-link/preview?t=" \
  -H "X-Api-Key: $KEY"
const res = await fetch(`${BASE}/accountant/invite-link/preview`, {
  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}/accountant/invite-link/preview",
    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.