Get Conversation Message

Returns a single message of a conversation by ID

GEThttps://api.pact.im/api/p2/conversations/<CONVERSATION_ID>/messages/<MESSAGE_ID>

Returns message of the conversation by ID.

URL Parameters

ParameterDescription
CONVERSATION_IDID of the conversation
MESSAGE_IDID of the message

Query Parameters

ParameterRequiredValidationsDescription
private_api_tokentrueMust be a stringYOUR_API_TOKEN
company_idtrueMust be an integerID of the company

Example

Request

shell
curl -X GET 'https://api.pact.im/api/p2/conversations/CONVERSATION_ID/messages/MESSAGE_ID' \
--header 'Content-Type: application/json' \
--data '{
    "private_api_token": YOUR_API_TOKEN,
    "company_id": COMPANY_ID
  }'

Response

json
{
  "message": {
    "id": 1134326991,
    "external_id": "34577",
    "company_id": 86605,
    "conversation_id": 209752626,
    "contact_id": 1583160940,
    "replied_to_id": null,
    "created_at": "2025-02-05T09:01:48.514Z",
    "external_created_at": "2025-02-05T09:01:47.000Z",
    "income": true,
    "status": "created",
    "message": "",
    "reactions": [],
    "details": null,
    "attachments": []
  }
}

Search…

Start typing to search