Get Tag
Retrieve a single tag by ID.
Endpoint
GET /tags/:id
Headers
| Header | Value | Required |
|---|---|---|
Authorization | Bearer <your-api-key> | Yes |
Path Parameters
| Parameter | Type | Description |
|---|---|---|
id | string | The tag ID |
Response
{
"id": "01957e3a-4b5c-7d8e-9f0a-1b2c3d4e5f6a",
"name": "VIP",
"description": "High-value customers eligible for special offers",
"contact_count": 1250,
"created_at": "2026-03-01T10:00:00.000Z",
"updated_at": "2026-03-08T12:00:00.000Z"
}
See Create Tag for the field reference.
Listing tagged contacts
To list contacts that have a specific tag, use GET /contacts?tag_id=:id.
Examples
- cURL
- JavaScript
curl "https://api.arsel.sa/v1/tags/01957e3a-4b5c-7d8e-9f0a-1b2c3d4e5f6a" \
-H "Authorization: Bearer be_your_api_key"
const tagId = "01957e3a-4b5c-7d8e-9f0a-1b2c3d4e5f6a";
const response = await fetch(
`https://api.arsel.sa/v1/tags/${tagId}`,
{
headers: { Authorization: "Bearer be_your_api_key" },
}
);
const tag = await response.json();
console.log(`${tag.name}: ${tag.contact_count} contacts`);
Error Responses
- 404 Not Found
- 401 Unauthorized
{
"status_code": 404,
"name": "not_found",
"message": "Tag not found"
}
{
"status_code": 401,
"name": "unauthorized",
"message": "Invalid or missing API key"
}