---
title: "Quickstart: Create Your First Branded Link"
description: "Deploy a production short link with a custom slug and verify edge redirect latency and telemetry in under 3 minutes."
---

> Documentation Index
> Fetch the complete documentation index at: https://shaf.app/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Quickstart: Create Your First Branded Link

# Quickstart: Create Your First Branded Link

Create an edge-routed short link with a custom slug, verify HTTP 308 redirect execution, and inspect real-time click telemetry in under 3 minutes.

---

## Prerequisites

- An active Shaf account on [dash.shaf.app](https://dash.shaf.app).
- A terminal with `curl` or a modern web browser.

---

## Step-by-Step Instructions

1. **Open the Link Creation Dialog**

   Navigate to [dash.shaf.app/dashboard/links](https://dash.shaf.app/dashboard/links) and click **Create Link** (or press keyboard shortcut <kbd>C</kbd>).

   Configure the link parameters in the dialog:

   - **Destination URL**: `https://github.com/meladhani01/shaf`
   - **Short Link Slug**: `edge-guide`
   - **Domain**: `shaf.is`

   Click **Create Link** to persist the record across Cloudflare D1 and write-through to Anycast KV.

   **Expected output:**
   The dashboard renders the new link card:

   ```text
   Short URL:    https://shaf.is/edge-guide
   Destination:  https://github.com/meladhani01/shaf
   Status:       Active
   Clicks:       0
   ```
2. **Verify Edge HTTP 308 Redirect**

   Execute a `curl` request against the short URL to verify header resolution without following the redirect:

   ```bash
   curl -I https://shaf.is/edge-guide
   ```

   **Expected output:**

   ```http
   HTTP/2 308 Permanent Redirect
   location: https://github.com/meladhani01/shaf
   cf-cache-status: HIT
   cache-control: public, max-age=86400, stale-while-revalidate=604800
   ```
3. **Trigger Navigation and Verify Telemetry**

   Send a test request following redirects to record an access event:

   ```bash
   curl -sL -o /dev/null -w "%{http_code} %{url_effective}\n" https://shaf.is/edge-guide
   ```

   **Expected output:**

   ```text
   200 https://github.com/meladhani01/shaf
   ```

   Open [dash.shaf.app/dashboard/analytics](https://dash.shaf.app/dashboard/analytics) in your browser. The live analytics stream registers the visit:

   - **Total Clicks**: Incremented to `1`.
   - **Geographic Country**: Matches your current IP egress location.
   - **User-Agent / Device**: Categorized by client runtime (`curl` or browser engine).

> **Slug Uniqueness**
>
> Slugs are scoped per domain. If `edge-guide` is already claimed on `shaf.is`, enter a unique suffix such as `edge-guide-test`. Custom branded domains give your workspace exclusive ownership of all slugs on your domain.

---

## Next Steps

Apply advanced link management and custom routing configurations:

- **Connect a Custom Domain** — Map your branded subdomain (e.g. `link.yourbrand.com`) with automated TLS provisioning.
- **Programmatic REST API** — Automate short link generation and analytics extraction via scoped API tokens.
- **Smart Device & Geo-Routing** — Route iOS, Android, and desktop traffic to distinct destination endpoints.
- **Connect AI Agents (MCP)** — Enable Claude Code, Cursor, and Windsurf to manage links through natural language.

Source: https://shaf.app/docs/tutorials/quickstart/index.mdx
