Sign-in with email + password

Sign-in with email + password (deprecated)

This endpoint will sign-in a customer to your front-end by e-mail + password.

POST https://customers.prepr.io/customers/sign_in

Params

The following params are available or required:

paramtyperequireddescription
emailStringtrue--
passwordStringtrue--
ttlIntegerfalseDefaults to one hour, set to 0 to never expire

Response

If the sign-in was successful an HTTP 200 OK response with a new created access token is returned.

{
  "id": "fe2bb9af-f1cd-4f3a-86dd-b85acb97ad28",
  "last_seen": "2021-03-01T15:35:58+00:00",
  "first_name": "Ryan",
  "last_name": "Vaughan",
  "access_token": {
    "access_token": "Y2uaqB0247slCOazXcT2u2UP9p9DTNd2DRDnKHLlwi796AsS18u1eHcCDQ",
    "token_type": "Bearer",
    "expires_in": 3600
  }
}

If the credentials don't match your records an HTTP 401 Unauthorized is returned.

Was this article helpful?

We’d love to learn from your feedback