Claude Platform Docs

To enable the Compliance API, see the setup guide.

Set up the Compliance API

프로젝트 문서 메타데이터 조회

GET/v1/compliance/apps/projects/documents/{document_id}/metadata

콘텐츠 본문 없이 프로젝트 문서의 메타데이터를 반환합니다.

문서 텍스트를 가져오려면 형제 엔드포인트인 GET /v1/compliance/apps/projects/documents/{document_id}를 사용하세요. 여기의 md5size_bytes 필드는 해당 텍스트의 UTF-8 인코딩을 기준으로 계산되므로, DLP 소비자는 모든 문서를 다운로드하지 않고도 중복을 제거하거나 해시를 대조할 수 있습니다.

Path parameters
document_id: string

The document ID (tagged ID, e.g., claude_proj_doc_abc123)

Headers
"x-api-key": optional string
Returns
id: string

Project document identifier (tagged ID)

claude_project_id: string

The project this document belongs to

created_at: string

Document creation timestamp

formatdate-time
filename: string

Document filename

md5: string

Lowercase hex MD5 of the document content (UTF-8 encoded). Matches the content field returned by the sibling content endpoint.

mime_type: "text/plain"

MIME type of the document content, always plain text

defaulttext/plain
size_bytes: number

Size in bytes of the document content (UTF-8 encoded)

user: object{ id, email_address } or null

The user who created a project or project document.

Fields that reference this type are null when the creator's account has been deleted or the creator is no longer a member of an organization the key may read.

id: string

User identifier (tagged ID)

email_address: string

User's email address

프로젝트 문서 메타데이터 조회
cURL
curl https://api.anthropic.com/v1/compliance/apps/projects/documents/$DOCUMENT_ID/metadata \
    -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
Returns Examples
Response 200
{
  "id": "id",
  "claude_project_id": "claude_project_id",
  "created_at": "2019-12-27T18:11:19.117Z",
  "filename": "filename",
  "md5": "md5",
  "mime_type": "text/plain",
  "size_bytes": 0,
  "user": {
    "id": "user_01WCz1FkmYMm4gnmykNKUu3Q",
    "email_address": "jane.doe@example.com"
  }
}