Skip to main content

Upload Data To Space

Data lives in Sources — named paths within a space. Create a source, upload files into it, then attach up to five sources to a tracker on its Data tab. Learn more →


Upload via Console

  1. Open your space and go to Edit → Sources
  2. Click + New Source and create a source (name + description)
  3. Open the source and Upload your files (PDF, CSV, etc.)
  4. In a tracker's Data tab, select the sources to attach
  5. Run the tracker — it uses your data as context

Supported Formats

TypeFormats
DocumentsPDF, CSV, TXT, Markdown
Structured DataJSON objects or arrays (via API)

Upload via API

Create a source, then upload with the source path as source:

# 1. Create a source
curl -X POST "https://api.quantinal.ai/v1/api/spaces/{space_id}/sources" \
-H "Authorization: Bearer qapi_..." \
-H "Content-Type: application/json" \
-d '{"name": "Financials", "description": "Quarterly reports"}'

# 2. Upload a file into it (source = source path, e.g. /financials/)
curl -X POST "https://api.quantinal.ai/v1/api/spaces/{space_id}/files" \
-H "Authorization: Bearer qapi_..." \
-F "file=@report.pdf" \
-F "source=/financials/"
tip

Use your space_id in the URL. List sources with GET /api/spaces/{space_id}/sources.


Sources reference → | API Reference →