Graphon API

Cancel research

Stops a research run that is still working and returns it as it ended, with status canceled. A run that already ended is returned as it ended, so a cancel that arrives after the answer is not an error. A run that the search service had already charged for still counts against the workspace's queries. Requires the viewer role.

POST/v1/workspaces/{workspaceId}/research/{researchId}/cancel

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.

The query run id.

Query parameters

sourcesstring (optional)

cited: only the sources that the answer cites. all: every source of the run: cited sources first, in the order the answer cites them, then the sources it only retrieved. Defaults to all. One of: all, cited.

sourceLimitstring (optional)

Sources on one page, 1 to 200. Defaults to 50. A smaller page keeps a tool result under its size limit.

sourceCursorstring (optional)

The sourcesNextCursor of the previous read, to read the next page of sources. Send the same sources and sourceLimit. Defaults to the first page.

Was this page helpful?
View as Markdown