Marketing Resources are affiliate-ready assets published by a merchant. They can include files, social post templates, swipe copy, external links, and campaign collections. You only see resources for programs where you are an approved affiliate.Documentation Index
Fetch the complete documentation index at: https://agentref.co/docs/llms.txt
Use this file to discover all available pages before exploring further.
What you can access
| Resource | How to use it |
|---|---|
| Files | Download images, PDFs, videos, or other campaign assets. |
| Social posts | Render post copy with your own affiliate link and referral code. |
| Swipe copy | Copy approved messaging for emails, posts, or landing pages. |
| External links | Open merchant-hosted folders, brand kits, or campaign pages. |
| Collections | Download or browse a grouped set of resources for a launch or campaign. |
Surface coverage
Affiliate REST, SDK, and MCP access is read-oriented. Affiliates can list published resources, inspect a resource, render social post templates, and create download URLs. Creating or editing merchant resources is a merchant-only workflow.| Capability | Dashboard | REST API | Node/Python SDKs | Affiliate MCP |
|---|---|---|---|---|
| List published resources for a joined program | Yes | Yes | Yes | Yes |
| Get resource detail | Yes | Yes | Yes | Yes |
| Render social post placeholders | Yes | Yes | Yes | Yes |
| Create download URLs | Yes | Yes | Yes | Yes |
| Create or edit resources | No | No | No | No |
Marketing Resources do not currently emit webhook events. Merchants publish or unpublish resources, and affiliates read the current published state.
Rendered social posts
Merchants can publish social post templates with placeholders:| Placeholder | Rendered value |
|---|---|
{{affiliate_link}} | Your tracking link for the program. |
{{affiliate_code}} | Your referral code. |
{{program_name}} | The program name. |
REST API
Affiliate Marketing Resources require an affiliate API key (ak_aff_*) with marketing_resources:read.
| Action | Endpoint |
|---|---|
| List resources for a program | GET /api/v1/me/programs/{programId}/marketing-resources |
| Get resource detail | GET /api/v1/me/marketing-resources/{resourceId}?program_id=PROGRAM_ID |
| Render social post | POST /api/v1/me/marketing-resources/social-posts/{resourceId}/render |
| Create download URL | POST /api/v1/me/marketing-resources/download-url |
MCP tools
Affiliate MCP exposes Marketing Resources through:list_marketing_resources, get_marketing_resource, render_marketing_social_post, and create_marketing_resource_download_url.
Use the affiliate MCP endpoint:
What’s next
Links & Attribution
Create and use tracking links.
Commissions
Understand how earnings are calculated.