Add Loan Document

This request allows you to upload a loan document.


This request is a bit different from our others listed here in our documentation. Here's what you need to know about uploading loan documents:

  • This request requires two steps. (Pretty exciting, right?) The first step is acquiring a URL to send the upload file to. Then, the second step is actually uploading the file to your account through the URL.
  • Most of our requests on this site allow you to try them yourself; however, this one doesn't quite work that way. We'll provide you the information for trying this yourself in your own REST client, though.

And for an example of how uploading documents in the UI works, see our Loan Documents article.

Step 1 - Generate Upload URL

The first step to adding a loan document is generating a URL. Here, you'll send a POST request to the following URL:{ID})/document/upload

This step requires a JSON payload, and the payload should be formatted like the following example:

  "sectionId": 1, // This is the ID of the "section"——or category——that the document is filed under. You can create your own sections.
  "fileName": "file.jpg",
  "customFileName": "Loan Document"
Authorization:<Bearer token>
Autopal-Instance-Id:<Tenant ID>

A successful request will result in a response like the following:

  "d": {
    "id": "89",
    "fileName": "file.jpg",
    "uploadUrl": "",
    "customFileName": "Loan Document",
    "mime": "image/jpeg"

This response includes a uploadUrl field. This field holds the URL used in the next step.

Step 2 - Upload Document

This step is where you'll actually upload the document to your account.


This step does not require authentication. You will not use any headers.

To upload the document, send a PUT request to the uploadUrl returned by the request in the step above. Here are examples of the payload in both cURL and Python:


--upload-file "C:\Users\filepath\file.jpg" 

import requests

url = ""

file = open(r'C:\Users\filepath\file.jpg', 'rb')

response = requests.put(url, data=file)

print('Status:', request.status_code)

If you're a Postman user, you can upload files easily by selecting the 'Binary' body type and using the 'Upload File' button.