# Linktree Install Auth

> 'Install and configure Linktree SDK/API authentication. Use when setting up a new Linktree integration. Trigger: "install linktree", "setup linktree", "linktree auth". '

- Skill: `thedixitjain/linktree-install-auth` (Agent Skill)
- Install (CLI): `npx skillmds add thedixitjain/linktree-install-auth`
- Raw SKILL.md: https://api.skillmd.com/api/skills/thedixitjain/linktree-install-auth/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Security
- Author: thedixitjain (https://skillmd.com/u/thedixitjain)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/thedixitjain/linktree-install-auth

---


# Linktree Install & Auth

## Overview

Set up Linktree API for programmatic link-in-bio management with 25M+ creators.

## Prerequisites

- Linktree account and API access
- API key/credentials from Linktree dashboard
- Node.js 18+ or Python 3.8+

## Instructions

### Step 1: Install SDK

```bash
npm install @linktree/sdk
# or: pip install linktree-sdk
```

### Step 2: Configure Authentication

```bash
export LINKTREE_API_KEY="your-api-key-here"
echo 'LINKTREE_API_KEY=your-api-key' >> .env
```

### Step 3: Verify Connection (TypeScript)

```typescript
import { LinktreeClient } from '@linktree/sdk';
const client = new LinktreeClient({ apiKey: process.env.LINKTREE_API_KEY });
const profile = await client.profiles.get('myprofile');
console.log(`Profile: ${profile.username} — ${profile.links.length} links`);
```

### Step 4: Verify Connection (Python)

```python
import linktree
client = linktree.Client(api_key=os.environ['LINKTREE_API_KEY'])
profile = client.profiles.get('myprofile')
print(f'Profile: {profile.username} — {len(profile.links)} links')
```

## Error Handling

| Error | Code | Solution |
|-------|------|----------|
| Invalid API key | 401 | Verify credentials in dashboard |
| Permission denied | 403 | Check API scopes/permissions |
| Rate limited | 429 | Implement backoff |

## Resources

- [Linktree Documentation](https://linktr.ee/marketplace/developer)

## Next Steps

After auth, proceed to `linktree-hello-world`.

---

**Source:** [`jeremylongshore/claude-code-plugins-plus-skills`](https://github.com/jeremylongshore/claude-code-plugins-plus-skills) → `skills/.curated/linktree-install-auth/SKILL.md`

**Also appears in:** `jeremylongshore/claude-code-plugins-plus-skills/plugins/saas-packs/linktree-pack/skills/linktree-install-auth/SKILL.md`

