cURL
curl --request POST \ --url https://simpleapi.com.br/api/v1/client/user/auth/login \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "email": "[email protected]", "password": "abcd1234" } '
{ "data": { "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3NDY2NTM2NTUsInVzZXJfaWQiOiI2ODE5NGNiOWRlMGVmZGQzMTk1OGE3ODEifQ" }, "success_code": 123 }
Autentica um usuário e retorna um token JWT se as credenciais estiverem corretas. O token expira em 2 horas.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Dados de autenticação
"[email protected]"
6
"abcd1234"
Token JWT gerado com sucesso. Expira em 2 horas.
Show child attributes
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3NDY2NTM2NTUsInVzZXJfaWQiOiI2ODE5NGNiOWRlMGVmZGQzMTk1OGE3ODEifQ"