# Reference (/docs/reference)



This section is the reference manual — generated from the codebase where possible and kept in
sync by tests.

* [Rule engine formulas](/docs/reference/formulas) — syntax, operators, every function and evaluation examples.
* [API](/docs/reference/api) — the two surfaces, how to authenticate to each, and the shape of an
  error.
* [Errors](/docs/reference/errors) — the stable error codes every endpoint answers.
* [Permissions](/docs/reference/permissions) — built-in and custom roles, per-decision grants and
  restricted access.
* [Data model](/docs/reference/data-model) — tables and columns, snake_case in the database,
  camelCase in the code.
* [Environment variables](/docs/self-host/configuration) — every knob, with default and meaning.
