Apps changedapi/compliance/apps
Nearest release: v2.1.323, published under an hour before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Recorded here
Lines+180added
Lines−176removed
From line
123
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits28to this page, all time
The whole hunk
from line 123, old and new numbered
/
from line 123
123123
124124#### Headers
125125
126- `"anthropic-version": optional string`
126- `"anthropic-version": string`
127127
128 The version of the Claude API you want to use.
128 The version of the Claude API to use. Send an available version on every request. Some other Compliance API endpoints return a 400 error for a request that omits this header, or sends a value that is not an available version. This endpoint treats such a request as version `2023-06-01`.
129129
130 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
130 See [API versions](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http) for the available versions.
131131
132132- `"x-api-key": optional string`
133133
from line 213
213213
214214```bash
215215curl https://api.anthropic.com/v1/compliance/apps/chats \
216 -H 'anthropic-version: 2023-06-01' \
216 -H 'anthropic-version: 2026-10-21' \
217217 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
218218```
219219
from line 264
264264
265265#### Headers
266266
267- `"anthropic-version": optional string`
267- `"anthropic-version": string`
268268
269 The version of the Claude API you want to use.
269 The version of the Claude API to use. Send an available version on every request. Some other Compliance API endpoints return a 400 error for a request that omits this header, or sends a value that is not an available version. This endpoint treats such a request as version `2023-06-01`.
270270
271 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
271 See [API versions](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http) for the available versions.
272272
273273- `"x-api-key": optional string`
274274
from line 289
289289```bash
290290curl https://api.anthropic.com/v1/compliance/apps/chats/$CLAUDE_CHAT_ID \
291291 -X DELETE \
292 -H 'anthropic-version: 2023-06-01' \
292 -H 'anthropic-version: 2026-10-21' \
293293 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
294294```
295295
from line 408
408408
409409#### Headers
410410
411- `"anthropic-version": optional string`
411- `"anthropic-version": string`
412412
413 The version of the Claude API you want to use.
413 The version of the Claude API to use. Send an available version on every request. Some other Compliance API endpoints return a 400 error for a request that omits this header, or sends a value that is not an available version. This endpoint treats such a request as version `2023-06-01`.
414414
415 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
415 See [API versions](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http) for the available versions.
416416
417417- `"x-api-key": optional string`
418418
from line 706
706706
707707```bash
708708curl https://api.anthropic.com/v1/compliance/apps/chats/$CLAUDE_CHAT_ID/messages \
709 -H 'anthropic-version: 2023-06-01' \
709 -H 'anthropic-version: 2026-10-21' \
710710 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
711711```
712712
from line 851
851851
852852#### Headers
853853
854- `"anthropic-version": optional string`
854- `"anthropic-version": string`
855855
856 The version of the Claude API you want to use.
856 The version of the Claude API to use. Send an available version on every request. Some other Compliance API endpoints return a 400 error for a request that omits this header, or sends a value that is not an available version. This endpoint treats such a request as version `2023-06-01`.
857857
858 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
858 See [API versions](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http) for the available versions.
859859
860860- `"x-api-key": optional string`
861861
from line 899
899899
900900```bash
901901curl https://api.anthropic.com/v1/compliance/apps/chats/files/$CLAUDE_FILE_ID \
902 -H 'anthropic-version: 2023-06-01' \
902 -H 'anthropic-version: 2026-10-21' \
903903 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
904904```
905905
from line 937
937937
938938#### Headers
939939
940- `"anthropic-version": optional string`
940- `"anthropic-version": string`
941941
942 The version of the Claude API you want to use.
942 The version of the Claude API to use. Send an available version on every request. Some other Compliance API endpoints return a 400 error for a request that omits this header, or sends a value that is not an available version. This endpoint treats such a request as version `2023-06-01`.
943943
944 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
944 See [API versions](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http) for the available versions.
945945
946946- `"x-api-key": optional string`
947947
from line 962
962962```bash
963963curl https://api.anthropic.com/v1/compliance/apps/chats/files/$CLAUDE_FILE_ID \
964964 -X DELETE \
965 -H 'anthropic-version: 2023-06-01' \
965 -H 'anthropic-version: 2026-10-21' \
966966 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
967967```
968968
from line 989
989989
990990#### Headers
991991
992- `"anthropic-version": optional string`
992- `"anthropic-version": string`
993993
994 The version of the Claude API you want to use.
994 The version of the Claude API to use. Send an available version on every request. Some other Compliance API endpoints return a 400 error for a request that omits this header, or sends a value that is not an available version. This endpoint treats such a request as version `2023-06-01`.
995995
996 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
996 See [API versions](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http) for the available versions.
997997
998998- `"x-api-key": optional string`
999999
from line 1001
10011001
10021002```bash
10031003curl https://api.anthropic.com/v1/compliance/apps/chats/files/$CLAUDE_FILE_ID/content \
1004 -H 'anthropic-version: 2023-06-01' \
1004 -H 'anthropic-version: 2026-10-21' \
10051005 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
10061006```
10071007
from line 1023
10231023
10241024#### Headers
10251025
1026- `"anthropic-version": optional string`
1026- `"anthropic-version": string`
10271027
1028 The version of the Claude API you want to use.
1028 The version of the Claude API to use. Send an available version on every request. Some other Compliance API endpoints return a 400 error for a request that omits this header, or sends a value that is not an available version. This endpoint treats such a request as version `2023-06-01`.
10291029
1030 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
1030 See [API versions](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http) for the available versions.
10311031
10321032- `"x-api-key": optional string`
10331033
from line 1067
10671067
10681068```bash
10691069curl https://api.anthropic.com/v1/compliance/apps/chats/generated-files/$CLAUDE_GEN_FILE_ID \
1070 -H 'anthropic-version: 2023-06-01' \
1070 -H 'anthropic-version: 2026-10-21' \
10711071 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
10721072```
10731073
from line 1099
10991099
11001100#### Headers
11011101
1102- `"anthropic-version": optional string`
1102- `"anthropic-version": string`
11031103
1104 The version of the Claude API you want to use.
1104 The version of the Claude API to use. Send an available version on every request. Some other Compliance API endpoints return a 400 error for a request that omits this header, or sends a value that is not an available version. This endpoint treats such a request as version `2023-06-01`.
11051105
1106 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
1106 See [API versions](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http) for the available versions.
11071107
11081108- `"x-api-key": optional string`
11091109
from line 1111
11111111
11121112```bash
11131113curl https://api.anthropic.com/v1/compliance/apps/chats/generated-files/$CLAUDE_GEN_FILE_ID/content \
1114 -H 'anthropic-version: 2023-06-01' \
1114 -H 'anthropic-version: 2026-10-21' \
11151115 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
11161116```
11171117
from line 1198
11981198
11991199#### Headers
12001200
1201- `"anthropic-version": optional string`
1201- `"anthropic-version": string`
12021202
1203 The version of the Claude API you want to use.
1203 The version of the Claude API to use. Send an available version on every request. Some other Compliance API endpoints return a 400 error for a request that omits this header, or sends a value that is not an available version. This endpoint treats such a request as version `2023-06-01`.
12041204
1205 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
1205 See [API versions](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http) for the available versions.
12061206
12071207- `"x-api-key": optional string`
12081208
from line 1280
12801280
12811281```bash
12821282curl https://api.anthropic.com/v1/compliance/apps/projects \
1283 -H 'anthropic-version: 2023-06-01' \
1283 -H 'anthropic-version: 2026-10-21' \
12841284 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
12851285```
12861286
from line 1323
13231323
13241324#### Headers
13251325
1326- `"anthropic-version": optional string`
1326- `"anthropic-version": string`
13271327
1328 The version of the Claude API you want to use.
1328 The version of the Claude API to use. Send an available version on every request. Some other Compliance API endpoints return a 400 error for a request that omits this header, or sends a value that is not an available version. This endpoint treats such a request as version `2023-06-01`.
13291329
1330 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
1330 See [API versions](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http) for the available versions.
13311331
13321332- `"x-api-key": optional string`
13331333
from line 1409
14091409
14101410```bash
14111411curl https://api.anthropic.com/v1/compliance/apps/projects/$PROJECT_ID \
1412 -H 'anthropic-version: 2023-06-01' \
1412 -H 'anthropic-version: 2026-10-21' \
14131413 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
14141414```
14151415
from line 1460
14601460
14611461#### Headers
14621462
1463- `"anthropic-version": optional string`
1463- `"anthropic-version": string`
14641464
1465 The version of the Claude API you want to use.
1465 The version of the Claude API to use. Send an available version on every request. Some other Compliance API endpoints return a 400 error for a request that omits this header, or sends a value that is not an available version. This endpoint treats such a request as version `2023-06-01`.
14661466
1467 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
1467 See [API versions](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http) for the available versions.
14681468
14691469- `"x-api-key": optional string`
14701470
from line 1485
14851485```bash
14861486curl https://api.anthropic.com/v1/compliance/apps/projects/$PROJECT_ID \
14871487 -X DELETE \
1488 -H 'anthropic-version: 2023-06-01' \
1488 -H 'anthropic-version: 2026-10-21' \
14891489 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
14901490```
14911491
from line 1535
15351535
15361536#### Headers
15371537
1538- `"anthropic-version": optional string`
1538- `"anthropic-version": string`
15391539
1540 The version of the Claude API you want to use.
1540 The version of the Claude API to use. Send an available version on every request. Some other Compliance API endpoints return a 400 error for a request that omits this header, or sends a value that is not an available version. This endpoint treats such a request as version `2023-06-01`.
15411541
1542 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
1542 See [API versions](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http) for the available versions.
15431543
15441544- `"x-api-key": optional string`
15451545
from line 1633
16331633
16341634```bash
16351635curl https://api.anthropic.com/v1/compliance/apps/projects/$PROJECT_ID/attachments \
1636 -H 'anthropic-version: 2023-06-01' \
1636 -H 'anthropic-version: 2026-10-21' \
16371637 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
16381638```
16391639
from line 1690
16901690
16911691#### Headers
16921692
1693- `"anthropic-version": optional string`
1693- `"anthropic-version": string`
16941694
1695 The version of the Claude API you want to use.
1695 The version of the Claude API to use. Send an available version on every request. Some other Compliance API endpoints return a 400 error for a request that omits this header, or sends a value that is not an available version. This endpoint treats such a request as version `2023-06-01`.
16961696
1697 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
1697 See [API versions](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http) for the available versions.
16981698
16991699- `"x-api-key": optional string`
17001700
from line 1844
18441844
18451845```bash
18461846curl https://api.anthropic.com/v1/compliance/apps/projects/$PROJECT_ID/collaborators \
1847 -H 'anthropic-version: 2023-06-01' \
1847 -H 'anthropic-version: 2026-10-21' \
18481848 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
18491849```
18501850
from line 1881
18811881
18821882#### Headers
18831883
1884- `"anthropic-version": optional string`
1884- `"anthropic-version": string`
18851885
1886 The version of the Claude API you want to use.
1886 The version of the Claude API to use. Send an available version on every request. Some other Compliance API endpoints return a 400 error for a request that omits this header, or sends a value that is not an available version. This endpoint treats such a request as version `2023-06-01`.
18871887
1888 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
1888 See [API versions](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http) for the available versions.
18891889
18901890- `"x-api-key": optional string`
18911891
from line 1925
19251925
19261926```bash
19271927curl https://api.anthropic.com/v1/compliance/apps/projects/documents/$DOCUMENT_ID \
1928 -H 'anthropic-version: 2023-06-01' \
1928 -H 'anthropic-version: 2026-10-21' \
19291929 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
19301930```
19311931
from line 1963
19631963
19641964#### Headers
19651965
1966- `"anthropic-version": optional string`
1966- `"anthropic-version": string`
19671967
1968 The version of the Claude API you want to use.
1968 The version of the Claude API to use. Send an available version on every request. Some other Compliance API endpoints return a 400 error for a request that omits this header, or sends a value that is not an available version. This endpoint treats such a request as version `2023-06-01`.
19691969
1970 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
1970 See [API versions](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http) for the available versions.
19711971
19721972- `"x-api-key": optional string`
19731973
from line 2021
20212021
20222022```bash
20232023curl https://api.anthropic.com/v1/compliance/apps/projects/documents/$DOCUMENT_ID/metadata \
2024 -H 'anthropic-version: 2023-06-01' \
2024 -H 'anthropic-version: 2026-10-21' \
20252025 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
20262026```
20272027
from line 2059
20592059
20602060#### Headers
20612061
2062- `"anthropic-version": optional string`
2062- `"anthropic-version": string`
20632063
2064 The version of the Claude API you want to use.
2064 The version of the Claude API to use. Send an available version on every request. Some other Compliance API endpoints return a 400 error for a request that omits this header, or sends a value that is not an available version. This endpoint treats such a request as version `2023-06-01`.
20652065
2066 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
2066 See [API versions](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http) for the available versions.
20672067
20682068- `"x-api-key": optional string`
20692069
from line 2084
20842084```bash
20852085curl https://api.anthropic.com/v1/compliance/apps/projects/documents/$DOCUMENT_ID \
20862086 -X DELETE \
2087 -H 'anthropic-version: 2023-06-01' \
2087 -H 'anthropic-version: 2026-10-21' \
20882088 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
20892089```
20902090
from line 2118
21182118
21192119#### Headers
21202120
2121- `"anthropic-version": optional string`
2121- `"anthropic-version": string`
21222122
2123 The version of the Claude API you want to use.
2123 The version of the Claude API to use. Send an available version on every request. Some other Compliance API endpoints return a 400 error for a request that omits this header, or sends a value that is not an available version. This endpoint treats such a request as version `2023-06-01`.
21242124
2125 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
2125 See [API versions](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http) for the available versions.
21262126
21272127- `"x-api-key": optional string`
21282128
from line 2166
21662166
21672167```bash
21682168curl https://api.anthropic.com/v1/compliance/apps/artifacts/$ARTIFACT_VERSION_ID \
2169 -H 'anthropic-version: 2023-06-01' \
2169 -H 'anthropic-version: 2026-10-21' \
21702170 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
21712171```
21722172
from line 2201
22012201
22022202#### Headers
22032203
2204- `"anthropic-version": optional string`
2204- `"anthropic-version": string`
22052205
2206 The version of the Claude API you want to use.
2206 The version of the Claude API to use. Send an available version on every request. Some other Compliance API endpoints return a 400 error for a request that omits this header, or sends a value that is not an available version. This endpoint treats such a request as version `2023-06-01`.
22072207
2208 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
2208 See [API versions](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http) for the available versions.
22092209
22102210- `"x-api-key": optional string`
22112211
from line 2213
22132213
22142214```bash
22152215curl https://api.anthropic.com/v1/compliance/apps/artifacts/$ARTIFACT_VERSION_ID/content \
2216 -H 'anthropic-version: 2023-06-01' \
2216 -H 'anthropic-version: 2026-10-21' \
22172217 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
22182218```
22192219
from line 2276
22762276
22772277#### Headers
22782278
2279- `"anthropic-version": optional string`
2279- `"anthropic-version": string`
22802280
2281 The version of the Claude API you want to use.
2281 The version of the Claude API to use. Send an available version on every request. Some other Compliance API endpoints return a 400 error for a request that omits this header, or sends a value that is not an available version. This endpoint treats such a request as version `2023-06-01`.
22822282
2283 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
2283 See [API versions](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http) for the available versions.
22842284
22852285- `"x-api-key": optional string`
22862286
from line 2348
23482348
23492349```bash
23502350curl https://api.anthropic.com/v1/compliance/apps/sessions/local \
2351 -H 'anthropic-version: 2023-06-01' \
2351 -H 'anthropic-version: 2026-10-21' \
23522352 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
23532353```
23542354
from line 2391
23912391
23922392#### Headers
23932393
2394- `"anthropic-version": optional string`
2394- `"anthropic-version": string`
23952395
2396 The version of the Claude API you want to use.
2396 The version of the Claude API to use. Send an available version on every request. Some other Compliance API endpoints return a 400 error for a request that omits this header, or sends a value that is not an available version. This endpoint treats such a request as version `2023-06-01`.
23972397
2398 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
2398 See [API versions](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http) for the available versions.
23992399
24002400- `"x-api-key": optional string`
24012401
from line 2455
24552455
24562456```bash
24572457curl https://api.anthropic.com/v1/compliance/apps/sessions/local/$LOCAL_SESSION_ID \
2458 -H 'anthropic-version: 2023-06-01' \
2458 -H 'anthropic-version: 2026-10-21' \
24592459 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
24602460```
24612461
from line 2540
25402540
25412541#### Headers
25422542
2543- `"anthropic-version": optional string`
2543- `"anthropic-version": string`
25442544
2545 The version of the Claude API you want to use.
2545 The version of the Claude API to use. Send an available version on every request. Some other Compliance API endpoints return a 400 error for a request that omits this header, or sends a value that is not an available version. This endpoint treats such a request as version `2023-06-01`.
25462546
2547 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
2547 See [API versions](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http) for the available versions.
25482548
25492549- `"x-api-key": optional string`
25502550
from line 2774
27742774
27752775```bash
27762776curl https://api.anthropic.com/v1/compliance/apps/sessions/local/$LOCAL_SESSION_ID/messages \
2777 -H 'anthropic-version: 2023-06-01' \
2777 -H 'anthropic-version: 2026-10-21' \
27782778 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
27792779```
27802780
from line 2902
29022902
29032903#### Headers
29042904
2905- `"anthropic-version": optional string`
2905- `"anthropic-version": string`
29062906
2907 The version of the Claude API you want to use.
2907 The version of the Claude API to use. Send an available version on every request. Some other Compliance API endpoints return a 400 error for a request that omits this header, or sends a value that is not an available version. This endpoint treats such a request as version `2023-06-01`.
29082908
2909 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
2909 See [API versions](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http) for the available versions.
29102910
29112911- `"x-api-key": optional string`
29122912
from line 2982
29822982
29832983```bash
29842984curl https://api.anthropic.com/v1/compliance/apps/sessions/remote \
2985 -H 'anthropic-version: 2023-06-01' \
2985 -H 'anthropic-version: 2026-10-21' \
29862986 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
29872987```
29882988
from line 3084
30843084
30853085#### Headers
30863086
3087- `"anthropic-version": optional string`
3087- `"anthropic-version": string`
30883088
3089 The version of the Claude API you want to use.
3089 The version of the Claude API to use. Send an available version on every request. Some other Compliance API endpoints return a 400 error for a request that omits this header, or sends a value that is not an available version. This endpoint treats such a request as version `2023-06-01`.
30903090
3091 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
3091 See [API versions](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http) for the available versions.
30923092
30933093- `"x-api-key": optional string`
30943094
from line 3284
32843284
32853285```bash
32863286curl https://api.anthropic.com/v1/compliance/apps/sessions/remote/$CLAUDE_REMOTE_SESSION_ID/messages \
3287 -H 'anthropic-version: 2023-06-01' \
3287 -H 'anthropic-version: 2026-10-21' \
32883288 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
32893289```
32903290
from line 3401
34013401
34023402#### Headers
34033403
3404- `"anthropic-version": optional string`
3404- `"anthropic-version": string`
34053405
3406 The version of the Claude API you want to use.
3406 The version of the Claude API to use. Send an available version on every request. Some other Compliance API endpoints return a 400 error for a request that omits this header, or sends a value that is not an available version. This endpoint treats such a request as version `2023-06-01`.
34073407
3408 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
3408 See [API versions](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http) for the available versions.
34093409
34103410- `"x-api-key": optional string`
34113411
from line 3419
34193419
34203420 Artifact identifier (tagged ID)
34213421
3422 - `artifact_type: "claude_dashboards" or "claude_design" or "claude_design_systems" or 5 more`
3422 - `artifact_type: "claude_dashboards" or "claude_design" or "claude_design_systems" or 6 more`
34233423
3424 Which kind of Artifact this is: `code` for a site published from Claude Code, or the built-in Artifact type it was made from — `claude_docs` (Claude Docs), `claude_slides` (Slides), `claude_design` (Design), `claude_design_systems` (a design system), `claude_motion` (Motion) or `claude_dashboards` (Dashboards). `other` is an Artifact made from a built-in type this list does not name yet.
3424 Which kind of Artifact this is: `code` for a site published from Claude Code, or the built-in Artifact type it was made from — `claude_docs` (Claude Docs), `claude_slides` (Slides), `claude_design` (Design), `claude_design_systems` (a design system), `claude_motion` (Motion), `claude_dashboards` (Dashboards) or `claude_sheets` (Claude Sheets). `other` is an Artifact made from a built-in type this list does not name yet.
34253425
34263426 - `"claude_dashboards"`
34273427
from line 3433
34333433
34343434 - `"claude_motion"`
34353435
3436 - `"claude_sheets"`
3437
34363438 - `"claude_slides"`
34373439
34383440 - `"code"`
from line 3451
34493451
34503452 - `published_version_id: string or null`
34513453
3452 Identifier of the version a non-owner viewer would render when `read_mode` permits them — the version the owner has pinned for non-owner readers if one is pinned, otherwise the owner's latest. When `read_mode` is `owner` no non-owner renders any version; the field still reports which version would be served were read_mode widened. Null for a Claude Doc; see `versions`.
3454 Identifier of the version a non-owner viewer would render when `read_mode` permits them — the version the owner has pinned for non-owner readers if one is pinned, otherwise the owner's latest. When `read_mode` is `owner` no non-owner renders any version; the field still reports which version would be served were read_mode widened. Null for a Claude Doc or a Claude Sheet; see `versions`.
34533455
34543456 - `read_mode: "org" or "owner" or "public" or "users"`
34553457
from line 3485
34833485
34843486 - `versions: array of object`
34853487
3486 Up to roughly 20 most-recently-published versions of this Artifact (older versions are not retained). Metadata only — use `GET /v1/compliance/apps/code/artifacts/{artifact_id}/versions/{version_id}` to download a version's content. Empty for a Claude Doc, because a Doc's versions hold only the web page that displays it, not its text. Download a Doc's text with `GET /v1/compliance/apps/code/artifacts/{artifact_id}/content?multi_file_format=zip`.
3488 Up to roughly 20 most-recently-published versions of this Artifact (older versions are not retained). Metadata only — use `GET /v1/compliance/apps/code/artifacts/{artifact_id}/versions/{version_id}` to download a version's content. Empty for a Claude Doc or a Claude Sheet, because their versions hold only the web page that displays them, not the Doc's text or the Sheet's data. Download a Doc's text or a Sheet's data with `GET /v1/compliance/apps/code/artifacts/{artifact_id}/content?multi_file_format=zip`.
34873489
34883490 - `id: string`
34893491
from line 3513
35113513
35123514```bash
35133515curl https://api.anthropic.com/v1/compliance/apps/code/artifacts \
3514 -H 'anthropic-version: 2023-06-01' \
3516 -H 'anthropic-version: 2026-10-21' \
35153517 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
35163518```
35173519
from line 3552
35503552
35513553**GET** `/v1/compliance/apps/code/artifacts/{artifact_id}/versions/{version_id}`
35523554
3553Streams the content of one version of an Artifact as the response body, in chunks with no `Content-Length`. With `multi_file_format=zip`, a version with more than one file, other than a Claude Doc's (an Artifact whose `artifact_type` is `claude_docs`), comes back as a ZIP archive of its files.
3555Streams the content of one version of an Artifact as the response body, in chunks with no `Content-Length`. With `multi_file_format=zip`, a version with more than one file, other than a Claude Doc's or a Claude Sheet's (an Artifact whose `artifact_type` is `claude_docs` or `claude_sheets`), comes back as a ZIP archive of its files.
35543556
35553557Headers: `Content-Type` (`application/zip` for a ZIP archive, otherwise the stored MIME type), `Content-Disposition: attachment; filename*=utf-8''<name>` (RFC 5987), `Cache-Control: no-store, private` and, when available, `Content-MD5` (base64). `<name>` is `{artifact_id}-{version_id}.zip` for a ZIP archive, otherwise `{artifact_id}-{version_id}.txt`, whatever the content is. `Content-MD5` is only on a single file stored uncompressed, so it is never on a ZIP archive. Check the body against it when present.
35563558
from line 3560
35583560
35593561- `404`: the Artifact doesn't exist or the API key cannot read it, or the version is no longer kept. Older versions are dropped as new ones are published, so list the Artifact's versions again. You also get this when the organization's customer-managed encryption key can't be used. Retry once the key can be used again.
35603562- `503`: the content can't be served right now, for example because its upload is still in progress or was abandoned. Retry with backoff.
3561- `422` with `error.details.error_code` `multi_file_unavailable`: the version has more than one file. Add `multi_file_format=zip`. A Claude Doc's version with more than one file gets this error either way, because it holds only the web page that displays the Doc. Download the Doc's text with `GET /v1/compliance/apps/code/artifacts/{artifact_id}/content?multi_file_format=zip`.
3563- `422` with `error.details.error_code` `multi_file_unavailable`: the version has more than one file. Add `multi_file_format=zip`. A Claude Doc's or a Claude Sheet's version with more than one file gets this error either way, because it holds only the web page that displays the Doc or the Sheet. Download the Doc's text or the Sheet's data with `GET /v1/compliance/apps/code/artifacts/{artifact_id}/content?multi_file_format=zip`.
35623564- `422` with `file_set_unavailable`: the request sets `multi_file_format=zip`, the version has more than one file, and one of them has a path the API cannot export. Do not retry.
35633565
35643566An error after the download has started stops the body early, with the `200` status already sent. For example, this happens to content stored compressed when it is over 16 MiB once decompressed. For a single file with no `Content-MD5`, the only sign is a transfer that aborts before its last chunk, so treat a download that aborts this way as failed.
from line 3592
35903592
35913593- `multi_file_format: optional string`
35923594
3593 Set to `zip`, its only value, to receive a version that has more than one file as a ZIP archive of its files with an index, `files.json`. A version with one file is returned as that file. A Claude Doc's version never comes back as a ZIP.
3595 Set to `zip`, its only value, to receive a version that has more than one file as a ZIP archive of its files with an index, `files.json`. A version with one file is returned as that file. A Claude Doc's or a Claude Sheet's version never comes back as a ZIP.
35943596
35953597#### Headers
35963598
3597- `"anthropic-version": optional string`
3599- `"anthropic-version": string`
35983600
3599 The version of the Claude API you want to use.
3601 The version of the Claude API to use. Send an available version on every request. Some other Compliance API endpoints return a 400 error for a request that omits this header, or sends a value that is not an available version. This endpoint treats such a request as version `2023-06-01`.
36003602
3601 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
3603 See [API versions](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http) for the available versions.
36023604
36033605- `"x-api-key": optional string`
36043606
from line 3608
36063608
36073609```bash
36083610curl https://api.anthropic.com/v1/compliance/apps/code/artifacts/$ARTIFACT_ID/versions/$VERSION_ID \
3609 -H 'anthropic-version: 2023-06-01' \
3611 -H 'anthropic-version: 2026-10-21' \
36103612 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
36113613```
36123614
from line 3620
36183620
36193621For a Claude Doc (an Artifact whose `artifact_type` is `claude_docs`), the request must set `multi_file_format=zip`, and the content is the Doc's text as a ZIP archive of Word files. That ZIP has no `files.json`. It holds one Word file per text tab, in tab order, named `NN-<tab id>.docx`, where `NN` counts from `01`. A Doc with one text tab gets one file, `01-document.docx`.
36203622
3623For a Claude Sheet (an Artifact whose `artifact_type` is `claude_sheets`), the request must set `multi_file_format=zip` too, and the content is the Sheet's data as a ZIP archive that holds one .xlsx file, named `01-<id>.xlsx`, where `<id>` is an opaque identifier. The file has all of the Sheet's tabs and, when the Sheet has dropdowns, one more hidden tab that lists their options. It leaves out charts, conditional formatting and comments, among other things. A formula that an .xlsx file cannot hold is written as its result. If the Sheet's formulas cannot be calculated in time, every formula comes with `#VALUE!` in place of its result. That ZIP has no `files.json` either.
3624
36213625For any other Artifact, the content is the latest version. With `multi_file_format=zip`, when the latest version has more than one file, it comes back as a ZIP archive of its files.
36223626
3623Headers: `Content-Type` (`application/zip` for a ZIP archive, otherwise the stored MIME type), `Content-Disposition: attachment; filename*=utf-8''<name>` (RFC 5987), `Cache-Control: no-store, private` and, when available, `Content-MD5` (base64). `<name>` is `{artifact_id}.zip` for a ZIP archive, otherwise `{artifact_id}.txt`, whatever the content is. `Content-MD5` is always on a Claude Doc's ZIP, only on a single file stored uncompressed, and never on a ZIP archive of a version's files. Check the body against it when present.
3627Headers: `Content-Type` (`application/zip` for a ZIP archive, otherwise the stored MIME type), `Content-Disposition: attachment; filename*=utf-8''<name>` (RFC 5987), `Cache-Control: no-store, private` and, when available, `Content-MD5` (base64). `<name>` is `{artifact_id}.zip` for a ZIP archive, otherwise `{artifact_id}.txt`, whatever the content is. `Content-MD5` is always on a Claude Doc's or a Claude Sheet's ZIP, only on a single file stored uncompressed, and never on a ZIP archive of a version's files. Check the body against it when present.
36243628
36253629Errors specific to this download:
36263630
from line 3631
36273631- `404`: the Artifact doesn't exist, or the API key cannot read it.
36283632- `400` with `error.details.error_code` `cmek_key_disabled`: the organization's customer-managed encryption key can't be used, for example because it is disabled or revoked. Retry once the key can be used again.
36293633- `503`: the content can't be produced right now. Wait the number of seconds in the `Retry-After` header, or retry with backoff when it is absent.
3630- `422` with `multi_file_unavailable`: the request does not set `multi_file_format=zip`, and the Artifact is a Claude Doc or its latest version has more than one file. Add the parameter.
3631- `422` with `file_set_unavailable`: the request sets `multi_file_format=zip`, the Artifact is not a Claude Doc, and one of the latest version's files has a path the API cannot export. Do not retry.
3632- `422` with `document_unavailable`: Claude Docs has no document it can export for the Doc, for example because it has no text tab or is in the trash. Retrying will not help unless that changes.
3633- `422` with `document_too_large`: the Doc's export is over 16 MiB. Do not retry.
3634- `422` with `multi_file_unavailable`: the request does not set `multi_file_format=zip`, and the Artifact is a Claude Doc or a Claude Sheet, or its latest version has more than one file. Add the parameter.
3635- `422` with `file_set_unavailable`: the request sets `multi_file_format=zip`, the Artifact is neither a Claude Doc nor a Claude Sheet, and one of the latest version's files has a path the API cannot export. Do not retry.
3636- `422` with `document_unavailable`: Claude Docs has no document it can export for the Doc, for example because it has no text tab or is in the trash. For a Claude Sheet, nothing can be returned as an .xlsx file, for example because the Sheet is in the trash. Retrying will not help unless that changes.
3637- `422` with `document_too_large`: the Doc's or the Sheet's export is over 16 MiB. Do not retry.
36343638- `422` with `cmek_org_unsupported`: the organization uses customer-managed encryption keys and the export can't be served for it right now. Try again later, and contact Anthropic support if this continues.
36353639
36363640An error after the download has started stops the body early, with the `200` status already sent. For example, this happens to content stored compressed when it is over 16 MiB once decompressed. For a single file with no `Content-MD5`, the only sign is a transfer that aborts before its last chunk, so treat a download that aborts this way as failed.
from line 3662
36583662
36593663- `multi_file_format: optional string`
36603664
3661 Set to `zip`, its only value. A Claude Doc downloads only this way, as a ZIP archive of Word files, one per text tab. For any other Artifact, when the latest version has more than one file, it comes back as a ZIP archive of its files with an index, `files.json`.
3665 Set to `zip`, its only value. A Claude Doc downloads only this way, as a ZIP archive of Word files, one per text tab. So does a Claude Sheet, as a ZIP archive that holds one .xlsx file. For any other Artifact, when the latest version has more than one file, it comes back as a ZIP archive of its files with an index, `files.json`.
36623666
36633667#### Headers
36643668
3665- `"anthropic-version": optional string`
3669- `"anthropic-version": string`
36663670
3667 The version of the Claude API you want to use.
3671 The version of the Claude API to use. Send an available version on every request. Some other Compliance API endpoints return a 400 error for a request that omits this header, or sends a value that is not an available version. This endpoint treats such a request as version `2023-06-01`.
36683672
3669 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
3673 See [API versions](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http) for the available versions.
36703674
36713675- `"x-api-key": optional string`
36723676
from line 3678
36743678
36753679```bash
36763680curl https://api.anthropic.com/v1/compliance/apps/code/artifacts/$ARTIFACT_ID/content \
3677 -H 'anthropic-version: 2023-06-01' \
3681 -H 'anthropic-version: 2026-10-21' \
36783682 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
36793683```
36803684
from line 3703
36993703
37003704#### Headers
37013705
3702- `"anthropic-version": optional string`
3706- `"anthropic-version": string`
37033707
3704 The version of the Claude API you want to use.
3708 The version of the Claude API to use. Send an available version on every request. Some other Compliance API endpoints return a 400 error for a request that omits this header, or sends a value that is not an available version. This endpoint treats such a request as version `2023-06-01`.
37053709
3706 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
3710 See [API versions](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http) for the available versions.
37073711
37083712- `"x-api-key": optional string`
37093713
from line 3728
37243728```bash
37253729curl https://api.anthropic.com/v1/compliance/apps/code/artifacts/$ARTIFACT_ID \
37263730 -X DELETE \
3727 -H 'anthropic-version: 2023-06-01' \
3731 -H 'anthropic-version: 2026-10-21' \
37283732 -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
37293733```
37303734
No line in this hunk matches that.