cURL
curl --request POST \ --url https://api-new.paineloffice.click/auth/login \ --header 'Content-Type: application/json' \ --data ' { "email": "<string>", "password": "<string>" } '
{ "auth": true, "username": "<string>", "password": "<string>", "token": "<string>", "id": 123, "big_tree": null, "isMaster": true, "user": { "type_user": "<string>", "id": 123, "username": "<string>", "credits": 123, "franchise_id": 123, "franquia": null } }
Realiza login
POST /auth/login
Show properties
{ "auth": true, "username": "bWlyZWxhdGVzdGU=", "password": "dGVzdGUxMjM=", "token": "e082a50b38f212f7216218a72c71c79f", "id": 1933600, "big_tree": null, "isMaster": true, "user": { "type_user": "Resellers", "id": 1933600, "username": "mirelateste", "credits": 268, "franchise_id": 1, "franquia": null } }
{ "success": false, "message": "Credenciais inválidas", "error": "INVALID_CREDENTIALS" }
{ "success": false, "message": "Dados de entrada inválidos", "errors": { "email": ["O campo email é obrigatório"], "password": ["O campo password é obrigatório"] } }