<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"><generator uri="https://jekyllrb.com/" version="3.10.0">Jekyll</generator><link href="https://apievangelist.com/feed.xml" rel="self" type="application/atom+xml" /><link href="https://apievangelist.com/" rel="alternate" type="text/html" hreflang="en" /><updated>2026-11-06T22:14:26+00:00</updated><id>https://apievangelist.com/feed.xml</id><title type="html">API Evangelist</title><subtitle>Understanding the technology, business, policies, and people of Apis.</subtitle><author><name>Kin Lane</name></author><entry><title type="html">Add DNS Records, Block Attackers And Balance Traffic With Cloudflare</title><link href="https://apievangelist.com/2026/11/06/add-dns-records-block-attackers-and-balance-traffic-with-cloudflare/" rel="alternate" type="text/html" title="Add DNS Records, Block Attackers And Balance Traffic With Cloudflare" /><published>2026-11-06T22:00:00+00:00</published><updated>2026-11-06T22:00:00+00:00</updated><id>https://apievangelist.com/2026/11/06/add-dns-records-block-attackers-and-balance-traffic-with-cloudflare</id><content type="html" xml:base="https://apievangelist.com/2026/11/06/add-dns-records-block-attackers-and-balance-traffic-with-cloudflare/"><![CDATA[<p>Your website sits behind Cloudflare, and most days you never think about it. Then a new service needs a DNS record, a bot starts hammering the login page, a lookalike domain shows up pretending to be you, or a sale is coming and one server will not cope. Each of those is a few clicks in the dashboard, which is fine until you have fifty domains or want it to happen on its own. <a href="https://apis.io/providers/cloudflare/">Cloudflare</a> exposes everything in that dashboard through an API, a way for software to talk directly to other software, so your deployment tooling, a script or an AI assistant can make the change for you.</p>

<h2 id="what-cloudflare-does">What Cloudflare does</h2>

<p><a href="https://www.cloudflare.com/">Cloudflare</a> describes itself as a global network designed to make everything you connect to the Internet secure, private, fast, and reliable. In practice it is the layer between the public internet and your servers: DNS, a firewall, a content cache, a load balancer and, increasingly, a place to run code and AI models at the edge. On APIs.io we track 25 separate APIs under the Cloudflare name, including <a href="https://apis.io/apis/cloudflare/cloudflare-load-balancing-api/">Load Balancing</a>, <a href="https://apis.io/apis/cloudflare/cloudflare-waf-api/">WAF</a>, <a href="https://apis.io/apis/cloudflare/cloudflare-email-routing-api/">Email Routing</a>, <a href="https://apis.io/apis/cloudflare/cloudflare-waiting-room-api/">Waiting Room</a> and <a href="https://apis.io/apis/cloudflare/cloudflare-zero-trust-api/">Zero Trust</a>.</p>

<h2 id="what-you-can-get-done">What you can get done</h2>

<p>We have mapped Cloudflare’s operations to 26 business capabilities. These are the five a business will reach for first.</p>

<h3 id="it-infrastructure-management"><a href="https://apis.io/capabilities/it-infrastructure-management/">IT Infrastructure Management</a></h3>

<p>A load balancer spreads visitors across several servers, so one failing or filling up is invisible to customers. This is the largest capability, with 243 operations, and it also covers the network tunnels that connect your own sites to Cloudflare.</p>

<ul>
  <li><code class="language-plaintext highlighter-rouge">GET /zones/{zone_id}/load_balancers</code> lists the load balancers on a domain.</li>
  <li><code class="language-plaintext highlighter-rouge">POST /zones/{zone_id}/load_balancers</code> creates one over your existing server pools.</li>
  <li><code class="language-plaintext highlighter-rouge">PATCH /zones/{zone_id}/load_balancers/{load_balancer_id}</code> changes part of a load balancer, such as which pool takes traffic first.</li>
  <li><code class="language-plaintext highlighter-rouge">DELETE /zones/{zone_id}/load_balancers/{load_balancer_id}</code> removes one.</li>
  <li><code class="language-plaintext highlighter-rouge">POST /accounts/{account_id}/magic/gre_tunnels</code> creates a GRE tunnel, a private link between your network and Cloudflare’s.</li>
</ul>

<h3 id="cybersecurity-management"><a href="https://apis.io/capabilities/cybersecurity-management/">Cybersecurity Management</a></h3>

<p>The web application firewall, or WAF, inspects every request before it reaches your site and blocks the ones that look like attacks. Data loss prevention profiles describe sensitive data, such as card numbers, so it can be stopped from leaving. There are 156 operations here.</p>

<ul>
  <li><code class="language-plaintext highlighter-rouge">GET /zones/{zone_id}/firewall/waf/packages/{package_id}/rules</code> lists the firewall rules in a package.</li>
  <li><code class="language-plaintext highlighter-rouge">PATCH /zones/{zone_id}/firewall/waf/packages/{package_id}/rules/{rule_id}</code> changes how one rule behaves, for example from block to challenge.</li>
  <li><code class="language-plaintext highlighter-rouge">GET /accounts/{account_id}/dlp/profiles</code> lists the data loss prevention profiles on the account.</li>
  <li><code class="language-plaintext highlighter-rouge">POST /accounts/{account_id}/dlp/profiles/custom</code> creates a custom profile describing data you want caught.</li>
  <li><code class="language-plaintext highlighter-rouge">DELETE /accounts/{account_id}/dlp/profiles/custom/{profile_id}</code> removes one.</li>
</ul>

<h3 id="threat-detection--response-management"><a href="https://apis.io/capabilities/threat-detection-response-management/">Threat Detection &amp; Response Management</a></h3>

<p>This is the investigation side: searching the email messages Cloudflare’s email security has seen, acting on many of them at once, and reading reports on botnet activity. There are 71 operations.</p>

<ul>
  <li><code class="language-plaintext highlighter-rouge">GET /accounts/{account_id}/email-security/investigate</code> searches email messages that passed through email security.</li>
  <li><code class="language-plaintext highlighter-rouge">POST /accounts/{account_id}/email-security/investigate/bulk</code> starts a bulk action, such as releasing or quarantining many messages.</li>
  <li><code class="language-plaintext highlighter-rouge">GET /accounts/{account_id}/email-security/investigate/bulk/{job_id}</code> checks how that job is going.</li>
  <li><code class="language-plaintext highlighter-rouge">GET /accounts/{account_id}/botnet_feed/asn/{asn_id}/day_report</code> reads a daily report of botnet traffic from a network.</li>
</ul>

<h3 id="ip-defence--enforcement"><a href="https://apis.io/capabilities/ip-defence-enforcement/">IP Defence &amp; Enforcement</a></h3>

<p>Brand protection watches for domains registered to look like yours. You save a query describing your brand, and Cloudflare reports the matches, which is how you find the phishing site before your customers do. There are 56 operations.</p>

<ul>
  <li><code class="language-plaintext highlighter-rouge">POST /accounts/{account_id}/cloudforce-one/v2/brand-protection/domain/queries</code> saves a query for domains resembling your brand.</li>
  <li><code class="language-plaintext highlighter-rouge">GET /accounts/{account_id}/cloudforce-one/v2/brand-protection/domain/matches</code> lists the domains that matched.</li>
  <li><code class="language-plaintext highlighter-rouge">POST /accounts/{account_id}/cloudforce-one/v2/brand-protection/domain/matches/bulk-dismiss</code> dismisses matches you have reviewed, or restores them.</li>
  <li><code class="language-plaintext highlighter-rouge">PATCH /accounts/{account_id}/cloudforce-one/v2/brand-protection/domain/queries/{query_id}</code> adjusts a query.</li>
</ul>

<h3 id="observability-management"><a href="https://apis.io/capabilities/observability-management/">Observability Management</a></h3>

<p>Tracing follows a single request through your systems so a slow page can be explained. These operations, 33 of them, control what gets traced and where the data goes.</p>

<ul>
  <li><code class="language-plaintext highlighter-rouge">GET /zones/{zone_id}/observability/tracing/settings</code> reads the tracing settings on a domain.</li>
  <li><code class="language-plaintext highlighter-rouge">PUT /zones/{zone_id}/observability/tracing/rules</code> replaces the rules that decide which requests get traced.</li>
  <li><code class="language-plaintext highlighter-rouge">POST /accounts/{account_id}/workers/observability/destinations</code> adds a destination, such as your own monitoring tool, for the data to flow to.</li>
</ul>

<h2 id="workflows-that-put-it-together">Workflows that put it together</h2>

<p>A workflow is a recipe: several API calls made in a set order, each using what the last one returned. They are written in Arazzo, an open format for describing them, and Cloudflare has 23 of them on APIs.io.</p>

<ul>
  <li><a href="https://apis.io/arazzos/cloudflare/cloudflare-create-dns-record-and-verify-workflow/">Create DNS Record and Verify</a> creates a DNS record and reads it back to confirm it was stored.</li>
  <li><a href="https://apis.io/arazzos/cloudflare/cloudflare-block-ip-access-rule-workflow/">Block IP Access Rule</a> blocks an address, lists the rules, then removes the block.</li>
  <li><a href="https://apis.io/arazzos/cloudflare/cloudflare-create-firewall-rule-workflow/">Create Firewall Rule</a> writes a filter expression and attaches a firewall rule to it.</li>
  <li><a href="https://apis.io/arazzos/cloudflare/cloudflare-create-load-balancer-workflow/">Create Load Balancer</a> creates a load balancer over existing pools and reads it back.</li>
  <li><a href="https://apis.io/arazzos/cloudflare/cloudflare-configure-ssl-mode-workflow/">Configure SSL Mode</a> reads the current encryption mode, changes it, and confirms the change.</li>
  <li><a href="https://apis.io/arazzos/cloudflare/cloudflare-create-and-activate-zone-workflow/">Create and Activate Zone</a> adds a new domain, triggers its activation check and waits for the result.</li>
</ul>

<h2 id="getting-started">Getting started</h2>

