How to Ask

Humata allows you to chat with your document via the Ask endpoint. Create a conversation and then ask your documents

Ask in a Conversation

post

Ask a question in a conversation. Response is streamed via server-sent events.

Authorizations
AuthorizationstringRequired

API key provided as a Bearer token in the Authorization header.

Body
conversationIdstring · uuidRequired
modelstring · enumRequiredPossible values:
questionstringRequired
selectedAnswerApproachstring · enumOptionalPossible values:
Responses
200

Successfully answered the question.

text/event-stream
Responsestring
post
/v1/ask

Server-Sent Events

The Ask Endpoint returns a stream of server-sent events. Here is a full example of response to the question "Who is George Washington?":

References

Each answer from Humata will provide references to the parts of the document that our AI used to answer the question. The format of references is subject to change.

Last updated