The whole hunk
from line 1, old and new numbered
/
lines
from line 1
1---
2title: Projects
3url: https://platform.claude.com/docs/en/api/compliance/apps/projects
4---
5
16# Projects
27
38## List projects
from line 86
8186
8287### Headers
8388
89- `"anthropic-version": optional string`
90
91 The version of the Claude API you want to use.
92
93 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
94
8495- `"x-api-key": optional string`
8596
8697### Returns
from line 209
198209
199210### Headers
200211
212- `"anthropic-version": optional string`
213
214 The version of the Claude API you want to use.
215
216 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
217
201218- `"x-api-key": optional string`
202219
203220### Returns
from line 344
327344
328345### Headers
329346
330- `"x-api-key": optional string`
347- `"anthropic-version": optional string`
331348
332### Returns
349 The version of the Claude API you want to use.
333350
334- `id: string`
351 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
335352
336 The ID of the Claude project that was deleted
353- `"x-api-key": optional string`
337354
355### Returns
356
338357- `type: optional "claude_project_deleted"`
339358
340359 Constant string confirming deletion.
from line 360
341360
342361 default: claude_project_deleted
343362
363- `id: string`
364
365 The ID of the Claude project that was deleted
366
344367### Example
345368
346369```bash
from line 529
506529
507530 Response for deleting a Claude project.
508531
509 - `id: string`
510
511 The ID of the Claude project that was deleted
512
513532 - `type: optional "claude_project_deleted"`
514533
515534 Constant string confirming deletion.
from line 535
516535
517536 default: claude_project_deleted
518537
538 - `id: string`
539
540 The ID of the Claude project that was deleted
541
519542## Projects › Attachments
520543
521544### List project attachments
from line 576
553576
554577#### Headers
555578
579- `"anthropic-version": optional string`
580
581 The version of the Claude API you want to use.
582
583 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
584
556585- `"x-api-key": optional string`
557586
558587#### Returns
from line 594
565594
566595 File attachment reference for compliance responses.
567596
597 - `type: "project_file"`
598
599 Discriminator marking this as a binary file
600
601 default: project_file
602
568603 - `id: string`
569604
570605 File identifier (e.g., 'claude_file_abcd')
from line 626
591626
592627 Size in bytes of the file's preferred downloadable variant, when recorded. Null otherwise. Use the per-file `/metadata` endpoint for the authoritative value.
593628
594 - `type: "project_file"`
629 - `ComplianceProjectDocReference object`
595630
596 Discriminator marking this as a binary file
631 Project document attachment reference for compliance responses.
597632
598 default: project_file
633 - `type: "project_doc"`
599634
600 - `ComplianceProjectDocReference object`
635 Discriminator marking this as a plain text document
601636
602 Project document attachment reference for compliance responses.
637 default: project_doc
603638
604639 - `id: string`
605640
from line 656
621656
622657 default: text/plain
623658
624 - `type: "project_doc"`
625
626 Discriminator marking this as a plain text document
627
628 default: project_doc
629
630659 - `updated_at: string or null`
631660
632661 Last-modified timestamp of the document. Reserved for future use — currently always null.
from line 730
701730
702731#### Headers
703732
733- `"anthropic-version": optional string`
734
735 The version of the Claude API you want to use.
736
737 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
738
704739- `"x-api-key": optional string`
705740
706741#### Returns
from line 748
713748
714749 An individual user granted a role on a project.
715750
751 - `type: "user"`
752
753 Discriminator marking this as an individual user collaborator
754
755 default: user
756
716757 - `granted_at: string`
717758
718759 When this collaborator was granted access (RFC 3339 format)
from line 772
731772
732773 - `"viewer"`
733774
734 - `type: "user"`
735
736 Discriminator marking this as an individual user collaborator
737
738 default: user
739
740775 - `user_id: string or null`
741776
742777 Identifier of the user granted access (tagged ID), or null if their account has since been deleted
from line 780
745780
746781 An RBAC group granted a role on a project.
747782
783 - `type: "group"`
784
785 Discriminator marking this as a group collaborator
786
787 default: group
788
748789 - `granted_at: string`
749790
750791 When this collaborator was granted access (RFC 3339 format)
from line 808
767808
768809 - `"viewer"`
769810
770 - `type: "group"`
811 - `ComplianceProjectOrganizationCollaborator object`
771812
772 Discriminator marking this as a group collaborator
813 An entire organization granted a role on a project.
773814
774 default: group
815 - `type: "organization"`
775816
776 - `ComplianceProjectOrganizationCollaborator object`
817 Discriminator marking this as an organization-wide grant
777818
778 An entire organization granted a role on a project.
819 default: organization
779820
780821 - `granted_at: string`
781822
from line 840
799840
800841 - `"viewer"`
801842
802 - `type: "organization"`
843 - `ComplianceProjectOrganizationRoleCollaborator object`
803844
804 Discriminator marking this as an organization-wide grant
845 All holders of an organization-level role granted a role on a project.
805846
806 default: organization
847 - `type: "organization_role"`
807848
808 - `ComplianceProjectOrganizationRoleCollaborator object`
849 Discriminator marking this as a grant to all organization members holding a specific org-level role
809850
810 All holders of an organization-level role granted a role on a project.
851 default: organization_role
811852
812853 - `granted_at: string`
813854
from line 872
831872
832873 - `"viewer"`
833874
834 - `type: "organization_role"`
835
836 Discriminator marking this as a grant to all organization members holding a specific org-level role
837
838 default: organization_role
839
840875- `has_more: boolean`
841876
842877 Whether more records exist beyond the current result set
from line 920
885920
886921#### Headers
887922
923- `"anthropic-version": optional string`
924
925 The version of the Claude API you want to use.
926
927 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
928
888929- `"x-api-key": optional string`
889930
890931#### Returns
from line 1005
9641005
9651006#### Headers
9661007
1008- `"anthropic-version": optional string`
1009
1010 The version of the Claude API you want to use.
1011
1012 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
1013
9671014- `"x-api-key": optional string`
9681015
9691016#### Returns
from line 1104
10571104
10581105#### Headers
10591106
1060- `"x-api-key": optional string`
1107- `"anthropic-version": optional string`
10611108
1062#### Returns
1109 The version of the Claude API you want to use.
10631110
1064- `id: string`
1111 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
10651112
1066 The ID of the project document that was deleted
1113- `"x-api-key": optional string`
10671114
1115#### Returns
1116
10681117- `type: "claude_project_document_deleted"`
10691118
10701119 Constant string confirming deletion.
10711120
10721121 default: claude_project_document_deleted
1122
1123- `id: string`
1124
1125 The ID of the project document that was deleted
10731126
10741127#### Example
10751128