<p>Cloudflare is a freemium, hosted service with self-serve signup: a free account can call the API straight away, and the paid plans add the firewall, brand protection and email security products above. Access starts with an API token, and the <a href="https://developers.cloudflare.com/fundamentals/api/get-started/create-token/">create a token</a> guide walks through it; the <a href="https://developers.cloudflare.com/load-balancing/">load balancing</a> documentation covers the traffic side. We have also written 53 conversational phrasing overlays for Cloudflare, a layer that maps everyday questions to the operation that answers them, and you can see one on the <a href="https://apis.io/overlays/cloudflare/cloudflare-accounts-api-phrasing-overlay/">Accounts API phrasing overlay</a>. On APIs.io you can browse the <a href="https://apis.io/providers/cloudflare/">Cloudflare profile</a>, the <a href="https://apis.io/apis/cloudflare/cloudflare-load-balancing-api/">Load Balancing API</a>, the <a href="https://apis.io/apis/cloudflare/cloudflare-waf-api/">WAF API</a> and the <a href="https://apis.io/apis/cloudflare/cloudflare-waiting-room-api/">Waiting Room API</a>. Take the one dashboard change you make most often and have it made for you; the DNS record workflow above is the usual first step.</p>]]></content><author><name>Kin Lane</name></author><category term="Provider Stories" /><category term="Cloudflare" /><category term="IT Infrastructure Management" /><category term="Cybersecurity Management" /><category term="Threat Detection &amp; Response Management" /><category term="IP Defence &amp; Enforcement" /><category term="Observability Management" /><category term="Security" /><category term="DNS" /><summary type="html"><![CDATA[Your website sits behind Cloudflare, and most days you never think about it. Then a new service needs a DNS record, a bot starts hammering the login page, a lookalike domain shows up pretending to be you, or a sale is coming and one server will not cope. Each of those is a few clicks in the dashboard, which is fine until you have fifty domains or want it to happen on its own. Cloudflare exposes everything in that dashboard through an API, a way for software to talk directly to other software, so your deployment tooling, a script or an AI assistant can make the change for you.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://kinlane-images.s3.amazonaws.com/apievangelist/api-evangelist-images/add-dns-records-block-attackers-and-balance-traffic-with-cloudflare.png" /><media:content medium="image" url="https://kinlane-images.s3.amazonaws.com/apievangelist/api-evangelist-images/add-dns-records-block-attackers-and-balance-traffic-with-cloudflare.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">Trigger Customer Journeys, Run A Loyalty Program And Load Records In Bulk With Salesforce</title><link href="https://apievangelist.com/2026/11/06/trigger-customer-journeys-run-a-loyalty-program-and-load-records-in-bulk-with-salesforce/" rel="alternate" type="text/html" title="Trigger Customer Journeys, Run A Loyalty Program And Load Records In Bulk With Salesforce" /><published>2026-11-06T20:00:00+00:00</published><updated>2026-11-06T20:00:00+00:00</updated><id>https://apievangelist.com/2026/11/06/trigger-customer-journeys-run-a-loyalty-program-and-load-records-in-bulk-with-salesforce</id><content type="html" xml:base="https://apievangelist.com/2026/11/06/trigger-customer-journeys-run-a-loyalty-program-and-load-records-in-bulk-with-salesforce/"><![CDATA[<p>Your customer records live in Salesforce, and so does a lot of the work that happens around them: the welcome email when someone signs up, the points they earn in your loyalty scheme, the dashboard the sales director looks at on Monday. Most people touch all of that through the Salesforce screens. But when a new customer in your own app should land in a marketing journey the moment they register, or a hundred thousand records need loading from an old system overnight, that is API work. <a href="https://apis.io/providers/salesforce/">Salesforce</a> exposes nearly everything in the platform through APIs, a way for software to talk directly to other software, so your own systems, a script or an AI assistant can do it for you.</p>

<h2 id="what-salesforce-does">What Salesforce does</h2>

<p><a href="https://www.salesforce.com/">Salesforce</a> is a cloud-based customer relationship management (CRM) platform that provides a comprehensive suite of enterprise applications for sales, service, marketing, commerce, analytics and AI. Its platform exposes REST, SOAP, Bulk, Streaming, GraphQL, Metadata, Tooling and Pub/Sub APIs, alongside the Agentforce agent and models APIs, letting developers query, write and subscribe to org data programmatically. On APIs.io we track those separately, from the <a href="https://apis.io/apis/salesforce/salesforce-rest-api/">REST API</a> most integrations start with, to the <a href="https://apis.io/apis/salesforce/salesforce-streaming-api/">Streaming API</a>, the <a href="https://apis.io/apis/salesforce/salesforce-reports-and-dashboards-rest-api/">Reports and Dashboards REST API</a> and the <a href="https://apis.io/apis/salesforce/salesforce-analytics-rest-api/">Analytics REST API</a>.</p>

<h2 id="what-you-can-get-done">What you can get done</h2>

<p>We have mapped Salesforce’s operations to 13 business capabilities. These are the five most people will actually reach for.</p>

<h3 id="digital-marketing-management"><a href="https://apis.io/capabilities/digital-marketing-management/">Digital Marketing Management</a></h3>

<p>A journey in Marketing Cloud is a sequence of emails, texts and waits that a contact moves through. These operations let your own software push a contact into one, or send a single transactional email or text straight away.</p>

<ul>
  <li><code class="language-plaintext highlighter-rouge">GET /interaction/v1/interactions</code> lists the journeys you have, optionally only the published ones.</li>
  <li><code class="language-plaintext highlighter-rouge">POST /interaction/v1/events</code> fires the entry event that drops a contact into a journey, with extra data to personalise it.</li>
  <li><code class="language-plaintext highlighter-rouge">POST /messaging/v1/email/messages</code> sends a transactional email from a triggered send definition, personalised per recipient.</li>
  <li><code class="language-plaintext highlighter-rouge">POST /messaging/v1/sms/messages</code> sends a text message the same way.</li>
  <li><code class="language-plaintext highlighter-rouge">GET /messaging/v1/email/messages/{messageKey}</code> checks whether a triggered email was delivered, and shows any errors.</li>
</ul>

<h3 id="loyalty--retention-management"><a href="https://apis.io/capabilities/loyalty-retention-management/">Loyalty &amp; Retention Management</a></h3>

<p>A loyalty program has members, points, vouchers and a ledger of transactions. Running it by API is how a till, a website or a partner’s system can enrol and reward people without anyone keying it into Salesforce. There are ten operations.</p>

<ul>
  <li><code class="language-plaintext highlighter-rouge">POST /data/v64.0/loyalty-programs/{loyaltyProgramName}/individual-member-enrollments</code> enrols a new individual member, with their channel and promotion preferences.</li>
  <li><code class="language-plaintext highlighter-rouge">POST /data/v64.0/loyalty-programs/{loyaltyProgramName}/corporate-member-enrollments</code> enrols a business account rather than a person.</li>
  <li><code class="language-plaintext highlighter-rouge">GET /data/v64.0/connect/loyalty/member/{memberId}/memberbenefits</code> lists the benefits a member is entitled to.</li>
  <li><code class="language-plaintext highlighter-rouge">POST /data/v64.0/loyalty/programs/{loyaltyProgramName}/members/{membershipNumber}/vouchers/{voucherCode}/redeem</code> redeems a voucher, in part or in full.</li>
  <li><code class="language-plaintext highlighter-rouge">POST /data/v64.0/connect/realtime/loyalty/programs/{loyaltyProgramName}</code> processes transaction journals in real time, several at once.</li>
</ul>

<h3 id="analytics--bi-management"><a href="https://apis.io/capabilities/analytics-bi-management/">Analytics &amp; BI Management</a></h3>

<p>CRM Analytics is Salesforce’s own dashboard and dataset product. These operations let another tool list what exists and read how a dashboard is built, which is the first step to feeding it somewhere else.</p>

<ul>
  <li><code class="language-plaintext highlighter-rouge">GET /dashboards</code> lists the dashboards you can access, searchable by name within an app folder.</li>
  <li><code class="language-plaintext highlighter-rouge">GET /dashboards/{dashboardId}</code> reads a dashboard’s widgets and steps.</li>
  <li><code class="language-plaintext highlighter-rouge">GET /datasets</code> lists the datasets, and <code class="language-plaintext highlighter-rouge">GET /dataflows</code> lists the dataflows and recipes that load them.</li>
  <li><code class="language-plaintext highlighter-rouge">GET /lenses</code> lists saved explorations, the individual charts people have built and kept.</li>
</ul>

<h3 id="customer-sign-in"><a href="https://apis.io/capabilities/customer-sign-in/">Customer Sign-In</a></h3>

<p>Headless identity means your own app handles registration and login screens while Salesforce handles the accounts behind them. Three operations cover the usual flows.</p>

<ul>
  <li><code class="language-plaintext highlighter-rouge">POST /services/auth/headless/init/registration</code> signs up a new customer from your own app, with the one-time code sent by email or SMS.</li>
  <li><code class="language-plaintext highlighter-rouge">POST /services/auth/headless/init/passwordless/login</code> lets users log in with a one-time code instead of a password.</li>
  <li><code class="language-plaintext highlighter-rouge">POST /services/auth/headless/forgot_password</code> starts a password reset from your own login screen.</li>
</ul>

<h3 id="environment-management"><a href="https://apis.io/capabilities/environment-management/">Environment Management</a></h3>

<p>A sandbox is a copy of your Salesforce org for testing. Creating and refreshing them by API is how a team keeps test environments current without a request to an administrator.</p>

<ul>
  <li><code class="language-plaintext highlighter-rouge">POST /data/v64.0/tooling/sobjects/SandboxInfo</code> creates a sandbox, or clones an existing one instead of copying production.</li>
  <li><code class="language-plaintext highlighter-rouge">PATCH /data/v64.0/tooling/sobjects/SandboxInfo/{SANDBOX_INFO_ID}</code> refreshes an existing sandbox, with automatic activation if you want it.</li>
</ul>

<h2 id="workflows-that-put-it-together">Workflows that put it together</h2>

<p>A workflow is a recipe: several API calls made in a set order, each using what the last one returned. They are written in Arazzo, an open format for describing them, and Salesforce has 23 of them on APIs.io.</p>

<ul>
  <li><a href="https://apis.io/arazzos/salesforce/salesforce-create-account-with-contacts-workflow/">Create Account with Contact</a> creates a company record, then a person who belongs to it.</li>
  <li><a href="https://apis.io/arazzos/salesforce/salesforce-create-lead-and-convert-workflow/">Create Lead and Follow-up Records</a> creates a lead, then the task and campaign member records that move it along.</li>
  <li><a href="https://apis.io/arazzos/salesforce/salesforce-create-opportunity-with-contact-role-workflow/">Create Opportunity with Contact Role</a> opens a deal and links a contact to it.</li>
  <li><a href="https://apis.io/arazzos/salesforce/salesforce-create-case-for-contact-workflow/">Create Case for Contact</a> files a support case against an existing contact and account.</li>
  <li><a href="https://apis.io/arazzos/salesforce/salesforce-bulk-insert-records-workflow/">Bulk Insert Records</a> runs the whole bulk load: create the job, upload the file, close it, wait, and read the results.</li>
  <li><a href="https://apis.io/arazzos/salesforce/salesforce-bulk-query-workflow/">Bulk Query</a> does the same in reverse, pulling a large result set out as a file.</li>
</ul>

<h2 id="ask-for-it-in-plain-language">Ask for it in plain language</h2>

<p>We have written conversational overlays for Salesforce, a layer on top of its API descriptions that maps everyday questions to the operation that answers them, so an AI assistant knows which call to make. There are 153 of them. These are the kinds of questions they map:</p>

<ul>
  <li>“How do I push a contact into a journey from my own app?”</li>
  <li>“Was my triggered email delivered to the recipient?”</li>
  <li>“How do I enroll a new individual member in my loyalty program?”</li>
  <li>“What benefits is a loyalty program member entitled to?”</li>
  <li>“Can users log in with a one-time code instead of a password?”</li>
  <li>“Is there an API call to refresh an existing sandbox?”</li>
</ul>

<p>You can see one of them on the <a href="https://apis.io/overlays/salesforce/salesforce-accounts-api-phrasing-overlay/">Accounts API phrasing overlay</a>.</p>

<h2 id="getting-started">Getting started</h2>

<p>Salesforce is a freemium, hosted service with self-serve signup: a free developer edition lets you call the API straight away, and the paid clouds add the marketing, loyalty and analytics products above. The <a href="https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/">REST API guide</a> is the place to start, with its <a href="https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/intro_understanding_authentication.htm">authentication</a> page explaining how your app is granted access; the <a href="https://developer.salesforce.com/docs/atlas.en-us.api_streaming.meta/api_streaming/">Streaming</a> and <a href="https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/">Metadata</a> guides cover events and customisation. On APIs.io you can browse the <a href="https://apis.io/providers/salesforce/">Salesforce profile</a>, the <a href="https://apis.io/apis/salesforce/salesforce-rest-api/">REST API</a>, the <a href="https://apis.io/apis/salesforce/salesforce-reports-and-dashboards-rest-api/">Reports and Dashboards REST API</a> and the <a href="https://apis.io/apis/salesforce/salesforce-tooling-api/">Tooling API</a>. Pick the one hand-off between your own systems and Salesforce that someone currently does by export and import, and automate that first.</p>]]></content><author><name>Kin Lane</name></author><category term="Provider Stories" /><category term="Salesforce" /><category term="Digital Marketing Management" /><category term="Loyalty &amp; Retention Management" /><category term="Analytics &amp; BI Management" /><category term="Customer Sign-In" /><category term="Environment Management" /><category term="CRM" /><category term="Sales" /><summary type="html"><![CDATA[Your customer records live in Salesforce, and so does a lot of the work that happens around them: the welcome email when someone signs up, the points they earn in your loyalty scheme, the dashboard the sales director looks at on Monday. Most people touch all of that through the Salesforce screens. But when a new customer in your own app should land in a marketing journey the moment they register, or a hundred thousand records need loading from an old system overnight, that is API work. Salesforce exposes nearly everything in the platform through APIs, a way for software to talk directly to other software, so your own systems, a script or an AI assistant can do it for you.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://kinlane-images.s3.amazonaws.com/apievangelist/api-evangelist-images/trigger-customer-journeys-run-a-loyalty-program-and-load-records-in-bulk-with-salesforce.png" /><media:content medium="image" url="https://kinlane-images.s3.amazonaws.com/apievangelist/api-evangelist-images/trigger-customer-journeys-run-a-loyalty-program-and-load-records-in-bulk-with-salesforce.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">Publish Posts, Moderate Comments And Find Hashtags With Instagram</title><link href="https://apievangelist.com/2026/11/06/publish-posts-moderate-comments-and-find-hashtags-with-instagram/" rel="alternate" type="text/html" title="Publish Posts, Moderate Comments And Find Hashtags With Instagram" /><published>2026-11-06T18:00:00+00:00</published><updated>2026-11-06T18:00:00+00:00</updated><id>https://apievangelist.com/2026/11/06/publish-posts-moderate-comments-and-find-hashtags-with-instagram</id><content type="html" xml:base="https://apievangelist.com/2026/11/06/publish-posts-moderate-comments-and-find-hashtags-with-instagram/"><![CDATA[<p>You run a business account on Instagram, and the posting is the easy part. What takes the time is everything else: scheduling posts from the same calendar your other channels use, clearing spam from the comments under a post that took off, and working out which hashtags are actually pulling. If you have ever wished a tool could do that for you, it can. <a href="https://apis.io/providers/instagram/">Instagram</a> exposes its business features through an API, a way for one piece of software to talk to another, so a scheduling tool, a script, or an AI assistant can publish, moderate and research on your behalf.</p>

<h2 id="what-instagram-does">What Instagram does</h2>

<p><a href="https://www.instagram.com/">Instagram</a> is a photo and video sharing social networking platform owned by Meta. The Instagram APIs allow developers to build integrations with Instagram Business and Creator accounts for content publishing, media management, comment moderation, hashtag discovery, insights and analytics, messaging, and embedding. They are available through the Meta Developer Platform, with Facebook Login or Instagram Login for authentication. On APIs.io we track the APIs separately, among them <a href="https://apis.io/apis/instagram/instagram-publishing-api/">Publishing</a>, <a href="https://apis.io/apis/instagram/instagram-comments-api/">Comments</a>, <a href="https://apis.io/apis/instagram/instagram-hashtags-api/">Hashtags</a>, <a href="https://apis.io/apis/instagram/instagram-insights-api/">Insights</a> and <a href="https://apis.io/apis/instagram/instagram-oembed-api/">oEmbed</a>, which is how an Instagram post gets embedded on your own website.</p>

<h2 id="what-you-can-get-done">What you can get done</h2>

<p>We have mapped Instagram’s operations to three business capabilities, and they line up neatly with the three chores above.</p>

<h3 id="digital-marketing-management"><a href="https://apis.io/capabilities/digital-marketing-management/">Digital Marketing Management</a></h3>

<p>Publishing through the API is a two-step job. First you create a container, which is the staged post with its photo or video, caption, location and tags. Then, once the container is ready, you publish it. That split is what lets a scheduling tool prepare a post now and release it at nine tomorrow.</p>

<ul>
  <li><code class="language-plaintext highlighter-rouge">POST /{user_id}/media</code> creates the container, with the media, caption, location and user tags.</li>
  <li><code class="language-plaintext highlighter-rouge">GET /{container_id}</code> checks whether a container has finished processing, which matters for video.</li>
  <li><code class="language-plaintext highlighter-rouge">POST /{user_id}/media_publish</code> publishes the container so the post goes live.</li>
  <li><code class="language-plaintext highlighter-rouge">GET /{user_id}/content_publishing_limit</code> tells you how close the account is to its publishing limit before you post more.</li>
</ul>

<h3 id="user-generated-content-moderation"><a href="https://apis.io/capabilities/user-generated-content-moderation/">User-Generated Content Moderation</a></h3>

<p>Comments are where a business account earns or loses goodwill. These operations let a tool read every comment on a post, hide the abusive ones without deleting them, and remove the outright spam, at a scale no one can keep up with by thumb.</p>

<ul>
  <li><code class="language-plaintext highlighter-rouge">GET /{media_id}/comments</code> pulls all the comments on one post, choosing which fields come back.</li>
  <li><code class="language-plaintext highlighter-rouge">GET /{comment_id}</code> reads one comment, with its text and timestamp.</li>
  <li><code class="language-plaintext highlighter-rouge">POST /{comment_id}</code> hides a comment from view, or brings back one you hid earlier.</li>
  <li><code class="language-plaintext highlighter-rouge">DELETE /{comment_id}</code> permanently removes a comment from your own media.</li>
  <li><code class="language-plaintext highlighter-rouge">GET /{comment_id}/replies</code> lists the threaded replies under a comment, so a conversation can be moderated whole.</li>
  <li><code class="language-plaintext highlighter-rouge">POST /{media_id}/comments</code> leaves a top-level comment on a post, which is how a tool replies on your behalf.</li>
</ul>

<h3 id="social-networks--community"><a href="https://apis.io/capabilities/social-networks-community/">Social Networks &amp; Community</a></h3>

<p>The widest of the three, with 17 operations, this is where hashtag research lives alongside the comment operations above. Hashtags on Instagram have IDs, so research starts by finding the ID and then asking what is popular under it.</p>

<ul>
  <li><code class="language-plaintext highlighter-rouge">GET /ig_hashtag_search</code> looks up the ID for a hashtag by name, from a business account.</li>
  <li><code class="language-plaintext highlighter-rouge">GET /{hashtag_id}/top_media</code> lists the top-performing posts under that hashtag, rather than the newest.</li>
</ul>

<h2 id="ask-for-it-in-plain-language">Ask for it in plain language</h2>

<p>We have written conversational overlays for Instagram, a layer on top of its API descriptions that maps everyday questions to the operation that answers them, so an AI assistant knows which call to make. There are seven of them, one per API. These are the kinds of questions they map:</p>

<ul>
  <li>“What is the first step to post a photo to Instagram through the API?”</li>
  <li>“Is my uploaded video container finished processing and ready to publish?”</li>
  <li>“How close am I to the publishing rate limit on my account?”</li>
  <li>“Can I hide an abusive comment on my post without deleting it?”</li>
  <li>“How do I permanently remove a spam comment from one of my posts?”</li>
  <li>“What are the top-performing posts tagged with a given hashtag?”</li>
</ul>

<p>You can see one of them on the <a href="https://apis.io/overlays/instagram/instagram-comments-api-phrasing-overlay/">Comments API phrasing overlay</a>.</p>

<h2 id="getting-started">Getting started</h2>

<p>Instagram’s API is freemium with self-serve signup: you create a Meta developer account, connect a Business or Creator account, and call a hosted endpoint. The place to begin is the <a href="https://developers.facebook.com/docs/instagram-platform/instagram-api-with-instagram-login">Instagram API with Instagram Login</a> guide and its <a href="https://developers.facebook.com/docs/instagram-platform/instagram-api-with-instagram-login/business-login">business login</a> page, which explains how an account grants your tool permission. The <a href="https://developers.facebook.com/docs/instagram-platform/instagram-api-with-instagram-login/messaging-api">messaging</a> and <a href="https://developers.facebook.com/docs/instagram-platform/oembed">oEmbed</a> guides cover direct messages and embedding. I could not find Arazzo workflows for Instagram on APIs.io yet. You can browse the <a href="https://apis.io/providers/instagram/">Instagram profile</a>, the <a href="https://apis.io/apis/instagram/instagram-publishing-api/">Publishing API</a>, the <a href="https://apis.io/apis/instagram/instagram-comments-api/">Comments API</a> and the <a href="https://apis.io/apis/instagram/instagram-hashtags-api/">Hashtags API</a>. If comment spam is the thing that wakes you up, start there; it is the smallest set of calls with the biggest relief.</p>]]></content><author><name>Kin Lane</name></author><category term="Provider Stories" /><category term="Instagram" /><category term="Digital Marketing Management" /><category term="User-Generated Content Moderation" /><category term="Social Networks &amp; Community" /><category term="Social Media" /><category term="Content Publishing" /><summary type="html"><![CDATA[You run a business account on Instagram, and the posting is the easy part. What takes the time is everything else: scheduling posts from the same calendar your other channels use, clearing spam from the comments under a post that took off, and working out which hashtags are actually pulling. If you have ever wished a tool could do that for you, it can. Instagram exposes its business features through an API, a way for one piece of software to talk to another, so a scheduling tool, a script, or an AI assistant can publish, moderate and research on your behalf.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://kinlane-images.s3.amazonaws.com/apievangelist/api-evangelist-images/publish-posts-moderate-comments-and-find-hashtags-with-instagram.png" /><media:content medium="image" url="https://kinlane-images.s3.amazonaws.com/apievangelist/api-evangelist-images/publish-posts-moderate-comments-and-find-hashtags-with-instagram.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">Make Calls, Send Texts And Register Your Brand For SMS With Twilio</title><link href="https://apievangelist.com/2026/11/06/make-calls-send-texts-and-register-your-brand-for-sms-with-twilio/" rel="alternate" type="text/html" title="Make Calls, Send Texts And Register Your Brand For SMS With Twilio" /><published>2026-11-06T16:00:00+00:00</published><updated>2026-11-06T16:00:00+00:00</updated><id>https://apievangelist.com/2026/11/06/make-calls-send-texts-and-register-your-brand-for-sms-with-twilio</id><content type="html" xml:base="https://apievangelist.com/2026/11/06/make-calls-send-texts-and-register-your-brand-for-sms-with-twilio/"><![CDATA[<p>You want to text a customer when their order ships, call them back when a form is submitted, or put a small support desk behind one phone number without buying a phone system. None of that needs a telecoms company. It needs a service that software can ask to make the call or send the text, and that is what <a href="https://apis.io/providers/twilio/">Twilio</a> is. Its products are exposed through an API, a way for one program to instruct another, so your booking system, your help desk, a short script or an AI assistant can place a call or send a message on your behalf.</p>

<h2 id="what-twilio-does">What Twilio does</h2>

<p><a href="https://www.twilio.com/">Twilio</a> is a cloud communications platform providing APIs for SMS, voice, video, and authentication services. Twilio says it is used by over 10 million developers globally, with SDKs for Node.js, Python, Ruby, Java, PHP, C#, and Go. On APIs.io we track 55 separate APIs under the Twilio name, from the ones most people start with, like <a href="https://apis.io/apis/twilio/twilio-calls-api/">Calls</a> and <a href="https://apis.io/apis/twilio/twilio-accounts-api/">Accounts</a>, to narrower ones like <a href="https://apis.io/apis/twilio/twilio-alpha-senders-api/">Alpha Senders</a> and <a href="https://apis.io/apis/twilio/twilio-a2p-api/">A2P</a>.</p>

<h2 id="what-you-can-get-done">What you can get done</h2>

<p>We have mapped Twilio’s operations to 21 business capabilities. These are the four a business will reach for first.</p>

<h3 id="voice--telephony"><a href="https://apis.io/capabilities/voice-telephony/">Voice &amp; Telephony</a></h3>

<p>A call placed by software: your system dials the number, plays a message or connects a person, and records how it went. The largest everyday capability, with 51 operations.</p>

<ul>
  <li><code class="language-plaintext highlighter-rouge">POST /Accounts/{AccountSid}/Calls.json</code> makes an outbound call and tells Twilio what to do when it is answered, including detecting an answering machine.</li>
  <li><code class="language-plaintext highlighter-rouge">GET /Accounts/{AccountSid}/Calls.json</code> lists the calls you have made, filterable to a number, a date or only the ones that failed.</li>
  <li><code class="language-plaintext highlighter-rouge">GET /Accounts/{AccountSid}/Calls/{CallSid}.json</code> reads one call: how long it lasted and how it ended.</li>
  <li><code class="language-plaintext highlighter-rouge">POST /Accounts/{AccountSid}/Calls/{CallSid}.json</code> changes a live call, which is how you hang one up or redirect it mid-call.</li>
  <li><code class="language-plaintext highlighter-rouge">DELETE /Accounts/{AccountSid}/Calls/{CallSid}.json</code> removes an old call from your account’s log.</li>
</ul>

<h3 id="sms--messaging-apps"><a href="https://apis.io/capabilities/sms-messaging-apps/">SMS &amp; Messaging Apps</a></h3>

<p>Before a US business can send text messages through a regular ten-digit number, carriers require it to register as a brand, a process called A2P 10DLC. These operations handle that registration, and let your texts show a brand name instead of a number where that is allowed. There are 11 operations.</p>

<ul>
  <li><code class="language-plaintext highlighter-rouge">POST /v1/a2p/BrandRegistrations</code> registers your business as a brand so you can send texts in the US.</li>
  <li><code class="language-plaintext highlighter-rouge">GET /v1/a2p/BrandRegistrations/{Sid}</code> checks the approval status of a registration, and why one was rejected.</li>
  <li><code class="language-plaintext highlighter-rouge">POST /v1/a2p/BrandRegistrations/{Sid}</code> pushes a failed registration back through review after you fix your profile.</li>
  <li><code class="language-plaintext highlighter-rouge">POST /Services/{ServiceSid}/AlphaSenders</code> adds an alphanumeric sender ID, so messages arrive from your brand name.</li>
  <li><code class="language-plaintext highlighter-rouge">GET /Services/{ServiceSid}/AlphaSenders</code> lists the sender IDs attached to a messaging service.</li>
</ul>

<h3 id="contact-centre-operations-management"><a href="https://apis.io/capabilities/contact-centre-operations-management/">Contact Centre Operations Management</a></h3>

<p>Flex is Twilio’s contact centre product. A Flex Flow decides how an inbound contact reaches an agent, and a channel is one customer conversation in progress. This is the biggest capability by operation count, with 79 operations.</p>

<ul>
  <li><code class="language-plaintext highlighter-rouge">POST /FlexFlows</code> routes a new inbound channel into Flex, handing contacts to a workflow.</li>
  <li><code class="language-plaintext highlighter-rouge">GET /FlexFlows</code> lists the flows that decide how inbound contacts reach your agents.</li>
  <li><code class="language-plaintext highlighter-rouge">POST /FlexFlows/{FlexFlowSid}</code> switches a flow to a different setup, or disables it without deleting it.</li>
  <li><code class="language-plaintext highlighter-rouge">POST /Channels</code> starts a new chat channel when a customer reaches out, with any pre-engagement data.</li>
  <li><code class="language-plaintext highlighter-rouge">DELETE /Channels/{ChannelSid}</code> removes a channel once the conversation is over.</li>
</ul>

<h3 id="telecom-regulatory-compliance-management"><a href="https://apis.io/capabilities/telecom-regulatory-compliance-management/">Telecom Regulatory Compliance Management</a></h3>

<p>Many countries require identity and address documents before you can buy a phone number there. Twilio groups those documents into a regulatory bundle that goes for review. These operations, 31 in all, let software file and track the bundles.</p>

<ul>
  <li><code class="language-plaintext highlighter-rouge">POST /v2/RegulatoryCompliance/Bundles</code> starts a bundle for the country and number type you need.</li>
  <li><code class="language-plaintext highlighter-rouge">GET /v2/RegulatoryCompliance/Bundles</code> lists your bundles, including the ones still waiting on review or rejected.</li>
  <li><code class="language-plaintext highlighter-rouge">POST /v2/RegulatoryCompliance/Bundles/{Sid}</code> submits a draft bundle for review once it is complete.</li>
  <li><code class="language-plaintext highlighter-rouge">POST /v2/RegulatoryCompliance/Bundles/{BundleSid}/Copies</code> duplicates an approved bundle, documents included, as the starting point for a new one.</li>
</ul>

<h2 id="workflows-that-put-it-together">Workflows that put it together</h2>

<p>A workflow is a recipe: several API calls made in a set order, each using what the last one returned. They are written in Arazzo, an open format for describing them, and Twilio has 28 of them on APIs.io.</p>

<ul>
  <li><a href="https://apis.io/arazzos/twilio/twilio-lookup-phone-number-workflow/">Look Up a Phone Number</a> fetches the carrier, line type and caller name for a number before you use it.</li>
  <li><a href="https://apis.io/arazzos/twilio/twilio-create-conversation-add-participant-send-message-workflow/">Create a Conversation, Add a Participant, and Send a Message</a> stands up a thread, attaches an SMS participant and posts the first message.</li>
  <li><a href="https://apis.io/arazzos/twilio/twilio-conversation-reply-and-track-receipts-workflow/">Reply to a Conversation and Track Delivery Receipts</a> posts a reply and then lists the delivery receipts for it.</li>
  <li><a href="https://apis.io/arazzos/twilio/twilio-end-active-call-workflow/">Inspect a Call and Hang It Up If Live</a> fetches a call and ends it if it is still in progress.</li>
  <li><a href="https://apis.io/arazzos/twilio/twilio-conference-find-and-add-participant-workflow/">Find an In-Progress Conference and Add a Participant</a> finds a running conference and dials someone new into it.</li>
</ul>

<h2 id="ask-for-it-in-plain-language">Ask for it in plain language</h2>

<p>We have written conversational overlays for Twilio, a layer on top of its API descriptions that maps everyday questions to the operation that answers them, so an AI assistant knows which call to make. There are 115 of them, one per API. These are the kinds of questions they map:</p>

<ul>
  <li>“How do I make an outbound phone call and control what happens when it is answered?”</li>
  <li>“Which calls did we place to a particular phone number last month?”</li>
  <li>“How do I register my business as a brand before sending 10DLC texts in the US?”</li>
  <li>“How do I send SMS that shows my brand name instead of a phone number?”</li>
  <li>“Which of my regulatory bundles are still waiting on review or were rejected?”</li>
  <li>“How do I route a new inbound contact channel into Flex?”</li>
</ul>

<p>You can see one of them on the <a href="https://apis.io/overlays/twilio/twilio-a2p-api-phrasing-overlay/">A2P API phrasing overlay</a>.</p>

<h2 id="getting-started">Getting started</h2>

<p>Twilio is a paid, hosted service: you call their endpoint, and you pay for what you send and the numbers you hold. The <a href="https://www.twilio.com/docs">documentation</a> is organised by product, and the <a href="https://www.twilio.com/docs/iam/api/account">Account API</a> page is where credentials begin. On APIs.io you can browse the <a href="https://apis.io/providers/twilio/">Twilio profile</a>, the <a href="https://apis.io/apis/twilio/twilio-calls-api/">Calls API</a>, the <a href="https://apis.io/apis/twilio/twilio-a2p-api/">A2P API</a> and the <a href="https://apis.io/apis/twilio/twilio-alpha-senders-api/">Alpha Senders API</a>. If you are in the US and texting is the goal, start with the brand registration, because everything else waits on it.</p>]]></content><author><name>Kin Lane</name></author><category term="Provider Stories" /><category term="Twilio" /><category term="Voice &amp; Telephony" /><category term="SMS &amp; Messaging Apps" /><category term="Contact Centre Operations Management" /><category term="Telecom Regulatory Compliance Management" /><category term="Communications" /><category term="Telecommunications" /><summary type="html"><![CDATA[You want to text a customer when their order ships, call them back when a form is submitted, or put a small support desk behind one phone number without buying a phone system. None of that needs a telecoms company. It needs a service that software can ask to make the call or send the text, and that is what Twilio is. Its products are exposed through an API, a way for one program to instruct another, so your booking system, your help desk, a short script or an AI assistant can place a call or send a message on your behalf.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://kinlane-images.s3.amazonaws.com/apievangelist/api-evangelist-images/make-calls-send-texts-and-register-your-brand-for-sms-with-twilio.png" /><media:content medium="image" url="https://kinlane-images.s3.amazonaws.com/apievangelist/api-evangelist-images/make-calls-send-texts-and-register-your-brand-for-sms-with-twilio.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">OpenAI API Pricing: What Every Model Costs Per Million Tokens</title><link href="https://apievangelist.com/2026/11/06/openai-api-pricing-what-every-model-costs-per-million-tokens/" rel="alternate" type="text/html" title="OpenAI API Pricing: What Every Model Costs Per Million Tokens" /><published>2026-11-06T15:00:00+00:00</published><updated>2026-11-06T15:00:00+00:00</updated><id>https://apievangelist.com/2026/11/06/openai-api-pricing-what-every-model-costs-per-million-tokens</id><content type="html" xml:base="https://apievangelist.com/2026/11/06/openai-api-pricing-what-every-model-costs-per-million-tokens/"><![CDATA[<p>When people ask me what the OpenAI API costs, they usually want one number. There isn’t one. OpenAI sells its API on metered usage: you pay per million tokens, a token being roughly three quarters of a word, and the price depends on which model you call, whether the tokens go in or come out, and how fast you need the answer. I read <a href="https://developers.openai.com/api/docs/pricing">OpenAI’s pricing page</a> on November 5, 2026 and loaded every model’s price into the <a href="https://apis.io/providers/openai/#pricing">OpenAI profile on APIs.io</a>, and this is what it says.</p>

<h2 id="how-openai-charges">How OpenAI charges</h2>

<p>Three numbers matter for each model:</p>

<ul>
  <li><strong>Input tokens</strong>: what you send, meaning your prompt, instructions and any documents.</li>
  <li><strong>Output tokens</strong>: what the model writes back. Output always costs more than input, between four and eight times as much depending on the model.</li>
  <li><strong>Cached input tokens</strong>: input the API has seen recently and can reuse, billed at a tenth of the normal input price on the newest models and a quarter to a half on older ones like GPT-4.1 and GPT-4o Mini. If you send the same long instructions with every request, caching is where the savings are.</li>
</ul>

<p>There are no seat licences and no monthly subscription on the API itself. You are billed for what you use.</p>

<h2 id="what-the-current-models-cost">What the current models cost</h2>

<p>These are OpenAI’s standard prices per 1 million tokens for short-context requests:</p>

<table>
  <thead>
    <tr>
      <th>Model</th>
      <th>Input</th>
      <th>Output</th>
      <th>Cached input</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>GPT-6 Astra</td>
      <td>$10.00</td>
      <td>$50.00</td>
      <td>$1.00</td>
    </tr>
    <tr>
      <td>GPT-6.1 Sol</td>
      <td>$2.00</td>
      <td>$10.00</td>
      <td>$0.10</td>
    </tr>
    <tr>
      <td>GPT-6.1 Terra</td>
      <td>$1.00</td>
      <td>$5.00</td>
      <td>$0.05</td>
    </tr>
    <tr>
      <td>GPT-6 Luna</td>
      <td>$0.10</td>
      <td>$0.50</td>
      <td>$0.01</td>
    </tr>
    <tr>
      <td>GPT-5.6 Sol</td>
      <td>$4.00</td>
      <td>$20.00</td>
      <td>$0.40</td>
    </tr>
    <tr>
      <td>GPT-5.5</td>
      <td>$5.00</td>
      <td>$30.00</td>
      <td>$0.50</td>
    </tr>
    <tr>
      <td>GPT-5</td>
      <td>$1.25</td>
      <td>$10.00</td>
      <td>$0.125</td>
    </tr>
    <tr>
      <td>GPT-5 Mini</td>
      <td>$0.25</td>
      <td>$2.00</td>
      <td>$0.025</td>
    </tr>
    <tr>
      <td>GPT-5 Nano</td>
      <td>$0.05</td>
      <td>$0.40</td>
      <td>$0.005</td>
    </tr>
    <tr>
      <td>GPT-4.1</td>
      <td>$2.00</td>
      <td>$8.00</td>
      <td>$0.50</td>
    </tr>
    <tr>
      <td>GPT-4o Mini</td>
      <td>$0.15</td>
      <td>$0.60</td>
      <td>$0.075</td>
    </tr>
    <tr>
      <td>o3</td>
      <td>$2.00</td>
      <td>$8.00</td>
      <td>$0.50</td>
    </tr>
  </tbody>
</table>

<p>The table above is twelve of the twenty-seven models OpenAI lists. The <a href="https://apis.io/plans/openai/openai-plans-pricing/">full list with every model is on APIs.io</a>. Two things stand out to me. First, the newest generation is not the most expensive one: GPT-6.1 Sol costs half what GPT-5.6 Sol does. Second, the spread is enormous. GPT-6 Astra costs 125 times more per output token than GPT-5 Nano, so choosing the model is the biggest pricing decision you will make.</p>

<p>Long prompts cost more. On the newest models the long-context input rate is double the short-context rate, so GPT-6.1 Sol goes from $2.00 to $4.00 per million input tokens, and output rises by half, from $10.00 to $15.00. Several GPT-5.x models switch to the higher price once a request passes 272,000 tokens.</p>

<h2 id="paying-less-or-more-for-speed">Paying less, or more, for speed</h2>

<p>The same model has different prices depending on how quickly you need the answer:</p>

<ul>
  <li><strong>Batch</strong> and <strong>Flex</strong> cost half the standard rate. Batch is for work you can submit now and collect later, like classifying a backlog of support tickets overnight. GPT-6.1 Sol drops to $1.00 input and $5.00 output.</li>
  <li><strong>Fast</strong> costs twice the standard rate: $4.00 input and $20.00 output for GPT-6.1 Sol.</li>
  <li><strong>Ultrafast</strong> costs six times standard: $12.00 input and $60.00 output for GPT-6.1 Sol.</li>
</ul>

<p>If your users are not waiting on the response, Batch is the easiest saving available.</p>

<h2 id="tools-are-billed-on-top">Tools are billed on top</h2>

<p>Built-in tools add their own charges. Web search is $10.00 per 1,000 calls, plus the retrieved search content billed as tokens at the model’s rate. File search is $2.50 per 1,000 calls. Tokens the tools use are billed at the model you chose. OpenAI’s page says the Responses, Chat Completions, Realtime, Batch and Assistants APIs are not priced separately; you pay for the model’s tokens either way.</p>

<h2 id="working-out-what-you-will-spend">Working out what you will spend</h2>

<p>A rough method that works for most teams:</p>

<ol>
  <li>Measure a typical request: how many tokens go in and how many come out.</li>
  <li>Multiply by your expected monthly volume.</li>
  <li>Price it on two or three models from the table, because a smaller model is often good enough.</li>
  <li>Take off the cached share of your input and anything you can move to Batch.</li>
</ol>

<p>Your account also has spending and rate limits that rise as you pay more over time. OpenAI explains the tiers in its <a href="https://developers.openai.com/api/docs/guides/rate-limits">rate limits guide</a>, and the <a href="https://apis.io/rate-limits/openai/openai-rate-limits/">rate limits on APIs.io</a> summarise them.</p>

<h2 id="keeping-up-with-changes">Keeping up with changes</h2>

<p>OpenAI moves its prices often. Our previous record, from September, ended at GPT-5.6 and listed three models that are no longer on the page. So check the date on any price you read, including mine. The <a href="https://apis.io/providers/openai/#pricing">OpenAI pricing section on APIs.io</a> shows when each price was last read from OpenAI’s page, next to its <a href="https://apis.io/providers/openai/">Kin Score</a> and the 16 OpenAI APIs we track. If you are comparing providers, the same section exists for every provider we have pricing for.</p>]]></content><author><name>Kin Lane</name></author><category term="OpenAI" /><category term="Pricing" /><category term="Artificial Intelligence" /><category term="Large Language Models" /><summary type="html"><![CDATA[When people ask me what the OpenAI API costs, they usually want one number. There isn’t one. OpenAI sells its API on metered usage: you pay per million tokens, a token being roughly three quarters of a word, and the price depends on which model you call, whether the tokens go in or come out, and how fast you need the answer. I read OpenAI’s pricing page on November 5, 2026 and loaded every model’s price into the OpenAI profile on APIs.io, and this is what it says.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://kinlane-images.s3.amazonaws.com/apievangelist/api-evangelist-images/openai-api-pricing-what-every-model-costs-per-million-tokens.png" /><media:content medium="image" url="https://kinlane-images.s3.amazonaws.com/apievangelist/api-evangelist-images/openai-api-pricing-what-every-model-costs-per-million-tokens.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">Publish Offers, Ship Orders And Print Shipping Labels With eBay</title><link href="https://apievangelist.com/2026/11/06/publish-offers-ship-orders-and-print-shipping-labels-with-ebay/" rel="alternate" type="text/html" title="Publish Offers, Ship Orders And Print Shipping Labels With eBay" /><published>2026-11-06T14:00:00+00:00</published><updated>2026-11-06T14:00:00+00:00</updated><id>https://apievangelist.com/2026/11/06/publish-offers-ship-orders-and-print-shipping-labels-with-ebay</id><content type="html" xml:base="https://apievangelist.com/2026/11/06/publish-offers-ship-orders-and-print-shipping-labels-with-ebay/"><![CDATA[<p>You sell on eBay, and the selling part is fine. It is everything around it that eats the week: keying the same listing in for the third time, marking orders shipped one by one, buying labels, and keeping the return policy on every listing in step with the one on your website. If your inventory already lives in a spreadsheet, a point-of-sale system or an online store, all of that can be done for you. <a href="https://apis.io/providers/ebay/">eBay</a> exposes its selling tools through an API, which is a way for one piece of software to talk to another, so your existing systems, a script, or an AI assistant can publish, ship and reconcile on your behalf.</p>

<h2 id="what-ebay-does">What eBay does</h2>

<p>eBay is a multinational e-commerce corporation that operates a website facilitating consumer-to-consumer and business-to-consumer sales through its online platform. Users can buy and sell a wide range of products, including electronics, fashion, collectibles, and more, in an auction-style or buy-it-now format. On APIs.io we track 25 separate APIs under the <a href="https://ebay.com">eBay</a> name, each one covering a narrow slice of the marketplace: the <a href="https://apis.io/apis/ebay/ebay-category-tree-api/">Category Tree</a>, <a href="https://apis.io/apis/ebay/ebay-bidding-api/">Bidding</a>, <a href="https://apis.io/apis/ebay/ebay-custom-policy-api/">Custom Policy</a> and <a href="https://apis.io/apis/ebay/ebay-destination-api/">Destination</a> APIs among them.</p>

<h2 id="what-you-can-get-done">What you can get done</h2>

<p>We have mapped eBay’s operations to 13 business capabilities. These are the five a seller will reach for first.</p>

<h3 id="marketplace-seller-operations-management"><a href="https://apis.io/capabilities/marketplace-seller-operations-management/">Marketplace Seller Operations Management</a></h3>

<p>An offer on eBay is the thing a buyer sees: an item from your inventory, with a price, a quantity and the marketplace it is published to. Creating offers through the API is how a catalogue of hundreds of products gets onto eBay without anyone retyping it. There are 12 operations here.</p>

<ul>
  <li><code class="language-plaintext highlighter-rouge">POST /offer</code> creates an offer for one inventory item, with its price, listing format and policies.</li>
  <li><code class="language-plaintext highlighter-rouge">POST /bulk_create_offer</code> creates many offers in one call, which is the one you want for a full catalogue.</li>
  <li><code class="language-plaintext highlighter-rouge">POST /bulk_publish_offer</code> publishes a batch of offers so they go live as listings.</li>
  <li><code class="language-plaintext highlighter-rouge">GET /offer</code> lists the offers you already have, so you can see what is published and what is still a draft.</li>
  <li><code class="language-plaintext highlighter-rouge">PUT /offer/{offerId}</code> updates an existing offer, for example to change a price across the board.</li>
</ul>

<h3 id="order-fulfilment-management"><a href="https://apis.io/capabilities/order-fulfilment-management/">Order Fulfilment Management</a></h3>

<p>Once an order comes in, the buyer wants to know it has shipped. A fulfilment is eBay’s record of that: the carrier, the tracking number and the items in the box. Fulfilment policies are the reusable rules about handling time and shipping options that you attach to listings. Twelve operations cover both.</p>

<ul>
  <li><code class="language-plaintext highlighter-rouge">POST /order/{orderId}/shipping_fulfillment</code> marks an order as shipped, with the tracking number, so the buyer is told automatically.</li>
  <li><code class="language-plaintext highlighter-rouge">GET /order/{orderId}/shipping_fulfillment</code> lists the fulfilments already recorded against an order.</li>
  <li><code class="language-plaintext highlighter-rouge">POST /fulfillment_policy/</code> creates a reusable shipping and handling policy.</li>
  <li><code class="language-plaintext highlighter-rouge">PUT /fulfillment_policy/{fulfillmentPolicyId}</code> changes one, which then flows through to every listing using it.</li>
  <li><code class="language-plaintext highlighter-rouge">GET /fulfillment_policy</code> lists the policies you have so you know which to attach where.</li>
</ul>

<h3 id="logistics-operations-management"><a href="https://apis.io/capabilities/logistics-operations-management/">Logistics Operations Management</a></h3>

<p>This is the shipping label itself. You ask for a quote across carriers, pick one, and download a label to print, all from the same system that just marked the order shipped.</p>

<ul>
  <li><code class="language-plaintext highlighter-rouge">POST /shipping_quote</code> asks for shipping rates for a package going to a buyer.</li>
  <li><code class="language-plaintext highlighter-rouge">GET /shipping_quote/{shippingQuoteId}</code> reads the quote back, with the carrier options it returned.</li>
  <li><code class="language-plaintext highlighter-rouge">POST /shipment/create_from_shipping_quote</code> buys the label against one of those options.</li>
  <li><code class="language-plaintext highlighter-rouge">GET /shipment/{shipmentId}/download_label_file</code> downloads the label file to print.</li>
  <li><code class="language-plaintext highlighter-rouge">POST /shipment/{shipmentId}/cancel</code> cancels a shipment you created by mistake.</li>
</ul>

<h3 id="item-master-data-management"><a href="https://apis.io/capabilities/item-master-data-management/">Item Master Data Management</a></h3>

<p>Every listing has to sit in an eBay category, and each category expects certain details, which eBay calls aspects, such as brand, size or colour. Getting those right is what makes a listing findable. These operations let software look up the category and its required details before it creates the offer.</p>

<ul>
  <li><code class="language-plaintext highlighter-rouge">GET /get_default_category_tree_id</code> finds the category tree for a marketplace, since the UK and US trees differ.</li>
  <li><code class="language-plaintext highlighter-rouge">GET /category_tree/{category_tree_id}/get_category_suggestions</code> suggests categories from a plain description of the item.</li>
  <li><code class="language-plaintext highlighter-rouge">GET /category_tree/{category_tree_id}/get_item_aspects_for_category</code> tells you which details a category requires.</li>
  <li><code class="language-plaintext highlighter-rouge">GET /product/{epid}</code> reads an eBay catalogue product, so you can list against an existing product record.</li>
</ul>

<h3 id="post-purchase"><a href="https://apis.io/capabilities/post-purchase/">Post-Purchase</a></h3>

<p>Return policies are the rules you promise buyers about returns, and like fulfilment policies they are reusable across listings.</p>

<ul>
  <li><code class="language-plaintext highlighter-rouge">POST /return_policy</code> creates a return policy.</li>
  <li><code class="language-plaintext highlighter-rouge">GET /return_policy</code> lists the ones you have.</li>
  <li><code class="language-plaintext highlighter-rouge">PUT /return_policy/{return_policy_id}</code> changes a policy everywhere it is used.</li>
  <li><code class="language-plaintext highlighter-rouge">GET /return_policy/get_by_policy_name</code> finds a policy by the name you gave it.</li>
</ul>

<h2 id="getting-started">Getting started</h2>

<p>eBay’s API is a paid, self-serve product, meaning you sign up for a developer account yourself and start building. The documentation is split by area, and the seller-facing parts are the ones above: the <a href="https://developer.ebay.com/api-docs/sell/account/static/overview.html">Account API overview</a> covers policies, and the <a href="https://developer.ebay.com/api-docs/sell/analytics/static/overview.html">Analytics API overview</a> covers seller performance. I could not find Arazzo workflows or conversational phrasing overlays for eBay on APIs.io yet, so for now the operations are the map. On APIs.io you can browse the <a href="https://apis.io/providers/ebay/">eBay profile</a>, the <a href="https://apis.io/apis/ebay/ebay-category-tree-api/">Category Tree API</a>, the <a href="https://apis.io/apis/ebay/ebay-deal-item-api/">Deal Item API</a> and the <a href="https://apis.io/apis/ebay/ebay-destination-api/">Destination API</a>. Start with whichever of the three chores, listing, shipping or labels, your team does by hand most often, and have that one done for you first.</p>]]></content><author><name>Kin Lane</name></author><category term="Provider Stories" /><category term="eBay" /><category term="Marketplace Seller Operations Management" /><category term="Order Fulfilment Management" /><category term="Logistics Operations Management" /><category term="Item Master Data Management" /><category term="Marketplace" /><category term="Commerce" /><summary type="html"><![CDATA[You sell on eBay, and the selling part is fine. It is everything around it that eats the week: keying the same listing in for the third time, marking orders shipped one by one, buying labels, and keeping the return policy on every listing in step with the one on your website. If your inventory already lives in a spreadsheet, a point-of-sale system or an online store, all of that can be done for you. eBay exposes its selling tools through an API, which is a way for one piece of software to talk to another, so your existing systems, a script, or an AI assistant can publish, ship and reconcile on your behalf.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://kinlane-images.s3.amazonaws.com/apievangelist/api-evangelist-images/publish-offers-ship-orders-and-print-shipping-labels-with-ebay.png" /><media:content medium="image" url="https://kinlane-images.s3.amazonaws.com/apievangelist/api-evangelist-images/publish-offers-ship-orders-and-print-shipping-labels-with-ebay.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">Agents Will Not Look For An SDK Generator, They Will Look For A Problem To Solve</title><link href="https://apievangelist.com/2026/11/06/agents-will-not-look-for-an-sdk-generator-they-will-look-for-a-problem-to-solve/" rel="alternate" type="text/html" title="Agents Will Not Look For An SDK Generator, They Will Look For A Problem To Solve" /><published>2026-11-06T00:00:00+00:00</published><updated>2026-11-06T00:00:00+00:00</updated><id>https://apievangelist.com/2026/11/06/agents-will-not-look-for-an-sdk-generator-they-will-look-for-a-problem-to-solve</id><content type="html" xml:base="https://apievangelist.com/2026/11/06/agents-will-not-look-for-an-sdk-generator-they-will-look-for-a-problem-to-solve/"><![CDATA[<p>Yesterday I wrote that <a href="https://apievangelist.com/2026/11/05/the-client-stack-did-not-collapse-it-went-dark/">the client stack did not collapse, it went dark</a>. An agent reads the docs, explores, writes a small SDK for the three operations it needs, and wires it into the task, all inside one context window that closes when the job is done. The SDK layer was the one that worried me most, because the agent writes it from what the model remembers, frozen at a training cutoff nobody can see.</p>

<p>Lubos from <a href="https://heyapi.dev/">Hey API</a> replied on LinkedIn: “writes a small SDK for the three operations it needs, if only there was a tool that does this without all the downsides you list.” He is right, and it is worth taking seriously, because it points at something I have been trying to articulate in conversations with Bruno Perez at <a href="https://www.okapi.bot/">Okapi</a> and with a few others building on the consumer side of APIs.</p>

<h2 id="the-tool-already-exists">The tool already exists</h2>

<p>Hey API is an open source generator that turns an OpenAPI into a typed client, with validators, query hooks and a long list of plugins. The part that matters for this conversation is a parser filter that includes or excludes operations by key. You do not have to generate the whole SDK. You can generate exactly the operations a task needs, from the provider’s current contract, and get the same output every time.</p>

<p>I wanted to know if that works against what APIs.io publishes today, so I tried it. I started from a business problem rather than an API: rotating the API keys an application uses to talk to Twilio. APIs.io maps Twilio’s published APIs to business capabilities, and that problem lands on “Developer Identity &amp; Credential Management,” which points at a specific contract, the Twilio Accounts Keys API. Five operations. The task needs three of them: list the keys, create a new one, delete the old one.</p>

<div class="language-js highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="k">export</span> <span class="k">default</span> <span class="p">{</span>
  <span class="na">input</span><span class="p">:</span> <span class="dl">'</span><span class="s1">https://artifacts.apis.io/twilio/openapi/twilio-keys-api-openapi.yml</span><span class="dl">'</span><span class="p">,</span>
  <span class="na">output</span><span class="p">:</span> <span class="dl">'</span><span class="s1">src/twilio-keys</span><span class="dl">'</span><span class="p">,</span>
  <span class="na">parser</span><span class="p">:</span> <span class="p">{</span>
    <span class="na">filters</span><span class="p">:</span> <span class="p">{</span>
      <span class="na">operations</span><span class="p">:</span> <span class="p">{</span>
        <span class="na">include</span><span class="p">:</span> <span class="p">[</span>
          <span class="dl">'</span><span class="s1">GET /Accounts/{AccountSid}/Keys.json</span><span class="dl">'</span><span class="p">,</span>
          <span class="dl">'</span><span class="s1">POST /Accounts/{AccountSid}/Keys.json</span><span class="dl">'</span><span class="p">,</span>
          <span class="dl">'</span><span class="s1">DELETE /Accounts/{AccountSid}/Keys/{KeySid}.json</span><span class="dl">'</span><span class="p">,</span>
        <span class="p">],</span>
      <span class="p">},</span>
    <span class="p">},</span>
  <span class="p">},</span>
  <span class="na">plugins</span><span class="p">:</span> <span class="p">[</span><span class="dl">'</span><span class="s1">@hey-api/client-fetch</span><span class="dl">'</span><span class="p">,</span> <span class="dl">'</span><span class="s1">@hey-api/sdk</span><span class="dl">'</span><span class="p">,</span> <span class="dl">'</span><span class="s1">zod</span><span class="dl">'</span><span class="p">],</span>
<span class="p">};</span>
</code></pre></div></div>

<p>One command later I had a typed client with <code class="language-plaintext highlighter-rouge">listKeys</code>, <code class="language-plaintext highlighter-rouge">createKey</code> and <code class="language-plaintext highlighter-rouge">deleteKey</code>, the security scheme and base URL taken from the contract, Zod schemas for the payloads, and nothing for the two operations the task did not need. It compiled cleanly. The input was an OpenAPI 3.2 document that we host, and the generator read it without complaint.</p>

<p>That is the small SDK from my post, minus the downsides. The version is no longer invisible, because it is the contract it was generated from. And there is an artifact again, a folder of files you can commit, diff and review. The dark layer has a light switch.</p>

<h2 id="the-agent-still-will-not-know-it-exists">The agent still will not know it exists</h2>

<p>Here is the problem I raised with Bruno, and it applies to Hey API, to Okapi and to every tool like them. An agent in the middle of a task is not looking for an SDK generator. It does not know Hey API exists, and it is not going to go looking. It is trying to solve a business problem or an engineering problem: rotate these keys, reconcile these payments, provision this number. If nothing in front of it says “there is a better way to get the client for this,” it will do what it does today and write one from memory.</p>

<p>So the question is not whether the tooling exists. It does. The question is where the agent encounters it. I think the answer is the place the agent already goes to solve the problem, which is discovery. That is the job I want APIs.io to do.</p>

<h2 id="what-i-want-apisio-to-provide">What I want APIs.io to provide</h2>

<p>I want the path to start from the problem and end in something executable, with the artifacts in between doing the work:</p>

<ul>
  <li><strong>The problem.</strong> Business capabilities and the phrasing people actually use, “rotate my API keys,” mapped to the APIs that can do it. We already publish capabilities, the edges to the contracts behind them, and conversational phrasing for operations.</li>
  <li><strong>The bundle.</strong> Whatever the generator needs to do the job well, simple or complex. For the key rotation, that’s one OpenAPI and three operation keys. For something bigger it is an application blueprint, the capabilities involved, the OpenAPI and AsyncAPI contracts, and an Arazzo workflow that says what order the calls go in. We hold all of those artifacts. They are not yet packaged as a bundle that a generator can take as one input.</li>
  <li><strong>The semantics on the page.</strong> Plain statements an agent can read that say: this bundle exists, this is the purpose it serves, and this is how to turn it into a client or a skill. Not a marketing paragraph. Machine-readable pointers, written so an agent that arrived with a problem leaves with a way to execute it.</li>
  <li><strong>The handoff.</strong> A link to the executable path: Hey API to generate the client, Okapi to keep it from breaking when the provider changes, or another generator that turns the same bundle into an agent skill. APIs.io is the place to discover. It shouldn’t be the place that generates.</li>
</ul>

<p>That last line is the important one. I don’t want to build the generator. Hey API is better at generating clients than we will ever be, and Okapi is closer to the consuming code than we will ever be. What we can do is make sure the bundle is right, that it is the provider’s actual contract, versioned and scored, and that the agent finds it at the moment it needs it.</p>

<h2 id="clients-sdks-and-skills-from-more-than-openapi">Clients, SDKs and skills from more than OpenAPI</h2>

<p>The example above is the simplest case. One contract, three operations. The next generation of this is more interesting, and it’s the part I want partners to push on. Generate the client from the capability and the workflow, not just the operations. An Arazzo workflow already describes the sequence: list keys, create the new key, swap it into the application, delete the old one. A generator that reads the Arazzo alongside the OpenAPI could emit the rotation as one function, not three. A generator that reads the AsyncAPI could wire up the events that confirm it worked. The same bundle could produce a TypeScript client for a developer, a Python client for a data team, or a skill for an agent, each pinned to the same contract version.</p>

<p>That is the stack coming back out of the dark. Not as twelve hand-built layers, but as artifacts on one side, executable output on the other, and a record of which contract version produced which client.</p>

<h2 id="what-we-still-have-to-work-out">What we still have to work out</h2>

<p>Two things, and I don’t have the answers yet.</p>

<p>The first is discovery. How does a page on APIs.io tell an agent, in a way it will act on, that a bundle exists for its problem and a generator is one link away? Some of it is semantics we already know how to publish. Some of it is whatever conventions agents settle into for finding tools, which is still moving.</p>

<p>The second is economics. If APIs.io sends an agent to Hey API or Okapi, and that agent generates a client that ends up in production, who captured value, and how does it flow back to the people keeping the contracts accurate and the tools working? I would rather work that out in the open with the partners doing the work than invent it alone.</p>

<p>If you are building generators, gateways or agent tooling and this is the problem you are working on, I would like to talk. Lubos, thanks for the nudge. The tool was already there. The work now is making sure the agent finds it.</p>]]></content><author><name>Kin Lane</name></author><category term="SDKs" /><category term="Clients" /><category term="Agents" /><category term="Code Generation" /><category term="OpenAPI" /><category term="Capabilities" /><category term="Discovery" /><category term="APIs.io" /><summary type="html"><![CDATA[Yesterday I wrote that the client stack did not collapse, it went dark. An agent reads the docs, explores, writes a small SDK for the three operations it needs, and wires it into the task, all inside one context window that closes when the job is done. The SDK layer was the one that worried me most, because the agent writes it from what the model remembers, frozen at a training cutoff nobody can see.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://kinlane-images.s3.amazonaws.com/apievangelist/api-evangelist-images/agents-will-not-look-for-an-sdk-generator-they-will-look-for-a-problem-to-solve.png" /><media:content medium="image" url="https://kinlane-images.s3.amazonaws.com/apievangelist/api-evangelist-images/agents-will-not-look-for-an-sdk-generator-they-will-look-for-a-problem-to-solve.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">Grade An API From Zero To One Hundred And Check Which Dimensions Were Actually Scored</title><link href="https://apievangelist.com/2026/11/06/grade-an-api-from-zero-to-one-hundred-and-check-which-dimensions-were-actually-scored/" rel="alternate" type="text/html" title="Grade An API From Zero To One Hundred And Check Which Dimensions Were Actually Scored" /><published>2026-11-06T00:00:00+00:00</published><updated>2026-11-06T00:00:00+00:00</updated><id>https://apievangelist.com/2026/11/06/grade-an-api-from-zero-to-one-hundred-and-check-which-dimensions-were-actually-scored</id><content type="html" xml:base="https://apievangelist.com/2026/11/06/grade-an-api-from-zero-to-one-hundred-and-check-which-dimensions-were-actually-scored/"><![CDATA[<p>A lint report is a list. Two hundred and forty-two diagnostics on a three-operation Petstore is accurate and useless to the person who has to decide whether the API is ready. What they want is one number, a letter, and a breakdown they can argue with. That’s <code class="language-plaintext highlighter-rouge">api_scorecard</code> on the API Evangelist MCP server, backed by <code class="language-plaintext highlighter-rouge">POST /governance/scorecard</code> on the API Evangelist API. You give it an API description and it rolls up a 0-100 maturity score with a grade across design, governance coverage and documentation, and, if you also hand it an APIs.json, three more dimensions for discoverability, agent-readiness and operations. It’s free. I ran it six ways, and two of the runs showed me bugs in my own tool, which is the part of this post I’d read first.</p>

<h2 id="what-i-gave-it">What I gave it</h2>

<p>The base input is the same <a href="https://raw.githubusercontent.com/OAI/learn.openapis.org/main/examples/v3.0/petstore.yaml">Petstore example</a> the OpenAPI Initiative publishes in its learning materials, the one I <a href="https://apievangelist.com/2026/10/29/lint-an-openapi-and-find-out-which-rules-decide-if-it-passes/">linted last week with <code class="language-plaintext highlighter-rouge">validate_api</code></a>. Three operations, clean, and missing the things teaching examples leave out. I scored it four ways: on its own against the default rule catalog, with <code class="language-plaintext highlighter-rouge">"profile": "owasp"</code>, with a two-rule custom <code class="language-plaintext highlighter-rouge">ruleset</code> of my own (require <code class="language-plaintext highlighter-rouge">info.description</code>, require <code class="language-plaintext highlighter-rouge">info.contact</code>), and with the <a href="https://apis.io/apis.json">apis.io APIs.json</a> passed alongside it as <code class="language-plaintext highlighter-rouge">apisJson</code> so the second trio of dimensions would light up.</p>

<p>Then I gave it a production contract for contrast: the <a href="https://developer.apievangelist.com/apis/apievangelist-v1-openapi.yml">API Evangelist v1 OpenAPI</a>, 180 KB and 77 operations, the contract behind the very API this tool runs on.</p>

<h2 id="what-came-back">What came back</h2>

<p>The Petstore on its own scores 87, a B:</p>

<div class="language-json highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="p">{</span><span class="nl">"overall"</span><span class="p">:</span><span class="w"> </span><span class="mi">87</span><span class="p">,</span><span class="w"> </span><span class="nl">"grade"</span><span class="p">:</span><span class="w"> </span><span class="s2">"B"</span><span class="p">,</span><span class="w">
 </span><span class="nl">"dimensions"</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="w">
  </span><span class="p">{</span><span class="nl">"name"</span><span class="p">:</span><span class="w"> </span><span class="s2">"Design &amp; style"</span><span class="p">,</span><span class="w"> </span><span class="nl">"score"</span><span class="p">:</span><span class="w"> </span><span class="mi">97</span><span class="p">,</span><span class="w"> </span><span class="nl">"weight"</span><span class="p">:</span><span class="w"> </span><span class="mf">0.25</span><span class="p">,</span><span class="w">
   </span><span class="nl">"detail"</span><span class="p">:</span><span class="w"> </span><span class="s2">"0 errors, 8 warnings over 31 governed nodes (0.3 warnings/node)"</span><span class="p">},</span><span class="w">
  </span><span class="p">{</span><span class="nl">"name"</span><span class="p">:</span><span class="w"> </span><span class="s2">"Governance coverage"</span><span class="p">,</span><span class="w"> </span><span class="nl">"score"</span><span class="p">:</span><span class="w"> </span><span class="mi">100</span><span class="p">,</span><span class="w"> </span><span class="nl">"weight"</span><span class="p">:</span><span class="w"> </span><span class="mf">0.15</span><span class="p">,</span><span class="w">
   </span><span class="nl">"detail"</span><span class="p">:</span><span class="w"> </span><span class="s2">"100% of the description is inspected by the ruleset"</span><span class="p">},</span><span class="w">
  </span><span class="p">{</span><span class="nl">"name"</span><span class="p">:</span><span class="w"> </span><span class="s2">"Documentation"</span><span class="p">,</span><span class="w"> </span><span class="nl">"score"</span><span class="p">:</span><span class="w"> </span><span class="mi">64</span><span class="p">,</span><span class="w"> </span><span class="nl">"weight"</span><span class="p">:</span><span class="w"> </span><span class="mf">0.2</span><span class="p">,</span><span class="w">
   </span><span class="nl">"detail"</span><span class="p">:</span><span class="w"> </span><span class="s2">"2/5 info fields, 100% of operations described"</span><span class="p">,</span><span class="w">
   </span><span class="nl">"missing"</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="s2">"description"</span><span class="p">,</span><span class="w"> </span><span class="s2">"contact"</span><span class="p">,</span><span class="w"> </span><span class="s2">"tags"</span><span class="p">]}]}</span><span class="w">
