SPB Git

Repository Public

retrieve_version.md 1.4 KB 44 lines markdown

1---2title: Download Code Artifact Version Content3url: https://platform.claude.com/docs/en/api/compliance/code/artifacts/retrieve_version4---56# Download Code Artifact Version Content78**GET** `/v1/compliance/apps/code/artifacts/{artifact_id}/versions/{version_id}`910Streams the content of one version of a Claude Code Artifact as the11response body.1213Returns 404 for Artifacts that don't exist or belong to another parent14organization. A listed version id can start returning 404 if subsequent15publishes rotated it out of retained history — re-list on 404. Returns16503 while the version's content upload is17still in flight or was abandoned — retry with backoff. Oversized18encoded content aborts mid-stream: headers and initial bytes arrive19but the body terminates early — an aborted chunked transfer is the20only truncation signal for encoded content. `Content-MD5` is emitted21only for identity-stored content; validate against it when present.2223## Path parameters2425- `artifact_id: string`2627  The Artifact ID (tagged ID, e.g., cart_abc123)2829- `version_id: string`3031  Opaque version identifier from the Artifact's `versions` list3233## Headers3435- `"x-api-key": optional string`3637## Example3839```bash40curl https://api.anthropic.com/v1/compliance/apps/code/artifacts/$ARTIFACT_ID/versions/$VERSION_ID \41    -H 'anthropic-version: 2023-06-01' \42    -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"43```44
Files main
Menu

Theme