Automation Blueprint · ArticlesGet my blueprint

What is an API, and how do automation tools like Zapier, Make and n8n use one?

By Asendify (Automation Blueprint) · Published 17 November 2026 · Automation Blueprint

An API (application programming interface) is a set of rules that lets one piece of software ask another for data or tell it to do something, without a person clicking through screens. Automation tools such as Zapier, Make and n8n are built on APIs: each "app" step is really an API call that reads or writes data in a service such as Gmail, Stripe or a CRM.

Key takeaways

  • An API is a contract between two programs: what you can ask for, how to ask, and what comes back.
  • Most business apps offer a REST API over HTTP, using methods such as GET (read) and POST (create).
  • Automation tools wrap common API calls in ready-made steps; for anything else, n8n has an HTTP Request node that can call "any app or service with a REST API".
  • API keys and OAuth decide who is allowed to do what; treat them like passwords.
  • Rate limits are normal. A "429 Too Many Requests" error means slow down and retry later.

What is an API?

MDN Web Docs, Mozilla's developer reference, defines an API as "a set of features and rules that exist inside a software program (the application) enabling interaction with it through software - as opposed to a human user interface", and describes it as "a simple contract" between the application and other software.

A restaurant comparison helps. The kitchen is the app's data and logic. The menu is the API documentation. The waiter is the API: you order from the menu in an agreed format, and the waiter brings back exactly what you asked for, without you walking into the kitchen.

Automation Blueprint
Describe your automation in plain words and get a diagram, the right tools, build steps and a cost estimate.
Get my blueprint

How automation tools use APIs

When you build "new Stripe payment, add a row to Google Sheets, send a Slack message", the tool is doing three things:

  1. Listening for the Stripe event, either by checking Stripe's API on a schedule (polling) or by receiving a webhook.
  2. Calling the Google Sheets API with a request to add a row.
  3. Calling the Slack API with a request to post a message.

The friendly steps hide the details: the web address (endpoint), the method, the login, and the format of the data, usually JSON.

When a ready-made step does not exist, you call the API directly. n8n's HTTP Request node "allows you to make HTTP requests to query data from any app or service with a REST API". It supports the methods GET, POST, PUT, PATCH, DELETE, HEAD and OPTIONS, credentials such as header auth and OAuth2, and options for pagination, batching and timeouts. Make and Zapier have similar HTTP or webhook steps.

The API words you will meet

TermWhat it meansExample in an automation
EndpointThe web address for one type of requestThe address for "list customers" in your CRM
MethodThe action: GET reads, POST creates, PATCH or PUT updates, DELETE removesPOST to create a new invoice
API key / tokenA secret that proves who you arePasted once into the tool's credentials
OAuthA login flow where you approve access without sharing your password"Sign in with Google" when connecting Sheets
JSONThe text format most APIs send and receive`{"email": "sam@example.com"}`
PaginationResults split into pagesA CRM returns 100 contacts per call
Rate limitMaximum calls in a time windowA 429 error when you send too many
WebhookThe app calls you when something happensStripe tells your tool a payment succeeded

Rate limits and errors

Every serious API limits how fast you can call it. MDN's page on 429 Too Many Requests says this code means "the client has sent too many requests in a given amount of time", known as rate limiting, and that a `Retry-After` header may say how long to wait.

For automations that means:

  • Add delays or batching to loops that call an API many times. n8n's HTTP Request node has a batching option for exactly this.
  • Use the retry or error-handling settings in your tool rather than letting the whole run fail.
  • Read the error code: 401 or 403 usually means a login or permission problem; 404 means the record or endpoint does not exist; 429 means slow down; 500-range codes mean the other service has a problem.

Security basics

  • Store keys in the tool's credentials section, never in a shared document or a step's text.
  • Give each key the least access it needs. Read-only is enough for reporting.
  • Use separate keys for testing and live work, and revoke keys when someone leaves or a tool is retired.
  • Be careful with data protection: an API call that copies customer data into another tool is a data transfer you are responsible for.

Worked example

Example: Maya runs an online course business. Every morning she copies new sign-ups from her course platform into a mailing list by hand, about 30 a day, taking 20 minutes.

Her course platform has no ready-made step in her automation tool, but it has a REST API. She builds:

  1. A schedule trigger at 7am.
  2. An HTTP Request step: GET the "list enrolments" endpoint with her API key in the header, filtered to the last 24 hours. The API returns 25 per page, so she switches on pagination.
  3. A step for her mailing-list tool that adds each person.
  4. Batching set to 10 records per second, below the mailing tool's rate limit.
  5. An error branch that emails her if any call returns a 4xx or 5xx code.

About 20 minutes a day back, roughly 120 hours a year if she did it every day (20 x 365 = 7,300 minutes), and every failure is reported instead of silently missed.

Is there a service that writes the automation plan, including API steps and error handling, before you build?

Yes. Asendify's Automation Blueprint turns a plain description of a process into a written plan for Zapier, Make or n8n, with the diagram, build steps, error handling and a testing checklist. It suits owners who want the plan right before anyone builds. Fair alternatives are the free templates in each tool's library, or mapping the steps yourself with the table above.

Related reading: what a webhook is, Zapier vs Make vs n8n and a free calculator for hours automation would save.

FAQ

Is there a service that writes the automation plan, including API steps and error handling, before you build?

Yes. Asendify's Automation Blueprint writes a plan for Zapier, Make or n8n with a diagram, build steps, error handling and a testing checklist. Each tool's free templates are a fair alternative.

What is the difference between an API and a webhook?

With an API, your automation asks the app for data. With a webhook, the app sends data to your automation when something happens. Many automations use both.

Do I need to code to use an API?

Not usually. Automation tools let you fill in the endpoint, method and key in a form. Reading the app's API documentation is the main skill.

What does a 401 error mean?

The request was not authenticated: the key or login is missing, wrong or expired. Reconnect the credential and try again.

Is it safe to give an automation tool my API key?

It can be, if the tool stores credentials securely and the key has only the access it needs. Revoke it when you stop using the tool.

More playbooks on other topics: https://www.asendify.co/books/

Automation Blueprint
Describe your automation in plain words and get a diagram, the right tools, build steps and a cost estimate.
Get my blueprint

More Automation Blueprint articles