Skip to content

API: Research workspace

Asynchronous research jobs: attach documents, start a multi-step agent run, follow its event stream, and read the cited report.

Every HTML route returns JSON with Accept: application/json. Authentication: session cookie, X-API-KEY, Authorization: Bearer or Basic.

GET/researchMember
Research workspace page

Workspace with document tray, live run trace, report, charts and recent jobs.

curl -X GET -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/research'
GET/research/jobsMember
List research jobs

The signed-in member's started jobs, newest first.

curl -X GET -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/research/jobs'
POST/research/jobsMember
New research job

Creates a draft job that accepts documents until it starts.

curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/research/jobs'
GET/research/jobs/{uid}Member
Research job

Status, attached documents, and the final result when finished.

curl -X GET -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/research/jobs/{uid}'
POST/research/jobs/{uid}/documentsMember
Attach document

Multipart upload in field file. Accepts PDF, DOCX, TXT, MD, CSV, TSV, JSON, HTML, and ZIP archives of those.

FieldTypeLocationRequired
filefilebodyyes
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/research/jobs/{uid}/documents'
DELETE/research/jobs/{uid}/documents/{document_uid}Member
Remove document

Removes one document from a draft job.

curl -X DELETE -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/research/jobs/{uid}/documents/{document_uid}'
POST/research/jobs/{uid}/startMember
Start research job

Starts the agent on a draft job. Output preferences such as tone, format, tables and charts are read from the question.

FieldTypeLocationRequired
querystringbodyyes
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{"query": "probe"}' 'https://molodetz.nl/research/jobs/{uid}/start'
POST/research/jobs/{uid}/cancelMember
Cancel research job

Stops a running job; gathered events stay readable.

curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/research/jobs/{uid}/cancel'
DELETE/research/jobs/{uid}Member
Delete research job

Deletes a finished or draft job with its documents and events.

curl -X DELETE -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/research/jobs/{uid}'
GET/research/jobs/{uid}/streamMember
Research job stream

Server-sent events with ids for resume: status, plan, step, progress, review, warning, usage, telemetry, result, error, done.

curl -X GET -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/research/jobs/{uid}/stream'
11.1ms