Graphon API

Answer a question

POST/v1/workspaces/{workspaceId}/answer

Answers a question about one bucket, with a citation marker for each source, on the same call. It always runs in Standard mode: usually seconds, and at most 120 seconds, or 165 with an image. Requires the viewer role. The bucket must have indexing enabled. Nothing is stored, so a dropped call loses its answer: ask again. 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.

historyobject[] (optional)

Earlier turns, oldest first. At most 32. Graphon does not store them. 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?