Contact Properties
Create and manage Contact Properties through the Resend API.
Operations
| Method | Endpoint | Description |
|---|---|---|
GET | /contact-properties | Retrieve a list of contact properties |
POST | /contact-properties | Create 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.