Contact Us

What Makes a Good API?

author avatar
By The Boost Team on Jan 13, 2023
8 min read
A closeup of a person using a mobile phone and a laptop, with a stylized overlay of networked dots.

APIs have become ubiquitous in modern technology - and in modern tech marketing. If you’ve ever looked into buying a software service or platform in the last ten years, the odds are that a good API was listed as one of the selling points. But what exactly makes an API “good?”

Before we dive into that question, let’s take a minute to recap what APIs are, and why they’ve become so central to business and technology.

API 101: What is an API?

Application Programming Interfaces (APIs) are the mechanisms that allow computer software to communicate with each other. APIs ensure that when one software system makes a request, another system can understand the request and respond correctly. When discussing the relationship between two software systems, the application sending the request for action is called the client, and the application sending the response is called the server

For example, your bank’s software system houses all of your banking data–that software system is the server. The banking app on your phone is the client. When you initiate actions in your banking app, like making transactions, checking your account balance, or even chatting with a representative, the app communicates with the bank’s software via its API and tells it which action to perform. The server provides an API for the client to use to perform actions.

How does an API work?

Let’s say that you want to make a transfer of funds from your checking account to your savings account. You open your banking app and navigate to the transfer tab where you are asked which account you are transferring from, which account you are transferring to, the amount you want to transfer, and any additional notes before you can submit the request. Within seconds of submitting your request, the number on your checking account decreases and the number on your savings account increases, and the physical amount of money you can withdraw from the bank for both accounts has changed. 

For this to happen and money to actually be moved, the app needs a way to tell the bank’s system what to do. That is where the API comes in. The APIs are the rules and protocols that are coded into both systems as a set of predetermined requests and responses. 

When you enter how much money you want to move and where you want to move it to, the client communicates with the API on the server. When the server receives that request, it reads the information and executes a predetermined set of actions to move exactly the amount of money that you requested into the correct account.  

From a technical standpoint, APIs consist of two main components: an address and a body. The address, also known as an endpoint, tells the data where it's supposed to go (in our example, the bank’s system). The body is the data that will be delivered to that address. 

Why are APIs important?

APIs allow developers to automate functions and create a very clear, easy-to-understand relationship between what the user needs to do and what the computer systems will do in response to their requests. 

Without APIs, the modern conveniences of apps, digital transactions, and the like couldn't exist. Everything would require human, manual interference. Instead of quickly logging into an app on your phone to make a transfer of funds, you would have to physically go into your bank or talk to a teller over the phone, and your request would take much longer to process. 

But because of the code and predetermined actions built into digital systems through APIs, users can interact with services much faster. You can transfer your money in seconds, and the bank can gather your information, automate manual processes, and make their work more efficient.

What Makes a Good API?

Now that we’ve established what an API is and why they are important, let’s talk about what makes a good API. While all APIs follow the same principle of allowing systems to communicate, not all APIs function equally well. The quality at which an API is developed impacts how effective any system will be at actually doing what the user is asking for.  

So what makes a good, well-constructed API? Here are 5 aspects of a good API.

1. Simplicity

First and foremost, APIs should be simple. This means having clear addresses, endpoints, and easy-to-understand request body structures. In our banking example, the bank’s software and the app’s software are presumably owned and operated by the same company–the bank. Oftentimes, however, the client and the server belong to different companies. Developers at both companies will need to build their systems to be able to understand the API and react accordingly. A simple, straightforward API structure makes it easier to correctly implement.  

Let's take a look at an insurance API example. Say that you own a pet store and you have partnered with an insurance carrier to offer embedded pet insurance to your customers. In order for your customers to purchase insurance from you, they have to enter their information in a form on your website. Then the insurance company receives that information, makes an underwriting decision, and issues the policy. 

In order for the insurance company to receive your customers’ information and take action on it, your front-end systems need to communicate with your insurance partner’s system. The set of requests and responses between these separate systems should be simple and clear. The simpler the API, the faster and more seamless the integration between these two systems will be, and the fewer opportunities for mistakes. 

2. Complete, inclusive functionality

A good API should be able to execute all (or at least most) of the functions a user would need. Going back to our bank example, an app that allowed the user to check their balance but not to transfer funds wouldn’t be very useful to the customer. To be effective, the bank’s API needs to be able to handle most of the things a customer might want to use their bank app for. 

For more complex functions, it’s important that an API be able to collect and process all of the information needed to return a response. For our pet insurance example, let’s say that in order to decide to issue a policy, the insurance company needs ten pieces of information from the customer. 

