Skip to main content
POST
/
auth
Gera token de acesso (login via API Key)
curl --request POST \
  --url https://api.avanttifinance.com/auth \
  --header 'Authorization: Basic <encoded-value>'
{
  "success": true,
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "tokenType": "Bearer",
  "expiresIn": 60000
}

Authorizations

Authorization
string
header
required

HTTP Basic com API Key (usuário) e API Secret (senha).

Response

Token gerado com sucesso.

success
boolean
Example:

true

token
string

Token JWT de acesso.

Example:

"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."

tokenType
string
Example:

"Bearer"

expiresIn
integer

Tempo de expiração do token em milissegundos.

Example:

60000