Contacts: Activity

List Events

The history of one contact, most recent first: sends, opens, clicks, bounces, complaints and unsubscribes.

POSThttps://g.sendcorex.com/v1/contactscommand: list_events
i

Needs the contact:read scope on your API key.

i

Events are recorded by sending and tracking. The API only reads them.

Arguments

  • emailstringrequired

    The contact.

    e.g. "ana@acme.com"

  • typesstring[]optional

    Only these types: sent, open, click, bounce, complaint, unsubscribe.

    e.g. ["open", "click"]

  • limitnumberoptional

    Page size, from 1 to 1000. Defaults to 50.

  • cursorstringoptional

    The next_cursor of 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[].type

    sent, open, click, bounce, complaint or unsubscribe.

  • events[].at

    When it happened.

  • events[].campaign_id / list_id

    The campaign and list the email belonged to, when known.

  • events[].url

    The link, on click events.

  • events[].ip / user_agent

    Where the open or click came from.

  • events[].by_proxy

    true when the open came from a mail privacy proxy rather than the person.

  • events[].reason / hard

    On bounce: the reason, and whether it was a hard bounce.

  • has_more / next_cursor

    Pagination. Send next_cursor as cursor to get older events.

Errors

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

  • 401INVALID_API_KEY

    The API key does not exist, was revoked or was disabled in the dashboard.

  • 429RATE_LIMITED

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

  • CMDMISSING_SCOPE

    The API key does not have the scope this command needs. The other commands in the request still run.

  • CMDINVALID_ARGS

    A required argument is missing or invalid: email, field value, enum option, where key, list id…

  • CMDINVALID_CURSOR

    The cursor is malformed or belongs to another query or account.

  • CMDINTERNAL

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