Exporting Data
From the dashboard
Usage
Go to Usage
Choose a time range (24h, 7d, 30d, 90d)
Click Export JSON or Export CSV
Audit log
Go to Audit
Filter if needed (event type, user, search)
Click Export JSON or Export CSV
Via API
Use your API key and the actions or analytics endpoints:
curl -H "Authorization: Bearer YOUR_API_KEY" \
"https://api.faramesh.io/v1/actions?limit=1000" | jq . > actions.json
curl -H "Authorization: Bearer YOUR_API_KEY" \
"https://api.faramesh.io/v1/analytics?time_range=30d"
curl -H "Authorization: Bearer YOUR_API_KEY" \
"https://api.faramesh.io/v1/actions?limit=1000" | jq . > actions.json
curl -H "Authorization: Bearer YOUR_API_KEY" \
"https://api.faramesh.io/v1/analytics?time_range=30d"
curl -H "Authorization: Bearer YOUR_API_KEY" \
"https://api.faramesh.io/v1/actions?limit=1000" | jq . > actions.json
curl -H "Authorization: Bearer YOUR_API_KEY" \
"https://api.faramesh.io/v1/analytics?time_range=30d"
Via CLI
faramesh list --json > actions.json
faramesh policy list --json
faramesh list --json > actions.json
faramesh policy list --json
faramesh list --json > actions.json
faramesh policy list --json
Retention
How long data is kept depends on your plan. Export before it's removed. Retention periods:
FREE: 7 days
PRO: 30 days
TEAM: 90 days
ENTERPRISE: 365 days