Skip to main content
GET
/
v1
/
ask
/
questions
/
{question_id}
/
answer
Get latest answer of asked question
curl --request GET \
  --url 'https://api.askmiso.com/v1/ask/questions/{question_id}/answer?api_key='
import requests

url = "https://api.askmiso.com/v1/ask/questions/{question_id}/answer?api_key="

response = requests.get(url)

print(response.text)
const options = {method: 'GET'};

fetch('https://api.askmiso.com/v1/ask/questions/{question_id}/answer?api_key=', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.askmiso.com/v1/ask/questions/{question_id}/answer?api_key=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://api.askmiso.com/v1/ask/questions/{question_id}/answer?api_key="

req, _ := http.NewRequest("GET", url, nil)

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.askmiso.com/v1/ask/questions/{question_id}/answer?api_key=")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.askmiso.com/v1/ask/questions/{question_id}/answer?api_key=")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
{
  "data": {
    "question": "<string>",
    "question_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "parent_question_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "answer_stage": "",
    "finished": false,
    "finish_reason": "not_finished",
    "answer": "",
    "sources": [],
    "related_resources": [],
    "followup_questions": [
      "<string>"
    ],
    "affiliation_products": [
      {}
    ],
    "revision": 0
  },
  "message": "success"
}
{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}

Authorizations

api_key
string
query
required

Your secret API key is used to access every Miso API endpoint. You should secure this key and only use it on a backend server. Never leave this key in your client-side JavaScript code. If the private key is compromised, you can revoke it in Dojo and get a new one.

Specify your secret key in the api_key query parameter. For example:

POST /v1/users?api_key=039c501ac8dfcac91c6f05601cee876e1cc07e17

Path Parameters

question_id
string<uuid>
required

Response

Successful Response

data
Data · object
required

The answer data containing the latest answer, sources, and related resources.

message
string
default:success

The status of the API response ('success' or other human readable api status).