Home · Tools · chat_export

chat_exportBulk export. Hand off, archive, or analyse offline.

Sometimes the agent needs more than a query — it needs the whole file. chat_export packages every session for a site in a date range into a downloadable archive (JSONL plus optional CSV) and returns the URL. Three credits. About 5 seconds for a typical month. Useful for analyst handoff, training data, or compliance archiving.

Slug
chat_export
Cost
3 credits
Latency
~5s
Rate limit
30/min

When to call this tool

Reach for it monthly for compliance, weekly for analyst review, or ad-hoc when a stakeholder asks for "everything we said to visitors last week". The export URL is signed and expires after 24 hours; agents should download immediately.

Input schema

{ "site_id": "…", "range": { "start", "end" }, "format": "enum: 'jsonl' | 'csv' | 'both'" }

Output schema

{ "export_url": "…", "expires_at": "…", "sessions": 0, "messages": 0, "credits_used": 3 }

Example invocations

1. Claude Desktop

Export last month's chats for site_xyz as both JSONL and CSV.

2. ChatGPT custom GPT

For monthly compliance pulls, call chat_export with the
prior month's range and store the URL in a tracker.

3. Cursor MCP

Build a script that exports each site weekly and uploads
the archive to S3.

4. n8n

{ "jsonrpc": "2.0", "method": "tools/call",
  "params": { "name": "chat_export", "arguments": { "site_id": "site_xyz", "range": { "start": "2026-04-01", "end": "2026-04-30" } } } }

5. Raw curl

curl -X POST https://www.mentionfox.com/mcp \
  -H "Authorization: Bearer $FOXAPIS_KEY" \
  -d '{"jsonrpc":"2.0","method":"tools/call","params":{"name":"chat_export","arguments":{"site_id":"site_xyz","range":{"start":"2026-04-01","end":"2026-04-30"},"format":"both"}}}'

Sample output

{
  "export_url": "https://exports.foxapis.com/abc123.zip",
  "expires_at": "2026-05-10T16:00:00Z",
  "sessions": 412, "messages": 2917,
  "credits_used": 3
}

Credit cost & rate limits

3 credits per export. 30 per minute. Archives over 50 MB are split.

Error codes & recovery

422 RANGE_TOO_LARGERange exceeds 90 days.
404 NO_SITESite id not found.