Skip to content

Tutorials

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

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:

[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 Anyone new to Shaf 3 min Live short link on shaf.is with real-time analytics
2 Custom Domain Domain administrators 4 min Verified custom subdomain with auto-renewing TLS
3 Team Workspaces Workspace owners & team leads 4 min Collaborative workspace with RBAC permissions
4 First API Request Developers & DevOps engineers 4 min Authenticated cURL/TypeScript script creating links
5 Connecting AI Agents (MCP) 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: Practical recipes to solve specific operational problems (e.g., DNS CNAME setup, SCIM directory sync).
  • Reference: Technical specifications, REST API schemas, and error codes.
  • Explanation: Architectural analysis of Anycast routing, edge storage, and privacy models.

Type to search…

↑↓ navigate↵ selectEsc close