דלג לתוכן הראשי

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​

ParameterTypeRequiredDescription
tag_namestringNOThe tag name. Omit it to get all tags.
formatstringNOjson / xml.

Error codes​

CodeDescription
5082No 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​

ParameterTypeRequiredDescription
tag_namestringYESThe tag name (required in view_tag_by_name; in view_tags it may be omitted to get everything).
formatstringNOjson / xml.

Error codes​

CodeDescription
5081tag_name is missing in view_tag_by_name
5082No results

view_tag_by_id​

Tag details by ID.

Endpoint: /api/?service=view_tag_by_id

Parameters​

ParameterTypeRequiredDescription
tag_idintYESThe tag ID.
formatstringNOjson / xml.

Error codes​

CodeDescription
5091tag_id is missing
5092No 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​

ParameterTypeRequiredDescription
maskyoostringYESThe number.
formatstringNOjson / xml.

Error codes​

CodeDescription
50811maskyoo is missing / shorter than 4
50821No results

create_tag​

Create a new tag. The tag name must be unique.

Endpoint: /api/?service=create_tag

Parameters​

ParameterTypeRequiredDescription
tag_namestringYESThe tag name.
formatstringNOjson / xml.

Error codes​

CodeDescription
5071tag_name is empty
5072The tag name already exists
5073Creating the tag failed

update_tag​

Rename an existing tag.

Endpoint: /api/?service=update_tag

Parameters​

ParameterTypeRequiredDescription
tag_idintYESThe tag ID.
tag_namestringYESThe new name.
formatstringNOjson / xml.

Error codes​

CodeDescription
5061tag_id / tag_name is missing
5062tag_name is empty
5063tag_id does not exist
5064No update was performed

delete_tag​

Delete a tag and all of its members.

Endpoint: /api/?service=delete_tag

Parameters​

ParameterTypeRequiredDescription
tag_idintYESThe tag ID.
formatstringNOjson / xml.

Error codes​

CodeDescription
5051tag_id is missing
5052The tag does not exist
5053 / 5054The deletion failed

add_member_to_tag​

Add a Maskyoo number to a tag.

Endpoint: /api/?service=add_member_to_tag

Parameters​

ParameterTypeRequiredDescription
tag_idintYESThe tag.
maskyoostringYESThe number to add.
formatstringNOjson / xml.

Error codes​

CodeDescription
5041tag_id or maskyoo is missing
5042The tag does not exist
5043The Maskyoo number does not exist
5044The Maskyoo number is already in the tag
5045Adding failed

remove_member_from_tag_id​

Remove a Maskyoo number from a tag by tag ID.

Endpoint: /api/?service=remove_member_from_tag_id

Parameters​

ParameterTypeRequiredDescription
tag_idintYESThe tag.
maskyoostringYESThe number to remove.
formatstringNOjson / xml.

Error codes​

CodeDescription
5031tag_id or maskyoo is missing
5032The Maskyoo number does not exist
5033The tag does not exist
5034The removal failed

remove_member_from_tag_name​

Remove a Maskyoo number from a tag by tag name.

Endpoint: /api/?service=remove_member_from_tag_name

Parameters​

ParameterTypeRequiredDescription
tag_namestringYESThe tag name.
maskyoostringYESThe number to remove.
formatstringNOjson / xml.

Error codes​

CodeDescription
5021tag_name or maskyoo is missing
5022The tag was not found
5023The Maskyoo number does not exist
5024The tag does not exist
5025The removal failed

view_maskyoo_members_by_tag_id​

The list of active Maskyoo numbers that are members of the tag.

Endpoint: /api/?service=view_maskyoo_members_by_tag_id

Parameters​

ParameterTypeRequiredDescription
tag_idintYESThe tag ID.
formatstringNOjson / xml.

Error codes​

CodeDescription
50911tag_id is missing
50921No results

get_members_by_tag_id​

The list of tag members with the full Maskyoo details: description, active status, call destinations, working hours, private fields, prompts, email and more.

Endpoint: /api/?service=get_members_by_tag_id

Parameters​

ParameterTypeRequiredDescription
tag_idintYESThe tag.
formatstringNOjson / xml.

Error codes​

CodeDescription
5001tag_id is missing
5002No results

get_members_by_tag_name​

The same as get_members_by_tag_id, but by tag name.

Endpoint: /api/?service=get_members_by_tag_name

Parameters​

ParameterTypeRequiredDescription
tag_namestringYESThe tag name.
formatstringNOjson / xml.

Error codes​

CodeDescription
5011tag_name is missing
5012The tag was not found
5013No results

System impact​

Tags are the main grouping mechanism of Maskyoo numbers:

  • Tag management screen — creating / updating / deleting tags and assigning numbers through the API is visible immediately in the tag management screen
  • Reports — reports filtered by tag (tags report, call detail report, notifications report) reflect the change immediately
  • Automation — automation rules with a tag filter apply immediately to numbers that are added to or removed from the tag
  • Personal user tag — creating a user automatically creates a tag named #<email>; deleting it breaks the permission assignment
  • Uniqueness — a tag name must be unique within the account; trying to create an existing name returns 5072

See also​