Skip to main content
POST
https://api.revenda.nexus
/
auth
/
static-token
Gerar Token Fixo
curl --request POST \
  --url https://api.revenda.nexus/auth/static-token \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "username": "<string>",
  "password": "<string>"
}
'
{
  "status": 200,
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6InNldV91c3VhcmlvIiwiaWF0IjoxNjc0MzY1MTY2fQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
}

Como utilizar este endpoint?

Esse endpoint gera um token fixo de autenticação para a conta de usuário informada.

Parâmetros do corpo da requisição (Payload)

username
string
required
Nome de usuário da conta.
password
string
required
Senha da conta.

Exemplo de Requisição

POST https://api.revenda.nexus/auth/static-token
Headers:
{
  "Content-Type": "application/json"
}
Payload:
{
  "username": "seu_usuario",
  "password": "sua_senha"
}

Resposta

status
number
Indica o código HTTP da resposta. Esperado: 200 (OK).
token
string
Token fixo gerado para autenticação.

Exemplo de Resposta

{
  "status": 200,
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6InNldV91c3VhcmlvIiwiaWF0IjoxNjc0MzY1MTY2fQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
}