Skip to main content
GET
/
errors
/
export
curl "https://kodostatus.com/api/v1/errors/export?format=csv&start_date=2024-01-01T00:00:00Z&end_date=2024-01-31T23:59:59Z" \
  -H "X-API-Key: your_api_key"
{
  "export": {
    "format": "json",
    "from": "2024-01-01T00:00:00Z",
    "to": "2024-01-31T23:59:59Z",
    "total_errors": 156,
    "total_occurrences": 4823
  },
  "errors": [
    {
      "id": "err_abc123",
      "message": "Cannot read property 'map' of undefined",
      "type": "TypeError",
      "occurrences": 47,
      "sessions_affected": 23,
      "first_seen": "2024-01-15T08:30:00Z",
      "last_seen": "2024-01-15T10:45:00Z"
    }
  ]
}

Query Parameters

format
string
default:"csv"
Export format: json or csv
environment
string
Filter by environment
priority
string
Filter by priority
category
string
Filter by category
start_date
string
Start date (ISO 8601)
end_date
string
End date (ISO 8601)
limit
integer
default:"1000"
Maximum number of errors to export (max 10,000)

Response

Returns the exported data in the requested format. CSV exports include a Content-Disposition header for file download.
curl "https://kodostatus.com/api/v1/errors/export?format=csv&start_date=2024-01-01T00:00:00Z&end_date=2024-01-31T23:59:59Z" \
  -H "X-API-Key: your_api_key"
{
  "export": {
    "format": "json",
    "from": "2024-01-01T00:00:00Z",
    "to": "2024-01-31T23:59:59Z",
    "total_errors": 156,
    "total_occurrences": 4823
  },
  "errors": [
    {
      "id": "err_abc123",
      "message": "Cannot read property 'map' of undefined",
      "type": "TypeError",
      "occurrences": 47,
      "sessions_affected": 23,
      "first_seen": "2024-01-15T08:30:00Z",
      "last_seen": "2024-01-15T10:45:00Z"
    }
  ]
}
Exports are limited to 10,000 error signatures. For larger datasets, use pagination with the List Errors endpoint.