Autentica usuário do dashboard administrativo
cURL
curl --request POST \ --url https://api.example.com/admin/auth/login \ --header 'Content-Type: application/json' \ --data ' { "email": "<string>", "password": "<string>" } '
{ "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...", "refresh_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...", "user": { "id": "user_001", "email": "[email protected]", "nome": "Admin", "role": "empresa_admin", "empresa_id": "store_001" } }
curl -X POST "https://api.indiqai.com/api/v1/admin/auth/login" \ -H "Content-Type: application/json" \ -d '{ "email": "[email protected]", "password": "senha123" }'
Was this page helpful?