GET
/
message
/
{thread_id}
curl --request GET \
  --url https://api.altur.io/api/v1.0/message/{thread_id} \
  --header 'Authorization: <api-key>'
[
  {
    "thread_id": "<string>",
    "type": "text",
    "content": "<string>",
    "media": "<string>",
    "sent_by": "AI",
    "sent_by_user": "<string>",
    "sent_at": "2023-11-07T05:31:56Z",
    "read": true
  }
]

Authorizations

Authorization
string
header
required

Add api-key YOUR_API_SECRET_KEY as the value of the Authorization header.

Path Parameters

thread_id
string
required

The identifier of the Thread to fetch

Response

200
application/json
Array containing all Messages in the Thread
thread_id
string
required

Unique identifier of the Thread the Message belongs to

type
enum<string>
required

Message type enum

Available options:
text,
image,
audio,
video,
button,
template,
document
sent_by
enum<string>
required

Author of this message

Available options:
AI,
EU,
SYS
sent_at
string
required

Datetime from when the Message was sent

content
string

Message's text content

media
string

Message's media content, if any (usually in form of URL)

sent_by_user
string

Altur user id (if Message was sent manually by an in-app user)

read
boolean

Boolean describing if the Message is considered as read