Teams API
Manage team members and permissions for both affiliate agencies and brand teams. Requires team:manage scope.
List Team Members
curl https://api.affilync.com/api/teams/members \
-H "Authorization: Bearer YOUR_TOKEN"
Response (200):
{
"data": [
{
"id": "mem_abc123",
"user_id": "usr_xyz789",
"email": "[email protected]",
"name": "Sarah Kim",
"role": "manager",
"status": "active",
"joined_at": "2026-01-15T10:00:00Z",
"last_active": "2026-03-24T08:30:00Z"
}
],
"meta": { "total": 5 }
}
Invite Team Member
curl -X POST https://api.affilync.com/api/teams/invite \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"email": "[email protected]",
"name": "Alex Chen",
"role": "member"
}'
Available roles:
| Role | Description |
|---|---|
owner | Full access, billing, team management |
admin | Full access except billing and ownership transfer |
manager | Manage campaigns, links, content; view analytics |
member | Create links, view own analytics |
viewer | Read-only access to dashboards and reports |
Update Member Role
curl -X PATCH https://api.affilync.com/api/teams/members/mem_abc123 \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "role": "admin" }'
Remove Team Member
curl -X DELETE https://api.affilync.com/api/teams/members/mem_abc123 \
-H "Authorization: Bearer YOUR_TOKEN"
Team Analytics
View aggregated performance for all team members.
curl "https://api.affilync.com/api/teams/analytics?period=30d" \
-H "Authorization: Bearer YOUR_TOKEN"
Response (200):
{
"data": {
"total_clicks": 45200,
"total_conversions": 1890,
"total_revenue": "28450.00",
"members": [
{
"user_id": "usr_xyz789",
"name": "Sarah Kim",
"clicks": 12500,
"conversions": 520,
"revenue": "7800.00"
}
]
}
}
Subscription Limits
Team member limits depend on your subscription plan:
| Plan | Team Members |
|---|---|
| Free / Starter | 1 (owner only) |
| Pro | 3 |
| Business | 10 |
| Agency / Enterprise | Unlimited |