Organize and manage your contact tags for segmentation, filtering, and automation using DMLY’s Contact Tag API.
Base URL:
https://api.dmly.io/rest
All endpoints require authentication using the x-api-key header.
Every request must include:
x-api-key: YOUR_API_KEY
Generate your API key from:
DMLY → Integrations → REST API → Edit Setup
Method | Endpoint | Description |
GET |
| List/Search contact tags |
POST |
| Create a contact tag |
GET |
| Get contact tag by ID |
DELETE |
| Delete contact tag by ID |
GET /v1/contactTags
Retrieve a list of contact tags with optional filtering and pagination.
Name | Type | Required | Description |
limit | string | No | Max number of results |
page | string | No | Page number for pagination |
searchText | string | No | Free-text search |
curl -X GET "https://api.dmly.io/rest/v1/contactTags?limit=20" \
-H "x-api-key: YOUR_API_KEY"
200 OK → Returns an array of contact tag objects
POST /v1/contactTags
Create a new contact tag.
x-api-key: YOUR_API_KEY
Content-Type: application/json
curl -X POST "https://api.dmly.io/rest/v1/contactTags" \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "VIP"
}'
200 OK → Returns the created contact tag object
GET /v1/contactTags/{contactTagId}
Name | Required | Description |
contactTagId | Yes | Unique contact tag ID |
curl -X GET "https://api.dmly.io/rest/v1/contactTags/12345" \
-H "x-api-key: YOUR_API_KEY"
200 OK → Returns contact tag object
DELETE /v1/contactTags/{contactTagId}
Delete a contact tag permanently.
curl -X DELETE "https://api.dmly.io/rest/v1/contactTags/12345" \
-H "x-api-key: YOUR_API_KEY"
{
"success": true
}
{
"id": "string",
"name": "string",
"canonical": "string",
"createdAt": "string",
"updatedAt": "string"
}
Field | Description |
id | Unique tag ID |
name | Tag display name |
canonical | System-normalized version of tag name |
createdAt | Creation timestamp |
updatedAt | Last updated timestamp |
{
"success": true
}
Use consistent naming conventions for tags.
Avoid duplicate tag creation — search before creating.
Keep tag names short and meaningful.
Use tags strategically for segmentation and broadcast targeting.
Do not delete tags actively used in automations unless necessary.
You can:
Create tags using the Contact Tag API
Assign tags to contacts using:
POST /v1/contacts/{contactId}/tags/add
Remove tags from contacts using:
POST /v1/contacts/{contactId}/tags/remove
This allows complete programmatic segmentation control.