Skip to content

Authenticate (Cards service account)

Issues a Cards service-account JWT for the given institution. Used by the monolith EncoreCardsGateway and other service clients before calling Cards endpoints.

Note: This is not the global LXP user login. It authenticates against the Cards admins table (legacy AES or bcrypt password).

Terminal window
curl --request POST \
--url 'https://lxp.prod.api.toolzz.media/authenticate' \
--header 'Content-Type: application/json' \
--data '{
"email": "cards-service@example.com",
"password": "<password>",
"institution_id": 39955387
}'

institution_id (or toolzz_institution_id) may also be sent as a query parameter.

{
"token": "<jwt>"
}

Use the token as Authorization: Bearer <jwt> on subsequent Cards calls.


ParameterTypeDescriptionRequired
emailstringCards admin email.Yes
passwordstringCards admin password.Yes
institution_idnumberInstitution ID stamped into the JWT (alias: toolzz_institution_id).Yes

KeyTypeDescription
tokenstringJWT for Cards service calls, scoped to the institution.

HTTPCodeWhen
400invalid_argumentMissing email/password/institution
401unauthenticatedInvalid credentials
500internalUnexpected failure

  • Public endpoint (no prior JWT).
  • Credentials must match a row in Cards admins.
  • Token institution scope is fixed at authenticate time.