# List conversation attachments

> GET https://api.nabrah.ai/api/ext/omni_v2/conversation/conversation/{id}/attachments

Group: Conversations. Page: https://www.nabrah.ai/en/docs/api-reference/conversations/list-conversation-attachments

Returns every attachment shared in the conversation across all of its messages, in a single flat list. `meta.total_count` is the number of attachments and `payload` is the array of attachment objects (each with `data_url`, `thumb_url`, `file_type`, `extension`, `file_size`, dimensions for images, and the `sender`). Use this to render a media/files gallery for the thread without paging through every message.

## Attachment fields

Each attachment in `payload` describes one shared file.

- **data_url / thumb_url**: `data_url` is the full-resolution file URL; `thumb_url` is a thumbnail (for images/video). Both are served by the storage backend.
- **file_type / extension / file_size**: MIME-style type, file extension, and size in bytes. For images, `width` and `height` are populated; for location attachments `coordinates_lat`/`coordinates_lng` are set.

## Authorization

- `X-API-Key` (string, header, required): your workspace API key.

## Path parameters

- `id` (integer, required): Integer id of the conversation whose attachments to list. From a list endpoint or `GET.../conversation/{id}`.

## Response

### 200 Successful Response

Content type: `application/json`

```json
{
  "meta": {
    "total_count": 0
  },
  "payload": [
    {
      "id": 0,
      "account_id": 0,
      "message_id": 0,
      "thumb_url": "string",
      "data_url": "string",
      "file_size": 0,
      "file_type": "string",
      "extension": "string",
      "width": 0,
      "height": 0,
      "created_at": 0,
      "sender": {
        "id": 0,
        "name": "string",
        "available_name": "string",
        "avatar_url": "string",
        "type": "string",
        "availability_status": "string",
        "thumbnail": "string",
        "additional_attributes": {},
        "custom_attributes": {},
        "email": "string",
        "identifier": "string",
        "phone_number": "string",
        "blocked": false
      },
      "coordinates_lat": 0,
      "coordinates_lng": 0,
      "fallback_title": "string",
      "meta": {}
    }
  ]
}
```

### 422 Validation Error

Content type: `application/json`

```json
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}
```

## Request examples

### cURL

```bash
curl --request GET \
  --url 'https://api.nabrah.ai/api/ext/omni_v2/conversation/conversation/<id>/attachments' \
  --header 'X-API-Key: <your-api-key>'
```

### Python

```python
import requests

url = "https://api.nabrah.ai/api/ext/omni_v2/conversation/conversation/<id>/attachments"
headers = {"X-API-Key": "<your-api-key>"}

response = requests.get(url, headers=headers)
response.raise_for_status()
print(response.json())
```

### JavaScript

```javascript
const response = await fetch("https://api.nabrah.ai/api/ext/omni_v2/conversation/conversation/<id>/attachments", {
  method: "GET",
  headers: { "X-API-Key": "<your-api-key>" },
});

const data = await response.json();
console.log(data);
```

### Go

```go
package main

import (
	"fmt"
	"io"
	"net/http"
)

func main() {
	req, _ := http.NewRequest("GET", "https://api.nabrah.ai/api/ext/omni_v2/conversation/conversation/<id>/attachments", nil)
	req.Header.Set("X-API-Key", "<your-api-key>")

	res, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	defer res.Body.Close()

	out, _ := io.ReadAll(res.Body)
	fmt.Println(string(out))
}
```
