Bazarazzi

Bazarazzi API

Everything the app does is also an HTTP API under /api/v1: read and change things, places, photos, documents, people and access, from a script or another tool.

Authenticate

Make a personal token in Settings, People, Developer, and send it as Authorization: Bearer inv_pat_... An organisation can also make service accounts, whose keys start with inv_sa_ and act with the role they are given.

Pick the workspace

Send the workspace id in X-Tenant-Id. A token belongs to one workspace, so with a token the header may be left out. GET /workspaces works without it.

Pages

Lists answer { data, next_cursor }. Pass next_cursor back as cursor until it is null. limit goes up to 200.

Errors

Errors are problem details (RFC 9457): a JSON body with title, status, detail and, for a refused field, errors. 401 is a missing or dead token, 403 a permission you lack, 404 also what you may not read.

Limits

600 requests a minute per token and 60 uploads, announced in the RateLimit headers. Past it, 429 with Retry-After.

Search

GET /items?q=... finds things by words in their name, case ignored, or by the start of their serial number (as typed or in capitals). serial_number=... asks for one serial number exactly. Both read an index, so they stay fast on a large workspace.

Safe retries

Send an Idempotency-Key with a POST: the same key within 24 hours replays the first answer instead of doing it twice.

Concurrent changes

A single thing answers with an ETag. Send it back in If-Match with PATCH or DELETE: if someone changed it since, you get 412 instead of overwriting their change.

Versions

Breaking changes go to /api/v2. /api/v1 then keeps working for at least 12 months, and its answers carry a Deprecation header.

Webhooks

An organisation can have up to 10 HTTPS endpoints told of changes within a minute. Each POST carries Inventaire-Signature: t=<seconds>,v1=<hex>, the HMAC-SHA256 of <t>.<raw body> with the webhook's secret: check it, and refuse a t older than 5 minutes. Failed deliveries are retried for 24 hours; deduplicate on the event id.

Workspaces

Items

Tags

Views

People

Files

Life

Labels

Insurance

Campaigns

Sharing

Found

Exports

Access

Webhooks