# API – Tenant Files

### General

This will go over getting tenant files in the API.

#### Getting Tenant Files

To get a list of tenant files, send a GET request to the following URL:

https://loanpro.simnang.com/api/public/api/1/files/Tenant

To add a tenant file, send a POST request to the following URL:

https://loanpro.simnang.com/api/public/api/1/files/Tenant/false

(replace “false” with “true” to make the file publicly available)

The body will then be formatted as follows:

—————————–1661761877511986552862541093

Content-Disposition: form-data; name=”upload”; filename=”(file name here)”

Content-Type: (file content type here)(file contents here)

—————————–1661761877511986552862541093–

#### Deleting

To delete tenant files, send a DELETE request to a URL formatted as follows:

https://loanpro.simnang.com/api/public/api/1/files/Tenant/<id>/false
• “<id>” – The ID of the tenant file

#### Getting the Homepage Image

To get the URL for a homepage image, send a GET request to a URL formatted as follows:

https://loanpro.simnang.com/api/public/api/1/files/customer.website/homepage.image({id})
• Replace {id} with the ID of the homepage image to get