</span></code></pre></div></div>

<p>Three things to notice. The design score is the lint result turned into a density, warnings per governed node, which is why eight warnings on a tiny document still lands at 97. Governance coverage is how much of the document the ruleset actually looked at, and the catalog’s 469 rules reach all of it. Documentation is the honest one: the Petstore has a title and a version, no description, no contact, no tags, and every operation has a summary. The weights only add up to 0.6 because the three APIs.json dimensions aren’t there, and the overall is renormalized over what was measured. Do the arithmetic and 86.75 rounds to 87.</p>

<p>Adding the apis.io APIs.json drops the Petstore to 65, a D, and this is the first bug. The new dimensions came back as discoverability 40 (missing Pricing/Plans, Terms of Service, Support), agent-readiness 33 (missing MCP server, llms.txt / agents.md) and operations 25 (missing Deprecation policy, SLA, Security / VDP). The problem is that the apis.io APIs.json carries nearly all of those in its root <code class="language-plaintext highlighter-rouge">common</code> block: <code class="language-plaintext highlighter-rouge">Plans</code>, <code class="language-plaintext highlighter-rouge">Pricing</code>, <code class="language-plaintext highlighter-rouge">TermsOfService</code>, <code class="language-plaintext highlighter-rouge">Support</code>, <code class="language-plaintext highlighter-rouge">MCPServer</code>, <code class="language-plaintext highlighter-rouge">LLMsTxt</code>, <code class="language-plaintext highlighter-rouge">Deprecation</code>, <code class="language-plaintext highlighter-rouge">Security</code>, <code class="language-plaintext highlighter-rouge">SecurityTxt</code> and <code class="language-plaintext highlighter-rouge">VulnerabilityDisclosure</code> are all present with URLs. Only the SLA is genuinely absent. The scorecard isn’t reading <code class="language-plaintext highlighter-rouge">common</code>, or isn’t matching those property names, and it’s marking a well-described catalog as poorly described. That is a defect in the scorecard, not in apis.io, and it will be fixed.</p>

