Autenticação

Endpoint


Exemplo POST

{
  "email": "seuemail@....",
  "password": "suasenhaaqui"
}

Exemplo Response Body

{
  "success": true,
  "user": {
    "_id": "611....",
    "name": "Vin....",
    "image": "https://lh3.goog......",
    "email": "seuemail@.....,
    "phone": "(99) 99999-9999",
    "admin": false,
    "root": false,
    "blocked": false,
    "removed": false,
    "expiresIn": 1209600
  },
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9......"
}

Exemplo cURL

curl -X 'POST' \
  'https://apim.niiw.io/api/auth' \
  -H 'accept: */*' \
  -H 'Content-Type: application/json' \
  -d '{
  "email": "seuemail@........",
  "password": "suasenhaaqui"
}'

Last updated