Answer API
Authorization header in the format: 'Bearer {api_key}'
The message (e.g., a question or prompt) that you want a response to
The ID of the Dashworks Bot to interact with. You can find this by going to Dashworks > Bots, clicking on an existing Bot, and using the 'Copy Bot ID' button on the top right
When true (default), sources will be cited inline in markdown formatting within the answer text. When false, the answer will not contain inline citations, but the sources used will still be returned in the sources field.
trueWhen true, the response is streamed as Server-Sent Events (SSE). Otherwise, the entire answer is returned in a single response. Default is false.
falseSuccessful Response
Unauthorized
Payment Required
Not found
Validation Error
Rate Limit Exceeded
POST https://api.dashworks.ai/v1/answer HTTP/1.1
Host:
authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 71
{
"message": "text",
"bot_id": "text",
"inline_sources": true,
"stream": false
}{
"answer": "text",
"sources": [
{
"url": "text",
"app_name": "text",
"author": {
"name": "text",
"email": "text",
"photo": "text"
},
"title": "text",
"snippet": "text",
"modified_time": 1
}
],
"answer_found": true
}Last updated
Was this helpful?