<p>The OWASP profile changed nothing. The result was byte-for-byte identical to the default run, 97 on design with the same eight warnings, when <code class="language-plaintext highlighter-rouge">validate_api</code> against the same profile reports two errors (plaintext <code class="language-plaintext highlighter-rouge">http://</code> server, no security schemes). The scorecard accepts <code class="language-plaintext highlighter-rouge">profile</code> and ignores it. My own two-rule <code class="language-plaintext highlighter-rouge">ruleset</code> did work, and it’s instructive: design fell to 94 with two errors, but governance coverage collapsed to 3%, because two rules that only look at <code class="language-plaintext highlighter-rouge">$.info</code> inspect three percent of the document, and the overall landed at 61, a D. That’s the point of the description’s warning that a score against rules you never adopted means little. The coverage dimension is there so a narrow ruleset can’t buy a high score.</p>

<p>The production contract is the second bug, and the bigger one. The API Evangelist v1 OpenAPI came back 100, an A, with only two dimensions in the list: governance coverage 100 and documentation 100. The design dimension was gone. When I ran <code class="language-plaintext highlighter-rouge">validate_api</code> on the same document directly, it failed outright:</p>

<div class="language-json highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="p">{</span><span class="nl">"error"</span><span class="p">:</span><span class="w"> </span><span class="s2">"bad_request"</span><span class="p">,</span><span class="w">
 </span><span class="nl">"message"</span><span class="p">:</span><span class="w"> </span><span class="s2">"Lint failed: jsonPath: func is not a function: @property.match(/Cache-Control|Expires/i)"</span><span class="p">}</span><span class="w">
