Febasi Docs

Auth API

A multi-tenant, modular authentication and authorization service powering the Febasi ecosystem.

The Febasi Auth API is the centralized identity service for every Febasi product. It owns users, sessions, roles, permissions, tenants, and the machine-to-machine credentials that connect them.

It is multi-tenant by design, modular by architecture, and already in production at:

https://auth.febasi.com.br/api/v1

What it gives you

Built-in conventions

  • Versioned URLs. Every endpoint lives under /api/v1/.... Breaking changes ship as /api/v2/..., never as a silent change to v1.

  • Standard JSON envelope. Every response — success or error — wraps its payload the same way:

    { "success": true, "data": { "..." : "..." } }
    { "success": false, "error": "Human message", "code": "MACHINE_CODE" }
  • One identifier from any of three. Users authenticate with email, username, or cpf_cnpj — whichever the tenant chose to enable.

  • Bcrypt 12 rounds for password hashing (OWASP 2025 baseline).

  • HS256 JWTs with per-tenant secrets where configured, with safe rotation.

Pick your path

Production base URL

EnvironmentBase URL
Productionhttps://auth.febasi.com.br/api/v1
Local devhttp://localhost:3001/api/v1

The interactive Swagger UI is published at /docs on the production host and ships the same OpenAPI 3.1 spec used to generate the Postman collection that lives with the service repository.

On this page