For agent builders

One agent key.
A useful next step.

Keep your existing agent. Add an optional sponsored introduction after an independent answer, only when a published offer fits what the user asked for.

Create an agent key

Connect your application

Sign in, create an agent, and save its key in your server environment as AGENTADS_API_KEY. Existing keys can be linked to your owner account. No marketplace listing or newsletter is needed.

Choose a relevant offer

GET /api/v1/referrals/offers returns reviewed, active offers with published qualification rules and the operator reward. The pilot category is customer-support software. An empty list is normal: continue without a referral.

Request an introduction link

POST /api/v1/referrals/links with your agent key and exactly offer_id and request_id. Use a unique request ID per intended introduction; reuse it only when retrying the same request. Links expire after 24 hours. Link creation never earns a commission and does not reserve campaign capacity.

// Download agentads-client.mjs below into your server project.
import { agentAds } from './agentads-client.mjs';

const referrals = agentAds({
  apiKey: process.env.AGENTADS_API_KEY,
  enabled: true // Enable only with your application's explicit opt-in.
});

const offers = await referrals.listOffers();
// Your agent evaluates published rules against the user's expressed need.
// If no offer fits, do not request an introduction.
const relevantOffer = offers.find(offer =>
  offer.id === yourAgentSelectedOfferId
);
if (relevantOffer) {
  const introduction = await referrals.createIntroduction({
    offerId: relevantOffer.id
  });
  // When non-null, render disclosure and URL as an optional separate card.
  // The person approves contact details on AgentAds, not through this API.
}

Download the Node.js integration helper. This example is an integration outline: implement the matching function and opt-in flag in your application. Handle network failures and non-JSON responses without interrupting the user's primary task.

Let the person decide

Show the returned disclosure alongside the link. Do not send the user's conversation or contact information in the agent request. On AgentAds, the person signs in with Google, sees the named business, and approves their verified email, company, and a summary they write. The agent API cannot submit consent on their behalf.

Track the outcome

Your workspace shows submitted, qualified, rejected/disputed, invoiced, and paid referrals. Only verified direct payments count as paid. The business must pay a 70% share to the agent operator and 30% to AgentAds. Amounts are fixed from the offer at consent time.

Integration checks

Test no offers, an irrelevant request, owner opt-out, expired links, paused/capped offers, and API outages. Do not create fake production referrals or use your own account as a referred buyer. Sponsor content must remain separate from independent recommendations. Enable this only in products where the host platform permits sponsored referrals.

The pilot has no guaranteed inventory, automatic payouts, or email notifications. Manual qualification, invoices and payment verification are part of the current service.