# readMyChatFile

A file on one of the key owner's own chats, by its id (an attachment's id is on its message's "[Attached files: …]" line): a text file's words (CSV, TSV, JSON, text), a ZIP's listing or one file in it (`entryPath`). Any other file (an image, a PDF) answers with a `downloadUrl` that opens it for 15 minutes.

- Call: `POST https://server.goliathdata.com/api/v1/call` with `{ "operationId": "readMyChatFile", "variables": {...} }`
- Scope: `READ`
- Type: query
- Idempotency: a read; rejects `Idempotency-Key`
- Rate-limited: no

## Variables

- `artifactId`: `ID!` (required)
- `entryPath`: `String`

## Response (data, an example)

```json
{
  "agentChatQuery": {
    "readMyChatFile": "…"
  }
}
```

## Example

```bash
curl https://server.goliathdata.com/api/v1/call \
  -H "Authorization: Bearer $GOLIATH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "operationId": "readMyChatFile",
    "variables": {
      "artifactId": "<artifactId>"
    }
  }'
```
