Prisma
API Referenceanalytics

Export Hitl Requests

Accept a HITL-requests export and dispatch it asynchronously. HITL exports skip ``project_ids`` (HITL records are scoped by ``request_ids`` / ``run_ids``) and produce a two-sheet XLSX or flattened CSV/JSONL via the same worker pipeline as data exports.

POST
/api/v1/analytics/export/hitl/requests

Authorization

AuthorizationBearer <token>

In: header

Header Parameters

X-API-Key?string|null

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X post "https://prisma.your-company.com/api/v1/analytics/export/hitl/requests" \  -H "Content-Type: application/json" \  -d '{    "file_format": "csv",    "include_knowledge_context": true,    "project_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",    "request_ids": [      "550e8400-e29b-41d4-a716-446655440000"    ],    "workspace_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"  }'
{
  "created_at": "2026-05-15T14:30:00Z",
  "file_id": "550e8400-e29b-41d4-a716-446655440099",
  "file_url": "/api/v1/files/550e8400-e29b-41d4-a716-446655440099/content",
  "job_id": "550e8400-e29b-41d4-a716-446655440010",
  "status": "pending",
  "status_url": "/api/v1/analytics/export/jobs/550e8400-e29b-41d4-a716-446655440010"
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}