POST
/
utm-templates
Create UTM Template
curl --request POST \
  --url https://connextify.com/api/v1/utm-templates \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "utm_source": "<string>",
  "utm_medium": "<string>",
  "utm_campaign": "<string>",
  "utm_term": "<string>",
  "utm_content": "<string>",
  "utm_source_platform": "<string>",
  "utm_creative_format": "<string>",
  "utm_marketing_tactic": "<string>",
  "utm_id": "<string>",
  "description": "<string>",
  "is_default": true,
  "custom_params": {}
}
'
{
  "success": true,
  "data": {}
}
Create a new reusable UTM campaign template. Connextify automatically sanitizes and normalizes UTM values by trimming whitespace, enforcing lowercase on primary attribution channels, and converting spaces to underscores while safely preserving dynamic ad macros like {{ad.name}} or {placement}.

Body Parameters

Required Parameters

name
string
required
Descriptive template name (1-100 characters).Example: Google Search Brand Campaign
utm_source
string
required
Traffic source identifier (1-100 characters). Automatically trimmed and lowercased.Example: google
utm_medium
string
required
Marketing medium identifier (1-100 characters). Automatically trimmed and lowercased.Example: cpc

Optional Parameters

utm_campaign
string
Campaign name (up to 150 characters).Example: brand_exact
utm_term
string
Paid search keywords or targeting terms (up to 150 characters).Example: connextify url shortener
utm_content
string
Ad variation or creative differentiator (up to 255 characters).Example: headline_v2
utm_source_platform
string
Ad platform sending traffic (up to 100 characters).Example: google_ads
utm_creative_format
string
Format of the creative asset (up to 100 characters).Example: responsive_search_ad
utm_marketing_tactic
string
Targeting tactic or intent stage (up to 100 characters).Example: brand_defense
utm_id
string
Campaign or ad group identifier (up to 100 characters).Example: gid_849204
description
string
Optional notes or instructions for your marketing team (up to 255 characters).
is_default
boolean
default:false
Whether this template should be set as your account-wide default template for newly shortened links.
custom_params
object
Arbitrary key-value attribution pairs appended to destination URLs.Example: {"affiliate_network": "impact", "internal_code": "PROMO20"}

Response

success
boolean
Indicates if the template was created successfully.
data
object
The created UTM template object including generated UUID and creation timestamp.

Request Examples

curl -X POST "https://connextify.com/api/v1/utm-templates" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Google Ads Search",
    "utm_source": "google",
    "utm_medium": "cpc",
    "utm_campaign": "fall_promotion",
    "utm_term": "{keyword}",
    "utm_content": "{creative}",
    "utm_source_platform": "google_ads",
    "is_default": true,
    "custom_params": {
      "matchtype": "{matchtype}"
    }
  }'

Response Example

{
  "success": true,
  "data": {
    "id": "e4a89f92-5b12-4211-9fa6-1e6ef8291402",
    "name": "Google Ads Search",
    "description": "",
    "is_default": true,
    "utm_source": "google",
    "utm_medium": "cpc",
    "utm_campaign": "fall_promotion",
    "utm_term": "{keyword}",
    "utm_content": "{creative}",
    "utm_source_platform": "google_ads",
    "utm_creative_format": "",
    "utm_marketing_tactic": "",
    "utm_id": "",
    "custom_params": {
      "matchtype": "{matchtype}"
    },
    "created_at": "2026-10-22T19:00:00.000Z"
  }
}