Prisma
API Referenceanalytics

Export Data

Export data in the specified format.

POST
/api/v1/analytics/export/data

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X post "http://localhost:8000/api/v1/analytics/export/data" \  -H "Content-Type: application/json" \  -d '{    "data_quality_threshold": 0.85,    "date_range_end": "2026-03-22T14:30:00Z",    "date_range_start": "2026-01-01T00:00:00Z",    "domains": [      "healthcare"    ],    "enable_powerbi_optimizations": true,    "evaluators": [      "faithfulness"    ],    "file_format": "csv",    "include_analytics": true,    "include_controls": true,    "project_ids": [      "550e8400-e29b-41d4-a716-446655440001"    ],    "workspace_id": "550e8400-e29b-41d4-a716-446655440000"  }'
{
  "exported_at": "2026-03-22T14:30:00Z",
  "file_format": "csv",
  "file_url": "https://storage.googleapis.com/prisma-exports/hitl/export_20260322143000.csv",
  "filters_applied": {
    "project_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7"
  },
  "message": "Export completed successfully.",
  "quality_report": {
    "completeness": 0.98,
    "issues": []
  },
  "record_count": 142
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}