Artifacts
api/compliance/apps/artifacts
Nearest release: v2.1.245, published an hour after this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
api/compliance/apps/artifacts Changed · +15 / -16 lines
### Path parameters ### Headers #### Response (200) ### Path parameters ### Headers ## Domain types ### Path Parameters ### Header Parameters #### Response ### Path Parameters ### Header Parameters ## Domain Types
---- -title: Artifacts -url: https://platform.claude.com/docs/en/api/compliance/apps/artifacts ---- - # Artifacts ## Get artifact metadata -**get** `/v1/compliance/apps/artifacts/{artifact_version_id}` +**GET** `/v1/compliance/apps/artifacts/{artifact_version_id}` Returns metadata for an artifact version, without the content body.
encoding of that text, so a DLP consumer can dedupe or match hashes without downloading every artifact. -### Path Parameters +### Path parameters - `artifact_version_id: string` The artifact version ID (tagged ID, e.g., claude_artifact_version_abc123) -### Header Parameters +### Headers - `"x-api-key": optional string`
Artifact version creation timestamp + format: date-time + - `md5: string` Lowercase hex MD5 of the artifact content (UTF-8 encoded). Matches the `content` field returned by the sibling `/content` endpoint.
### Example -```http +```bash curl https://api.anthropic.com/v1/compliance/apps/artifacts/$ARTIFACT_VERSION_ID \ -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY" ``` -#### Response +#### Response (200) ```json {
## Download artifact content -**get** `/v1/compliance/apps/artifacts/{artifact_version_id}/content` +**GET** `/v1/compliance/apps/artifacts/{artifact_version_id}/content` Download the content of an artifact version for compliance purposes. Returns the full text content of the artifact version. -### Path Parameters +### Path parameters - `artifact_version_id: string` The artifact version ID (tagged ID, e.g., claude_artifact_version_abc123) -### Header Parameters +### Headers - `"x-api-key": optional string` ### Example -```http +```bash curl https://api.anthropic.com/v1/compliance/apps/artifacts/$ARTIFACT_VERSION_ID/content \ -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY" ``` -## Domain Types +## Domain types ### Artifact Retrieve Response -- `ArtifactRetrieveResponse object { id, artifact_type, claude_chat_id, 5 more }` +- `ArtifactRetrieveResponse object` Artifact version metadata for GET /v1/compliance/apps/artifacts/{artifact_version_id}.
- `created_at: string` Artifact version creation timestamp + + format: date-time - `md5: string`