post
/api/v2/reports/csv-exportsCreate a local CSV export artifact.
Creates a project-scoped local CSV artifact for a supported workspace table and records delivery-history events. WatchLLM extension.
Requires bearer API key
Parameters
X-Project-Id
header
Required for organization-wide API keys on project-scoped endpoints. Project-scoped keys infer the project automatically.
Schema: string
Request Body
{
"type": "object",
"additionalProperties": false,
"properties": {
"tableName": {
"type": "string",
"enum": [
"responses",
"citations",
"sources",
"actions"
]
},
"dateRange": {
"type": "string",
"enum": [
"last_7_days",
"last_14_days",
"last_30_days",
"last_90_days"
]
}
},
"required": [
"tableName",
"dateRange"
]
}Responses
201
Created CSV export artifact.
application/json{
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "string"
},
"tableName": {
"type": "string"
},
"status": {
"type": "string"
},
"dateRange": {
"type": "string"
},
"filters": {
"type": "object",
"additionalProperties": true
},
"filePath": {
"type": "string",
"nullable": true
},
"requestedById": {
"type": "string",
"nullable": true
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"completedAt": {
"type": "string",
"format": "date-time",
"nullable": true
},
"downloadUrl": {
"type": "string",
"nullable": true
}
}
}400
Invalid CSV export request.
application/json{
"type": "object",
"properties": {
"error": {
"type": "string"
},
"message": {
"type": "string"
}
}
}Try it
Send this request to the local WatchLLM REST handler. Use a key from `/workspace/api`; organization keys can include `X-Project-Id` only when the endpoint documents that header.