Messages

List Lead Messages

Get message history for a specific lead.

GET
/messages/lead/{lead_id}
AuthorizationBearer <token>

API key authentication. Use format: Bearer kejue_...

In: header

Path Parameters

lead_idstring

Response Body

application/json

curl -X GET "https://api.kejue.co/api/v1/messages/lead/string"
{
  "messages": [
    {
      "id": 0,
      "business_id": "string",
      "content": "string",
      "chat_id": 0,
      "role": "string",
      "status": "string",
      "error_message": "string",
      "sent_at": "2019-08-24T14:15:22Z",
      "delivered_at": "2019-08-24T14:15:22Z",
      "read_at": "2019-08-24T14:15:22Z",
      "created_at": "2019-08-24T14:15:22Z",
      "lead_id": 0,
      "lead_first_name": "string",
      "lead_last_name": "string",
      "lead_phone_number": "string"
    }
  ],
  "pagination": {
    "page": 1,
    "page_size": 20,
    "total_count": 100,
    "total_pages": 5,
    "has_next": true,
    "has_prev": false
  }
}

Last updated on