Tag Management
Tags are used to group Maskyoo numbers for reporting, segmentation and automation. These services manage the tags and the assignment of Maskyoo numbers to them.
Tag members are always Maskyoo numbers. The parameter name in the API calls is
maskyoo.
view_tags
Get tag details by name. This is an alias of view_tag_by_name; when tag_name is omitted all tags are returned.
Endpoint: /api/?service=view_tags
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
tag_name | string | NO | The tag name. Omit it to get all tags. |
format | string | NO | json / xml. |
Error codes
| Code | Description |
|---|---|
5082 | No results |
view_tag_by_name
Tag details by name. When tag_name is empty, all tags are returned.
Endpoint: /api/?service=view_tag_by_name
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
tag_name | string | YES | The tag name (required in view_tag_by_name; in view_tags it may be omitted to get everything). |
format | string | NO | json / xml. |
Error codes
| Code | Description |
|---|---|
5081 | tag_name is missing in view_tag_by_name |
5082 | No results |
view_tag_by_id
Tag details by ID.
Endpoint: /api/?service=view_tag_by_id
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
tag_id | int | YES | The tag ID. |
format | string | NO | json / xml. |
Error codes
| Code | Description |
|---|---|
5091 | tag_id is missing |
5092 | No results |
view_tags_by_maskyoo
Return the list of tags that a given Maskyoo number is a member of.
Endpoint: /api/?service=view_tags_by_maskyoo
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
maskyoo | string | YES | The number. |
format | string | NO | json / xml. |
Error codes
| Code | Description |
|---|---|
50811 | maskyoo is missing / shorter than 4 |
50821 | No results |
create_tag
Create a new tag. The tag name must be unique.
Endpoint: /api/?service=create_tag
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
tag_name | string | YES | The tag name. |
format | string | NO | json / xml. |
Error codes
| Code | Description |
|---|---|
5071 | tag_name is empty |
5072 | The tag name already exists |
5073 | Creating the tag failed |
update_tag
Rename an existing tag.
Endpoint: /api/?service=update_tag
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
tag_id | int | YES | The tag ID. |
tag_name | string | YES | The new name. |
format | string | NO | json / xml. |
Error codes
| Code | Description |
|---|---|
5061 | tag_id / tag_name is missing |
5062 | tag_name is empty |
5063 | tag_id does not exist |
5064 | No update was performed |
delete_tag
Delete a tag and all of its members.
Endpoint: /api/?service=delete_tag
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
tag_id | int | YES | The tag ID. |
format | string | NO | json / xml. |
Error codes
| Code | Description |
|---|---|
5051 | tag_id is missing |
5052 | The tag does not exist |
5053 / 5054 | The deletion failed |
add_member_to_tag
Add a Maskyoo number to a tag.
Endpoint: /api/?service=add_member_to_tag
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
tag_id | int | YES | The tag. |
maskyoo | string | YES | The number to add. |
format | string | NO | json / xml. |
Error codes
| Code | Description |
|---|---|
5041 | tag_id or maskyoo is missing |
5042 | The tag does not exist |
5043 | The Maskyoo number does not exist |
5044 | The Maskyoo number is already in the tag |
5045 | Adding failed |