> ## 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.

# メタデータを取得

> v2/file info の GET メソッドを使用して FlexiCapture for Invoices Cloud からファイル メタデータを取得し、名前、サイズ、ハッシュ、MIME 型を含む FileInfoModel を返します。

ファイル メタデータを返します。

<div id="http-request">
  ## HTTP リクエスト
</div>

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

`{location-id}` を[サポート対象のロケーション](/ja/flexi-capture/cloud/cloud-f-cfor-invoices-api#icaas-supported-countries)に置き換えてください。

<div id="path-parameters">
  ## パス パラメーター
</div>

| パラメーター  | 型            | 説明                                                     |
| ------- | ------------ | ------------------------------------------------------ |
| `id`    | path, string | 必須。**file.Upload** メソッドのレスポンスで返されるファイル ID。             |
| `token` | path, string | 必須。**file.Upload** メソッドのレスポンスで返されるファイルのファイル アクセス トークン。 |

<div id="response">
  ## レスポンス
</div>

成功した場合、サーバーは HTTP ステータス 200 OK と、`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"
}
```

<div id="fileinfomodel">
  ### FileInfoModel
</div>

| Field             | 型                    | 説明                             |
| ----------------- | -------------------- | ------------------------------ |
| `id`              | string               | 必須。ファイル ID。                    |
| `token`           | string               | 必須。ファイル アクセス トークン。             |
| `name`            | string               | 必須。ファイル名。                      |
| `extension`       | string               | 必須。ファイル拡張子。                    |
| `hash`            | string               | 必須。ファイルの SHA512 ハッシュ。          |
| `size`            | integer (\$int32)    | 必須。バイト単位のファイル サイズ。             |
| `mime`            | string               | 必須。ファイルの MIME 型。               |
| `is_recognizable` | boolean              | 必須。ファイルが認識可能かどうかを示します。         |
| `account`         | string               | 必須。アカウント ID。                   |
| `application`     | string               | 任意。アプリケーション ID。                |
| `email`           | string               | 必須。ファイルをアップロードしたユーザーのメール アドレス。 |
| `created`         | string (\$date-time) | 必須。ファイルのアップロード日時。              |
| `expiring`        | string (\$date-time) | 必須。ファイルの有効期限日時。                |
