Skip to main content
GET
/
contacts
/
:contact_id
/
topics
import { Resend } from 'resend';

const resend = new Resend('re_xxxxxxxxx');

// Get by contact id
const { data, error } = await resend.contacts.topics.get(
  'e169aa45-1ecf-4183-9955-b1499d5701d3',
);

// Get by contact email
const { data, error } = await resend.contacts.topics.get(
  'steve.wozniak@gmail.com',
);
{
  "email": "steve.wozniak@gmail.com",
  "topics": [
    {
      "id": "b6d24b8e-af0b-4c3c-be0c-359bbd97381e",
      "name": "Product Updates",
      "description": "New features, and latest announcements.",
      "subscription": "opt_in"
    }
  ]
}
Topics are currently in private beta and only available to a limited number of users. APIs might change before GA.To use the methods on this page, you must upgrade your Resend SDK:
npm install resend@6.3.0-canary.0
Get in touch if you’re interested in testing this feature.

Path Parameters

Either id or email must be provided.
id
string
The Contact ID.
email
string
The Contact Email.
import { Resend } from 'resend';

const resend = new Resend('re_xxxxxxxxx');

// Get by contact id
const { data, error } = await resend.contacts.topics.get(
  'e169aa45-1ecf-4183-9955-b1499d5701d3',
);

// Get by contact email
const { data, error } = await resend.contacts.topics.get(
  'steve.wozniak@gmail.com',
);
{
  "email": "steve.wozniak@gmail.com",
  "topics": [
    {
      "id": "b6d24b8e-af0b-4c3c-be0c-359bbd97381e",
      "name": "Product Updates",
      "description": "New features, and latest announcements.",
      "subscription": "opt_in"
    }
  ]
}
I