Skip to main content
GET
/
v1
/
threads
/
{thread_id}
/
messages
cURL
curl --request GET \
  --url https://trytako.com/api/v1/threads/{thread_id}/messages \
  --header 'X-API-Key: <api-key>'
{
  "object": "list",
  "data": [
    {
      "thread_id": "<string>",
      "message_id": "<string>",
      "created": 123,
      "object": "thread.message",
      "role": "<string>",
      "content": [
        {
          "type": "text",
          "text": "<string>"
        }
      ]
    }
  ],
  "has_more": false
}

Notes

  • To authenticate, you’ll need a Tako API key. It’s best practice to store it as an environment variable to avoid hardcoding sensitive credentials in your code.
  • Messages include content blocks for text, user queries, follow-ups, thinking steps, visualizations, and card exports.

Authorizations

X-API-Key
string
header
required

Path Parameters

thread_id
string
required

ID of the thread

Response

List of messages in thread

Response containing a list of messages.

data
ExternalThreadMessage · object[]
required

List of messages

object
string
default:list

Object type

has_more
boolean
default:false

Whether there are more messages

I