Graphon API

Start research

POST/v1/workspaces/{workspaceId}/research

Starts a research run on one bucket in a premium deep mode, ultra or recall, and returns it at once with status running. It never waits for the answer: follow the run with Research events, and read it with Get research for one hour after it ends. Ask Standard questions with Answer a question. Requires the viewer role. The bucket must have indexing enabled. An image is a premium feature.

View as Markdown

Authentication

Send your Graphon API key with every request. The value is the whole API key that Graphon showed when you created it. See Authentication.

Authorization: Bearer <GRAPHON_API_KEY>

Path parameters

The workspace id.

Request body

bucketIdstring

The bucket id. The bucket must be in the workspace and have indexing enabled.

querystring

The question to answer. It must contain text. At most 32,000 characters.

modestring (optional)Premium: ultra, recall

Premium. ultra searches, reads, and searches again inside the bucket. recall keeps looking until it finds nothing new, for questions such as "every time checkout timed out". Each runs up to 600 seconds. Defaults to ultra. Ask a Standard question with Answer a question. One of: ultra, recall.

streamboolean (optional)

false: 202 with the running research run at once. true: 200 text/event-stream, the events of the run until it ends, as Research events sends them. Either way the Location header names the run. Defaults to false.

historyobject[] (optional)

Earlier turns, oldest first. At most 32. Stored with the research run. Defaults to none.

imageobject (optional)Premium

Premium. A picture to ask about: PNG, JPEG, or WebP, at most 4 MiB. It adds up to 45 seconds. Graphon keeps no copy.

Was this page helpful?