## Read File

`RetrievalReadResponse Beta.Retrieval.Read(RetrievalReadParamsparameters, CancellationTokencancellationToken = default)`

**post** `/api/v1/retrieval/files/read`

Read the parsed text content of a specific file.

### Parameters

- `RetrievalReadParams parameters`

  - `required string fileID`

    Body param: ID of the file to read.

  - `required string indexID`

    Body param: ID of the index the file belongs to.

  - `string? organizationID`

    Query param

  - `string? projectID`

    Query param

  - `Long? maxLength`

    Body param: Maximum number of characters to read from the offset.

  - `Long offset`

    Body param: Starting character offset.

### Returns

- `class RetrievalReadResponse:`

  File read result.

  - `required string Content`

    Parsed text content of the file.

### Example

```csharp
RetrievalReadParams parameters = new()
{
    FileID = "file_id",
    IndexID = "idx-abc123",
};

var response = await client.Beta.Retrieval.Read(parameters);

Console.WriteLine(response);
```

#### Response

```json
{
  "content": "content"
}
```
