POST
/
tune.dataset.ThreadDatasetService
/
ListThreadDatasetThreadsMessages
curl --request POST \
  --url https://studio.tune.app/tune.dataset.ThreadDatasetService/ListThreadDatasetThreadsMessages \
  --header 'Content-Type: application/json' \
  --header 'X-Tune-Key: <api-key>' \
  --data '{
  "auth": {
    "organization": "<string>",
    "cluster": "<string>"
  },
  "datasetId": "<string>",
  "page": {
    "limit": 123,
    "prevPageToken": "<string>",
    "nextPageToken": "<string>",
    "totalPage": 123
  },
  "order": "<string>"
}'
{
  "threadsMessages": [
    {
      "threadId": "<string>",
      "messages": [
        {
          "id": "<string>",
          "object": "<string>",
          "createdAt": "2023-11-07T05:31:56Z",
          "threadId": "<string>",
          "role": "<string>",
          "content": [
            {
              "type": "<string>",
              "text": "<string>",
              "imageFile": {
                "fileId": "<string>",
                "detail": "<string>"
              },
              "imageUrl": {
                "url": "<string>",
                "detail": "<string>"
              }
            }
          ],
          "attachments": [
            {
              "fileId": "<string>",
              "tools": [
                {
                  "id": "<string>",
                  "name": "<string>",
                  "type": "<string>",
                  "function": {
                    "name": "<string>",
                    "description": "<string>",
                    "parameters": {},
                    "required": [
                      "<string>"
                    ]
                  },
                  "openapiSpec": "<string>",
                  "openapiActionData": {}
                }
              ]
            }
          ],
          "assistantId": "<string>",
          "runId": "<string>",
          "metadata": {}
        }
      ],
      "createdAt": "2023-11-07T05:31:56Z"
    }
  ],
  "page": {
    "limit": 123,
    "prevPageToken": "<string>",
    "nextPageToken": "<string>",
    "totalPage": 123
  }
}

Authorizations

X-Tune-Key
string
header
required

Tune API Keys are the preferred way to authenticate with the API. You can create an API Key from your Tune Studio Profile → 'Access Keys' (in sidebar)

Body

application/json
auth
object
datasetId
string

The ID of dataset.

page
object
order
string

Order of the threads in dataset (default: created_at asc).

Response

200
application/json
threadsMessages
object[]

List of threads with messages.

page
object