Skip to main content

Auth

Validado (off-chain / infra)
Suite plataforma — register/login/refresh/me/logout/unified/siwe/passkey validados (51/51).

Gerada automaticamente do spec OpenAPI da API (fonte de verdade). 10 endpoint(s).

Login

POST /auth/login

Authenticate with email and password. Returns JWT tokens.

Auth: pública / api-key

Request body:

CampoTipoObrigatórioDescrição
emailstring (email)sim
passwordstringsim

Respostas: 200, 401


Logout

POST /auth/logout

Revoke a refresh token.

Auth: jwt

Request body:

CampoTipoObrigatórioDescrição
refresh_tokenstringsim

Respostas: 200


Get current user

GET /auth/me

Returns the authenticated user profile.

Auth: jwt

Respostas: 200


Update profile

POST /auth/me

Update the authenticated user's profile (name, company).

Auth: jwt

Request body:

CampoTipoObrigatórioDescrição
full_namestringnão
company_namestringnão

Respostas: 200, 201


Update profile (PATCH legacy)

PATCH /auth/me

Auth: jwt

Request body:

CampoTipoObrigatórioDescrição
full_namestringnão
company_namestringnão

Respostas: 200


Generate passkey challenge

GET /auth/passkey/challenge

Returns a short-lived challenge for dashboard passkey registration or authentication.

Auth: pública / api-key

Query params:

ParamTipoObrigatório
intentregister | authenticatesim

Respostas: 200


Refresh tokens

POST /auth/refresh

Exchange a refresh token for new access + refresh tokens.

Auth: pública / api-key

Request body:

CampoTipoObrigatórioDescrição
refresh_tokenstringsim

Respostas: 200, 401


Register new tenant

POST /auth/register

Creates a new tenant and user account. Returns JWT tokens.

Auth: pública / api-key

Request body:

CampoTipoObrigatórioDescrição
emailstring (email)sim
passwordstringsim
company_namestringsim
full_namestringsim

Respostas: 201, 409


Generate SIWE nonce

GET /auth/siwe/nonce

Returns a nonce for EIP-4361 Sign-In With Ethereum flows in the dashboard.

Auth: pública / api-key

Respostas: 200


Unified dashboard authentication

POST /auth/unified

Single auth entrypoint for email/password, wallet SIWE, passkeys, Google OAuth, and Apple OAuth login.

Auth: pública / api-key

Request body:

CampoTipoObrigatórioDescrição
methodemail | siwe | oauth | passkeysim
emailstring (email)não
passwordstringnão
messagestringnão
signaturestringnão
addressstringnão
providergoogle | applenão
id_tokenstringnão
flowregister | authenticatenão
challengestringnão
credential_idstringnão
client_data_jsonstringnão
public_keyPasskeyPublicKeyDtonão
authenticator_datastringnão
passkey_signaturestringnão

Respostas: 200, 400, 401