Contacts: Activity
List Events
The history of one contact, most recent first: sends, opens, clicks, bounces, complaints and unsubscribes.
https://g.sendcorex.com/v1/contactscommand: list_eventsNeeds the contact:read scope on your API key.
Events are recorded by sending and tracking. The API only reads them.
Arguments
emailstringrequiredThe contact.
e.g.
"ana@acme.com"typesstring[]optionalOnly these types:
sent,open,click,bounce,complaint,unsubscribe.e.g.
["open", "click"]limitnumberoptionalPage size, from 1 to 1000. Defaults to 50.
cursorstringoptionalThe
next_cursorof the previous page.
Quick start
import axios from 'axios';
const response = await axios.post(
'https://g.sendcorex.com/v1/contacts',
{
commands: [
{
command: "list_events",
args: {
email: "ana@acme.com",
types: [
"open",
"click"
],
limit: 50
}
}
]
},
{ headers: { Authorization: process.env.SENDCOREX_API_KEY } },
);
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": "list_events",
"id": "0",
"type": "SUCCESS",
"took_ms": 14,
"data": {
"events": [
{
"event_id": "ev_7c1d02",
"type": "click",
"at": "2026-10-14T21:04:10.000Z",
"campaign_id": "cmp_october",
"list_id": "customers",
"url": "https://acme.com/offer",
"ip": "203.0.113.24",
"user_agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 18_0 like Mac OS X)",
"reason": null,
"by_proxy": false,
"hard": null,
"meta": null
},
{
"event_id": "ev_7c1cf9",
"type": "open",
"at": "2026-10-14T21:03:55.000Z",
"campaign_id": "cmp_october",
"list_id": "customers",
"url": null,
"ip": "203.0.113.24",
"user_agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 18_0 like Mac OS X)",
"reason": null,
"by_proxy": false,
"hard": null,
"meta": null
}
],
"has_more": true,
"next_cursor": "eyJ0IjoxNzYwNDc1ODM1fQ"
}
}
]
}Response fields
events[].typesent,open,click,bounce,complaintorunsubscribe.events[].atWhen it happened.
events[].campaign_id / list_idThe campaign and list the email belonged to, when known.
events[].urlThe link, on
clickevents.events[].ip / user_agentWhere the open or click came from.
events[].by_proxytruewhen the open came from a mail privacy proxy rather than the person.events[].reason / hardOn
bounce: the reason, and whether it was a hard bounce.has_more / next_cursorPagination. Send
next_cursorascursorto get older events.
Errors
HTTP-level errors return type, code and message. Errors marked CMD come back inside the command result, with HTTP 200.
- 401
INVALID_API_KEYThe API key does not exist, was revoked or was disabled in the dashboard.
- 429
RATE_LIMITEDMore than 15 requests/s or 15 in flight for the same IP + API key. Wait the number of seconds in Retry-After.
- CMD
MISSING_SCOPEThe API key does not have the scope this command needs. The other commands in the request still run.
- CMD
INVALID_ARGSA required argument is missing or invalid: email, field value, enum option, where key, list id…
- CMD
INVALID_CURSORThe cursor is malformed or belongs to another query or account.
- CMD
INTERNALServer error. The detail is only written to the server log.