> ## Documentation Index
> Fetch the complete documentation index at: https://onextel-09023014.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Standalone URL Shortener

> Shorten a URL without sending an SMS, using the same shortener that powers SMS link tracking.

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.

> [!NOTE]
>
> This is the standalone form of the shortener behind
> [`urlShortener`](https://onextel-09023014.mintlify.site/api-reference/sms/send-sms-omni#url-shortener) on the send API. Use that
> instead when the link is going straight into an SMS you're about to send.

## Endpoint

```
GET https://api.onexaura.com/surl?url=LONGURL&apikey=APIKEY
```

**url** `string` *required*

The long URL to shorten.

**apikey** `string` *required*

Your OneXtel API key. Can be passed as a query parameter, as shown, or as a header.

## Example request

```bash cURL (API key in query string) theme={null}
curl --location 'https://api.onexaura.com/surl?url=https://example.com/offers/spring&apikey=YOUR_API_KEY'
```

```bash cURL (API key in header) theme={null}
curl --location 'https://api.onexaura.com/surl?url=https://example.com/offers/spring' \
--header 'apikey: YOUR_API_KEY'
```

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

## Response

```json theme={null}
{
  "short_url": "onexaura.com/shu/00BLlM"
}
```

**short\_url** `string`

The generated short URL for the long URL you supplied.

## Related

* [Send SMS — India](https://onextel-09023014.mintlify.site/api-reference/sms/send-sms-omni.md#url-shortener) — shorten a URL as part of a send, with click tracking
* [Clicker callback](https://onextel-09023014.mintlify.site/api-reference/sms/clicker-callback.md) — notified when a shortened link is clicked
* [SMS reports](https://onextel-09023014.mintlify.site/guides/sms/reports.md#clicker-data) — click activity on shortened links


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.