API and API-Centric SaaS Definition
An API (Application Programming Interface) enables computer programs to communicate with each other by providing a software interface. Unlike a user interface, which connects a computer to a person, an API connects computers or software pieces together. Graphical user interfaces are often built by stitching together different composable APIs.
API-centric SaaS (Headless Software as a Service) is a cloud-based application service that allows access through programmatic requests or event-based APIs. It offers users a collection of user-friendly APIs that can be used as building blocks for developing customized applications, processes, and experiences. While it does provide a user interface, the primary focus of API-centric SaaS is to empower customer developers by offering APIs as the foundation for creating flexible and automated technology stacks and operations (referred to as DevSecOps, AIOps, and MLOps). This approach enables customer organizations to build tailored and advanced application experiences, resulting in faster, automated, safer, and more efficient technology operations.
In modern application design, integration and composition across different applications are crucial. Therefore, for a SaaS vendor to be part of the overall modern application stack and IT operations (DevSecOps, and AIOps), it is essential to offer services in the form of packaged business APIs.
Why API and API-Centric SaaS
APIs play a vital role in the SaaS ecosystem, offering SaaS providers numerous benefits such as increased product value, improved customer satisfaction, and new revenue opportunities. They enable integration with other products within the ecosystem, customization, scalability beyond the graphical user interface (GUI), ecosystem development, composability, and usability.
✦ DevOps Toolchain Example
In the B2B (or B2B2C/B) context, customers often utilize multiple SaaS services and connect them together to achieve their business objectives. Take the example of a DevOps toolchain, which consists of stages like Plan, Code, Build, Test, Release, Deploy, Operate, and Monitor. Numerous SaaS providers specialize in one or more of these stages. It is impractical for a single vendor to provide industry-leading solutions for all eight stages. Instead, customers and organizations combine multiple SaaS providers and integrate them to build a DevOps pipeline that meets their specific needs. If a SaaS vendor does not offer developer-friendly APIs to facilitate integration with the DevOps toolchain, it becomes challenging for customers to achieve end-to-end automation. Consequently, the product may not gain widespread adoption.
Whether you are building a platform, ecosystem, or a specific solution, APIs are essential for enabling application architectures that support composition and integration. They should be a core component of your product strategy. SaaS providers like Plaid, Stripe, Twilio, Auth0, and OpenAI have successfully leveraged the power of APIs to their strategic advantage.
✦ Important
It is crucial to note that while APIs are necessary, they are not sufficient for success in the SaaS ecosystem. Customers pay for the business value delivered through APIs, not just the technology itself. Therefore, it is essential to focus primarily on addressing urgent, important, and prevalent user needs, with the API serving as a means to deliver the solution.
How to Build an API-Centric SaaS
To build an API-centric SaaS, you can follow a framework consisting of the following five parts:
- Clearly identify, understand, and define API user persona
- Design APIs that users will love
- Align and measure APIs with business objectives
- Monetize APIs
- Drive user adoption
Let’s deep dive into each of these five topics:
1. Clearly Identify, Understand, and Define API User Persona
Early in the design process, identify the audience who will be consuming your APIs and prioritize their needs. Place the API consumers at the forefront of your design decisions, treating them as end users. Engage with them to develop user personas, define the jobs to be done, identify pain points, validate hypotheses, outline the user journey, review API specifications, choose appropriate API styles (such as REST, GraphQL, gRPC, and AsyncAPI), and validate API documentation and code samples.
These initial phases set the foundation for building a successful API-centric SaaS by aligning APIs with business goals and ensuring a user-centric approach to API design.
2. Design APIs That Users Will Love
Functional Requirements
Functional requirements are features or functions that must be implemented to enable end users to accomplish their tasks. Functional requirements for APIs are specific to the product’s use case and can vary greatly. However, here are some generic guidelines:
Conduct User Research: Perform thorough user research to understand the end users’ objectives, operational requirements, and technical needs.
User Journey Mapping: Map out the end user journey and identify the interaction points where developers will engage with the APIs.
API Specification: Specify the API specifications to address the user requirements. Clearly define the functionality and features that the API should provide.
✦ Key Insight
When it comes to measuring the user experience of APIs, there are fewer established metrics compared to graphical user interfaces (GUIs). However, metrics that focus on minimizing development time and making it easier for developers to use APIs can be helpful. For example, you can consider metrics such as the time it takes for a developer to understand and write functioning code, the number of APIs required for a specific objective, and the level of data wrangling needed to process API responses.
It’s important to strike a balance between making API usage easier for developers and providing powerful, granular capabilities. Avoid overwhelming developers with an excessive number of APIs that require extensive time and effort to understand and use effectively.
Non-Functional Requirements
Non-functional requirements outline the system’s operational abilities, characteristics, and limitations. Following are eleven main non-functional attributes for a well-designed API-centric SaaS:
Security · Availability · Reliability · Scalability · Performance · Message Exchange Patterns · Usability · Supportability · Portability · Cost · Monitoring and Telemetry
Let’s dive deeper into each of these topics:
Security
Security is a crucial aspect of API-centric SaaS, as API exploits are common attack vectors leading to data breaches in enterprise web applications.
Authentication: Public APIs should utilize JWT, token-based authentication, or OAuth instead of managing sessions in REST APIs. Allowing users to manage token lifecycle by expiring, revoking, and refreshing tokens adds an extra layer of security.
Authorization: APIs should follow the principle of least privilege, granting fine-grained scope permissions that provide users with the minimum access required to perform their tasks. Well-designed Role-Based Access Control (RBAC) hierarchies make it easier for end users to assign roles with minimal privileges.
Third-party Apps: Ensure that each third-party app instance connecting to the SaaS has a separate authentication and authorization key. Sharing the same key across multiple apps should be avoided. This grants end users precise control over access.
Encryption in Transit and at Rest: Data transmitted over the network should be encrypted to prevent man-in-the-middle or sniffing attacks. Utilizing HTTPS and TLS 1.3 is recommended. Data at rest should also be encrypted. Some customers may want to use their own encryption keys.
Protection from Malicious Attacks: APIs are susceptible to common attacks like DDoS, SQL injection, and token hijacking. The Open Web Application Security Project (OWASP) provides documentation on top API risks.
Data Residency: Governments worldwide are imposing stricter regulations regarding data residency. For a global customer base, it may be necessary to develop separate instances of services operational in different geographic locations.
Multitenancy: When designing an API-centric SaaS targeted for Enterprise B2B customers, tenant-level isolation becomes a crucial aspect. Robust access controls, data encryption, and proper authentication and authorization mechanisms should be implemented to achieve this level of isolation.
In the case of a B2B2B or B2B2C model, it may also be necessary to include service provider-level management APIs to handle administrative functions and ensure smooth operations across the SaaS ecosystem.
Availability
Ensuring the availability of APIs is crucial, as customers often have stringent Service Level Objectives (SLOs) based on the criticality and importance of the API’s function.
Service Level Objectives: Core APIs that directly or indirectly impact critical user work should strive for high availability — achieving five 9s or 99.999% uptime, equivalent to less than 6 minutes of unscheduled outage per year. Non-core APIs can target three 9s or 99.9% uptime, allowing up to 8 hours and 46 minutes of unscheduled downtime per year.
Fault Tolerance and Handling: Highly critical APIs should be designed to handle regional cloud outages, while less critical APIs should at least handle Availability Zone level outages. In the event of an outage, APIs should gracefully handle requests and respond with proper HTTP error codes.
Reliability
Reliability focuses on a system’s ability to function correctly despite adverse conditions. It encompasses the application’s ability to perform the expected function, tolerate user errors, and handle unexpected usage scenarios.
When applicable, APIs should exhibit idempotent behavior. APIs should also handle system faults gracefully. API error codes should align with HTTP standard error codes, enabling developers to understand and respond to errors effectively with clear and descriptive messages.
Scalability
As your product gains success, the number of users and customers will grow, increasing the demand on your system. It’s important that your APIs can handle this increased load efficiently.
Usage Pattern (cyclic nature): API usage typically follows a non-uniform distribution throughout the day. Incorporating elasticity into your system can help optimize infrastructure costs — scaling up during high-demand periods and scaling down during low-demand periods.
Transactions per Second (TPS) requirements: Conduct capacity planning and forecasting exercises. Utilizing an API gateway and load balancers can assist in meeting scalability, reliability, and performance requirements effectively.
Performance
Response Time and Latency: The response time requirements depend on whether APIs are synchronous or asynchronous. Document and share the response time SLAs with customer developers. Sync APIs should respond within the expected response time for the majority of requests.
Rate Limit: Public APIs should have well-defined and documented rate limits on a per-customer/tenant basis. Consider making the rate limit a configurable parameter at the customer/tenant and API level — this also presents a monetization opportunity.
Cache: Caching can be a powerful tool to meet scalability and response time requirements without extensive infrastructure scaling. Consider what should and should not be cached — contents that change frequently and are time-sensitive are not suitable for caching. Also determine who can cache: client side vs. SaaS provider side.
Message Exchange Patterns and Interface Models
Synchronous Request/Response: The API consumer sends a request and waits for a response before proceeding. This is the most widely used pattern. For synchronous interactions, define response time and latency expectations clearly.
Asynchronous: Several variations exist including publish-subscribe, streaming, HTTP push, and event-driven approaches. Enabling asynchronous interactions and event-driven architectures is a crucial requirement for many B2B SaaS services — commonly used for WebHooks (e.g., Splunk integration) or ITSM (e.g., ServiceNow) integrations.
Usability
Usability is crucial for API design. Take a consumer-centric approach that prioritizes ease of use:
- Addressing Structure and Naming Conventions: Follow REST principles and use clear, consistent naming conventions for URLs
- Method Support: Support RESTful HTTP request methods (GET, PUT, POST, DELETE) for CRUD operations
- Data Format Support: While JSON is the default, consider supporting CSV for data-heavy responses
- Pagination: Implement pagination for large API responses
- Sorting and Filtering: Include support for sorting and filtering options
- Developer Experience: Provide a seamless experience from awareness and discovery to evaluation, subscription, operations, and support
Supportability
- Versioning: Support multiple versions using URL path versioning (e.g.,
/v1/,/v2/). Clearly document changes and deprecations. - API Lifecycle Management: Define and communicate lifecycle stages — Preview, Generally Available, Deprecated, and Retired.
- Troubleshooting: Implement robust logging and alerting to proactively identify performance degradation and bugs.
- Proactive Monitoring: Establish monitoring systems for health and performance insights.
- Customer Communication: Implement mechanisms to notify customers about outages via status pages, email, or real-time channels.
Portability
Avoiding Vendor Lock-In: Design APIs and infrastructure in a cloud-agnostic manner. Use cloud-agnostic services, adhere to industry standards, and avoid proprietary vendor-specific features.
Supporting Multi-Cloud Compatibility: In the B2B SaaS space, customers often have preferences regarding cloud providers. Ensure your API platform can be deployed on different cloud providers without significant re-engineering.
Cost
- Granular Scaling: Design infrastructure to scale dynamically in small, granular increments
- Auto Scaling: Implement auto-scaling mechanisms based on real-time demand
- Resource Allocation Optimization: Analyze usage patterns to optimize resource-intensive areas
- Cost Monitoring and Analysis: Implement tools to track and analyze cost implications
- Cloud Provider Cost Optimization: Take advantage of reserved instances, spot instances, and other provider optimization tools
Monitoring and Telemetry
Monitoring and telemetry play a crucial role in driving improvement. Key performance indicators (KPIs) that should be captured include:
- API Availability — Measure uptime and availability to ensure SLAs are met
- API Adoption — Track extent of API adoption by end customers
- API Usage — Measure frequency of calls and data volume
- API Errors — Monitor number and types of errors occurring
- API Performance — Measure response time and latency
- API Security — Track security incidents and suspicious activities
- API Costs — Measure cost associated with providing APIs
- API Satisfaction — Measure customer satisfaction with APIs
- Developer Experience — Assess ease of use for developers
- Developer Engagement — Measure developer engagement and feedback
- Customer Retention — Track retention rates and churn metrics
3. Align and Measure APIs with Business Objectives (OKRs and KPIs)
✦ Important
It’s crucial to establish alignment between APIs and your organization’s business objectives. APIs often have indirect business benefits, making them harder to measure and quantify, which can lead to their de-prioritization.
Identify your company’s strategic goals — revenue growth, customer adoption, agility, security enhancements, performance improvement, cost reduction, and time to market. Map these goals to specific APIs and determine how they contribute to achieving those objectives. Define KPIs for each API that can be measured to articulate the value it brings to the business.
✦ Example KPI Framework
Objective: Drive user adoption through partner integration
KPI: Number of new partners integrated via APIs per quarter → Measure new users from partner ecosystems → Map to revenue generated from those customers
This approach provides visibility to the leadership regarding the value APIs deliver, positioning them as more than just engineering projects. Consider building a dashboard to track these KPIs and share it with business stakeholders.
4. Monetize APIs
Identifying Monetizable APIs
Not all APIs hold the same value. APIs directly used by customers are highly valuable and can be monetized directly or indirectly. Supporting APIs that work behind the scenes should be marked as enabling APIs and monetized indirectly. It is crucial to segment APIs into these categories and establish clear business objectives and roles for each API.
Developing a Monetization Strategy
Simplifying the purchasing process is essential. While there may be a desire to monetize APIs to demonstrate ROI, remember that APIs are a means to deliver value. Balancing the trade-offs between showing ROI, ease of purchase, transparency in tracking usage, and predictability in estimating usage is key.
Monetization strategies can be viewed from three perspectives:
Direct vs. Indirect Monetization: In the direct model, customers pay separately for API access in addition to the base product. In the indirect model, customers already paying for the product do not need to pay extra — however, reasonable use and rate limits should be set.
Pricing and Packaging: Pricing should consider customer value (willingness to pay), cost of building and operating, and competitive pricing. Common packaging options include:
- Rate-limited API access
- Tiered packages (based on consumption and features)
- Bundling with additional features
- Hybrid approaches
Consumer Persona-Based Monetization: Fine-tune your strategy based on customer segments:
- Individual developers, startups, SMBs — may prefer freemium or pay-as-you-go models
- Large enterprises — typically prefer predictable spending with tiered subscription models
- Partners — may opt for revenue sharing or indirect pricing, charging the end customer while incurring no charges for using your APIs
These strategies should be carefully considered and adapted to your specific product and target market.
5. Drive User Adoption
✦ Key Insight
Building an API-centric SaaS product is only meaningful if it is widely adopted by users. The “build it and they will come” approach doesn’t always work, especially in the B2B SaaS market. To drive user adoption, it is essential to create an external API portal that serves as the central communication point for all API-related interactions.
Developer Portal
APIs enable secure communication and data sharing between different software systems, fostering the development of an ecosystem around your SaaS platform. By exposing APIs to developers, you encourage third-party integrations, allowing customers to manage their workflows and data across multiple platforms.
Key developer portal capabilities:
- Onboarding Experience — Enable self-service registration and efficient API subscription/token/key management
- API Discovery — Offer extensive documentation and advanced search functions
- API Usage Guidance — Provide tutorials and code samples
- User Help — Offer forums, chatbots, and help desk ticketing systems
Creating an optimal developer experience throughout their user journey — from awareness to support — is crucial. The developer portal should also effectively communicate business value, potential use cases, and success stories to engage all user and buyer personas involved in the B2B SaaS landscape.
Integration and Ecosystem
APIs enable secure communication and data sharing between different software systems, fostering the development of an ecosystem around your SaaS platform. Key ecosystem benefits include:
- Third-party integrations increase platform value
- Partners become distribution channels
- Collaborative relationships drive innovation
- Complementary products attract more customers
- Co-marketing opportunities expand reach
- Sustainable competitive advantage
Depending on ROI, an API-centric SaaS provider can either leverage an existing ecosystem or build a platform where partners can contribute. While building a platform from scratch can be challenging and costly, it can provide differentiation and a sustainable competitive advantage in the long run.
Promoting APIs and Generating Awareness
Marketing APIs require collaboration between the product team, marketing team, and sales team. APIs are often seen as technical components and may be overlooked by traditional marketers. However, if APIs are central to your strategy, it is important to define different buyer and user personas and craft unique value propositions for each.
Developers have distinct preferences when it comes to consuming information. Collaborating with the marketing team to develop a marketing strategy specific to developer personas will help generate awareness and drive adoption.
Closing Thoughts
APIs are an incredibly powerful tool that can bring numerous benefits to your SaaS product. They have the potential to enhance the user experience, increase the value of your offering, improve security, and reduce development costs. APIs play a critical role in the SaaS ecosystem, enabling seamless integration, customization, scalability, and ecosystem development.
They provide SaaS providers with a valuable opportunity to boost their products’ value, elevate customer satisfaction, generate new revenue streams, and maintain a competitive edge. If your SaaS product doesn’t already offer developer-friendly APIs, I strongly encourage you to explore the immense possibilities they bring.
I hope you have found this comprehensive guide helpful in your journey to building API-centric SaaS products. I welcome any feedback or comments you may have.
Industry Examples and Inspiration
For further inspiration, explore these industry-leading examples of API and SDK implementation:
- Plaid — Financial data APIs
- Twilio — Communication APIs
- Stripe — Payment processing
- Shopify — E-commerce platform
- Auth0 — Identity management
- OpenAI — AI/ML APIs
- Anthropic — Claude AI APIs
- Weights & Biases — ML experiment tracking
- HashiCorp Terraform — Infrastructure as code
- LangChain — LLM application framework


