---
title: "Get a short link"
method: GET
path: "/link/{link_id}/"
tags: ["Short links"]
---

# Get a short link

`GET /link/{link_id}/`

## Request

- Base URL: `https://hovercode.com/api/v2`
- URL: `https://hovercode.com/api/v2/link/{link_id}/`
- Auth: API key in header `Authorization`

A single short link including its QR SVG.

## Path parameters

- `link_id` string, uuid, required

## Response `200`

OK

- Link
  - `id` string, uuid, required
  - `link` string, required: Destination URL.
  - `link_type` 'Link'
  - `display_name` string, nullable
  - `short_url` string, uri, nullable, required
  - `slug` string, nullable
  - `domain` string, nullable
  - `total_clicks` integer
  - `unique_clicks` integer
  - `png` string, uri, nullable
  - `created` string, date-time, required
  - `gps` boolean
  - `svg` string: The short link's QR code as inline SVG.

## Other responses

- `401`: Missing or invalid API token.
- `404`: Not found, or not in a workspace you belong to.
- `429`: Rate limit exceeded. Wait `Retry-After` seconds before retrying.

---

[API](https://skmtc.dev/hovercode/apis/hovercode-api.md) · [All operations](https://skmtc.dev/hovercode/apis/hovercode-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hovercode/apis/hovercode-api/revisions/4a9bc3cafe41?raw)
