Answer a question
/v1/workspaces/{workspaceId}/answerAnswers 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.
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
workspaceIdstringThe workspace id.
Request body
bucketIdstringThe bucket id. The bucket must be in the workspace and have indexing enabled.
querystringThe 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.
Premium. A picture to ask about: PNG, JPEG, or WebP, at most 4 MiB. It adds up to 45 seconds. Graphon keeps no copy.