Skip to main content
Get a shortened link without sending a message — for use in a template you’re drafting, or anywhere else you need a short link outside an SMS send.
This is the standalone form of the shortener behind urlShortener on the send API. Use that instead when the link is going straight into an SMS you’re about to send.

Endpoint

string
required
The long URL to shorten.
string
required
Your OneXtel API key. Can be passed as a query parameter, as shown, or as a header.

Example request

The URL above is shown unencoded for readability. Encode reserved characters in your own long URL as your HTTP client requires.

Response

string
The generated short URL for the long URL you supplied.