## List Attachments

`AttachmentListPageResponse Beta.Attachments.List(AttachmentListParamsparameters, CancellationTokencancellationToken = default)`

**get** `/api/v1/beta/attachments`

List the attachments associated with a file (e.g. per-page screenshots).

### Parameters

- `AttachmentListParams parameters`

  - `required string sourceID`

    File UUID or directory file ID (dfl-...).

  - `string? organizationID`

  - `Long? pageSize`

  - `string? pageToken`

  - `string? projectID`

### Returns

- `class AttachmentListPageResponse:`

  Paginated list of file attachments.

  - `required IReadOnlyList<AttachmentListResponse> Items`

    The list of items.

    - `required string Name`

      Name of the attachment

    - `required Long Size`

      Size of the attachment in bytes

    - `DateTimeOffset? LastModified`

      When the attachment was last modified

  - `string? NextPageToken`

    A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

  - `Long? TotalSize`

    The total number of items available. This is only populated when specifically requested. The value may be an estimate and can be used for display purposes only.

### Example

```csharp
AttachmentListParams parameters = new() { SourceID = "source_id" };

var page = await client.Beta.Attachments.List(parameters);
await foreach (var item in page.Paginate())
{
    Console.WriteLine(item);
}
```

#### Response

```json
{
  "items": [
    {
      "name": "name",
      "size": 0,
      "last_modified": "2019-12-27T18:11:19.117Z"
    }
  ],
  "next_page_token": "next_page_token",
  "total_size": 0
}
```
