Contact Properties

Create and manage Contact Properties through the Resend API.

Operations

MethodEndpointDescription
GET/contact-propertiesRetrieve a list of contact properties
POST/contact-propertiesCreate a new contact property
GET/contact-properties/{id}Retrieve a single contact property
PATCH/contact-properties/{id}Update an existing contact property
DELETE/contact-properties/{id}Remove an existing contact property

Example

Retrieve a list of contact properties, with the TypeScript SDK:

ts
import { Resend } from "@octridev/resend";

const client = new Resend({
  // Optional: replaces the default server and any server an operation declares.
  baseUrl: "https://api.resend.com",
  auth: { bearerAuth: process.env.API_TOKEN! },
});

const result = await client.contactProperties.list();
console.log(result);
Nine more languages

The same call exists in every SDK. See SDKs for the other nine.