Skip to main content

Documentación

Get Case Communication Thread

Retrieves a specific communication thread and all its associated messages.

    • thread_token

    • Unique token for communication thread. String starting with comm_. See also the thread_token in the response of Get All Case Communication Threads.

An array of message objects where each object includes the following:

  • /v1/threads/:thread_token/messages

  • Get Case Communication Thread

  • curl -X GET
    'https://api.rapyd.net/v1/threads/comm_5eda2b2651d2a9bda22845aff027ca53/messages' \
    -H 'access_key: your-access-key-here' \
    -H 'Content-Type: application/json' \
    -H 'salt: your-random-string-here' \
    -H 'signature: your-calculated-signature-here' \
    -H 'timestamp: your-unix-timestamp-here'
    
  • {
        "status": {
            "error_code": "",
            "status": "SUCCESS",
            "message": "",
            "response_code": "",
            "operation_id": "821970eb-bf49-47d5-98f3-5dc5a7e25942"
        },
        "data": [
            {
                "comm_token": "comm_5eda2b2651d2a9bda22845aff027ca53",
                "thread_token": "msg_7cf4d4867ff84211db649e66c01998c2",
                "content": "Please review this document today\n It is important.",
                "content_structured": {
                    "ops": [
                        {
                            "insert": "Please review this document today",
                            "attributes": {
                                "bold": true
                            }
                        },
                        {
                            "insert": "\n"
                        },
                        {
                            "insert": "It is important.",
                            "attributes": {
                                "underline": true,
                                "italic": true,
                                "bold": true
                            }
                        }
                    ]
                },
                "message_direction": "outgoing",
                "attachments": [
                    {
                        "file_id": "a8dd8e36-d8bb-4a6f-9431-699e6f11952d",
                        "file_name": "2025-07-28_23-56-19.png"
                    },
                    {
                        "file_id": "ef7f7b26-4ad8-4cc7-b5f2-39877a139354",
                        "file_name": "2025-08-30_20-13-16.png"
                    }
                ],
                "created_at": 1752491455,
                "updated_at": 1752491455
            },
            {
                "comm_token": "comm_5eda2b2651d2a9bda22845aff027ca53",
                "thread_token": "msg_9805cfc91452f27e37310bbb0e8d29bf",
                "content": "Can we close this thread?\n",
                "content_structured": {
                    "ops": [
                        {
                            "insert": "Can we close this thread?",
                            "attributes": {
                                "bold": true
                            }
                        },
                        {
                            "insert": "\n"
                        }
                    ]
                },
                "message_direction": "incoming",
                "attachments": [],
                "created_at": 1752486091,
                "updated_at": 1752486091
            },
            {
                "comm_token": "comm_5eda2b2651d2a9bda22845aff027ca53",
                "thread_token": "msg_43711f1379b391372a27a82c19c8ab9b",
                "content": "NEW MESSAGE\n",
                "content_structured": {
                    "ops": [
                        {
                            "insert": "NEW MESSAGE",
                            "attributes": {
                                "bold": true,
                                "underline": true
                            }
                        },
                        {
                            "insert": "\n"
                        }
                    ]
                },
                "message_direction": "incoming",
                "attachments": [],
                "created_at": 1752481359,
                "updated_at": 1752481359
            }
        ]
    }