Skip to main content
Our API uses standard HTTP response codes to indicate the success or failure of a request. Errors will be returned with a JSON body containing more details.

Error Format

{
  "code": "INVALID_INPUT",
  "message": "amount must be greater than 0"
}

Common Errors

UNAUTHORIZED

Meaning: Invalid API key provided.
Action: Check that your SECURELEND_API_KEY environment variable is correct.

NO_OFFERS

Meaning: No lenders matched the provided criteria.
Action: Try adjusting the loan amount or other criteria.

INVALID_INPUT

Meaning: One or more request parameters were invalid.
Action: Check the message field for details on the specific error.

Retry vs. No-Retry

  • Retry: Network errors or 5xx server errors can generally be retried. We recommend an exponential backoff strategy.
  • Do Not Retry: 4xx client errors (like INVALID_INPUT or UNAUTHORIZED) should not be retried without first correcting the underlying issue in your request.