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
  • thread_id
    Type: string Format: uuid
    required

    The thread, which is the id of its root question.

  • user_id
    Type: string
    required

    Required. Miso confirms this user owns the thread.

  • after
    Type: string Format: uuid

    Cursor - return questions after this id.

  • order
    Type: string enum

    asc = root to newest. desc = newest to root.

    values
    • asc
    • desc
  • rows
    Type: integer
    max:  
    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
  }
}