API Versioning as a Translation Layer
API versioning as an architecture: requests enter through a version header, pass through a chain of reversible version changes, and reach controllers that only ever see the latest model.
Loading…
Topic
98 posts about API. Every summary links to the original.
See the idea
API versioning as an architecture: requests enter through a version header, pass through a chain of reversible version changes, and reach controllers that only ever see the latest model.
The API gateway is the single boundary where protocol translation, auth, quotas, and routing become shared policy instead of per-service code. This layered diagram shows what belongs there and why.
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
Newest first
Cloudflare introduced Search for Agents, a feature that lets website owners make their content searchable by AI agents with a single dashboard toggle. When enabled, Cloudflare automatically creates an AI Search instance, crawls and indexes the zone’s content, and exposes a search API under the site’s own domain. The search endpoint is advertised on every page via HTML meta tags or YAML front matter, so agents can discover and use it without manual configuration. Agents query the endpoint using GET or the new HTTP QUERY method and receive retrieved content in Markdown, not a generated answer. The feature is available to all customers, including Free plan users, and follows existing AI Search pricing.
Idempotency is a solved problem when you control the API, but the author works at maesn, a unified API that calls 30+ accounting systems that offer no idempotency key. When a request times out, the caller cannot tell whether the entry was created, so retries risk duplicates. The author tested one platform by uploading the same batch twice; both succeeded, and the duplicate was only flagged as a yellow notice in the import log. Three workarounds—pre-check lookups, timing-dependent searches, and post-hoc cleanup jobs—each break in practice. The author argues that providers should offer an idempotency key or a unique reference field that rejects duplicates with a 409, replacing all workarounds with a safe retry.
SMS verification adds a second layer of security by sending a temporary, single-use numeric code via text message to a user’s mobile phone. The process involves providing a phone number, entering a username and password, receiving a code, and typing it into the app or website. This method blocks the majority of automated credential-stuffing and bulk bot attacks, though it is less secure than phishing-resistant methods like passkeys or authenticator apps. Challenges include SMS pumping, SIM swapping, and phishing, which can be mitigated with traffic anomaly detection, carrier intelligence, and layered authentication. Twilio Verify offers a single API for SMS, voice, email, push, and TOTP verification, with quickstart code samples available in multiple programming languages.
Callers often have to repeat account details each time they contact a business. Twilio Conversation Memory addresses this by storing customer profiles, traits (e.g., VIPStatus, PreferredLanguage), and observations (e.g., ‘Order #9401 delayed’) for use by voice agents, chatbots, and IVRs. This tutorial presents two import paths: uploading a CSV directly in the console with AI-assisted mapping of columns to custom traits of types string, integer, boolean, or array, or building a .NET 9 Web API for programmatic sync. The API solution reads a mock JSON file containing four customer records, maps fields like phone and email to the Profiles API via CrmSyncService, and exposes a POST /sync/{phone} endpoint that first checks for existing profiles to avoid duplicates. After successful syncing, customer data appears in the Conversation Memory Store and is accessible on incoming interactions without extra database calls.
Stripe Billing now lets developers customize discount calculation through extension points, replacing workarounds like managing multiple coupons or restructuring product catalogs. The discount calculation extension point runs a TypeScript script in Stripe’s runtime, making the logic readable, testable, and maintainable. Scripts can target discounts by price metadata or native properties such as recurring interval, usage type, or unit amount. The same coupon can behave differently for different prices, for example giving annual subscribers a full discount while splitting it across months for monthly subscribers. Configurable fields in the script allow non-technical users to set parameters like discount percent or seat caps through the Stripe Dashboard without changing code.
Twilio announced new Voice AI infrastructure capabilities to bridge the gap between demos and production deployments. The release includes Conversation Relay features such as Smart Turn Detection, Automated STT Failover, Dynamic Configuration Parameters, HD Audio, and Advanced Conversational Voice. Twilio Agent Connect allows teams to integrate external AI frameworks like AWS, Google Cloud, or OpenAI while relying on Twilio for communications. Conversation Intelligence now offers Twilio-authored operators for analyzing AI agent transcripts and an On-Demand Execution API for flexible analysis. These tools aim to help teams supervise agent quality, improve reliability, and maintain flexibility across a changing AI ecosystem.
Anthropic’s AI assistant Claude is now available in Brazil, serving both consumers and businesses. Users can access Claude through the web-based Claude.ai, free Android and iOS mobile apps, and the Anthropic API for developers to integrate into their own applications, websites, or services. Claude.ai offers a free tier and paid plans; the Pro plan at R 110 per user per month provides 5x more usage than the free tier, early access to new features, and all Claude models including the most intelligent Claude 3.5 Sonnet and the Claude 3 family. The Team plan at R 165 per user per month (minimum 5 seats) adds shared chats with teammates and administrative tools for user and billing management. Anthropic prioritizes safety and privacy, conducting rigorous testing to reduce misuse and making a strong commitment not to train generative models on user data without explicit permission.
Silent Network Authentication (SNA) lets businesses verify users behind the scenes using cellular network authentication, reducing friction while maintaining security. Implementation requires forcing mobile data in the app because SNA fails on Wi-Fi with error 60531. Developers must follow all redirects from the sna.url, as carriers handle redirects differently. Dual-SIM scenarios in countries like the Philippines and Indonesia are handled by comparing the service provider from the user-provided phone number against the IP-address-derived provider. Fallback to SMS or WhatsApp is recommended when SNA is unavailable, such as on desktop or out-of-coverage networks.
Resend migrated its email API from a Node.js service to Go over seven weeks and roughly 140 pull requests. The existing Node service suffered from failure modes where CPU-heavy request parsing and serialization blocked the event loop during bursts, and S3 timeouts surfaced as customer-facing errors. The new Go service was built to match the old API’s behavior exactly, using a test harness that compared responses, errors, database state, S3 objects, idempotency, and rate limits between the two implementations. During a 50% rollout, Go showed roughly half the median latency and about one-seventh the memory usage per task compared to Node, with 62% less CPU per request. The team also had to tune capacity, timeouts, and connection pools during the rollout, as lower average resource consumption did not predict burst requirements.
A platform migration should be invisible to end users, keeping OTPs and customer messages flowing without interruption. Twilio provides a secure landing point that can modernize verification with automatic RCS upgrades, Silent Network Auth, Passkeys, and built-in Fraud Guard. WhatsApp Business assets such as display name, messaging-limit tier, quality rating, and OBA status are preserved through Meta’s direct migration path. Twilio’s IE1 region supports EU data residency with GDPR compliance and ISO 27001 certification, and its infrastructure connects to over 4,800 carrier networks across 180+ countries. A phased migration checklist includes exporting opt-in/opt-out records, starting sender registrations early, and routing traffic incrementally from 5-10% to 100%.
Ceci Stallsmith, Slack’s Director of Platform Marketing, shares insights from her experience at Box and Slack on marketing a product platform. She defines a platform as the point where the value of integrations surpasses the product’s standalone value. Slack’s platform marketing involves developer marketing, partner marketing, and driving customer adoption of built products. Her team’s threefold approach includes establishing the Slack Fund to invest in developers, creating a launch strategy, and making the API developer-friendly to drive adoption. Measuring success prioritizes adoption, developer activity, and app quality, while managing relationships at scale requires building a global community and hosting events; Slack’s upcoming Workflow Builder will enable no-code app creation, expanding the builder base.
Revinate, a hospitality provider serving over 12,500 hotels and more than 1.25 billion guest profiles, needed to expose guest profile and reservation data through APIs as it expanded its AI-powered Customer Data Platform. Managing API infrastructure in-house required manual provisioning, custom security configuration, and ongoing maintenance for each new partner integration. After evaluating self-managed gateways, custom-built solutions, and enterprise platforms, Revinate chose Amazon API Gateway with the newly released Amazon API Gateway Portal. The fully managed service provides native AWS integration with EKS and Lambda authorizers, OAuth 2.0 client credentials authentication, usage plans for per-consumer cost attribution, and Terraform-managed infrastructure as code. The pay-per-use model kept initial costs minimal, and the managed Developer Portal reduced customer onboarding from weeks to days.
Build an AI agent that handles order status and refunds by defining four custom tools—get order, check eligibility, initiate refund, update ticket—using Twilio Agent Connect’s function tool decorator to call existing APIs. The agent verifies identity with Twilio Verify’s one-time passcode before any refund, enforced in both prompt and code to prevent prompt injection bypass. Refund decisions are grounded in the company’s return policy from Enterprise Knowledge, while hard rules like return windows are enforced in eligibility tool code to avoid hallucinations. High-value or repeat requests escalate to a human in Twilio Flex via Agent Connect’s handoff tool, which packages conversation ID and reason with an AI-generated summary. The same agent works across voice, SMS, WhatsApp, RCS, and chat through a single handler, with ConversationRelay providing median latency under 0.5 second and Conversation Memory recording outcomes for future context.
Resend initially focused on sending email, but in 2025 added receiving capability, leaving developers to handle the complexity of reading, sorting, replying, and tracking conversations themselves for different use cases. Managing this became especially burdensome for AI agents needing to operate independently and process email autonomously. The new Inboxes product is an API-first shared inbox that groups incoming messages into threads, supports team collaboration with conversation assignments and internal notes, and enables human and agent workers to work side-by-side. An optional built-in agent can be configured with custom instructions, tone, and enabled actions such as drafting replies, forwarding threads, adding labels, and marking spam. Inboxes are free for up to three inboxes, with additional inboxes available on a pay-as-you-go basis at $1 per inbox, starting today.
Stripe’s MCP server grants AI agents the ability to build checkout pages, run reports, automate refunds, and send money via Stripe Treasury. To maintain control, Stripe offers two methods: connecting agents on your behalf via OAuth with mandatory human confirmation for sensitive live-mode actions, or assigning agents an independent identity with agent-tagged API keys governed by configurable approval rules. With OAuth, confirmation blocks refunds and payouts until you approve, and the agent must retry after confirmation. For independent agents, approval rules can require designated reviewers to approve actions based on conditions like amount exceeding $500, with default rules for refunds, payouts, and transfers. These layered controls—scoped credentials, confirmation, and two-party approval—let you decide which actions run automatically and which require oversight.
Thirty percent of businesses say their tech stacks cannot keep up with customer expectations, but CIOs in Twilio’s Innovators Report modernized customer engagement without full platform replacements. They placed an orchestration layer above systems of record, integrated voice and messaging into existing CRMs, retained control of core decision engines through APs, unified real-time data before scaling A, and shipped gradual changes using sandboxes and feature flags. Sweetwater enabled 850 agents with 50,000 texts and 40,000 calls daily, while WestC achieved 50 to 80 percent higher RCS conversion rates than SMS or email. Lendi Group’s CTO advises unifying the data layer first, as 84 percent of brands say their A can access customer history but only 40 percent design personalization around it. Modernizing the seams between systems is cheaper and safer than replacement, since a non-working layer leaves underlying systems intact.
Anthropic released Claude 2.1, advancing enterprise capabilities with a 200,000-token context window that handles roughly 150,000 words or over 500 pages. The model achieved a 2x decrease in false statements compared to Claude 2.0, evaluated using a rubric that distinguishes incorrect answers from uncertainty. Comprehension improvements yielded a 30% reduction in incorrect answers and a 3-4x lower rate of mistakenly concluding a document supports a claim. A new beta tool use feature allows the model to integrate with developer-defined functions and APIs for actions like calculations and database searches. The API also added system prompts and a Workbench console for prompt iteration, with the 200K context window reserved for Claude Pro users.
Tool-augmented LLM agents must discover relevant APIs from large registries before planning, but finite context windows prevent injecting all tool definitions into a single prompt. Two competing architectures are Retrieve-then-Plan (RtP), which embeds the query and retrieves similar tools via nearest-neighbor search, and Plan-then-Retrieve (PtR), which first generates abstract tool stubs as retrieval queries. Evaluating on ToolBench with 46,984 API endpoints across 50 categories reveals a clear complexity-dependent crossover: RtP outperforms PtR on single-tool queries while PtR outperforms RtP on multi-tool queries. PtR’s stub-hallucination failure mode acts as a double-edged sword—on simple queries it abstracts away proper-noun signals, yet on complex queries it decomposes multi-faceted intent into functional sub-needs. PtR roughly doubles inference cost, which pays off on multi-tool queries but hurts on single-tool ones, motivating complexity-adaptive routing driven by RtP’s top-1 retrieval score.
Databricks announces General Availability of Document Intelligence REST APIs for real-time document parsing, extraction, and classification, with the ai_decide API for routing in beta. These synchronous APIs eliminate the manual bottleneck of reading documents by transforming unstructured contracts, invoices, and insurance claims into structured insights in real time. The ai_parse_document API converts tables and figures into structured text with citation bounding boxes, while ai_extract pulls specified fields with optional citations and confidence scores for verification. The ai_classify API assigns labels using a business taxonomy with optional rationales, and ai_decide uses content to route or flag documents for review. Developers can integrate these APIs into Databricks Apps for human-in-the-loop workflows, such as a contract intake flow where a lawyer uploads an agreement and sees key terms prefilled, or into custom agents on Agent Bricks.
The post explains GitHub’s redesign of the stargazers API to provide star history without exposing user identities. The original endpoint returned paginated lists of stargazers, which tools used to reconstruct growth curves by fetching all pages, leading to privacy risks and expensive database queries that counted all stars on each request due to a pagination bug. GitHub first restricted access to stargazer lists to repository collaborators, but this broke tools that needed star history. Collaborating with maintainers and the Star History project, GitHub built a new endpoint that returns up to 30 weeks of daily star counts in a single request with no identities attached. The new endpoint reduces database work by filtering stars by time before aggregation, cutting requests for repositories like react/react from about 2,511 to 24.
The best engineering reads, once a week.