Overview
- Category
- SEO Tools
- API mode
execute- Processing
- client-side
- Privacy
- no-data-stored
Public descriptor
The descriptor is available without an API key and supplies this tool’s metadata, schemas, modes, and examples.
GET /api/v1/tools/utm-builder
Execute availability
This tool has an execute route defined by its descriptor. Server-side execution is currently unavailable, so requests return api_not_launched.
POST /api/v1/tools/utm-builder/execute
Authentication is not issued during the preview. A bearer API key is planned for execution after launch.
Input schema
object object; additional properties are not accepted.
base_url· string · required- Absolute destination URL.
utm_source· string · required- Traffic source.
utm_medium· string · required- Marketing medium.
utm_campaign· string · required- Campaign identifier.
utm_term· string · optional- Optional term.
utm_content· string · optional- Optional creative detail.
{
"type": "object",
"properties": {
"base_url": {
"type": "string",
"description": "Absolute destination URL."
},
"utm_source": {
"type": "string",
"description": "Traffic source."
},
"utm_medium": {
"type": "string",
"description": "Marketing medium."
},
"utm_campaign": {
"type": "string",
"description": "Campaign identifier."
},
"utm_term": {
"type": "string",
"description": "Optional term."
},
"utm_content": {
"type": "string",
"description": "Optional creative detail."
}
},
"required": [
"base_url",
"utm_source",
"utm_medium",
"utm_campaign"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
url· string- Encoded campaign URL.
source· string- Source.
medium· string- Medium.
campaign· string- Campaign.
term· string- Term.
content· string- Content.
parameter_count· number- UTM count.
{
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "Encoded campaign URL."
},
"source": {
"type": "string",
"description": "Source."
},
"medium": {
"type": "string",
"description": "Medium."
},
"campaign": {
"type": "string",
"description": "Campaign."
},
"term": {
"type": "string",
"description": "Term."
},
"content": {
"type": "string",
"description": "Content."
},
"parameter_count": {
"type": "number",
"description": "UTM count."
}
},
"additionalProperties": false
}
Newsletter link with an existing query and anchor
The request body follows the published input schema. The response below shows the success-envelope shape returned after execution is available.
curl -X POST "https://utilitypages.org/api/v1/tools/utm-builder/execute" \
-H "Content-Type: application/json" \
-d '{
"base_url": "https://example.com/landing?lang=en#pricing",
"utm_source": "newsletter",
"utm_medium": "email",
"utm_campaign": "spring_sale",
"utm_term": "",
"utm_content": "hero_button"
}'
{
"ok": true,
"data": {
"slug": "utm-builder",
"result": {
"values": {
"url": "https://example.com/landing?lang=en&utm_source=newsletter&utm_medium=email&utm_campaign=spring_sale&utm_content=hero_button#pricing",
"source": "newsletter",
"medium": "email",
"campaign": "spring_sale",
"term": "",
"content": "hero_button",
"parameter_count": 4
},
"display": {
"display": "https://example.com/landing?lang=en&utm_source=newsletter&utm_medium=email&utm_campaign=spring_sale&utm_content=hero_button#pricing"
},
"warnings": [],
"assumptions": [],
"steps": []
}
},
"meta": [],
"request_id": "req_example_123"
}
Errors
api_not_launched· 503- Returned by the current launch gate for every execute request.
invalid_json· 400- Returned when an enabled execute request does not contain valid JSON.
validation_failed· 422- Returned when a request does not satisfy the input schema.
browser_interaction_required· 422- Returned for browser capability tools instead of inventing a server-side result.
tool_not_found· 404- Returned when a requested descriptor slug does not exist.
execution_failed· 503- Returned when an enabled server-side execution cannot complete.