SPB Git

Repository Public

metadata.md 2.2 KB 102 lines markdown

1---2title: Get project document metadata3url: https://platform.claude.com/docs/en/api/compliance/apps/projects/documents/metadata4---56# Get project document metadata78**GET** `/v1/compliance/apps/projects/documents/{document_id}/metadata`910Returns metadata for a project document, without the content body.1112Use the sibling `GET /v1/compliance/apps/projects/documents/{document_id}`13endpoint to fetch the document text. The `md5` and `size_bytes`14fields here are computed over the UTF-8 encoding of that text, so a DLP15consumer can dedupe or match hashes without downloading every document.1617## Path parameters1819- `document_id: string`2021  The document ID (tagged ID, e.g., claude_proj_doc_abc123)2223## Headers2425- `"x-api-key": optional string`2627## Returns2829- `id: string`3031  Project document identifier (tagged ID)3233- `claude_project_id: string`3435  The project this document belongs to3637- `created_at: string`3839  Document creation timestamp4041  format: date-time4243- `filename: string`4445  Document filename4647- `md5: string`4849  Lowercase hex MD5 of the document content (UTF-8 encoded). Matches the `content` field returned by the sibling content endpoint.5051- `mime_type: "text/plain"`5253  MIME type of the document content, always plain text5455  default: text/plain5657- `size_bytes: number`5859  Size in bytes of the document content (UTF-8 encoded)6061- `user: object or null`6263  The user who created a project or project document.6465  Fields that reference this type are null when the creator's account has66  been deleted or the creator is no longer a member of an organization the67  key may read.6869  - `id: string`7071    User identifier (tagged ID)7273  - `email_address: string`7475    User's email address7677## Example7879```bash80curl https://api.anthropic.com/v1/compliance/apps/projects/documents/$DOCUMENT_ID/metadata \81    -H 'anthropic-version: 2023-06-01' \82    -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"83```8485### Response (200)8687```json88{89  "id": "id",90  "claude_project_id": "claude_project_id",91  "created_at": "2019-12-27T18:11:19.117Z",92  "filename": "filename",93  "md5": "md5",94  "mime_type": "text/plain",95  "size_bytes": 0,96  "user": {97    "id": "user_01WCz1FkmYMm4gnmykNKUu3Q",98    "email_address": "jane.doe@example.com"99  }100}101```102
Files main
Menu

Theme