---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://docs.sendcorex.com/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://docs.sendcorex.com/llms.txt"
---

Source: https://docs.sendcorex.com/vi/api-reference/receive-emails/contact/get-contact

Nhận email: liên hệ và follow-up

# Get Contact

Người này là ai trong hộp thư của bạn: hội thoại, độ tin cậy, ghi chú của bạn, hủy đăng ký, follow-up, các quy tắc bắt họ và nhà cung cấp họ gửi từ.

POST `https://g.sendcorex.com/v1` command: get_contact

Số đếm xét 50 email gần nhất mỗi chiều. `capped: true` nghĩa là còn nhiều hơn.

## Tham số

- `email` string bắt buộc
Địa chỉ liên hệ.

## Bắt đầu nhanh

```
import axios from 'axios';

const response = await axios.post(
  'https://g.sendcorex.com/v1',
  {
    commands: [
      {
        command: "get_contact",
        args: {
          email: "ana@client.com"
        }
      }
    ]
  },
  { headers: { Authorization: process.env.SENDCOREX_TOKEN } },
);

const [result] = response.data.results;
if (result.type !== 'SUCCESS') throw new Error(`${result.code}: ${result.message}`);
console.log(result.data);
```

## Phản hồi

```
{
  "type": "SUCCESS",
  "results": [
    {
      "command": "get_contact",
      "id": "0",
      "type": "SUCCESS",
      "data": {
        "email": "ana@client.com",
        "name": "Ana Costa",
        "domain": "client.com",
        "provider": "microsoft_365",
        "free_email": false,
        "received": 18,
        "sent": 11,
        "conversations": 9,
        "capped": false,
        "first_at": "2026-03-02T02:10:00Z",
        "last_at": "2026-10-24T03:10:00Z",
        "recent": [
          {
            "thread_id": "thr_9a1c4e72",
            "subject": "Proposal",
            "date": "2026-10-24T03:10:00Z",
            "from_them": true,
            "unread": false
          }
        ],
        "trust": "trusted",
        "note": "VIP, prefers WhatsApp",
        "followups": [
          {
            "thread_id": "thr_9a1c4e72",
            "message_uid": "Vj0xQUJDMTIz",
            "status": "pending",
            "remind_at": "2026-10-29T01:00:00Z",
            "sent_at": "2026-10-26T01:00:00Z",
            "subject": "Proposal",
            "to_email": "ana@client.com",
            "created_at": "2026-10-26T01:00:00Z"
          }
        ],
        "matching_rules": [
          {
            "id": "Vj0xUlVMRTAx",
            "name": "Clients always in Inbox"
          }
        ]
      }
    }
  ]
}
```

### Trường phản hồi

- `provider`
Email gần nhất của họ đến từ đâu, xác minh khi giao (xem Create Rule). Nếu không có, đoán từ tên miền.
- `trust`
`trusted`, `untrusted` hoặc `default`.
- `unsubscribed`
Có khi bạn đã hủy đăng ký danh sách của họ.

## Lỗi

Lỗi ở mức HTTP trả về `type`, `code` và `message`. Lỗi đánh dấu CMD được trả về trong kết quả lệnh, với HTTP 200.

- 401`TOKEN_EXPIRED`
Access token đã hết hạn. Gọi Refresh Token và lặp lại yêu cầu.
- 401`INVALID_TOKEN`
Token sai định dạng, không xác định hoặc đã bị thu hồi.
- 429`RATE_LIMITED`
Hơn 15 yêu cầu/giây hoặc 15 yêu cầu đồng thời cho cùng IP + hộp thư. Chờ số giây trong Retry-After.
- CMD`INVALID_ARGS`
Thiếu hoặc sai tham số bắt buộc.
- CMD`INTERNAL`
Lỗi máy chủ. Chi tiết chỉ được ghi vào log máy chủ.