If the API could only handle five of those pieces of information, the rest would need to be submitted separately (likely over email or a phone call with an insurance agent). It would be an inconvenient experience for both the customer and the insurance company, and increase the likelihood of manual errors. A good insurance API would be able to collect and process all information needed to issue a policy, right from the app or website.

3. Useful error handling

Errors are inevitable with any piece of software. What sets a good API apart from a bad one is how it handles errors when they arise. Good error handling can make the difference between getting back on track quickly, or getting bogged down in bug reports.

Broadly speaking, there are two kinds of software errors: 400 errors and 500 errors. The difference between the two is how much information they can give about what’s gone wrong.

400-type errors are specific errors with an identified problem. One of the most familiar is a “404 not found” error, which occurs on the web when a user tries to navigate to a web page that doesn’t exist. If you’ve ever mistyped a URL or clicked on an old link to an inactive page, you’ve seen a 404 error. Because 400-type errors give a specific reason for why the request failed, they also give direction on how to go about fixing the problem.

500-type errors, on the other hand, are much less clear. 500 errors indicate general server failures, crashes, or bugs. These tend to be more frustrating for users and developers alike, since they don’t contain much to go on for how to fix it.

A good API should be able to produce mostly 400-type errors that identify the problem so that it can be easily tracked and fixed. When an API produces a lot of unidentifiable 500 errors, it indicates a poor-quality API.

4. Thorough documentation

While not technically part of the API itself, good documentation is essential to a successful API. As developers integrate systems or build the API rules into an app, documentation has a direct impact on how quickly they can work, and how well they can avoid errors.  Good documentation should specifically describe each of the endpoints, what the requests should contain, and what the responses will contain.

In many applications, an API will touch various parts of an overall system. This is especially true for more complex operations like our pet insurance example. On the user’s side, applying for insurance might seem like a straightforward software operation - they fill out the form, and the software sends it. On the insurance company’s side, however, it’s much more complex. 

When the user submits their application, numerous parts of the insurance company’s system will be involved with the process. One part of the system will document the personal information they provided in the application. Another part will use that information to make calculations around premium costs, and still another part will generate the policy itself. In order to make sure this all happens seamlessly, developers need access to comprehensive, up-to-date documentation for how all these components interact and are executed via the API. 

5. Fast performance

Finally, a key benefit of APIs in general is speed. Rather than trudging through manual processes, APIs are meant to automate functions that would take much longer if human interactions were required. A good API should allow information to be passed between servers quickly and efficiently.

Going back to our earlier examples, no one wants to sit and wait to see if their bank transfer request or their insurance application was successfully received. For the best user experience, APIs should process requests in less than a second. If an API is slow to respond, it may indicate inefficient architecture, or that the servers are housed on insufficiently powerful hardware.

Get to know the Boost API for insurance

APIs allow businesses to function in a modern, technologically savvy way. By continuously improving the communication between client and server systems, consumers have access to a wider variety of digital transactions and services than ever before.

If you want to learn more about Boost’s API and how we can help your business stand out through insurance-as-a-service, contact us, or dive into building your insurance program with Boost Launchpad.

