List All Tags

DESCRIPTION

List all tag configurations in the account sent via the tag APIs.

DEFINITION

GET https://api.anodot.com/api/v1/metrics/tags?token=<api token>

HEADERS

Content-type=application/json

 EXAMPLE REQUEST

 curl \
-X GET \
-H "Content-Type: application/json" \
'https://api.anodot.com/api/v1/metrics/tags?token=<api token>'

EXAMPLE RESPONSE

[
   {
      "id":"31425ce5-32c1-4cce-9075-28c1748d42a8",
      "expressions":[
         {
            "expression":[
               {
                  "type":"property",
                  "key":"what",
                  "value":"impressions"
               },
               {
                  "type":"property",
                  "key":"campaign_id",
                  "value":"12345678ABC"
               }
            ]
         }
      ],
      "tag":{
         "key":"my_campaigns",
         "value":"12345678ABC"
      },
      "lastModified":1470056853,
      "disabled":false
   },
   {
      "id":"8b6f6fa8-ba46-4596-8358-ebcb4727f5ee",
      "expressions":[
         {
            "expression":[
               {
                  "type":"property",
                  "key":"what",
                  "value":"impressions"
               },
               {
                  "type":"property",
                  "key":"campaign_id",
                  "value":"12345678ABC"
               }
            ]
         }
      ],
      "tag":{
         "key":"my_campaigns",
         "value":"12345678ABC"
      },
      "lastModified":1470058877,
      "disabled":false
   },
   {
      "id":"a56259ce-38df-4f0a-87a9-157198c82275",
      "expressions":[
         {
            "expression":[
               {
                  "type":"property",
                  "key":"what",
                  "value":"impressions"
               },
               {
                  "type":"property",
                  "key":"campaign_id",
                  "value":"12345678ABC"
               }
            ]
         }
      ],
      "tag":{
         "key":"my_campaigns",
         "value":"12345678ABC"
      },
      "lastModified":1470058253,
      "disabled":false
   },
   {
      "id":"f9c4bec4-632d-4366-b78d-65323fbc4e84",
      "expressions":[
         {
            "expression":[
               {
                  "type":"property",
                  "key":"what",
                  "value":"impressions"
               },
               {
                  "type":"property",
                  "key":"campaign_id",
                  "value":"12345678ABC"
               }
            ]
         }
      ],
      "tag":{
         "key":"my_campaigns",
         "value":"12345678ABC"
      },
      "lastModified":1470058449,
      "disabled":false
   }
]

Note: For more details about example responses, see Success and Errors

Was this article helpful?
0 out of 0 found this helpful