Tags
Organize and categorize campaigns and messages for better analytics and reporting in Social BI.
Tags are labels you can assign to campaigns and messages to organize your content and enable advanced filtering in Social BI analytics. Use tags to categorize content by theme, product line, audience segment, or any custom taxonomy that fits your workflow. Tagged content can be analyzed and reported on separately, providing insights into specific content categories or marketing initiatives.
Tags assigned to campaigns and messages are available as filters in Social BI, allowing you to segment analytics and measure performance by specific content categories.
When you assign tags to a message or campaign, each tag must be 2 to 64 characters. A message can have up to 128 tags. A campaign can have up to 64 tags.
List Tags
Retrieve the account's tags.
GET /v2/tag
Parameters
Prop
Type
See Pagination for shared behavior.
Example Request
curl -X GET "https://api.oktopost.com/v2/tag" \
-u ACCOUNT_ID:API_KEYExample Response
{
"Result": true,
"Items": [
{
"Id": "0AF000000000001",
"Created": "2020-11-03 08:35:30",
"Tag": "Hello",
"LastUsedDate": "2020-11-03 08:48:34"
},
{
"Id": "0AF000000000002",
"Created": "2020-11-03 08:35:30",
"Tag": "World",
"LastUsedDate": "2020-11-03 08:52:31"
}
],
"Total": 2
}Get Tag
Retrieve a single tag by ID.
GET /v2/tag/:tagId
Parameters
Prop
Type
Example Request
curl -X GET "https://api.oktopost.com/v2/tag/0AF000000000001" \
-u ACCOUNT_ID:API_KEYExample Response
{
"Result": true,
"Tag": {
"Id": "0AF000000000001",
"Created": "2020-11-03 08:35:30",
"Tag": "Hello",
"LastUsedDate": "2020-11-03 08:48:34"
}
}Add Tag
Create a tag.
POST /v2/tag
Parameters
Prop
Type
Example Request
curl -X POST "https://api.oktopost.com/v2/tag" \
-u ACCOUNT_ID:API_KEY \
-d tag="Tag Name"Example Response
{
"Result": true,
"Tag": {
"Id": "0AF000000000001",
"Created": "2020-11-03 08:35:30",
"Tag": "Tag Name",
"LastUsedDate": "2020-11-03 08:48:34"
}
}Update Tag
Rename a tag.
POST /v2/tag/:tagId
Parameters
Prop
Type
Example Request
curl -X POST "https://api.oktopost.com/v2/tag/0AF000000000001" \
-u ACCOUNT_ID:API_KEY \
-d tag="My Tag"Example Response
{
"Result": true,
"Tag": {
"Id": "0AF000000000001",
"Created": "2020-11-03 08:35:30",
"Tag": "My Tag",
"LastUsedDate": "2020-11-03 08:48:34"
}
}Delete Tag
Delete a tag.
DELETE /v2/tag/:tagId
Parameters
Prop
Type
Example Request
curl -X DELETE "https://api.oktopost.com/v2/tag/0AF000000000001" \
-u ACCOUNT_ID:API_KEY