curl --request POST \
--url https://api.example.com/auth/login \
--header 'Content-Type: application/json' \
--data '{}'{
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"user": {
"id": "7138b7d4-e653-4811-9a40-349f7ba342d4",
"email": "usuario@exemplo.com.br",
"name": "Nome do Usuário",
"tenantId": "e305e9a4-585e-49b8-bc88-9fba992c6326"
}
}
Autentica um usuário e retorna um token de acesso para a plataforma.
curl --request POST \
--url https://api.example.com/auth/login \
--header 'Content-Type: application/json' \
--data '{}'{
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"user": {
"id": "7138b7d4-e653-4811-9a40-349f7ba342d4",
"email": "usuario@exemplo.com.br",
"name": "Nome do Usuário",
"tenantId": "e305e9a4-585e-49b8-bc88-9fba992c6326"
}
}
{
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"user": {
"id": "7138b7d4-e653-4811-9a40-349f7ba342d4",
"email": "usuario@exemplo.com.br",
"name": "Nome do Usuário",
"tenantId": "e305e9a4-585e-49b8-bc88-9fba992c6326"
}
}
The body is of type object.