API Reference

WordPress / API Reference

affiliates_links_generate

Tool tool. Generate an affiliate referral link for a given URL

This is a read-only tool: it returns affiliates links generate for your WordPress account. It changes nothing.

Ask Claude

You do not call this tool yourself. Ask for the outcome and the client picks the tool:

Affiliates links generate in my WordPress account for [affiliate id], [url].

It takes 2 required and 1 optional parameter.

Parameters

ParameterTypeRequiredDescription
affiliate_idintegerYesAffiliate Id
urlstringYesUrl
campaignstringNoCampaign

Related WordPress tools

Start free — 30 tool calls a month

No card required. Connect Google Ads, Meta Ads, GA4 or Search Console and ask Claude for the outcome — it picks the tool.