For Agents
Shorten URLs with UTM tracking via L2S: POST a long URL plus optional UTM source, medium, and campaign and receive a tracked short link.
Install Jentic One Beta
Jentic One is a self-hosted execution layer for AI agents. It lets your agent call the L2S URL Shortener API, or any other public or private API you need. You set the rules, the agent never sees your credentials, and every call is logged.
Two steps, two machines. Install the instance in a safe environment, then register your agent from wherever it runs.
Step 1: Jentic One Host machine
# On the machine that will host your Jentic One instance:
curl -fsSL "https://jentic.com/install.sh?src=apis&api=%2Fapis%2Fl2s.is%2Fl2s" | shStep 2: Agent machine
# On the machine where your agent runs (keep this separate from the instance):
curl -fsSL "https://jentic.com/install.sh?src=apis&api=%2Fapis%2Fl2s.is%2Fl2s" | sh
jentic register # connects your agent to your Jentic One instanceJentic One is in public beta. The setup above keeps your agent separate from the instance, which is what you want before using real credentials: an agent running as the same OS user as Jentic One can read its stored keys directly. Just evaluating? A single local install is fine to start. See the secure deployment guide for the tiers.
What an agent can do with L2S URL Shortener API.
Shorten a long URL via POST /url with optional UTM source, medium, campaign, term, and content parameters
Append UTM tracking parameters consistently so attribution downstream isn't lost in copy-paste
Issue short links suitable for SMS, email, and social posts where character count matters
GET STARTED
Use for: I need to shorten a URL with UTM parameters for a campaign, I want to generate a tracked short link for a social post, Shorten this product URL with utm_source=newsletter, Create a short URL for an SMS where every character counts
Not supported: Does not handle custom domains, click analytics, or QR codes - use for one-shot URL shortening with UTM parameters only.
Jentic publishes the only available OpenAPI specification for L2S URL Shortener API, keeping it validated and agent-ready. L2S is a minimal URL shortening service with first-class UTM tracking. The single POST /url endpoint accepts a long URL plus optional UTM parameters and returns a short link suitable for outbound marketing and attribution. Authentication is HTTP bearer.
Authenticate each request with a bearer token issued from the L2S dashboard
Patterns agents use L2S URL Shortener API for, with concrete tasks.
★ Newsletter Link Tracking
Wrap every link in a marketing newsletter with a short, UTM-tagged URL. POST /url accepts the long URL and the campaign UTM parameters, returning a short URL that preserves attribution into the destination's analytics. This avoids hand-coding UTM strings in each newsletter draft.
On each link in the newsletter draft, POST /url with the long URL plus utm_source=newsletter, utm_medium=email, and the current campaign name, and substitute the returned short link in the draft.
SMS Campaign Short Links
Fit campaign URLs into SMS where every character counts. L2S returns a short link from POST /url that is much shorter than the original, while still carrying UTM parameters in the redirect target so the destination's analytics records the campaign attribution.
POST /url with the long campaign URL and utm_medium=sms, then drop the returned short URL into the SMS body.
AI Agent Marketing Link Helper
An assistant in a marketing chat shortens any URL it's asked to share, defaulting to the right UTM parameters from the active campaign. Through Jentic, the assistant calls L2S by intent and the bearer token never enters the agent context.
On 'shorten this with the spring campaign tags', POST /url with the URL and utm_campaign=spring2026 and return the short link.
1 endpoints — jentic publishes the only available openapi specification for l2s url shortener api, keeping it validated and agent-ready.
METHOD
PATH
DESCRIPTION
/url
Shorten a URL with optional UTM parameters
/url
Shorten a URL with optional UTM parameters
What agents get from Jentic-routed access to this vendor.
Setup
Wiring the L2S URL Shortener API by hand means handling its bearer auth against api.l2s.is and mapping the URL and UTM request body yourself. Through Jentic you install once, import the L2S URL Shortener API from the API Directory, store the token once, and your agent calls it.
Permission scoping
L2S exposes a single shortening operation that takes its target in the request body, so scope the agent to just that operation: shortening a URL with UTM parameters. You choose that set, so it does nothing beyond the one-shot shorten you allow.
Credential isolation
Your L2S bearer token is stored once, encrypted, by your own Jentic One instance and injected into the Authorization header at execution time. It never enters the agent's prompt, logs, or context.
Intent-based discovery
Agents search Jentic by intent such as 'shorten a URL with UTM tracking', and Jentic returns the L2S POST /url operation with its input schema so the agent calls the right endpoint without browsing the reference docs.
Alternatives and complements available in the Jentic catalogue.
Specific to using L2S URL Shortener API through Jentic.
Why is there no official OpenAPI spec for L2S URL Shortener API?
L2S does not publish an OpenAPI specification. Jentic generates and maintains this spec so that AI agents and developers can call L2S URL Shortener API via structured tooling. It is validated against the live API and kept up to date. Get started with Jentic One, the self-hosted execution layer.
What authentication does the L2S URL Shortener API use?
L2S uses HTTP bearer authentication: every request needs an Authorization header with a bearer token from the L2S dashboard. Through Jentic, the token is stored encrypted in your Jentic One instance.
Can I shorten a URL with UTM parameters using the L2S API?
Yes. POST /url accepts the long URL together with optional UTM parameters (source, medium, campaign, term, content) and returns a short URL whose redirect carries those UTM tags onto the destination.
How do I shorten a URL through Jentic?
Search Jentic for 'shorten a URL with L2S'. Jentic returns POST /url with its schema. Provide the long URL and any UTM fields, and Jentic executes the call using your stored bearer token.
What are the rate limits for the L2S URL Shortener API?
Specific rate limits are not exposed in the public OpenAPI spec. Check docs.l2s.is for current per-account ceilings before scaling agent workloads.
Does L2S support custom domains or short link analytics?
The current OpenAPI surface only documents POST /url. For custom domains and analytics, refer to the L2S dashboard and consider a service like Bitly or Rebrandly when those features are required by an agent workflow.
Can I limit what my agent is allowed to do with the L2S URL Shortener API?
Yes. Jentic One is self-hosted, so you run the instance and your own rules decide which operations and credentials the agent may use. The L2S URL Shortener API exposes a single operation, POST /url, which shortens a URL with optional UTM parameters, so you can scope the agent to just that one-shot shorten and nothing else. Because you choose that set, the agent cannot call anything beyond the shortening you allow, and your bearer token is injected at execution time rather than exposed to the agent.