Error Format
Common Errors
UNAUTHORIZED
Meaning: Invalid API key provided.
Action: Check that your
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.
Action: Try adjusting the loan amount or other criteria.
INVALID_INPUT
Meaning: One or more request parameters were invalid.
Action: Check the
Action: Check the
message field for details on the specific error.Retry vs. No-Retry
- Retry: Network errors or
5xxserver errors can generally be retried. We recommend an exponential backoff strategy. - Do Not Retry:
4xxclient errors (likeINVALID_INPUTorUNAUTHORIZED) should not be retried without first correcting the underlying issue in your request.