</span></code></pre></div></div>

<p>A catalog rule uses a JSONPath filter the engine doesn’t support, the lint step throws on this document, and the scorecard swallows the failure, drops the dimension and renormalizes the rest to a perfect score. An A with no lint is not an A. It should either surface the failure or score the dimension as unknown with the overall marked partial, and the rule itself needs fixing. Both are on the list.</p>

<h2 id="what-that-makes-possible">What that makes possible</h2>

<ul>
  <li><strong>Put a grade in the pull request instead of a diagnostics dump.</strong> One call returns a number a reviewer can read, with the dimension that moved it. Lint stays where it belongs, in the detail.</li>
  <li><strong>Score against the rules you actually adopted.</strong> Pass your own <code class="language-plaintext highlighter-rouge">ruleset</code> and the design dimension reflects your style guide, while coverage tells you how much of the contract those rules even reach. A ruleset that inspects three percent of the document shows up as three percent.</li>
  <li><strong>Measure the whole product, not just the contract.</strong> With an APIs.json alongside, discoverability, agent-readiness and operations join the rollup, which is the difference between an API that is well designed and one that someone can find, pay for and trust. Once the <code class="language-plaintext highlighter-rouge">common</code> reader is fixed, that’s six dimensions from two files.</li>
  <li><strong>Check the dimensions, every time.</strong> The one habit this run teaches an agent or a pipeline: count the <code class="language-plaintext highlighter-rouge">dimensions</code> array before trusting <code class="language-plaintext highlighter-rouge">overall</code>. Three or six is the expected shape. Two means something was skipped.</li>
