Consumer Login

POSThttps://sandbox-api.truthlocks.com/v1/consumer/login

Authenticate a consumer and receive a session cookie. The session cookie is HttpOnly and Secure. Consumers must verify their email before logging in.

Body Parameters

emailstringrequired

Consumer's email address

Defaults to jane@example.com

passwordstringrequired

Account password

Responses

{
  "user": {
    "user_id": "550e8400-e29b-41d4-a716-446655440000",
    "email": "jane@example.com",
    "display_name": "Jane Doe",
    "status": "ACTIVE"
  },
  "status": "success"
}
POST/v1/consumer/login
Language
cURL Request
Examples ▾
curl --request POST \
  --url https://sandbox-api.truthlocks.com/v1/consumer/login \
  --header 'accept: application/json' \
  --header 'content-type: application/json' \
  --data '{
  "email": "jane@example.com"
}'
Response

Click Try It! to send a real request, or view sample responses: