---
title: "Click tracking for shortened links in campaigns"
method: GET
path: "/get-link-hits/"
tags: ["Reporting"]
---

# Click tracking for shortened links in campaigns

`GET /get-link-hits/`

## Request

- Base URL: `http://api.smsfusion.com.au`
- URL: `http://api.smsfusion.com.au/get-link-hits/`
- Auth: one of:
  - API key in query parameter `key`
  - HTTP basic

Excludes unsubscribe-link clicks. sort=desc reverses display order only; the since_id cursor always pages forward

## Query parameters

- `key` string, required
- `since_id` integer
- `campaignid` integer
- `limit` integer
- `sort` 'asc' | 'desc'

## Response `200`

Successfull response

- LinkHitItem[]
  - `id` integer
  - `campaignid` integer
  - `msisdn` string
  - `shortid` string
  - `clicked` integer

## Other responses

- `400`: QUERY_TOO_BROAD - unfiltered scan exceeded the 3-second statement timeout
- `401`: Authentication failed

---

[API](https://skmtc.dev/smsfusion/apis/sms-fusion-api.md) · [All operations](https://skmtc.dev/smsfusion/apis/sms-fusion-api/llms.txt) · [OpenAPI document](https://skmtc.dev/smsfusion/apis/sms-fusion-api/revisions/a88b2793a6e9?raw)
