Node.js
import { Rewrite } from '@rewritetoday/sdk';
const rewrite = new Rewrite(process.env.REWRITE_API_KEY!);
const { data, error } = await rewrite.tags.get(
'748395130237498570',
);
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
Get a tag
Fetch one reusable tag by its identifier.
GET
/
tags
/
{id}
Node.js
import { Rewrite } from '@rewritetoday/sdk';
const rewrite = new Rewrite(process.env.REWRITE_API_KEY!);
const { data, error } = await rewrite.tags.get(
'748395130237498570',
);
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
}
}Authorizations
Send your API key as Authorization: Bearer rw_....
Required scope: project:read.
Path Parameters
Tag identifier returned by Rewrite.
Example:
"748395130237498412"