Skip to main content

Get User By Email v2

Este endpoint permite recuperar los datos de un usuario haciendo ingreso de su correo.

Endpoint#

Headers

KeyValueDescription
AuthorizationBearer {{access_token}}access_token obtained in Atenea
Method: POST
URL: https://atenea.trust.lat/users/email

Body Variables:

KeyValue ExampleDescription
emailemail.example@gmail.comCorreo perteneciente a un usuario. Obligatorio.
caution

Recuerda que para utilizar este endpoint es necesario un access token obtenido en el servicio Atenea.

Como obtener un access token

Body#

{
"email": "email.example@gmail.com"
}

Code Examples#

curl --location --request POST 'https://atenea.trust.lat/users/email' \
--header 'Authorization: Bearer {{access_token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"email": "email.example@gmail.com"
}'

Responses#

HTTP Code: 200 OK#

{
"status": true,
"message": "ok",
"user": {
"id": 1,
"email": "email.example@gmail.com",
"created_at": "2019-03-25T02:52:07.343Z",
"updated_at": "2020-08-26T18:45:12.206Z",
"dni": "20123123-4",
"phone_number": "+56912345678",
"name": "Pedro",
"last_name": "Perez",
"company_uid": "1",
"status": true,
"img": "",
"nationality": "CHL",
"load_uuid": "",
"confirmed": true
}
}

HTTP Code: 404 Not Found - User Not Found.#

{
"status": false,
"message": "Not found"
}

HTTP Code: 404 Not Found - Field Email Not Found.#

{
"status": false,
"message": "Field email not found"
}
Last updated on by Claudio-Franco