</ul>

<h2 id="try-it">Try it</h2>

<p>It’s free. On the MCP server at <code class="language-plaintext highlighter-rouge">https://mcp.apievangelist.com/mcp</code> (or the lighter governance toolset at <code class="language-plaintext highlighter-rouge">https://mcp.apievangelist.com/mcp/governance</code>), call <code class="language-plaintext highlighter-rouge">api_scorecard</code> with <code class="language-plaintext highlighter-rouge">document</code> set to the OpenAPI text, optionally <code class="language-plaintext highlighter-rouge">ruleset</code> for your own rules and <code class="language-plaintext highlighter-rouge">apisJson</code> for the second set of dimensions. Over REST:</p>

<div class="language-sh highlighter-rouge"><div class="highlight"><pre class="highlight"><code>curl <span class="nt">-X</span> POST https://api.apievangelist.com/v1/governance/scorecard <span class="se">\</span>
  <span class="nt">-H</span> <span class="s2">"content-type: application/json"</span> <span class="se">\</span>
  <span class="nt">-d</span> <span class="s2">"{</span><span class="se">\"</span><span class="s2">document</span><span class="se">\"</span><span class="s2">: </span><span class="si">$(</span>curl <span class="nt">-s</span> https://raw.githubusercontent.com/OAI/learn.openapis.org/main/examples/v3.0/petstore.yaml | jq <span class="nt">-Rs</span> .<span class="si">)</span><span class="s2">}"</span>
</code></pre></div></div>

