Email (emails) — Danh sách

Liệt kê và lọc email với phân trang.

Xem Markdown

Endpoint GET /v1/emails trả về danh sách email của bạn, hỗ trợ phân trang và bộ lọc.

Endpoint

MethodEndpointMô tả
GET/v1/emailsLấy danh sách email

Tham số truy vấn (Query Parameters)

Tham sốKiểuMặc địnhMô tả
pageinteger1Số thứ tự trang
per_pageinteger20Số bản ghi mỗi trang (tối đa 100)
contact_idstringKhôngLọc theo liên hệ
directionstringKhônginbound | outbound

Kiểm thử tại chỗ

GEThttps://crm-gateways.hitechcloud.vn/v1/emails

Nhập access token rồi bấm Gửi thử để gọi trực tiếp crm-gateways.hitechcloud.vn. Token không được lưu lại.

Query
cURL lấy danh sách
curl -X GET "https://crm-gateways.hitechcloud.vn/v1/emails?page=1&per_page=20" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json"
Phản hồi (200 OK)
{
  "status": "success",
  "data": [
    {
      "id": "email_1f2e3d4c",
      "direction": "outbound",
      "contact_id": "con_8f2a1c9d",
      "subject": "Bao gia goi Cloud Server",
      "snippet": "Kinh gui anh A, HiTechCloud xin gui bao gia...",
      "status": "sent",
      "sent_at": "2026-10-31 11:30:00",
      "created_at": "2026-10-31T11:30:00+07:00"
    }
  ],
  "meta": {
    "pagination": {
      "total": 42,
      "per_page": 20,
      "current_page": 1,
      "last_page": 3,
      "has_more": true
    }
  }
}