BookSpace

BookSpace Partner API

Corporate, machine-to-machine API for a single partner tenant.

| | TST | Production |

|--|-----|------------|

| Base | https://api-tst.bookspace.me/api/partner/v1 | https://api.bookspace.me/api/partner/v1 |

| Token | https://api-tst.bookspace.me/oauth2/v2.0/token | https://api.bookspace.me/oauth2/v2.0/token |

| OpenAPI | GET /openapi.json | same path |

In-app docs: /{locale}/admin/api (hub) and /{locale}/admin/{module}/api.

Auth

OAuth2 client_credentials. Same Client ID and secrets as Partners → OAuth2 (Graph calendar). Do not use the admin UI login JWT.

http
POST /oauth2/v2.0/token
Content-Type: application/x-www-form-urlencoded

grant_type=client_credentials&client_id={CLIENT_ID}&client_secret={SECRET}

Then: Authorization: Bearer {access_token}.

Details: auth.md.

What this API is (and is not)

Use thisDo not use this
/api/partner/v1 — tenant CRUD + InsightsAdmin JWT (/places, /api/partner/panels/v1, …) — UI only
Device RPC (/api/panels/v1, lockers device) — firmware
Graph /v1.0/users/.../calendar — panel calendar

Scope is always the partner bound to the OAuth2 client. Cross-tenant ids return E_NOT_FOUND or E_FORBIDDEN.

Out of scope: creating other partners, Company ID / Display / Theme (Lante global_admin), rotating OAuth secrets, password hashes.

Limits

  • 120 GET/min and 30 writes/min per partner (X-RateLimit-*)
  • Optional Idempotency-Key on POST / PATCH / DELETE
  • List limit 1–200 (default 100) + nextCursor
  • Insights from/to max 370 days

Errors

json
{ "ok": false, "error": { "code": "E_VALIDATION", "message": "…" } }

See errors.md.

Modules

  • Account / partner
  • Places
  • Sites — shared sites live under Places / Sites endpoints
  • Lockers
  • Panels
  • Insights
  • Users
  • Reservations

JSON is camelCase. Dates are ISO-8601.

Versioning

See versioning.md — current policy: stay on v1, additive changes only.

Usage & rate limits

See usage.md.

Public portal

Rendered online at /{locale}/docs/api (and docs[-tst].bookspace.me). Device RPC, MQTT, and internal ADR/SQL stay out of the public hub.

Moduły

Używaj OAuth2 client credentials — nie JWT z logowania do panelu admina.