Attach a document to a decision
Downloads the file from file_url, runs the same security validation and storage-quota checks as the web app's upload flow, then extracts text and generates embeddings for retrieval during analysis. Returns a job_id — poll GET /v1/jobs/{id}. Free (no LLM call), subject to storage quota.
/v1/decisions/{id}/documentsAPI key in dc_live_... / dc_test_... format, from /settings/api-keys.
In: header
Path Parameters
Decision or job ID.
A URL the server can fetch the file from (must be publicly reachable, or at least reachable by the server — e.g. a signed URL). Direct base64 upload isn't supported; host the file somewhere fetchable first.
uriOriginal file name, including extension.
1 <= length <= 255The file's MIME type, e.g. application/pdf. Supported: PDF, DOCX, PPTX, XLSX, CSV, TXT, and JPEG/PNG/GIF/WebP images. Max 25MB.
Response Body
curl -X POST "https://api.deecee.ai/v1/decisions/string/documents" \ -H "Content-Type: application/json" \ -d '{ "file_url": "http://example.com", "file_name": "string", "mime_type": "string" }'{
"success": true,
"data": {
"upload_id": "string",
"file_name": "string",
"file_size": 0,
"mime_type": "string",
"processing_status": "completed"
}
}{
"success": false,
"error": "string",
"code": "string"
}{
"success": false,
"error": "string",
"code": "string"
}{
"success": false,
"error": "string",
"code": "string"
}Assess a decision's context and recommend complexity/framework/title
Read-only — does not modify the decision. Show the recommendation to the user and get their explicit confirmation (or overrides) before committing it via POST /v1/decisions/{id}/setup — do not apply it or start analysis unconfirmed.
Export a decision brief as Markdown, DOCX, or PDF
Returns a job_id — poll GET /v1/jobs/{id}. Markdown comes back inline as content; DOCX/PDF as a download url (treat the URL as sensitive). PDF is available on every plan (Free users get a branded footer); Markdown and DOCX require Pro, Beta, or Admin. Free (no LLM call).