Skip to main content

UTM builder API

Add utm_source, utm_medium and utm_campaign to any link, keep its existing query and #anchor intact, and copy a clean, consistent tagged URL for each network.

  • Endpoint: POST https://postboost.co/app/api/tools/utm-builder (operationId buildUtmUrl)
  • Web tool: postboost.co/tools/utm-builder
  • Token: optional (limits)
  • MCP: tool build-utm-url on https://postboost.co/mcp/tools

Request​

FieldTypeDefaultDescription
urlstringThe http(s) page URL.
utm_sourcestring
utm_mediumstring
utm_campaignstring
utm_termstring
utm_contentstring
utm_idstring

Call it​

curl -X POST https://postboost.co/app/api/tools/utm-builder \
-H 'Content-Type: application/json' \
-d '{"url":"https://postboost.co/pricing?plan=pro#faq","utm_source":"linkedin","utm_medium":"social","utm_campaign":"q4 launch"}'

With a token, send Authorization: Bearer YOUR_API_TOKEN as a default header (how, per SDK).

Response​

{
"url": "https://postboost.co/pricing?plan=pro&utm_source=linkedin&utm_medium=social&utm_campaign=q4%20launch#faq",
"warnings": [
"utm_campaign has spaces"
]
}

With MCP​

Connect https://postboost.co/mcp/tools (setup) and ask, for example: Build a UTM-tagged campaign URL with the PostBoost build-utm-url tool.

Errors​

StatusWhen
401The Authorization header holds an invalid token. Leave it out to call as a guest.
413The JSON body is larger than 128 KB.
422A field is invalid; the body lists the errors per field.
429A limit is reached; see limits.