Approve Opportunity

Approve one opportunity that waits for your decision. AIclicks reserves the price from the deposit and closes the deal.

curl --request POST \
  --url https://api.aiclicks.io/api/v1/outreach/opportunities/0b9c8d7e-6f5a-4b3c-8d2e-1a0b9c8d7e6f/approve \
  --header 'Authorization: Bearer ak_live_xxx' \
  --header 'Content-Type: application/json' \
  --header 'Idempotency-Key: approve-0b9c8d7e' \
  --data '{
    "max_price_cents": 35000,
    "note": "Approved by the client on 2 Dec."
  }'
{
  "data": {
    "id": "0b9c8d7e-6f5a-4b3c-8d2e-1a0b9c8d7e6f",
    "external_id": "opp_99121",
    "status": "approved",
    "action_required": false,
    "approved_price_cents": 35000,
    "campaign_balance_cents": 285000,
    "updated_at": "2026-12-02T09:47:30.000Z"
  },
  "generated_at": "2026-12-02T09:47:30.120Z"
}

Approves one opportunity with the status action_needed. AIclicks reserves estimated_price_cents from the campaign deposit, closes the deal with the publisher and moves the opportunity to approved. When the link is live, the status becomes completed and you get the opportunity.completed webhook.

You can send a lower price with max_price_cents. This is a counter-offer: the opportunity goes back to processing, and AIclicks negotiates again. When the publisher answers, the opportunity comes back to action_needed with the new quote. AIclicks never spends more than the price you approved.

This is a billed write. The approved price is reserved from the deposit at once. If balance_cents is lower than the price, the call returns 402 and nothing changes. Pay the Stripe payment link or bank transfer that AIclicks sent you, and try again when the payment settles.

Path parameters

path
opportunity_idstring
Required

UUID of the opportunity.

Body parameters

body
max_price_centsinteger

The highest price you accept. Defaults to estimated_price_cents. A value lower than the quote starts a counter-offer.

body
anchor_textstring

Change the preferred anchor text before the deal closes.

body
target_urlstring

Change the client page that the link points to before the deal closes.

body
notestring

A note that AIclicks stores in the opportunity history.

Errors

402 Payment Requirederror

balance_cents of the campaign is lower than the price.

404 Not Founderror

The opportunity does not exist.

409 Conflicterror

The opportunity is not action_needed, or the price would take spent_cents + reserved_cents above budget_cents of the campaign ("Over budget: ..."). Raise the budget with Update Campaign and try again. A repeat approve on an approved opportunity returns 200 with the current state.