---
title: "Tutorials"
description: "Hands-on, verifiable onboarding journeys for Shaf edge link infrastructure, custom domains, teams, APIs, and AI agents."
---

> 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.

# Tutorials

# Tutorials

Shaf tutorials provide practical, step-by-step workflows designed to take you from initial setup to verifiable production outcomes in under 5 minutes. Each tutorial enforces copy-ready code snippets and explicit expected output blocks.

---

## Curriculum Overview

Follow the progressive curriculum or jump directly to the specific capability you require:

```text
[1. Quickstart] ───> [2. Custom Domain] ───> [3. Workspaces] ───> [4. REST API] ───> [5. MCP AI Agents]
   (⏱ 3 min)             (⏱ 4 min)              (⏱ 4 min)           (⏱ 4 min)             (⏱ 3 min)
  First link &           Branded DNS &          Multi-tenant        API tokens &          Claude / Cursor
   telemetry               Auto TLS              RBAC teams          automation             integration
```

---

## Available Lessons

- **1. Quickstart: First Branded Link**

  **⏱ 3 min** • **Beginner**

  Create a short link with a custom slug, verify HTTP 308 redirect execution, and inspect real-time click telemetry.

  - **Outcome**: Active edge short link on `shaf.is` with real-time analytics.
  - **Skills**: Slug configuration, edge caching, Anycast telemetry inspection.
- **2. Connecting Your Custom Domain**

  **⏱ 4 min** • **Intermediate**

  Attach your company's branded subdomain (e.g. `link.yourbrand.com`), configure DNS CNAME records, and verify automated TLS certificate issuance.

  - **Outcome**: Custom domain with automated TLS 1.3 and fallback routing.
  - **Skills**: DNS CNAME mapping, Cloudflare for SaaS, SSL verification, 404 fallback routing.
- **3. Team Collaboration & Workspaces**

  **⏱ 4 min** • **Intermediate**

  Provision an isolated organization workspace, invite teammates via signed email invitations, and enforce Role-Based Access Control (RBAC).

  - **Outcome**: Multi-tenant workspace with isolated link limits, domain quotas, and audit attribution.
  - **Skills**: Organization provisioning, transactional invites, Owner/Admin/Member role boundaries.
- **4. Making Your First API Request**

  **⏱ 4 min** • **Developer**

  Generate a scoped developer API token, construct authenticated HTTP requests, programmatically create links, and query telemetry.

  - **Outcome**: Automated script provisioning links and retrieving telemetry via cURL or TypeScript.
  - **Skills**: SHA-256 bearer tokens, REST API v1 envelopes, programmatic telemetry queries.
- **5. Connecting AI Agents with MCP**

  **⏱ 3 min** • **Developer**

  Connect Claude Code, Cursor, or Windsurf to Shaf's native Model Context Protocol (MCP) server and execute link operations using natural language.

  - **Outcome**: AI assistant directly connected to workspace tools with scoped bearer authentication.
  - **Skills**: MCP server registration, tool discovery, natural language link creation, prompt workflows.

---

## Curriculum Comparison

| # | Tutorial | Target Role | Estimated Time | Verifiable Outcome |
| :-: | :--- | :--- | :-: | :--- |
| **1** | [Quickstart](https://shaf.app/docs/tutorials/quickstart) | Anyone new to Shaf | 3 min | Live short link on `shaf.is` with real-time analytics |
| **2** | [Custom Domain](https://shaf.app/docs/tutorials/custom-domain) | Domain administrators | 4 min | Verified custom subdomain with auto-renewing TLS |
| **3** | [Team Workspaces](https://shaf.app/docs/tutorials/team-collaboration) | Workspace owners & team leads | 4 min | Collaborative workspace with RBAC permissions |
| **4** | [First API Request](https://shaf.app/docs/tutorials/api-first-link) | Developers & DevOps engineers | 4 min | Authenticated cURL/TypeScript script creating links |
| **5** | [Connecting AI Agents (MCP)](https://shaf.app/docs/tutorials/mcp-server) | AI engineers & technical users | 3 min | AI assistant connected via Model Context Protocol |

---

## When to Use Tutorials vs Other Sections

- **Tutorials** _(You are here)_: Guided, end-to-end learning journeys with immediate verifiable outcomes.
- **[How-To Guides](https://shaf.app/docs/how-to)**: Practical recipes to solve specific operational problems (e.g., DNS CNAME setup, SCIM directory sync).
- **[Reference](https://shaf.app/docs/reference)**: Technical specifications, REST API schemas, and error codes.
- **[Explanation](https://shaf.app/docs/explanation)**: Architectural analysis of Anycast routing, edge storage, and privacy models.

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