Previous articles
The top 3 takeaways from our embedded insurance consumer survey
Embedded Insurance Survey Results: What We Learned From Consumers
Feb 3, 2023
You may have heard that embedded insurance is a big opportunity to grow your business, but are your customers actually interested?  We wanted to get the story straight from the source, and so in Q4 2022 Boost surveyed 650+ US consumers. We asked about their experiences with insurance, how they felt about their current insurance options, and what mattered most in their insurance purchases.  Here are the top 3 things that we learned from our consumer insurance survey results. [See Full Size] In our insurance survey, a whopping 73% of consumers had either already bought insurance from a non-insurance brand, or would be interested in doing so. While price was mentioned most often, other reasons included brand loyalty and convenience. Trust was another important factor. 62% of respondents were interested in buying financial products from a trusted brand, rather than a bank. For millennials, the number went up to 95%. First movers might have an advantage here as well. 20% of our respondents had never been offered financial products from a retail brand - but they liked the idea. All this is promising news for companies outside the traditional insurance sphere who are looking to build revenue and customer loyalty with embedded insurance. If you can deliver the product and experience consumers are looking for, the appetite is there. It’s hardly a secret that convenience is crucial to customer experience in the digital age, so it comes as no surprise that it was important to our respondents. 59% told us that they’d be more likely to buy insurance if it were offered digitally, as part of a related transaction. Younger consumers were more likely to be enthusiastic about digital insurance: nearly 70% of respondents aged 18-29 were interested in buying insurance directly through a transaction on a retail website. For half of our respondents, embedded insurance wasn’t a novel idea. 50% had already bought embedded insurance at least once, at the point of sale in a related transaction. For many consumers, insurance is a long-term purchase. 68% of our survey respondents told us they’d had the same insurance provider for at least two years, and 10% had had the same provider for more than five years. For retailers, insurance could also be an overall boost to retention. 62% of respondents said that when a retailer offered protect-your-purchase options, they were more likely to be repeat customers. Learn more about offering embedded insurance in our free guide, or contact us to get started.
Continue Reading
preview image
Get the Guide: Growing Your Revenue with Embedded Pet Insurance
Jan 12, 2022
It’s a great time to get into the pet insurance market. In fact, more than 70% of American households now own at least one pet, and with the rising cost of vet care, those households are more and more likely to insure their pets’ health. For businesses that serve pet owners, offering embedded insurance is a significant opportunity to grow their revenue and deepen relationships with their customers.  At the same time, for most pet-related companies, insurance is a whole new line of business outside their core expertise. The opportunity is there, but it can be hard to know how to get started in the pet insurance market. Partnering with Boost can make it easy to get underway! Download The 2022 Guide to Growing Your Revenue with Embedded Pet Insurance, and learn everything you need to know to get your business started with pet health insurance: Learn how pet health insurance works and what coverages are most commonly available, and explore the use cases that make pet insurance valuable to your customers. Learn which types of businesses have the best opportunity for offering white-label pet insurance, along with what it takes to actually get started (spoiler: less time than you’d think). Learn how to reach your customers with your new insurance offering, using the knowledge you already have about their preferences and buying habits for their pets. The 2022 Guide to Growing Your Revenue with Embedded Pet Insurance is free to download HERE. And as always, if you have any questions about our pet health insurance product or anything else, our team is here to help.
Continue Reading
preview image
Introducing The New Boost Brand
Nov 9, 2022
It’s an exciting day for Boost: today we’re officially launching our new brand identity, and a shiny new website to go along with it. When we started Boost in 2017, we had one big goal: to drive innovation in the insurance industry. The insurance market is highly regulated, inefficient, technologically underdeveloped and traditionally dominated by a handful of large players, who haven’t had much incentive to change with the times. This added up to an environment that made it very difficult for new players to get modern ideas to get off the ground - which is why buying insurance was still a painful, largely offline process, with often-outdated products.  We built Boost to change that. Our mission is to make the insurance industry accessible to innovators by providing the compliance, capital, and technology infrastructure they need to offer modern protection to their customers. We wanted to make it easier for new players to get to market, and to make insurance work better for everyone - the people buying it, and the people offering it. Five years later, it’s been a wild ride. We’ve built an API-based platform that enables any company to offer branded, digital insurance through their website or app, powered by one of the most advanced policy administration systems in the industry. We’ve launched a suite of first-of-their-kind insurance products like parental leave insurance, crypto wallet insurance, and management liability insurance designed for startups, as well as launching improved, more customer-centric versions of established products like business owners insurance for small businesses, cyber insurance and pet health insurance. Since Boost’s inception, we’ve powered more than 40 insurance innovators as they’ve improved the insurance buying process. I couldn’t be more proud of what we’ve accomplished. But we’re nowhere close to finished. Boost’s overall vision for the insurance industry is much bigger than where we are today: we’re building the insurance market for the modern world. Our vision is to democratize the industry through technology and innovation so everyone can have access to the protection they need, when they need it. To tackle that vision, we’ve grown a lot as a company - and it’s time for our brand to grow, too.  The updated Boost brand better reflects who we are now: a bold, modern, tech-forward leader in the insurance space. It allows us to tell our story in a way that’s easier to understand, and gives us room to scale as we continue moving forward. The central element in our new brand identity is one you’ll hear us talk about often - the idea of the platform. Boost delivers more than just robust tech infrastructure, white-labeled insurance products or access to risk capital through our managed reinsurance facility (though we have those too). With Boost, you get an end-to-end platform comprising every layer of the embedded insurance value chain, all in one turnkey solution. The platform is what gives our customers the tools to scale their insurance programs and build long-term, profitable lines of business, and that’s why we made it the cornerstone of our brand. Alongside our new brand identity, we’re also excited to unveil the all-new Boost website. Our new online home isn’t just prettier to look at - it’s also packed with more information about what we offer, and more ways to connect with us.  Boost has come a long way since the beginning, and I look forward to the next steps we take on our journey. Much more to come!
Continue Reading