Node.js
import { Rewrite } from '@rewritetoday/sdk';
const rewrite = new Rewrite(process.env.REWRITE_API_KEY!);
const { data, error } = await rewrite.tags.list();
if (error) throw error;{
"ok": true,
"data": [
{
"id": "748395130237498570",
"createdAt": "2026-03-20T14:22:31.562Z",
"name": "vip",
"description": "Contacts prioritized for transactional messaging.",
"color": "#F97316",
"contactsCount": 12
}
]
}Tags
List tags
List all reusable tags configured for the current project.
GET
/
tags
Node.js
import { Rewrite } from '@rewritetoday/sdk';
const rewrite = new Rewrite(process.env.REWRITE_API_KEY!);
const { data, error } = await rewrite.tags.list();
if (error) throw error;{
"ok": true,
"data": [
{
"id": "748395130237498570",
"createdAt": "2026-03-20T14:22:31.562Z",
"name": "vip",
"description": "Contacts prioritized for transactional messaging.",
"color": "#F97316",
"contactsCount": 12
}
]
}