Jatobá
API Reference

Settings

Serial prefix and acervo token per tenant

Auth required. In an organization, writes require admin/owner; personal workspaces are unrestricted.

GET /api/settings/serial-prefix

The prefix minted onto new document serials for the active tenant. Defaults to JAT.

200{ "prefix": "JAT", "example": "JAT-XXXXX" }

PUT /api/settings/serial-prefix

Sets the prefix for new serials (existing serials never change — they stay anchored on-chain under their original number).

Body fieldTypeConstraints
prefixstring (required)2–8 uppercase letters/digits, e.g. ALR

200 { "prefix": "ALR", "example": "ALR-XXXXX" } · 400 invalid format.

GET /api/settings/acervo-token

The Bearer token that authorizes the tenant's public acervo feed, or null when the acervo is off.

200{ "token": "..." | null }

POST /api/settings/acervo-token

Mints a fresh token (revoking any previous one) and turns the public feed on. Store it where the public site reads it (e.g. JATOBA_ACERVO_TOKEN).

DELETE /api/settings/acervo-token

Revokes the token, turning the public feed off. 200{ "token": null }

On this page