Skip to main content

Authentication Schemes

The LoanVista API supports two primary authentication schemes, depending on the endpoint you’re using.

1. Basic Authentication

Most core pipeline and ingestion endpoints use Basic Authentication (Basic <Base64(username:password)>).
  • Username: Your primary SDK/API username.
  • Password: Your primary SDK/API password.
'Authorization': 'Basic dXNlcm5hbWU6cGFzc3dvcmQ='

2. Bearer Token (JWT)

The public endpoints for retrieving loan data and managing accounts may require a Bearer Token.
  • Type: JSON Web Token (JWT).
  • Header: Authorization: Bearer <token>.

Authentication Headers

In addition to the Authorization header, most endpoints require:
HeaderDescription
ClientIdYour unique Client ID (e.g., 4 or 22).
AuthKeyYour pipeline-specific authentication key.

Example Request

curl -X POST https://api.loanvista.com/Loans \
  -H "Authorization: Basic your_base64_creds" \
  -H "ClientId: YOUR_CLIENT_ID" \
  -H "AuthKey: YOUR_AUTH_KEY" \
  -H "Content-Type: application/json" \
  -d '{"loanId": "LV-123"}'