Skip to main content

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:

RoleDescription
ownerFull access, billing, team management
adminFull access except billing and ownership transfer
managerManage campaigns, links, content; view analytics
memberCreate links, view own analytics
viewerRead-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:

PlanTeam Members
Free / Starter1 (owner only)
Pro3
Business10
Agency / EnterpriseUnlimited