DeeCee.ai Agentic API
API Endpoint ReferenceDecisions

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.

POST/v1/decisions/{id}/documents
AuthorizationBearer <token>

API key in dc_live_... / dc_test_... format, from /settings/api-keys.

In: header

Path Parameters

idstring

Decision or job ID.

file_urlstring

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.

Formaturi
file_namestring

Original file name, including extension.

Length1 <= length <= 255
mime_typestring

The 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"
}