Skip to main content
POST
Gerar token de acesso

Authorizations

Authorization
string
header
required

base64(chave_publica:chave_secreta). Usado só em POST /auth.

Response

Token gerado

success
boolean
required
token
string
required

JWT para o header Authorization

Example:

"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."

tokenType
string
required
Allowed value: "Bearer"
expiresIn
integer
required

Validade em milissegundos. Em api.nasten.net é 600000 (10 minutos), com a chave de Produção e com a de Desenvolvimento.

Example:

600000