Skip to main content
POST
/
auth
/
login
Login de usuário
curl --request POST \
  --url https://dev.plugtopay.com/api/v1/auth/login \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "joao@example.com",
  "password": "secret123"
}
'
{
  "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9...",
  "token_type": "Bearer",
  "expires_at": "2026-05-27T12:00:00+00:00",
  "user": {
    "id": 1,
    "name": "João Silva",
    "email": "joao@example.com",
    "company_id": 1
  }
}

Body

application/json
email
string<email>
required
Example:

"joao@example.com"

password
string<password>
required
Example:

"secret123"

Response

Login efetuado.

Sessão autenticada com JWT.

token
string
required
Example:

"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9..."

token_type
string
required
Example:

"Bearer"

expires_at
string<date-time>
required
Example:

"2026-05-27T12:00:00+00:00"

user
object
required