Outreach API

Send sources to AIclicks outreach, approve every placement, and get live links and prices back by webhook.

The Outreach API lets your platform run AIclicks link outreach for your clients. You send the pages you want your client to appear on. AIclicks qualifies each page, contacts the publisher, negotiates the price and places the link. You approve or decline every placement, and AIclicks sends the results back to you by webhook.

The usual setup is a "Send to outreach" button in your own product. The button calls this API. Your team never has to open the AIclicks dashboard.

How it works

  1. Create a campaign for each client, with its own budget and price cap. → POST /api/v1/outreach/campaigns
  2. Add funds to the campaign deposit. AIclicks sends you a Stripe payment link or bank transfer details, unless you agree another way with AIclicks. Each placement is paid from the deposit of its campaign.
  3. Get and send sources. AIclicks adds the pages it finds for the client every day, as opportunities with origin: "aiclicks". You can also send URLs that your own team found. → POST /api/v1/outreach/campaigns/{campaign_id}/sources
  4. AIclicks qualifies and contacts the publisher. Each URL is an opportunity with a title, its position in AI answers, the domain rating and an estimated price.
  5. You approve or decline. When an opportunity needs your decision, its status is action_needed and you get a webhook. → approve / decline
  6. The link goes live. You get the live URL, the placement date and the final price.
  7. AIclicks checks citations. For 90 days after the link is live, Get Opportunity shows whether AI answers cite the page and mention the client.

You can read the same data at any time with GET /api/v1/outreach/opportunities, but you do not have to poll. Register a webhook endpoint and AIclicks pushes every change to you.

Objects

ObjectWhat it is
CampaignOne outreach programme for one client domain. It has a budget, a price cap per link, quality rules and a deposit.
SourceA URL you send to a campaign. Each accepted source becomes one opportunity.
OpportunityOne page where AIclicks tries to place a link. It carries the price, the status and the placement.
TransactionOne row in the deposit ledger of a campaign: a top-up, a spend, a refund or an adjustment.
Webhook endpointA URL on your side that receives outreach events.

Opportunity status

Statusaction_requiredMeaning
processingfalseAIclicks checks the page: quality rules, competitor rules and duplicates.
outreachedfalseAIclicks is in contact with the publisher and negotiates the price.
action_neededtrueThe publisher sent a price. You must approve or decline the placement.
approvedfalseYou approved. AIclicks closes the deal and the publisher places the link.
completedfalseThe link is live. placement.live_url and placement.placed_at are set.
declinedfalseYou or the publisher declined. declined_by says who: client or publisher. Nothing is charged. You can reconsider your own declines.
processing ──▶ outreached ──▶ action_needed ──▶ approved ──▶ completed
     │              │               │
     ▼              ▼               ▼
  declined       declined        declined

action_required is the simple flag for your UI: true means "needs approval", false means "no action needed".

AIclicks never places a link without your approval when the campaign uses approval_mode: "all" (the default). AIclicks does not offer a page that you declined to you again in that campaign, unless you reconsider it.

Money

  • All amounts are integers in the minor unit of the campaign currency (cents for USD). 15000 means $150.00.
  • Each campaign has its own deposit. AIclicks credits it when your payment settles. Read it with GET /api/v1/outreach/campaigns/{campaign_id}/balance.
  • When you approve an opportunity, its estimated price is reserved: it no longer counts in balance_cents. When the link goes live, the final price is spent and the reservation ends. If the placement fails, the reservation goes back to balance_cents.
  • AIclicks never spends more than max_link_price_cents on one link without an explicit approval from you.

Endpoints

MethodPathPurpose
POST/api/v1/outreach/campaignsCreate a campaign
GET/api/v1/outreach/campaignsList campaigns
GET/api/v1/outreach/campaigns/{campaign_id}Get a campaign
PATCH/api/v1/outreach/campaigns/{campaign_id}Update a campaign
GET/api/v1/outreach/campaigns/{campaign_id}/balanceGet the balance
POST/api/v1/outreach/campaigns/{campaign_id}/sourcesSend sources
GET/api/v1/outreach/opportunitiesList opportunities
GET/api/v1/outreach/opportunities/{opportunity_id}Get an opportunity
POST/api/v1/outreach/opportunities/{opportunity_id}/approveApprove
POST/api/v1/outreach/opportunities/{opportunity_id}/declineDecline
POST/api/v1/outreach/opportunities/{opportunity_id}/reconsiderReconsider
POST/api/v1/outreach/opportunities/{opportunity_id}/notesAdd a note
POST/api/v1/outreach/webhooksCreate a webhook endpoint
GET/api/v1/outreach/webhooksList webhook endpoints
DELETE/api/v1/outreach/webhooks/{webhook_id}Delete a webhook endpoint

All outreach endpoints use the same base URL, authentication, envelope, errors and rate limits as the rest of the API. See the Overview.

The AIclicks team does all the outreach work: qualifying pages, contacting publishers, negotiating prices and placing links. The API lets you follow that work in your own tool or dashboard, make the decisions that are yours (approve, decline, reconsider), send pages and add notes for the team.

Idempotency

Create Campaign, Send Sources, Approve and Decline accept an optional Idempotency-Key header. If you send the same key again within 24 hours, AIclicks returns the first result and does not repeat the action. Use it on "Send to outreach" and "Approve" buttons, so that a double click or a network retry does not create two opportunities or two charges.

-H "Idempotency-Key: 7f3e9b2a-send-to-outreach-batch-0412"

Next steps

  • Follow the Quickstart for a full integration, step by step.
  • Set up webhooks so that results come back to you without polling.