from line 1
1---
2title: List project attachments
3url: https://platform.claude.com/docs/en/api/compliance/apps/projects/attachments/list
4---
1# List project attachments
52
6## List project attachments
3**GET** `/v1/compliance/apps/projects/{project_id}/attachments`
74
8**get** `/v1/compliance/apps/projects/{project_id}/attachments`
9
105List files and documents attached to a project.
116
127List files and project documents attached to the project referenced by project_id.
from line 13
1813The text content of attached project documents can be fetched using the
1914GET /v1/compliance/apps/projects/documents/{claude_proj_doc_id} endpoint.
2015
21### Path Parameters
16## Path parameters
2217
2318- `project_id: string`
2419
2520 The project ID (tagged ID, e.g., claude_proj_abc123)
2621
27### Query Parameters
22## Query parameters
2823
2924- `limit: optional number`
3025
3126 Maximum results (default: 20, max: 100)
3227
28 default: 20, maximum: 100, minimum: 1
29
3330- `page: optional string`
3431
3532 Opaque pagination token from a previous response's `next_page` field. Pass this to retrieve the next page of results. Clients should treat this value as an opaque string and not attempt to parse or interpret its contents, as the format may change without notice.
3633
37### Header Parameters
34## Headers
3835
3936- `"x-api-key": optional string`
4037
41### Returns
38## Returns
4239
43- `data: array of object { id, created_at, filename, 4 more } or object { id, created_at, filename, 3 more }`
40- `data: array of object or object`
4441
4542 List of attachments sorted chronologically by created_at, tie break by id
4643
47 - `ComplianceProjectFileReference object { id, created_at, filename, 4 more }`
44 - `ComplianceProjectFileReference object`
4845
4946 File attachment reference for compliance responses.
5047
from line 53
5653
5754 Creation timestamp (RFC 3339 format)
5855
56 format: date-time
57
5958 - `filename: string`
6059
6160 Display name of the file (e.g., 'document.pdf')
from line 75
7675
7776 Discriminator marking this as a binary file
7877
79 - `"project_file"`
78 default: project_file
8079
81 - `ComplianceProjectDocReference object { id, created_at, filename, 3 more }`
80 - `ComplianceProjectDocReference object`
8281
8382 Project document attachment reference for compliance responses.
8483
from line 89
9089
9190 Creation timestamp (RFC 3339 format)
9291
92 format: date-time
93
9394 - `filename: string`
9495
9596 Display name of the document (e.g., 'document.txt')
from line 99
9899
99100 MIME type of the project document, always set to plain text
100101
101 - `"text/plain"`
102 default: text/plain
102103
103104 - `type: "project_doc"`
104105
105106 Discriminator marking this as a plain text document
106107
107 - `"project_doc"`
108 default: project_doc
108109
109110 - `updated_at: string or null`
110111
111112 Last-modified timestamp of the document. Reserved for future use — currently always null.
112113
114 format: date-time
115
113116- `has_more: boolean`
114117
115118 Whether more records exist beyond the current result set
from line 121
118121
119122 To get the next page, use the 'next_page' from the current response as the 'page' in your next request
120123
121### Example
124## Example
122125
123```http
126```bash
124127curl https://api.anthropic.com/v1/compliance/apps/projects/$PROJECT_ID/attachments \
125128 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
126129```
127130
128#### Response
131### Response (200)
129132
130133```json
131134{
No line in this hunk matches that.