Skip to main content
POST
/
admin
/
auth
/
login
Login Admin
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"
  }
}

Login Admin

Autentica um usuário administrador no dashboard.

Request Body

email
string
required
Email do administrador
password
string
required
Senha

Request

curl -X POST "https://api.indiqai.com/api/v1/admin/auth/login" \
  -H "Content-Type: application/json" \
  -d '{
    "email": "[email protected]",
    "password": "senha123"
  }'

Response

{
  "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "refresh_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "user": {
    "id": "user_001",
    "email": "[email protected]",
    "nome": "Admin",
    "role": "empresa_admin",
    "empresa_id": "store_001"
  }
}