syndicate-issue-agent-key
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSyndicate Links Agent or Affiliate Key
Syndicate Links Agent 或联盟密钥
Use this skill when an AI agent, agent builder, or human publisher needs a Syndicate Links affiliate key and tracking links.
The shipped rail is :
affiliatehttp
POST https://api.syndicatelinks.co/affiliate/register
POST https://api.syndicatelinks.co/affiliate/links
GET https://api.syndicatelinks.co/affiliate/reports/conversionsDo not substitute draft-only publisher-named routes.
当AI Agent、Agent构建者或人工发布者需要Syndicate Links联盟密钥和追踪链接时,可使用本技能。
已上线的体系为:
affiliatehttp
POST https://api.syndicatelinks.co/affiliate/register
POST https://api.syndicatelinks.co/affiliate/links
GET https://api.syndicatelinks.co/affiliate/reports/conversions请勿使用仅草稿版的发布者命名路由。
Prerequisites
前提条件
- An email address for the agent or publisher
- A display name
- Optional: website, agent platform, or agent ID
- For tracking link creation: an approved partnership with the merchant program
- Agent或发布者的电子邮箱地址
- 显示名称
- 可选:网站、Agent平台或Agent ID
- 创建追踪链接:已获得商家项目的合作批准
1. Register as an agent affiliate
1. 注册为Agent联盟成员
bash
curl -sS -X POST https://api.syndicatelinks.co/affiliate/register \
-H "Content-Type: application/json" \
-d '{
"name": "Example Shopping Agent",
"email": "agent@example.com",
"type": "agent",
"agentPlatform": "custom",
"agentId": "example-agent-v1",
"website": "https://agent.example.com",
"description": "Autonomous publisher that recommends merchant products when relevant."
}' | python3 -m json.toolExpected success is with an affiliate profile and an . Copy the key immediately. Treat it as a secret.
201 CreatedapiKeyAccepted values are , , and . For AI agents, use unless a human editorial surface is also involved.
typeagenthumanhybridagentbash
curl -sS -X POST https://api.syndicatelinks.co/affiliate/register \
-H "Content-Type: application/json" \
-d '{
"name": "Example Shopping Agent",
"email": "agent@example.com",
"type": "agent",
"agentPlatform": "custom",
"agentId": "example-agent-v1",
"website": "https://agent.example.com",
"description": "Autonomous publisher that recommends merchant products when relevant."
}' | python3 -m json.tool成功请求会返回状态码,同时包含联盟资料和。请立即复制该密钥,并将其视为机密信息。
201 CreatedapiKey接受的值包括、和。对于AI Agent,除非同时涉及人工编辑环节,否则请使用类型。
typeagenthumanhybridagent2. Store the key securely
2. 安全存储密钥
bash
export TOKEN="ak_live_sample"Use your agent's secret store, environment manager, or deployment secret system. Never hardcode the key in prompts, repos, browser code, or public docs.
bash
export TOKEN="ak_live_sample"请使用Agent的机密存储、环境管理器或部署机密系统存储密钥。切勿在提示词、代码仓库、浏览器代码或公开文档中硬编码密钥。
3. Create a tracking link
3. 创建追踪链接
You need an approved partnership with the target merchant program before link creation succeeds.
bash
curl -sS -X POST https://api.syndicatelinks.co/affiliate/links \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"programId": "program_uuid",
"destinationUrl": "https://merchant.example.com/products/widget",
"sourceTag": "agent-recommendation"
}' | python3 -m json.toolThe response includes . That is the code the merchant reports when it calls .
trackingCodePOST /merchant/conversions在创建链接前,您需要获得目标商家项目的合作批准,否则请求将无法成功。
bash
curl -sS -X POST https://api.syndicatelinks.co/affiliate/links \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"programId": "program_uuid",
"destinationUrl": "https://merchant.example.com/products/widget",
"sourceTag": "agent-recommendation"
}' | python3 -m json.tool响应结果包含。当商家调用时,会上报该代码。
trackingCodePOST /merchant/conversions4. List existing tracking links
4. 列出已有的追踪链接
bash
curl -sS "https://api.syndicatelinks.co/affiliate/links?programId=program_uuid&limit=10" \
-H "Authorization: Bearer $TOKEN" | python3 -m json.toolbash
curl -sS "https://api.syndicatelinks.co/affiliate/links?programId=program_uuid&limit=10" \
-H "Authorization: Bearer $TOKEN" | python3 -m json.tool5. Check credited conversions
5. 查看已结算的转化数据
bash
curl -sS "https://api.syndicatelinks.co/affiliate/reports/conversions?limit=10" \
-H "Authorization: Bearer $TOKEN" | python3 -m json.toolConversions can remain pending until the merchant payment window clears.
bash
curl -sS "https://api.syndicatelinks.co/affiliate/reports/conversions?limit=10" \
-H "Authorization: Bearer $TOKEN" | python3 -m json.tool转化数据可能会处于待处理状态,直到商家支付周期结束。
Common pitfalls
常见误区
- Endpoint naming. Use the shipped routes for agent and publisher work.
/affiliate/* - Key type. Affiliate keys are for link creation and reporting. Merchant keys are for firing merchant conversions.
- No approved partnership. returns
POST /affiliate/linksif the affiliate is not approved for the program.403 - Tracking code is not the key. The goes into the merchant conversion payload. The affiliate key stays in the Authorization header.
trackingCode - Agent identity fields. For agents, set and include
type: "agent"oragentPlatformwhen available.agentId
- 端点命名:请使用已上线的路由进行Agent和发布者相关操作。
/affiliate/* - 密钥类型:联盟密钥用于创建链接和查看报告,商家密钥用于触发商家转化数据上报。
- 未获得合作批准:如果联盟成员未获得项目批准,会返回
POST /affiliate/links状态码。403 - 追踪代码并非密钥:需放入商家转化请求的负载中,联盟密钥则保留在Authorization请求头中。
trackingCode - Agent身份字段:对于Agent,请设置,并在可用时填写
type: "agent"或agentPlatform。agentId
Links
链接
- API reference: https://syndicatelinks.co/docs/api-reference
- Agent key management: https://syndicatelinks.co/docs/agent-key-management
- Agent integration: https://syndicatelinks.co/docs/agent-integration
- x402 docs: https://syndicatelinks.co/docs/x402