<p>The operation is documented in the <a href="https://developer.apievangelist.com/governance-api">governance API reference</a>, the MCP server in the <a href="https://developer.apievangelist.com/mcp-server">MCP docs</a>, and you can get started <a href="https://developer.apievangelist.com/getting-started">here</a>. The scorecard is a rollup, so when a dimension looks wrong the next step is the tool underneath it, <a href="https://apievangelist.com/2026/10/29/lint-an-openapi-and-find-out-which-rules-decide-if-it-passes/"><code class="language-plaintext highlighter-rouge">validate_api</code></a>, which is also where you’ll see the lint failure this post found instead of a quiet A.</p>]]></content><author><name>Kin Lane</name></author><category term="API Evangelist Tools" /><category term="MCP" /><category term="Governance" /><category term="Scorecard" /><category term="OpenAPI" /><category term="APIs.json" /><summary type="html"><![CDATA[A lint report is a list. Two hundred and forty-two diagnostics on a three-operation Petstore is accurate and useless to the person who has to decide whether the API is ready. What they want is one number, a letter, and a breakdown they can argue with. That’s api_scorecard on the API Evangelist MCP server, backed by POST /governance/scorecard on the API Evangelist API. You give it an API description and it rolls up a 0-100 maturity score with a grade across design, governance coverage and documentation, and, if you also hand it an APIs.json, three more dimensions for discoverability, agent-readiness and operations. It’s free. I ran it six ways, and two of the runs showed me bugs in my own tool, which is the part of this post I’d read first.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://kinlane-images.s3.amazonaws.com/apievangelist/api-evangelist-images/grade-an-api-from-zero-to-one-hundred-and-check-which-dimensions-were-actually-scored.png" /><media:content medium="image" url="https://kinlane-images.s3.amazonaws.com/apievangelist/api-evangelist-images/grade-an-api-from-zero-to-one-hundred-and-check-which-dimensions-were-actually-scored.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">Payments And Banking: A Bundle For The Shape Of The Answer</title><link href="https://apievangelist.com/2026/11/06/payments-and-banking-a-bundle-for-the-shape-of-the-answer/" rel="alternate" type="text/html" title="Payments And Banking: A Bundle For The Shape Of The Answer" /><published>2026-11-06T00:00:00+00:00</published><updated>2026-11-06T00:00:00+00:00</updated><id>https://apievangelist.com/2026/11/06/payments-and-banking-a-bundle-for-the-shape-of-the-answer</id><content type="html" xml:base="https://apievangelist.com/2026/11/06/payments-and-banking-a-bundle-for-the-shape-of-the-answer/"><![CDATA[<p>This week I’ve been building bundles that pair a JSON Schema with OpenLint-format rules, after finding out that <a href="https://apievangelist.com/2026/11/02/the-decoder-only-pours-part-of-the-bedrock/">the decoder only pours part of the bedrock</a>. When I <a href="https://apievangelist.com/2026/10/22/payments-and-banking-the-shape-of-the-answer/">looked at payments and banking</a>, I said constrained output moves the remaining errors from formatting into meaning. Payments turns out to be the clearest case of what’s left once the format is solved, because so many of the fields have to agree with each other.</p>

<h2 id="the-answer-i-picked">The answer I picked</h2>

<p>Turn an approved invoice into a credit transfer instruction shaped like an ISO 20022 <code class="language-plaintext highlighter-rouge">pain.001</code>. Last time I couldn’t find a JSON Schema of the message that a decoder could use directly, and that hasn’t changed, so I had to make one. I want to be clear about what it is: the element names are ISO 20022’s, as they appear in <a href="https://developer.gs.com/docs/services/transaction-banking/cbpr+-pain001/">published bank guides</a> and in the contracts of banks like Citi, but the JSON binding is mine. I flattened some of the nesting to fit the page. You’d map this onto the real XML before it went anywhere, and a bank’s own implementation guide would have the last word.</p>

<div class="language-yaml highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="na">bundle</span><span class="pi">:</span>
  <span class="na">id</span><span class="pi">:</span> <span class="s">payments-credit-transfer</span>
  <span class="na">version</span><span class="pi">:</span> <span class="s">0.1.0</span>
  <span class="na">status</span><span class="pi">:</span> <span class="s">illustrative</span>            <span class="c1"># ISO 20022 element names in a JSON binding of ours, not a registered schema</span>
  <span class="na">answers</span><span class="pi">:</span> <span class="s">Turn an approved invoice into a pain.001-style credit transfer instruction</span>
  <span class="na">derived_from</span><span class="pi">:</span>
    <span class="pi">-</span> <span class="s">ISO 20022 pain.001 element names, as used in published bank contracts and guides</span>
    <span class="pi">-</span> <span class="s">https://developer.gs.com/docs/services/transaction-banking/cbpr+-pain001/</span>
<span class="na">engine</span><span class="pi">:</span>
  <span class="na">runtime</span><span class="pi">:</span> <span class="s">deepinfer</span>
  <span class="na">tested_against</span><span class="pi">:</span> <span class="pi">{</span><span class="nv">xgrammar</span><span class="pi">:</span> <span class="nv">0.2.2</span><span class="pi">,</span> <span class="nv">strict_mode</span><span class="pi">:</span> <span class="nv">true</span><span class="pi">}</span>
  <span class="na">so_args</span><span class="pi">:</span> <span class="pi">{</span><span class="nv">schema_type</span><span class="pi">:</span> <span class="nv">json</span><span class="pi">}</span>
  <span class="na">sampling</span><span class="pi">:</span> <span class="pi">{</span><span class="nv">temperature</span><span class="pi">:</span> <span class="nv">0</span><span class="pi">,</span> <span class="nv">max_tokens</span><span class="pi">:</span> <span class="nv">2048</span><span class="pi">,</span> <span class="nv">seq_seed</span><span class="pi">:</span> <span class="nv">20261106</span><span class="pi">}</span>
  <span class="na">env</span><span class="pi">:</span> <span class="pi">{</span><span class="nv">DEEPINFER_BATCH_INVARIANT</span><span class="pi">:</span> <span class="nv">1</span><span class="pi">,</span> <span class="nv">DEEPINFER_ENABLE_MTP_VARLEN</span><span class="pi">:</span> <span class="nv">0</span><span class="pi">}</span>
<span class="na">input</span><span class="pi">:</span>
  <span class="na">context</span><span class="pi">:</span> <span class="pi">[</span><span class="nv">invoice</span><span class="pi">,</span> <span class="nv">debtorName</span><span class="pi">,</span> <span class="nv">debtorIban</span><span class="pi">,</span> <span class="nv">currencies</span><span class="pi">,</span> <span class="nv">today</span><span class="pi">]</span>
  <span class="na">rules</span><span class="pi">:</span>
    <span class="na">debtor-account-valid</span><span class="pi">:</span>
      <span class="na">description</span><span class="pi">:</span> <span class="s">Check our own account before spending any inference</span>
      <span class="na">given</span><span class="pi">:</span> <span class="s">$.context.debtorIban</span>
      <span class="na">severity</span><span class="pi">:</span> <span class="s">error</span>
      <span class="na">then</span><span class="pi">:</span> <span class="pi">{</span><span class="nv">function</span><span class="pi">:</span> <span class="nv">ibanMod97</span><span class="pi">}</span>
    <span class="na">invoice-attached</span><span class="pi">:</span>
      <span class="na">description</span><span class="pi">:</span> <span class="s">An instruction needs a source document</span>
      <span class="na">given</span><span class="pi">:</span> <span class="s">$.context</span>
      <span class="na">severity</span><span class="pi">:</span> <span class="s">error</span>
      <span class="na">then</span><span class="pi">:</span> <span class="pi">{</span><span class="nv">field</span><span class="pi">:</span> <span class="nv">invoice</span><span class="pi">,</span> <span class="nv">function</span><span class="pi">:</span> <span class="nv">truthy</span><span class="pi">}</span>
<span class="na">shape</span><span class="pi">:</span>
  <span class="na">type</span><span class="pi">:</span> <span class="s">object</span>
  <span class="na">additionalProperties</span><span class="pi">:</span> <span class="no">false</span>
  <span class="na">required</span><span class="pi">:</span> <span class="pi">[</span><span class="nv">GrpHdr</span><span class="pi">,</span> <span class="nv">PmtInf</span><span class="pi">]</span>
  <span class="na">properties</span><span class="pi">:</span>
    <span class="na">GrpHdr</span><span class="pi">:</span>
      <span class="na">type</span><span class="pi">:</span> <span class="s">object</span>
      <span class="na">additionalProperties</span><span class="pi">:</span> <span class="no">false</span>
      <span class="na">required</span><span class="pi">:</span> <span class="pi">[</span><span class="nv">MsgId</span><span class="pi">,</span> <span class="nv">NbOfTxs</span><span class="pi">,</span> <span class="nv">CtrlSum</span><span class="pi">,</span> <span class="nv">InitgPty</span><span class="pi">]</span>
      <span class="na">properties</span><span class="pi">:</span>
        <span class="na">MsgId</span><span class="pi">:</span> <span class="pi">{</span><span class="nv">type</span><span class="pi">:</span> <span class="nv">string</span><span class="pi">,</span> <span class="nv">minLength</span><span class="pi">:</span> <span class="nv">1</span><span class="pi">,</span> <span class="nv">maxLength</span><span class="pi">:</span> <span class="nv">35</span><span class="pi">}</span>
        <span class="na">NbOfTxs</span><span class="pi">:</span> <span class="pi">{</span><span class="nv">type</span><span class="pi">:</span> <span class="nv">string</span><span class="pi">,</span> <span class="nv">pattern</span><span class="pi">:</span> <span class="s2">"</span><span class="s">^[0-9]{1,15}$"</span><span class="pi">}</span>
        <span class="na">CtrlSum</span><span class="pi">:</span> <span class="pi">{</span><span class="nv">type</span><span class="pi">:</span> <span class="nv">string</span><span class="pi">,</span> <span class="nv">pattern</span><span class="pi">:</span> <span class="s2">"</span><span class="s">^[0-9]{1,12}</span><span class="se">\\</span><span class="s">.[0-9]{2}$"</span><span class="pi">}</span>
        <span class="na">InitgPty</span><span class="pi">:</span>
          <span class="na">type</span><span class="pi">:</span> <span class="s">object</span>
          <span class="na">additionalProperties</span><span class="pi">:</span> <span class="no">false</span>
          <span class="na">required</span><span class="pi">:</span> <span class="pi">[</span><span class="nv">Nm</span><span class="pi">]</span>
          <span class="na">properties</span><span class="pi">:</span>
            <span class="na">Nm</span><span class="pi">:</span> <span class="pi">{</span><span class="nv">const</span><span class="pi">:</span> <span class="s2">"</span><span class="s">${context.debtorName}"</span><span class="pi">}</span>
    <span class="na">PmtInf</span><span class="pi">:</span>
      <span class="na">type</span><span class="pi">:</span> <span class="s">object</span>
      <span class="na">additionalProperties</span><span class="pi">:</span> <span class="no">false</span>
      <span class="na">required</span><span class="pi">:</span> <span class="pi">[</span><span class="nv">ReqdExctnDt</span><span class="pi">,</span> <span class="nv">DbtrAcct</span><span class="pi">,</span> <span class="nv">CdtTrfTxInf</span><span class="pi">]</span>
      <span class="na">properties</span><span class="pi">:</span>
        <span class="na">ReqdExctnDt</span><span class="pi">:</span> <span class="pi">{</span><span class="nv">type</span><span class="pi">:</span> <span class="nv">string</span><span class="pi">,</span> <span class="nv">format</span><span class="pi">:</span> <span class="nv">date</span><span class="pi">}</span>
        <span class="na">DbtrAcct</span><span class="pi">:</span> <span class="pi">{</span><span class="nv">const</span><span class="pi">:</span> <span class="s2">"</span><span class="s">${context.debtorIban}"</span><span class="pi">}</span>
        <span class="na">CdtTrfTxInf</span><span class="pi">:</span>
          <span class="na">type</span><span class="pi">:</span> <span class="s">array</span>
          <span class="na">minItems</span><span class="pi">:</span> <span class="m">1</span>
          <span class="na">items</span><span class="pi">:</span>
            <span class="na">type</span><span class="pi">:</span> <span class="s">object</span>
            <span class="na">additionalProperties</span><span class="pi">:</span> <span class="no">false</span>
            <span class="na">required</span><span class="pi">:</span> <span class="pi">[</span><span class="nv">EndToEndId</span><span class="pi">,</span> <span class="nv">InstdAmt</span><span class="pi">,</span> <span class="nv">Ccy</span><span class="pi">,</span> <span class="nv">CdtrNm</span><span class="pi">,</span> <span class="nv">CdtrIBAN</span><span class="pi">]</span>
            <span class="na">properties</span><span class="pi">:</span>
              <span class="na">EndToEndId</span><span class="pi">:</span> <span class="pi">{</span><span class="nv">type</span><span class="pi">:</span> <span class="nv">string</span><span class="pi">,</span> <span class="nv">minLength</span><span class="pi">:</span> <span class="nv">1</span><span class="pi">,</span> <span class="nv">maxLength</span><span class="pi">:</span> <span class="nv">35</span><span class="pi">}</span>
              <span class="na">InstdAmt</span><span class="pi">:</span> <span class="pi">{</span><span class="nv">type</span><span class="pi">:</span> <span class="nv">string</span><span class="pi">,</span> <span class="nv">pattern</span><span class="pi">:</span> <span class="s2">"</span><span class="s">^[0-9]{1,12}</span><span class="se">\\</span><span class="s">.[0-9]{2}$"</span><span class="pi">}</span>
              <span class="na">Ccy</span><span class="pi">:</span> <span class="pi">{</span><span class="nv">enum</span><span class="pi">:</span> <span class="s2">"</span><span class="s">${context.currencies}"</span><span class="pi">}</span>
              <span class="na">CdtrNm</span><span class="pi">:</span> <span class="pi">{</span><span class="nv">type</span><span class="pi">:</span> <span class="nv">string</span><span class="pi">,</span> <span class="nv">minLength</span><span class="pi">:</span> <span class="nv">1</span><span class="pi">,</span> <span class="nv">maxLength</span><span class="pi">:</span> <span class="nv">140</span><span class="pi">}</span>
              <span class="na">CdtrIBAN</span><span class="pi">:</span> <span class="pi">{</span><span class="nv">type</span><span class="pi">:</span> <span class="nv">string</span><span class="pi">,</span> <span class="nv">pattern</span><span class="pi">:</span> <span class="s2">"</span><span class="s">^[A-Z]{2}[0-9]{2}[A-Z0-9]{11,30}$"</span><span class="pi">}</span>
<span class="na">output</span><span class="pi">:</span>
  <span class="na">rules</span><span class="pi">:</span>
    <span class="na">control-sum-matches</span><span class="pi">:</span>
      <span class="na">description</span><span class="pi">:</span> <span class="s">CtrlSum must equal the sum of the instructed amounts</span>
      <span class="na">given</span><span class="pi">:</span> <span class="s">$</span>
      <span class="na">severity</span><span class="pi">:</span> <span class="s">error</span>
      <span class="na">then</span><span class="pi">:</span>
        <span class="na">function</span><span class="pi">:</span> <span class="s">sumEquals</span>
        <span class="na">functionOptions</span><span class="pi">:</span> <span class="pi">{</span><span class="nv">items</span><span class="pi">:</span> <span class="nv">answer.PmtInf.CdtTrfTxInf</span><span class="pi">,</span> <span class="nv">field</span><span class="pi">:</span> <span class="nv">InstdAmt</span><span class="pi">,</span> <span class="nv">total</span><span class="pi">:</span> <span class="nv">answer.GrpHdr.CtrlSum</span><span class="pi">}</span>
    <span class="na">transaction-count-matches</span><span class="pi">:</span>
      <span class="na">description</span><span class="pi">:</span> <span class="s">NbOfTxs must equal the number of transactions</span>
      <span class="na">given</span><span class="pi">:</span> <span class="s">$</span>
      <span class="na">severity</span><span class="pi">:</span> <span class="s">error</span>
      <span class="na">then</span><span class="pi">:</span>
        <span class="na">function</span><span class="pi">:</span> <span class="s">countEquals</span>
        <span class="na">functionOptions</span><span class="pi">:</span> <span class="pi">{</span><span class="nv">items</span><span class="pi">:</span> <span class="nv">answer.PmtInf.CdtTrfTxInf</span><span class="pi">,</span> <span class="nv">count</span><span class="pi">:</span> <span class="nv">answer.GrpHdr.NbOfTxs</span><span class="pi">}</span>
    <span class="na">creditor-iban-checks-out</span><span class="pi">:</span>
      <span class="na">description</span><span class="pi">:</span> <span class="s">The pattern checks the form, this checks the check digits</span>
      <span class="na">given</span><span class="pi">:</span> <span class="s">$.answer.PmtInf.CdtTrfTxInf[*].CdtrIBAN</span>
      <span class="na">severity</span><span class="pi">:</span> <span class="s">error</span>
      <span class="na">then</span><span class="pi">:</span> <span class="pi">{</span><span class="nv">function</span><span class="pi">:</span> <span class="nv">ibanMod97</span><span class="pi">}</span>
    <span class="na">no-duplicate-transactions</span><span class="pi">:</span>
      <span class="na">description</span><span class="pi">:</span> <span class="s">The decoder does not enforce uniqueItems, so this rule catches exact repeats</span>
      <span class="na">given</span><span class="pi">:</span> <span class="s">$.answer.PmtInf</span>
      <span class="na">severity</span><span class="pi">:</span> <span class="s">error</span>
      <span class="na">then</span><span class="pi">:</span>
        <span class="na">function</span><span class="pi">:</span> <span class="s">schema</span>
        <span class="na">functionOptions</span><span class="pi">:</span>
          <span class="na">schema</span><span class="pi">:</span>
            <span class="na">type</span><span class="pi">:</span> <span class="s">object</span>
            <span class="na">properties</span><span class="pi">:</span>
              <span class="na">CdtTrfTxInf</span><span class="pi">:</span> <span class="pi">{</span><span class="nv">type</span><span class="pi">:</span> <span class="nv">array</span><span class="pi">,</span> <span class="nv">uniqueItems</span><span class="pi">:</span> <span class="nv">true</span><span class="pi">}</span>
    <span class="na">not-in-the-past</span><span class="pi">:</span>
      <span class="na">description</span><span class="pi">:</span> <span class="s">A payment cannot be executed before today</span>
      <span class="na">given</span><span class="pi">:</span> <span class="s">$</span>
      <span class="na">severity</span><span class="pi">:</span> <span class="s">error</span>
      <span class="na">then</span><span class="pi">:</span>
        <span class="na">function</span><span class="pi">:</span> <span class="s">notAfter</span>
        <span class="na">functionOptions</span><span class="pi">:</span> <span class="pi">{</span><span class="nv">earlier</span><span class="pi">:</span> <span class="nv">context.today</span><span class="pi">,</span> <span class="nv">later</span><span class="pi">:</span> <span class="nv">answer.PmtInf.ReqdExctnDt</span><span class="pi">}</span>
<span class="na">on_failure</span><span class="pi">:</span>
  <span class="na">error</span><span class="pi">:</span> <span class="pi">{</span><span class="nv">retry</span><span class="pi">:</span> <span class="nv">1</span><span class="pi">,</span> <span class="nv">change</span><span class="pi">:</span> <span class="pi">[</span><span class="nv">seq_seed</span><span class="pi">,</span> <span class="nv">append_rule_messages_to_prompt</span><span class="pi">],</span> <span class="nv">then</span><span class="pi">:</span> <span class="nv">send_to_human</span><span class="pi">}</span>
  <span class="na">always</span><span class="pi">:</span> <span class="pi">{</span><span class="nv">action</span><span class="pi">:</span> <span class="nv">human_releases_payment</span><span class="pi">}</span>
</code></pre></div></div>

<h2 id="where-the-design-choices-are">Where the design choices are</h2>

<p><strong>Money is a string.</strong> <code class="language-plaintext highlighter-rouge">InstdAmt</code> is <code class="language-plaintext highlighter-rouge">"1250.00"</code>, enforced by a pattern, not a JSON number. A decoder happily emits <code class="language-plaintext highlighter-rouge">1250.1000000000001</code> if you let it, and floating point has no business near a payment. It also means my functions add in integer minor units instead of summing floats. Note that this two-decimal pattern is itself a simplification, because not every currency has two decimal places, and a real bundle would have to tie the pattern to the currency.</p>

<p><strong>The grammar can’t do arithmetic.</strong> This is the heart of it. <code class="language-plaintext highlighter-rouge">NbOfTxs</code> has to equal the number of transactions and <code class="language-plaintext highlighter-rouge">CtrlSum</code> has to equal the sum of the amounts, and guides warn that a bank may reject the file when they don’t. These are the exact facts a token-at-a-time grammar can’t hold. They can only live in rules.</p>

<p><strong>A pattern checks the form, and the check digits need a function.</strong> The IBAN pattern lets through anything IBAN-shaped. <code class="language-plaintext highlighter-rouge">creditor-iban-checks-out</code> runs the actual mod-97 check. A model transposing two digits while copying an account number from a PDF is exactly the mistake I’d worry about, and the decoder can’t see it.</p>

<p><strong><code class="language-plaintext highlighter-rouge">uniqueItems</code> is here on purpose.</strong> I said the decoder doesn’t enforce it, and my shape lint would fail if it appeared in the shape. So it moves to <code class="language-plaintext highlighter-rouge">no-duplicate-transactions</code>, where the linter’s <code class="language-plaintext highlighter-rouge">schema</code> function enforces it after generation. This is what it looks like when a keyword moves out of the bedrock and into the landscaping. It only catches exact repeats, though. Two transactions sharing an <code class="language-plaintext highlighter-rouge">EndToEndId</code> with different amounts would pass, and a real bundle would need a function comparing just that field.</p>

<p><strong>The debtor is bound.</strong> Who’s paying isn’t a question for a model. The debtor’s name and account come in as <code class="language-plaintext highlighter-rouge">const</code> values, and the currencies this business has approved become the enum.</p>

<h2 id="how-it-runs-as-part-of-inference">How it runs as part of inference</h2>

<ol>
  <li><strong>Input rules run first</strong>, including the mod-97 check on our own debtor account. It’s cheap to find out before spending anything on inference that the account on file is wrong.</li>
  <li><strong>The shape is bound and compiled</strong>, in 144 milliseconds on my laptop against DeepSeek’s real tokenizer.</li>
  <li><strong>The decoder generates.</strong> It can’t emit an unapproved currency or a number where a string belongs.</li>
  <li><strong>Output rules run on the envelope</strong>, comparing the amounts, counting the transactions, and checking the dates against today.</li>
  <li><strong>On failure, it retries once, then goes to a person.</strong> Fewer retries than the other bundles, on purpose. A model that gets the arithmetic wrong twice on a payment shouldn’t get a third try.</li>
  <li><strong>A person releases the payment.</strong> No bundle changes that.</li>
</ol>

<h2 id="what-the-fixtures-showed">What the fixtures showed</h2>

<p>These are hand-written documents testing each path, not model output.</p>

<ul>
  <li>A clean single-line instruction passed everything.</li>
  <li>A broken one <strong>was accepted by the decoder</strong>: two transactions under a header that says one, a control sum for one, an exact duplicate transaction, a creditor IBAN with one wrong digit, and an execution date in the past. The rules flagged all five.</li>
  <li>A Bitcoin ticker in the currency field, and a bare number in <code class="language-plaintext highlighter-rouge">CtrlSum</code>, were refused by the decoder.</li>
  <li>A debtor account failing its own check digits and a missing invoice were stopped by the input rules.</li>
</ul>

<p>The second result is the one worth sitting with. It’s a document the decoder considers valid, and a bank’s systems would bounce it, or worse, not bounce all of it. One wrong IBAN digit is usually caught by the check. A correct IBAN that belongs to someone else isn’t caught by anything here.</p>

<h2 id="whats-still-missing">What’s still missing</h2>

<p>That last sentence is the real limit. These rules prove that the instruction is internally consistent. They don’t prove the creditor is who the invoice says, that the invoice is genuine, or that it should be paid. A supplier who changes their bank details by email is a fraud pattern, and a model extracting those new details perfectly and consistently makes it worse. Checks like confirmation of payee, the vendor master and sanctions screening sit outside of this file and need to stay there.</p>

<p>My first post also described a dispute shape and a remittance one, and I left both out. Disputes would need the card network reason codes I couldn’t source publicly last time, and I still won’t guess at them. Remittance matching would need the bank statement as context, which is a much larger envelope. Also, <code class="language-plaintext highlighter-rouge">ReqdExctnDt</code> being today or later says nothing about cutoff times or bank holidays, and those are the checks a real payment file fails on.</p>

<p>Payments has had an agreed shape for decades. What a bundle adds is a place to write down the relationships inside that shape, the ones that have always been in bank guides as prose. Those were going to be checked by somebody anyway. A model in the loop just means they have to be checked by something that doesn’t get tired.</p>]]></content><author><name>Kin Lane</name></author><category term="Payments" /><category term="Banking" /><category term="ISO 20022" /><category term="Structured Outputs" /><category term="JSON Schema" /><category term="OpenLint" /><category term="Inference" /><summary type="html"><![CDATA[This week I’ve been building bundles that pair a JSON Schema with OpenLint-format rules, after finding out that the decoder only pours part of the bedrock. When I looked at payments and banking, I said constrained output moves the remaining errors from formatting into meaning. Payments turns out to be the clearest case of what’s left once the format is solved, because so many of the fields have to agree with each other.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://kinlane-images.s3.amazonaws.com/apievangelist/api-evangelist-images/payments-and-banking-a-bundle-for-the-shape-of-the-answer.png" /><media:content medium="image" url="https://kinlane-images.s3.amazonaws.com/apievangelist/api-evangelist-images/payments-and-banking-a-bundle-for-the-shape-of-the-answer.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">Rethinking The API Free Tier In The Agentic Age</title><link href="https://apievangelist.com/2026/11/06/rethinking-the-api-free-tier-in-the-agentic-age/" rel="alternate" type="text/html" title="Rethinking The API Free Tier In The Agentic Age" /><published>2026-11-06T00:00:00+00:00</published><updated>2026-11-06T00:00:00+00:00</updated><id>https://apievangelist.com/2026/11/06/rethinking-the-api-free-tier-in-the-agentic-age</id><content type="html" xml:base="https://apievangelist.com/2026/11/06/rethinking-the-api-free-tier-in-the-agentic-age/"><![CDATA[<p>There are a lot of changes happening to the economics of APIs that are powering our applications. The free or freemium tier that has been a staple of SaaS and API plans and pricing for over 15 years is drying up and shriveling. And not for the usual reasons, a platform reaching Series C or D and pulling the ladder up. It is disappearing because of the agentic denial of service (DDoS) that has been unleashed across the business landscape. The ROI on offering free tiers of access just isn’t there anymore, if it ever really was.</p>

<p>In the agentic age, you just can’t leave your front door wide open anymore. Or not wide open without the proper controls. Honestly, I think part of the reason the free tier is suffering is that most companies weren’t doing it for the right reasons. They were just looking to inflate numbers, not incite innovation. So shutting it down becomes much easier. But even if you are just trying to incite innovation with developers, having a free tier leaves your platform open to horizontally scaling users draining you of your valuable resources. When an increasing number of your developers are just an endless for-next loop, the math doesn’t work out like it once used to.</p>

<p>The result is that many public API providers are shuttering their free tiers. It makes sense. I don’t fault them. However, I urge everyone to think more about what our front doors look like in an agentic age. Do we want a human doorman positioned at the front door? Can we still provide exploration of our APIs? Our tools? Our resources? If our pricing is dynamic, what variables go into it, and can those be baked into the onboarding logic? Charging for access provides a great filter for the freeloaders and riffraff. Put a price tag on the front door. Require a corporate email. Evaluate the company behind the email. Require a credit card from day one. Require credits to be added and pay per usage, even if the price changes as further trust is established. Get out of the way of your customers, and get in the way of people just wanting to extract value from your platform.</p>

<p>I’ve been exploring how <a href="https://apievangelist.com/2026/11/05/the-client-stack-did-not-collapse-it-went-dark/">discovery, onboarding, and integration with APIs has collapsed into the shadows because of AI</a>, and I am looking to do the same for plans and pricing. The shift from user to usage to model and token-based pricing has shaken the plans and pricing Etch A Sketch. The economics of free, pro, and enterprise have been evolving over the last decade, but agents literally pounding on your door, while the concept of agents is metaphorically pounded into your leadership’s brains, is really leveling markets right now. I get why leadership wants to close up the front door right now. Things have gotten really noisy and aggressive. A big storm has rolled in and has only begun to dissipate. Regardless of how this plays out, I think rethinking the API free tier is overdue, and it is something I’ll continue to assess right alongside discovery, onboarding, and governance.</p>]]></content><author><name>Kin Lane</name></author><category term="Plans" /><category term="Pricing" /><category term="Free Tier" /><category term="Onboarding" /><category term="Agents" /><category term="Business Models" /><summary type="html"><![CDATA[There are a lot of changes happening to the economics of APIs that are powering our applications. The free or freemium tier that has been a staple of SaaS and API plans and pricing for over 15 years is drying up and shriveling. And not for the usual reasons, a platform reaching Series C or D and pulling the ladder up. It is disappearing because of the agentic denial of service (DDoS) that has been unleashed across the business landscape. The ROI on offering free tiers of access just isn’t there anymore, if it ever really was.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://kinlane-images.s3.amazonaws.com/apievangelist/api-evangelist-images/rethinking-the-api-free-tier-in-the-agentic-age.png" /><media:content medium="image" url="https://kinlane-images.s3.amazonaws.com/apievangelist/api-evangelist-images/rethinking-the-api-free-tier-in-the-agentic-age.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry></feed>