Skip to main content
GET
/
public
/
api
/
v1
/
inboxes
/
{inbox_identifier}
/
contacts
/
{contact_identifier}
/
conversations
/
{conversation_id}
/
messages
List all messages
curl --request GET \
  --url https://airys.chat/public/api/v1/inboxes/{inbox_identifier}/contacts/{contact_identifier}/conversations/{conversation_id}/messages
import requests

url = "https://airys.chat/public/api/v1/inboxes/{inbox_identifier}/contacts/{contact_identifier}/conversations/{conversation_id}/messages"

response = requests.get(url)

print(response.text)
const options = {method: 'GET'};

fetch('https://airys.chat/public/api/v1/inboxes/{inbox_identifier}/contacts/{contact_identifier}/conversations/{conversation_id}/messages', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://airys.chat/public/api/v1/inboxes/{inbox_identifier}/contacts/{contact_identifier}/conversations/{conversation_id}/messages",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://airys.chat/public/api/v1/inboxes/{inbox_identifier}/contacts/{contact_identifier}/conversations/{conversation_id}/messages"

req, _ := http.NewRequest("GET", url, nil)

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://airys.chat/public/api/v1/inboxes/{inbox_identifier}/contacts/{contact_identifier}/conversations/{conversation_id}/messages")
.asString();
require 'uri'
require 'net/http'

url = URI("https://airys.chat/public/api/v1/inboxes/{inbox_identifier}/contacts/{contact_identifier}/conversations/{conversation_id}/messages")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
[
  {
    "id": 123,
    "content": "<string>",
    "message_type": 123,
    "content_type": "<string>",
    "content_attributes": {},
    "created_at": 123,
    "conversation_id": 123,
    "attachments": [
      {
        "id": 123,
        "message_id": 123,
        "account_id": 123,
        "extension": "<string>",
        "data_url": "<string>",
        "thumb_url": "<string>",
        "file_size": 123,
        "width": 123,
        "height": 123,
        "coordinates_lat": 123,
        "coordinates_long": 123,
        "fallback_title": "<string>",
        "meta": {},
        "transcribed_text": "<string>"
      }
    ],
    "sender": {
      "id": 123,
      "name": "<string>",
      "avatar_url": "<string>",
      "thumbnail": "<string>",
      "available_name": "<string>",
      "availability_status": "<string>",
      "email": "<string>",
      "phone_number": "<string>",
      "identifier": "<string>",
      "blocked": true,
      "additional_attributes": {},
      "custom_attributes": {},
      "description": "<string>",
      "created_at": "<string>"
    }
  }
]
{
"description": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}

Path Parameters

inbox_identifier
string
required

The identifier obtained from API inbox channel

contact_identifier
string
required

The source id of contact obtained on contact create

conversation_id
integer
required

The numeric ID of the conversation

Response

Success

id
integer

Id of the message

content
string | null

Text content of the message. Can be null for attachment-only messages.

message_type
integer

Denotes the message type. Possible values: 0 (incoming), 1 (outgoing), 2 (activity), 3 (template)

content_type
string

Content type of the message

content_attributes
object

Additional content attributes of the message

created_at
integer

Created at Unix timestamp of the message

conversation_id
integer

Display Id of the conversation the message belongs to

attachments
object[]

Attachments if any

sender
object

Polymorphic sender payload returned by push_event_data. Available fields vary by sender type.