---
title: Upload
slug: investor-onboarding-io/upload
description: This document outlines an API endpoint for uploading files with a TTL property. Discover how to send a multipart-form-data request and set the expiration time for the URL. Learn about the response structure, including essential details like file ID, type,
docTags: 
createdAt: 2023-06-07T07:50:26.000Z
---

# Endpoint

POST\:: /api/fileregistry/upload

# Header

| **Property**  | **Value**                                     |
| ------------- | --------------------------------------------- |
| Authorization | Authorization header as per the login request |

# Request Data

Multipart-form-data with & TTL property

# TTL

TTL accepts the following values:(2 mins, 10 mins, 30 mins, 2 hrs, 12 hrs, 7 days, 15 days, 1 month, 3 month, 6 month, 1 year, 3 years, infinity)

When multiple sides or pages of an ID card are required, you need to upload each of them. For example, an Aadhaar card has information on both sides whereas PAN has only the front side containing useful information.

The URLs expire in 30 seconds by default, unless explicitly specified in the inbound request in the TTL parameter.

# Expected Response

```json
{
  "file": {
    "id": 1**8,
    "filetype": ".......",
    "size": 3181,
    "directURL": ".......",
    "protected": false
  }
}
```

**The upload returns the following properties:**

1. id -> Int (The id of the file)
2. filetype -> String (Type of file which was passed into Signzy file system API)
3. size -> Int (Size in bytes of the uploaded file)
4. directURL -> String (Direct URL using which the file can be accessed. This is important and required in other API calls)

:::hint{type="info"}
### Getting help

Please feel free to contact us if you have any questions, require clarification, or have ideas for how to make the documents or any of our services better.


You can reach out to us at [help@signzy.com](#).
:::

