---
title: "Search for attachments"
method: GET
path: "/mailstats/common-attachments"
tags: ["Attachments"]
---

# Search for attachments

`GET /mailstats/common-attachments`

Search for attachments that were received during the requested time period. Limited to public
inboxes and messages not starred by a user.

Responds with 'Failed to fetch' in swagger editor. Works in curl with generated example.

## Response `200`

OK

- CommonAttachments[]
  - `_id` string, md5sum — md5 checksum on attachment file
  - `n` integer — Count of public messages with this attachment

## Other responses

- `401` — Not authorized. You may need to log in first.

---

[API](https://skmtc.dev/mailsac/apis/mailsac-api-specification.md) · [All operations](https://skmtc.dev/mailsac/apis/mailsac-api-specification/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/mailsac/mailsac-api-specification/revisions/5f8b55c76229/schema)
