Generated by API Evangelist
Written by API Evangelist tooling for Affise's API. It is a proposal applied on top of the contract, not a document Affise publishes.
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
title: API Evangelist conversational phrasing for Documentation Admin Adcosts API
version: 1.0.0
extends: openapi/affise-admin-adcosts-api-openapi.yml
actions:
- target: $.info
update:
x-apievangelist-phrasing:
method: generated
generated: '2026-11-24'
generator: build-phrasing.py
label: Generated by API Evangelist
operations: 3
- target: $.paths['/3.1/adcosts'].get
update:
x-apievangelist-phrasing:
intent: Get ad cost data for an offer
effect: read
questions:
- What did my campaigns spend on a particular offer?
- Can I page through ad cost data for an offer?
instructions:
- text: Get ad cost data for offer {offer_id}.
slots:
offer_id: query.offer_id
- text: Show page {page} of ad costs for offer {offer_id}, {limit} per page.
slots:
page: query.page
offer_id: query.offer_id
limit: query.limit
method: generated
generated: '2026-11-24'
- target: $.paths['/3.1/adcosts'].post
update:
x-apievangelist-phrasing:
intent: Record or update ad costs
effect: write
questions:
- How do I record the ad spend I paid an affiliate?
- Can I update an existing ad cost entry?
instructions:
- text: Record ad costs {costs} for offer {offer_id} by affiliate {affiliate_id} on {date} with sub8 {sub8}.
slots:
costs: requestBody.costs
offer_id: requestBody.offer_id
affiliate_id: requestBody.affiliate_id
date: requestBody.date
sub8: requestBody.sub8
- text: Update the ad cost entry for {offer_id}, affiliate {affiliate_id}, date {date}, sub8 {sub8}.
slots:
offer_id: requestBody.offer_id
affiliate_id: requestBody.affiliate_id
date: requestBody.date
sub8: requestBody.sub8
method: generated
generated: '2026-11-24'
- target: $.paths['/3.1/adcosts'].delete
update:
x-apievangelist-phrasing:
intent: Delete ad costs
effect: destructive
questions:
- Can I remove an ad cost entry I recorded by mistake?
- What's the way to delete ad spend for one affiliate on a date?
instructions:
- text: Delete ad costs for offer {offer_id} by affiliate {affiliate_id} on {date} with sub8 {sub8}.
slots:
offer_id: requestBody.offer_id
affiliate_id: requestBody.affiliate_id
date: requestBody.date
sub8: requestBody.sub8
- text: Remove the ad cost entry for {offer_id}, affiliate {affiliate_id}, date {date}, sub8 {sub8}.
slots:
offer_id: requestBody.offer_id
affiliate_id: requestBody.affiliate_id
date: requestBody.date
sub8: requestBody.sub8
method: generated
generated: '2026-11-24'
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.