> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Upload

> Upload one or more files to the FlexiCapture for Invoices Cloud via the v2/file POST method, which returns a FileInfoModel with the file ID and access token.

Uploads one or more files to the cloud. A list of all valid input formats is available in the [Specification](/flexi-capture/cloud/cloud-f-cfor-invoices-formats) section.

The method returns the file's identifier and token in the response. The identifier and token are used in all subsequent requests concerning the file.

<Warning>
  The project settings for document assembly are ignored when uploading a file via the REST API. A separate document is created for each file.
</Warning>

## HTTP request

```http theme={null}
POST https://api-{location-id}.flexicapture.com/v2/file
```

Replace `{location-id}` with your [supported location](/flexi-capture/cloud/cloud-f-cfor-invoices-api#icaas-supported-countries).

## Path parameters

| Parameter | Type           | Description          |
| --------- | -------------- | -------------------- |
| `file`    | file, formdata | Required. File body. |

## Response

If successful, the response body contains an instance of `FileInfoModel`.

```json theme={null}
{
  "id": "string",
  "token": "string",
  "name": "string",
  "extension": "string",
  "hash": "string",
  "size": 0,
  "mime": "string",
  "is_recognizable": true,
  "account": "string",
  "application": "string",
  "email": "string",
  "created": "YYYY-MM-DDT00:00:00.000",
  "expiring": "YYYY-MM-DDT00:00:00.000"
}
```

| Field             | Type                 | Description                                                                                    |
| ----------------- | -------------------- | ---------------------------------------------------------------------------------------------- |
| `id`              | string               | Required. File ID. The ID is used in all subsequent requests concerning the file.              |
| `token`           | string               | Required. File access token. The token is used in all subsequent requests concerning the file. |
| `name`            | string               | Required. File name.                                                                           |
| `extension`       | string               | Required. File extension.                                                                      |
| `hash`            | string               | Required. File SHA512 hash.                                                                    |
| `size`            | integer              | Required. File size in bytes.                                                                  |
| `mime`            | string               | Required. File MIME type.                                                                      |
| `is_recognizable` | boolean              | Required. Specifies whether the file is recognizable.                                          |
| `account`         | string               | Required. Account ID.                                                                          |
| `application`     | string               | Optional. Application ID.                                                                      |
| `email`           | string               | Required. The email address of the user who uploaded the file.                                 |
| `created`         | string (\$date-time) | Required. File upload date.                                                                    |
| `expiring`        | string (\$date-time) | Required. File expiration date.                                                                |
