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

Ricevi email: contatto e follow-up

# Get Contact

Chi è questa persona nella tua casella: conversazioni, fiducia, la tua nota, disiscrizioni, follow-up, le regole che la intercettano e il provider da cui invia.

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

I conteggi considerano le ultime 50 email in ogni direzione. `capped: true` significa che ce ne sono di più.

## Argomenti

- `email` string obbligatorio
L'indirizzo del contatto.

## Avvio rapido

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

## Risposta

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

### Campi della risposta

- `provider`
Da dove è arrivata la sua ultima email, verificato alla consegna (vedi Create Rule). Se manca, una stima dal dominio.
- `trust`
`trusted`, `untrusted` o `default`.
- `unsubscribed`
Presente quando ti sei disiscritto dalla sua lista.

## Errori

Gli errori a livello HTTP restituiscono `type`, `code` e `message`. Gli errori marcati CMD tornano dentro il risultato del comando, con HTTP 200.

- 401`TOKEN_EXPIRED`
L'access token è scaduto. Chiama Refresh Token e ripeti la richiesta.
- 401`INVALID_TOKEN`
Il token è malformato, sconosciuto o revocato.
- 429`RATE_LIMITED`
Più di 15 richieste/s o 15 in corso per la stessa IP + casella. Attendi i secondi indicati in Retry-After.
- CMD`INVALID_ARGS`
Un argomento obbligatorio manca o non è valido.
- CMD`INTERNAL`
Errore del server. Il dettaglio viene scritto solo nel log del server.
