List tag templates
Retrieve all available tag templates. Tag templates define pre-built integrations (GA4, Hotjar, Meta Pixel, custom scripts, etc.) that can be assigned to clients. Each template includes a name, type, code template, and required parameter definitions.
curl -X GET "https://api.mythic-analytics.com/api/v1/tags?type=example_string&search=example_string" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
import requests
import json
url = "https://api.mythic-analytics.com/api/v1/tags?type=example_string&search=example_string"
headers = {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_API_TOKEN"
}
response = requests.get(url, headers=headers)
print(response.json())
const response = await fetch("https://api.mythic-analytics.com/api/v1/tags?type=example_string&search=example_string", {
method: "GET",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_API_TOKEN"
}
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
"bytes"
)
func main() {
req, err := http.NewRequest("GET", "https://api.mythic-analytics.com/api/v1/tags?type=example_string&search=example_string", nil)
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Authorization", "Bearer YOUR_API_TOKEN")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
fmt.Println("Response Status:", resp.Status)
}
require 'net/http'
require 'json'
uri = URI('https://api.mythic-analytics.com/api/v1/tags?type=example_string&search=example_string')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Get.new(uri)
request['Content-Type'] = 'application/json'
request['Authorization'] = 'Bearer YOUR_API_TOKEN'
response = http.request(request)
puts response.body
{
"success": true,
"data": [
{
"id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"name": "Google Analytics 4",
"type": "analytics",
"src": "https://www.googletagmanager.com/gtag/js",
"code": "example_string",
"description": "Google Analytics 4 measurement tag with configurable measurement ID.",
"required_params": [
{
"key": "measurement_id",
"label": "Measurement ID",
"placeholder": "G-XXXXXXXXXX"
}
],
"created_at": "2024-01-10T09:00:00.000Z"
}
],
"count": 12
}
{
"error": "Unauthorized",
"message": "Authentication required. Please provide a valid API token",
"code": 401
}
/tags
Admin API key as bearer token. Format: Bearer YOUR_ADMIN_KEY
Bearer YOUR_ADMIN_KEYAlternative to the Authorization header for server-to-server scenarios.
Filter by tag type (e.g., analytics, marketing, custom).
Case-insensitive search on tag template name.
Request Preview
Response
Response will appear here after sending the request
Authentication
Bearer token. Admin API key as bearer token. Format: Bearer YOUR_ADMIN_KEY
API Key for authentication. Alternative to the Authorization header for server-to-server scenarios.
Query Parameters
Filter by tag type (e.g., analytics, marketing, custom).
Case-insensitive search on tag template name.
Responses
Unique tag template identifier.
Display name of the tag template.
Tag category.
External script source URL, if applicable.
Code template with parameter placeholders.
Human-readable description of the tag.
Parameters the tag template expects.
Last updated Feb 26, 2026
Built with Documentation.AI