Receive Emails: Contact & follow-up

Get Contact

Who this person is in your mailbox: conversations, trust, your note, unsubscribes, follow-ups, the rules that catch them and the provider they send from.

POSThttps://g.sendcorex.com/v1command: get_contact
i

Counts look at the last 50 emails each way. capped: true means there are more.

Arguments

  • emailstringrequired

    The contact address.

Quick start

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);

Response

{
  "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"
          }
        ]
      }
    }
  ]
}

Response fields

  • provider

    Where their last email came from, verified on delivery (see Create Rule). Without one, a guess from the domain.

  • trust

    trusted, untrusted or default.

  • unsubscribed

    Present when you unsubscribed from their list.

Errors

HTTP-level errors return type, code and message. Errors marked CMD come back inside the command result, with HTTP 200.

  • 401TOKEN_EXPIRED

    The access token has expired. Call Refresh Token and repeat the request.

  • 401INVALID_TOKEN

    The token is malformed, unknown or revoked.

  • 429RATE_LIMITED

    More than 15 requests/s or 15 in flight for the same IP + mailbox. Wait the number of seconds in Retry-After.

  • CMDINVALID_ARGS

    A required argument is missing or invalid.

  • CMDINTERNAL

    Server error. The detail is only written to the server log.