Tag TemplatesList tag templates
Tag Templates

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"
{
  "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
}
GET
/tags
GET
Security Scheme
Bearer Tokenstring
Required

Admin API key as bearer token. Format: Bearer YOUR_ADMIN_KEY

Admin API key as bearer token. Format: Bearer YOUR_ADMIN_KEY
query
typestring

Filter by tag type (e.g., analytics, marketing, custom).

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. Admin API key as bearer token. Format: Bearer YOUR_ADMIN_KEY

Query Parameters

typestring

Filter by tag type (e.g., analytics, marketing, custom).

Responses

successboolean
dataarray
countinteger