Skip to main content

Overview

The affiliate tools allow you to manage your affiliate users through natural language commands. All tools support both Markdown and JSON response formats.

Available Tools

ToolDescriptionPermission
affonso_list_affiliatesList affiliates with filtering and paginationread:affiliates
affonso_get_affiliateGet a single affiliate by IDread:affiliates
affonso_create_affiliateCreate a new affiliatewrite:affiliates
affonso_update_affiliateUpdate an existing affiliatewrite:affiliates
affonso_delete_affiliateDelete an affiliatedelete:affiliates

affonso_list_affiliates

List and search affiliates with powerful filtering options.

Parameters

page
number
default:"1"
Page number for pagination
limit
number
default:"50"
Number of results per page (max 100)
Search by name, email, or tracking ID
status
string
Filter by partnership status: APPROVED, PENDING, REJECTED
sortBy
string
default:"createdAt"
Sort field: createdAt, name, email
sortOrder
string
default:"desc"
Sort order: asc or desc
responseFormat
string
default:"markdown"
Response format: markdown or json

Example Prompts

List all my affiliates
Show me pending affiliates
Find affiliates with "john" in their name
List top 10 affiliates sorted by name

Response

## Affiliates (Page 1 of 3)

### John Smith
- **Email:** [email protected]
- **Tracking ID:** john-smith
- **Status:** APPROVED
- **Created:** Jan 15, 2024

### Jane Doe
- **Email:** [email protected]
- **Tracking ID:** jane-doe
- **Status:** PENDING
- **Created:** Jan 14, 2024

---
Showing 2 of 25 affiliates

affonso_get_affiliate

Retrieve detailed information about a specific affiliate.

Parameters

id
string
required
The affiliate ID (starts with aff_)
expand
array
Include related data: promoCodes, commissionOverrides, invoiceDetails, payoutMethod, onboardingResponses
responseFormat
string
default:"markdown"
Response format: markdown or json

Example Prompts

Get affiliate aff_abc123
Show me details for affiliate aff_xyz789 with their promo codes
Get affiliate info including commission overrides
Show affiliate aff_abc123 with their onboarding responses

Response

## Affiliate: John Smith

| Field | Value |
|-------|-------|
| ID | aff_abc123 |
| Email | [email protected] |
| Tracking ID | john-smith |
| Status | APPROVED |
| Created | Jan 15, 2024 |

### Promo Codes
- **JOHN20** - 20% off (Active)
- **JOHNVIP** - 30% off (Inactive)

affonso_create_affiliate

Create a new affiliate in your program.

Parameters

email
string
required
Affiliate’s email address
name
string
Affiliate’s display name
trackingId
string
Custom tracking ID (auto-generated if not provided)
status
string
default:"PENDING"
Initial partnership status: APPROVED, PENDING
responseFormat
string
default:"markdown"
Response format: markdown or json

Example Prompts

Create an affiliate for [email protected]
Add a new affiliate named "Jane Doe" with email [email protected]
Create an approved affiliate for [email protected] with tracking ID "partner-co"

Response

## Affiliate Created Successfully

| Field | Value |
|-------|-------|
| ID | aff_new123 |
| Email | [email protected] |
| Tracking ID | john-example |
| Status | PENDING |

The affiliate will receive an invitation email.

affonso_update_affiliate

Update an existing affiliate’s information.

Parameters

id
string
required
The affiliate ID to update
name
string
New display name
email
string
New email address
status
string
New partnership status: APPROVED, PENDING, REJECTED
responseFormat
string
default:"markdown"
Response format: markdown or json

Example Prompts

Approve affiliate aff_abc123
Update affiliate aff_xyz to have email [email protected]
Change the name of affiliate aff_123 to "John Smith Jr."
Reject affiliate aff_pending456

Response

## Affiliate Updated

**aff_abc123** has been updated:
- Status: PENDING → APPROVED

The affiliate is now active and can start promoting.

affonso_delete_affiliate

This is a destructive operation. The affiliate and all their data will be permanently deleted.

Parameters

id
string
required
The affiliate ID to delete
responseFormat
string
default:"markdown"
Response format: markdown or json

Example Prompts

Delete affiliate aff_abc123
Remove affiliate aff_old789

Response

## Affiliate Deleted

Affiliate **aff_abc123** ([email protected]) has been permanently deleted.

Error Handling

Common errors you may encounter:
ErrorCauseSolution
NOT_FOUNDAffiliate ID doesn’t existVerify the ID is correct
DUPLICATE_ERROREmail already existsUse a different email
PERMISSION_DENIEDMissing required scopeCheck your API key permissions
VALIDATION_ERRORInvalid parameter valueCheck parameter format