SochIQ
Landing

Developer REST API & Temporary Keys

Generate separate, temporary Developer API Keys for external scripts, cURL, and tools.

Open Swagger UI

Temporary Developer API Key

Scoped to workspace lifecycle • Displayed only once

Two-Tier Credential Architecture: Browser requests automatically use an HttpOnly session cookie scoped to your browser profile. External tools use the separate Developer API Key via Authorization: Bearer dl_live_.... Both credentials remain active while your workspace is open, and are stored strictly as SHA-256 hashes in Supabase PostgreSQL.

API Endpoint Reference

GET/api/v1/health

Returns API service health, active mode, and provider availability.

curl -X GET https://sochiq-backend.onrender.com/api/v1/health
POST/api/v1/datasets/preview

Uploads and evaluates CSV/XLSX/JSON in-memory, returning schema & preview.

curl -X POST https://sochiq-backend.onrender.com/api/v1/datasets/preview \
  -H "Authorization: Bearer sochiq_live_SAMPLE_TEMPORARY_KEY" \
  -F "file=@sample.csv"
POST/api/v1/analytics/summary

Calculates descriptive statistics (mean, median, quartiles, IQR) in memory.

curl -X POST https://sochiq-backend.onrender.com/api/v1/analytics/summary \
  -H "Authorization: Bearer sochiq_live_SAMPLE_TEMPORARY_KEY" \
  -F "file=@sales.xlsx"
POST/api/v1/insights/rules

Deterministic statistical heuristics (dominant categories, outliers, benchmarks).

curl -X POST https://sochiq-backend.onrender.com/api/v1/insights/rules \
  -H "Authorization: Bearer sochiq_live_SAMPLE_TEMPORARY_KEY" \
  -F "file=@data.json"
POST/api/v1/exports/pdf

Generates and streams an executive PDF report built with ReportLab.

curl -X POST https://sochiq-backend.onrender.com/api/v1/exports/pdf \
  -H "Authorization: Bearer sochiq_live_SAMPLE_TEMPORARY_KEY" \
  -F "file=@data.csv" --output SochIQ_Report.pdf
GET/api/v1/datasets/saved

Lists saved dataset metadata scoped to caller's anonymous identity.

curl -X GET https://sochiq-backend.onrender.com/api/v1/datasets/saved \
  -H "Authorization: Bearer sochiq_live_SAMPLE_TEMPORARY_KEY"
POST/api/v1/ai/query

Inquires analytical summaries and trends grounded on computed statistics via Groq.

curl -X POST https://sochiq-backend.onrender.com/api/v1/ai/query \
  -H "Authorization: Bearer sochiq_live_SAMPLE_TEMPORARY_KEY" \
  -H "Content-Type: application/json" \
  -d '{"question": "Summarize key dataset dimensions", "summary_context": {}}'