Read a thread
Return the ordered question_id values in a thread. To page, pass the last id of the current page as after and repeat until has_more is false.
Body·
required
application/json
- Type: string Format: uuidthread
_id requiredThe thread, which is the id of its root question.
- Type: stringuser
_id requiredRequired. Miso confirms this user owns the thread.
- Type: string Format: uuidafter
Cursor - return questions after this id.
- Type: string enumorder
asc= root to newest.desc= newest to root.values- asc
- desc
- Type: integerrowsmax:100
Integer numbers.
Responses
- application/json
- application/json
- application/json
- 500
Miso could not read or write the history store. Retry, and keep what you have on screen — this is no longer reported as an empty list.
Request Example for post/v1/ask/user_history/thread
curl 'https://api.askmiso.com/v1/ask/user_history/thread?api_key=YOUR_SECRET_TOKEN' \
--request POST \
--header 'Content-Type: application/json' \
--data '{
"question_id": "0e1f2a3b-4c5d-6e7f-8a9b-0c1d2e3f4a5b",
"user_id": "alice",
"rows": 30
}'
{
"message": "success",
"data": {
"question_ids": [
"0e1f2a3b-4c5d-6e7f-8a9b-0c1d2e3f4a5b",
"1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d"
],
"has_more": false
}
}