# `bird compliance attachments list`

## Usage

```bash
bird compliance attachments list [flags]
```

## Description

List the registration attachments this workspace has uploaded, newest first. Use it to find a document already uploaded and cite its id again rather than uploading the same file twice, and to read back what an upload produced. Returns one page; follow `next_cursor` as `starting_after` for the rest. Pass `include_total` for a total count. An attachment no registration has cited expires after seven days and stops being listed.

Returns a paginated JSON envelope; narrow with the filters below and page with --limit and --starting-after.

## Examples

```bash
bird compliance attachments list
bird compliance attachments list | jq -r '.data[].id'
bird compliance attachments list --limit 50 --starting-after <cursor>
```

## Options

#### Pagination

| Name               | Description                                                                                                                                                                                                                                                                                                                                             |
| ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `--ending-before`  | Cursor from the prev\_cursor or refresh\_cursor field of a previous list response. Returns items immediately before the cursor position in the current sort order. prev\_cursor returns the preceding page. refresh\_cursor anchors at the first row of that response, which on a newest-first sort is how to fetch the items that have appeared since. |
| `--include-total`  | When true, the response includes a total field with the total number of items matching the request's filters across all pages.                                                                                                                                                                                                                          |
| `--limit <n>`      | Maximum number of items to return per page.                                                                                                                                                                                                                                                                                                             |
| `--order`          | Sort direction. Defaults to desc, which sorts from newest to oldest or largest to smallest, depending on the selected sort field. Possible values: asc, desc.                                                                                                                                                                                           |
| `--sort`           | Field to sort by. Defaults to created\_at. Possible values: created\_at.                                                                                                                                                                                                                                                                                |
| `--starting-after` | Cursor from the next\_cursor field of a previous list response. Returns items immediately after the cursor position in the current sort order.                                                                                                                                                                                                          |

#### Filters

| Name                | Description                                      |
| ------------------- | ------------------------------------------------ |
| `--response-schema` | Print the fields this command returns, then exit |

## Related

| Name                                                                                      | Description                      |
| ----------------------------------------------------------------------------------------- | -------------------------------- |
| [`bird compliance attachments delete`](/docs/cli/reference/compliance-attachments-delete) | Delete a registration attachment |
| [`bird compliance attachments upload`](/docs/cli/reference/compliance-attachments-upload) | Create a registration attachment |