---
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/nl/api-reference/receive-emails/contact/get-contact

E-mails ontvangen: contact en follow-up

# Get Contact

Wie deze persoon in je mailbox is: gesprekken, vertrouwen, je notitie, afmeldingen, follow-ups, de regels die hem vangen en de provider waarvandaan hij verstuurt.

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

Tellingen kijken naar de laatste 50 e-mails in elke richting. `capped: true` betekent dat er meer zijn.

## Argumenten

- `email` string verplicht
Het adres van het contact.

## Snel starten

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

### Responsevelden

- `provider`
Waar de laatste e-mail vandaan kwam, gecontroleerd bij aflevering (zie Create Rule). Zonder dat een schatting op basis van het domein.
- `trust`
`trusted`, `untrusted` of `default`.
- `unsubscribed`
Aanwezig als je je voor hun lijst hebt afgemeld.

## Fouten

Fouten op HTTP-niveau geven `type`, `code` en `message` terug. Fouten met CMD komen terug in het resultaat van de opdracht, met HTTP 200.

- 401`TOKEN_EXPIRED`
De access token is verlopen. Roep Refresh Token aan en herhaal het request.
- 401`INVALID_TOKEN`
De token is ongeldig, onbekend of ingetrokken.
- 429`RATE_LIMITED`
Meer dan 15 requests/s of 15 tegelijk voor hetzelfde IP + mailbox. Wacht het aantal seconden uit Retry-After.
- CMD`INVALID_ARGS`
Een verplicht argument ontbreekt of is ongeldig.
- CMD`INTERNAL`
Serverfout. Het detail wordt alleen in het serverlog geschreven.
