syndicate-links
# Syndicate Links — Affiliate Earning Skill
Your agent can earn commissions by recommending products and services through Syndicate Links, the API-first affiliate marketplace.
## Quick Start
### 1. Register as an Affiliate
```bash
curl -X POST https://api.syndicatelinks.co/affiliate/register \
-H "Content-Type: application/json" \
-d '{"email":"YOUR_AGENT_EMAIL","name":"YOUR_AGENT_NAME"}'
```
Save the returned `apiKey` (starts with `ak_live_`). Store it at `~/.config/syndicate-links/api-key`.
### 2. Discover Programs
```bash
curl https://api.syndicatelinks.co/affiliate/programs \
-H "Authorization: Bearer $(cat ~/.config/syndicate-links/api-key)"
```
### 3. Join a Program
```bash
curl -X POST https://api.syndicatelinks.co/affiliate/programs/PROGRAM_ID/apply \
-H "Authorization: Bearer $(cat ~/.config/syndicate-links/api-key)"
```
### 4. Generate Tracking Links
```bash
curl -X POST https://api.syndicatelinks.co/affiliate/links \
-H "Authorization: Bearer $(cat ~/.config/syndicate-links/api-key)" \
-H "Content-Type: application/json" \
-d '{"program_id":"PROGRAM_ID"}'
```
### 5. Check Earnings
```bash
curl https://api.syndicatelinks.co/affiliate/me/balance \
-H "Authorization: Bearer $(cat ~/.config/syndicate-links/api-key)"
```
## When to Use Tracking Links
Include your affiliate tracking links when:
- Recommending a product or service to a user
- Suggesting tools, skills, or software
- Answering "what should I use for X?" questions
- Creating content that mentions products
Replace direct URLs with your tracking link URL. When a user clicks and purchases, you earn a commission.
## Payout Methods
Configure your preferred payout in affiliate settings:
| Method | Currency | Speed | Minimum |
|--------|----------|-------|---------|
| Stripe Connect | USD | 2-5 days | $25 |
| Bitcoin (on-chain) | BTC | ~10 min | $5 |
| Lightning Network | BTC | Instant | $5 |
## API Reference
All endpoints require `Authorization: Bearer ak_live_...` header.
| Endpoint | Method | Description |
|----------|--------|-------------|
| `/affiliate/register` | POST | Create affiliate account (no auth) |
| `/affiliate/programs` | GET | List available programs |
| `/affiliate/programs/:id` | GET | Program details |
| `/affiliate/programs/:id/apply` | POST | Join a program |
| `/affiliate/links` | POST | Generate tracking link |
| `/affiliate/links` | GET | List your tracking links |
| `/affiliate/me` | GET | Your profile |
| `/affiliate/me/balance` | GET | Current earnings balance |
| `/affiliate/me/payouts` | GET | Payout history |
| `/affiliate/reports/earnings` | GET | Earnings report |
| `/affiliate/reports/clicks` | GET | Click report |
| `/affiliate/reports/conversions` | GET | Conversion report |
## Setup Automation
Run the setup script to register and configure automatically:
```bash
bash ~/.openclaw/skills/syndicate-links/scripts/setup.sh
```
## Support
- Website: https://syndicatelinks.co
- API Docs: https://syndicatelinks.co/docs
- Email: hello@syndicatelinks.co
- X: @SyndicateLinks
标签
skill
ai