Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

Apps changedapi/compliance/apps

Nearest release: v2.1.330, 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+27added
Lines−21removed
From line 3,561 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 3561, old and new numbered
/
lines
from line 3561
35613561 
35623562Streams 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.
35633563 
3564Some Artifacts keep content outside their versions' files, such as data saved while people use them and files uploaded separately from a version. A download of a version does not include that content, and a ZIP archive's index, `files.json`, does not list it.
3565 
35643566Headers: `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.
35653567 
35663568Errors specific to this download:
from line 3569
35673569 
35683570- `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.
35693571- `503`: the content can't be served right now, for example because its upload is still in progress or was abandoned. Retry with backoff.
3570- `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`.
3572- `422` with `error.details.error_code` `multi_file_unavailable`: the version cannot be returned as a single file, for example because it has more than one file. Add `multi_file_format=zip` when the error's message says to. A Claude Doc's or a Claude Sheet's version with more than one file gets this error with or without `multi_file_format=zip`, 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`.
35713573- `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.
35723574 
3573An 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.
3575An error after the download has started stops the body early, with the `200` status already sent. For example, this happens when a file stored compressed is too large once decompressed. A download that runs past a time limit stops the same way, so a large ZIP archive can end early, for example on a slow connection. 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.
35743576 
3575A ZIP archive of a version's files holds one top-level folder, named for the Artifact and version. That folder holds a `files/` folder and an index, `files.json`. The index is written last, so treat an archive as incomplete if it cannot be opened or has no `files.json` in its top-level folder.
3577A ZIP archive of a version's files holds one top-level folder, named for the Artifact and version. That folder holds an index, `files.json`, and, under `files/`, the version's files that the archive includes. The index is written last, so treat an archive as incomplete if it cannot be opened or has no `files.json` in its top-level folder.
35763578 
3577`files.json` has these fields:
3579An archive can leave out some of the version's files, even all of them, and the response is still a `200`. Read `files` and `omitted_files` in the index to see which of them the archive holds and which it leaves out. An archive that leaves out all of them has no `files/` folder. Neither field lists content kept outside the version's files.
35783580 
3581`files.json` includes these fields:
3582 
35793583- `artifact_id`: the Artifact ID, as in the request.
35803584- `version_id`: the version ID, as in the request.
35813585- `title`: the title of the version in the archive, or that version's ID when no title is kept.
35823586- `created_at`: when the version was published (RFC 3339, UTC), or null when that is not known.
35833587- `files`: one entry for each file under `files/`, with `original_path` (the file's path in the version), `exported_as` (its path in the archive), `sha256` (lowercase hex), `size_bytes` (before compression) and `mime_type`. `exported_as` is the top-level folder, then `files/`, then `original_path`. A name that could not be saved or opened safely on every operating system is changed. Use `exported_as`, not `original_path`, to find a file in the archive.
3584- `omitted_files`: the files left out of the archive, each with `original_path`, `sha256`, `size_bytes` and `mime_type`. They include files the version uses from another Artifact. They also include files copied from the Artifact type the Artifact was made from, such as the app that displays it, when another organization owns that type.
3588- `omitted_files`: the version's files left out of the archive, each with `original_path`, `sha256`, `size_bytes` and `mime_type`. Some Artifacts are made from an Artifact type, which is itself an Artifact and holds files shared by everything made from it, such as the app that displays every Slides deck. Those shared files can be left out when an organization other than the Artifact's owns the type, as Anthropic does for its built-in types, or when the type has access rules the API does not recognize. Any other file the version points to in another Artifact can also be left out.
35853589 
3586`files` and `omitted_files` together list at most 4,096 files, their `size_bytes` add up to at most 1 GiB, and no file is over 20 MiB.
3590`files` and `omitted_files` together list at most 4,096 files, none over 32 MiB, and the `size_bytes` of the files in `files` add up to at most 1 GiB.
35873591 
35883592#### Path parameters
35893593 
from line 3603
35993603 
36003604- `multi_file_format: optional string`
36013605 
3602 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.
3606 Set to `zip`, its only value, to ask for a ZIP archive with an index, `files.json`, when a version cannot be returned as a single file, such as when it has more than one file. Any other version can still come back as a single file, so check whether the file name in `Content-Disposition` ends in `.zip`. A Claude Doc's or a Claude Sheet's version never comes back as a ZIP.
36033607 
36043608#### Headers
36053609 
from line 3633
36293633 
36303634For 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.
36313635 
3632For 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.
3636For any other Artifact, the download is of 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. Some Artifacts keep content outside their versions' files, such as data saved while people use them and files uploaded separately from a version. A single file does not include that content. A ZIP archive of a version's files includes it only if its index, `files.json`, lists it.
36333637 
36343638Headers: `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.
36353639 
from line 3642
36383642- `404`: the Artifact doesn't exist, or the API key cannot read it.
36393643- `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.
36403644- `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.
3641- `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.
3645- `422` with `multi_file_unavailable`: the Artifact is a Claude Doc or a Claude Sheet and the request does not set `multi_file_format=zip`, or the latest version cannot be returned as a single file. Add the parameter when the error's message says to.
36423646- `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.
36433647- `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.
36443648- `422` with `document_too_large`: the Doc's or the Sheet's export is over 16 MiB. Do not retry.
36453649- `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.
36463650 
3647An 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.
3651An error after the download has started stops the body early, with the `200` status already sent. For example, this happens when a file stored compressed is too large once decompressed. A download that runs past a time limit stops the same way, so a large ZIP archive can end early, for example on a slow connection. 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.
36483652 
3649A ZIP archive of a version's files holds one top-level folder, named for the Artifact. That folder holds a `files/` folder and an index, `files.json`. The index is written last, so treat an archive as incomplete if it cannot be opened or has no `files.json` in its top-level folder.
3653A ZIP archive of a version's files holds one top-level folder, named for the Artifact. That folder holds an index, `files.json`, and, under `files/`, the version's files that the archive includes. The index is written last, so treat an archive as incomplete if it cannot be opened or has no `files.json` in its top-level folder.
36503654 
3651`files.json` has these fields:
3655An archive can leave out some of the version's files, even all of them, and the response is still a `200`. Read `files` and `omitted_files` in the index to see which of them the archive holds and which it leaves out. An archive that leaves out all of them has no `files/` folder. Neither field lists content kept outside the version's files.
36523656 
3657`files.json` includes these fields:
3658 
36533659- `artifact_id`: the Artifact ID, as in the request.
36543660- `version_id`: null.
36553661- `title`: the title of the version in the archive, or that version's ID when no title is kept.
36563662- `created_at`: when the version was published (RFC 3339, UTC), or null when that is not known.
36573663- `files`: one entry for each file under `files/`, with `original_path` (the file's path in the version), `exported_as` (its path in the archive), `sha256` (lowercase hex), `size_bytes` (before compression) and `mime_type`. `exported_as` is the top-level folder, then `files/`, then `original_path`. A name that could not be saved or opened safely on every operating system is changed. Use `exported_as`, not `original_path`, to find a file in the archive.
3658- `omitted_files`: the files left out of the archive, each with `original_path`, `sha256`, `size_bytes` and `mime_type`. They include files the version uses from another Artifact. They also include files copied from the Artifact type the Artifact was made from, such as the app that displays it, when another organization owns that type.
3664- `omitted_files`: the version's files left out of the archive, each with `original_path`, `sha256`, `size_bytes` and `mime_type`. Some Artifacts are made from an Artifact type, which is itself an Artifact and holds files shared by everything made from it, such as the app that displays every Slides deck. Those shared files can be left out when an organization other than the Artifact's owns the type, as Anthropic does for its built-in types, or when the type has access rules the API does not recognize. Any other file the version points to in another Artifact can also be left out.
36593665 
3660`files` and `omitted_files` together list at most 4,096 files, their `size_bytes` add up to at most 1 GiB, and no file is over 20 MiB.
3666`files` and `omitted_files` together list at most 4,096 files, none over 32 MiB, and the `size_bytes` of the files in `files` add up to at most 1 GiB.
36613667 
36623668#### Path parameters
36633669 
from line 3675
36693675 
36703676- `multi_file_format: optional string`
36713677 
3672 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`.
3678 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`. Otherwise the latest version can still come back as a single file, so check whether the file name in `Content-Disposition` ends in `.zip`.
36733679 
36743680#### Headers
36753681 
Feedback