For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Dashboard
User GuideDeveloper GuidesAPI Reference
User GuideDeveloper GuidesAPI Reference
    • Overview
  • Runtype API
      • GETList conversations
      • POSTCreate conversation
      • GETGet conversation
      • PUTUpdate conversation
      • DELDelete conversation
      • GETList messages
      • POSTCreate message
Dashboard
LogoLogo
Runtype APIMessaging Conversations

List messages

GET
/v1/messaging/conversations/:id/messages
GET
/v1/messaging/conversations/:id/messages
$curl https://api.runtype.com/v1/messaging/conversations/id/messages \
> -H "Authorization: <apiKey>" \
> -H "Content-Type: application/json"
1{
2 "data": [
3 {
4 "content": "Hello, how can I assist you today?",
5 "conversationId": "conv_9f8b7c6d5e4a3b2c1d0e",
6 "createdAt": "2024-06-10T15:22:30Z",
7 "direction": "inbound",
8 "externalMessageId": "msg_ext_1234567890",
9 "flowStepResultId": "stepres_abcdef123456",
10 "id": "msg_1a2b3c4d5e6f7g8h9i0j",
11 "metadata": {
12 "platform": "webchat",
13 "priority": "normal"
14 },
15 "role": "user"
16 }
17 ],
18 "totalCount": 1
19}
Get messages for a conversation.
Was this page helpful?
Previous

Create message

Next
Built with

Authentication

AuthorizationBearer
API key or Clerk session token

Path parameters

idstringRequired

Query parameters

limitstringOptional

Max results (default 100, max 100)

orderstringOptional

Sort order: asc or desc (default asc)

Response

List of messages
datalist of objects
totalCountdouble

Errors

400
Bad Request Error
401
Unauthorized Error
404
Not Found Error
500
Internal Server Error