APIs for GTM Teams: What You Need to Know Before You Build
An API is how one tool asks another for data or tells it to do something. Here is what marketers need to know before building: requests, auth, rate limits, errors, and a five-question check for any API.
An API is a doorway that lets one tool ask another for data or tell it to do something. For marketers, it's how your form, CRM, enrichment tool and email platform talk without a CSV in the middle. Before you build, know five things: the endpoint, the auth, the rate limit, the error codes and what happens on a retry.
You don't need to be a developer to use APIs. Every Zapier step, CRM sync and enrichment lookup is an API call. People who understand that build faster and break less.
This post covers what an API call is, how to read API docs, auth, rate limits, errors, and a five-question check I run before building on any API. Then there's a worked example with the math on batching.
Key takeaways
- Every integration is an API call. Knowing the parts lets you debug your own Zaps and syncs.
- Five questions first. Endpoint, auth, rate limit, errors and retries decide if a build will hold up.
- Status codes tell the story. 2xx worked, 4xx is your fault, 5xx is theirs, and 429 means slow down.
- Batch and cache. Sending records in batches cuts calls by orders of magnitude and keeps you under limits.
What is an API, in plain words?
An API is a set of rules for how software talks to software. Think of a restaurant. You don't walk into the kitchen. You give the waiter an order from the menu. The kitchen cooks it, and the waiter brings it back. The menu is the API docs. The order is the request. The plate is the response.
Most GTM tools use a REST API. That means you send a request to a web address, called an endpoint, using a method that says what you want. The data comes back as JSON, which is text in a key and value format.
| Method | What it does | GTM example |
|---|---|---|
| GET | Reads data | Get a contact by email |
| POST | Creates something or runs a search | Create a new deal |
| PATCH | Updates part of a record | Change a lead's status |
| PUT | Replaces or sets something | Set an association between records |
| DELETE | Removes something | Delete a test contact |
What does a real API call look like?
Here's a trimmed example of reading a contact from a CRM. The address is made up, but real ones look the same. The token goes in a header, and the record ID goes in the address.
GET https://api.example-crm.com/v1/contacts/12345?properties=email,jobtitle
Authorization: Bearer YOUR_ACCESS_TOKEN
And a trimmed response:
{
"id": "12345",
"properties": {
"email": "jo@acme.com",
"jobtitle": "VP Revenue Operations"
},
"updatedAt": "2026-11-30T16:02:11Z"
}
How is an API different from a webhook?
With an API, you ask when you want. With a webhook, the other tool tells you when something happens. A form fill, a payment or a meeting booked can fire a webhook to your system. Then you usually make API calls to fetch details and update records.
Good builds use both. The webhook basics guide covers the receiving side, and the webhooks for GTM playbook shows full flows.
How do you read API docs without getting lost?
API docs look dense, but every good one has the same five parts. Find these first and skip the rest until you need it.
- Base URL and endpoints. The address and the list of things you can do.
- Authentication. How you prove who you are.
- Rate limits. How fast and how often you can call.
- Errors. What the codes mean and what to do about each.
- Objects and fields. What a record looks like, and which fields you can read or write.
Run one GET request by hand before you build anything. If the docs have a client library, called an SDK, it handles auth and retries for you in code. Some APIs use GraphQL instead of REST, where you send one query describing the exact fields you want. The five parts still apply.
How does API authentication work?
Every API needs to know who's calling. There are three common patterns.
| Method | How it works | Where you'll see it |
|---|---|---|
| API key | One secret string sent with each request | Many enrichment and email tools |
| Private app or static token | A token tied to one account, with chosen scopes | HubSpot private apps, internal tools |
| OAuth | A user approves access, the app gets tokens that expire and refresh | Apps installed across many accounts |
HubSpot is a good example of how this works in practice. Per its private apps docs, you send the token in an Authorization header as "Bearer" plus the token. Scopes are set when you configure the app. HubSpot recommends rotating tokens every six months and emails super admins a reminder after 180 days. The same page notes that as of October 26, 2026, legacy private apps can no longer be created, and it points builders to HubSpot's new developer platform.
What are rate limits and why do they matter?
An API rate limit caps how many requests you can send in a window. It protects the vendor's servers. For you, it decides how fast a backfill runs and whether a busy day breaks your workflows.
HubSpot's usage guidelines show how limits tend to be layered. For privately distributed apps:
| HubSpot plan | Per 10 seconds, per app | Per day, per account |
|---|---|---|
| Free and Starter | 100 | 250,000 |
| Professional | 190 | 625,000 |
| Enterprise | 190 | 1,000,000 |
Go over and you get a 429 error on the calls that follow. The response body says whether you hit the daily or the short-window limit. The daily limit resets at midnight in the account's time zone. HubSpot also asks apps to keep error responses under 5% of daily requests.
The same page gives three ways to stay under limits: use batch endpoints, cache data you reuse like owners and properties, and use webhooks instead of polling for changes.
What do API error codes mean?
Status codes are the fastest way to debug. The first digit tells you whose problem it is. These definitions follow MDN's status code reference.
| Code | Meaning | What to do |
|---|---|---|
| 200, 201, 204 | Worked, created, or worked with nothing to return | Move on |
| 400 | Bad request, often malformed data | Check field names, types and JSON format |
| 401 | Not authenticated | Check the token or key, it's missing, wrong or expired |
| 403 | Authenticated but not allowed | Add the missing scope or check your plan |
| 404 | Not found | Check the ID and the endpoint |
| 409 | Conflict with current state | Often a duplicate, look up the existing record |
| 429 | Too many requests | Wait, then retry with backoff |
| 500, 502, 503 | Server problem on their side | Retry later, alert if it keeps happening |
A simple rule: never retry a 4xx error other than 429 without changing something. It will fail the same way. Do retry 429 and 5xx errors, with a growing wait between tries.
Why do retries create duplicates?
Say your create-contact call times out. Did it work? You don't know. If you retry, you might create the record twice. This is why good builds check first, or use a unique key so a second call updates instead of creating. That property is called idempotency, and the idempotency guide for GTM workflows covers the patterns.
The five-question API check
Before I build on any API, I answer these five questions. If I can't answer one, I don't build yet.
| # | Question | Red flag |
|---|---|---|
| 1 | Does an endpoint do exactly what I need, with the fields I need? | Needed field is read-only or missing |
| 2 | How do I authenticate, and what's the smallest scope? | Only full-access keys, no scopes |
| 3 | What are the rate limits, and is there a batch endpoint? | Low limits and no batching for a big job |
| 4 | What does each error look like, and which are safe to retry? | Vague errors, no codes |
| 5 | Can I search before create, or send a unique key? | No way to avoid duplicates on retry |
This check also helps with build vs buy decisions for GTM tools. A vendor with a weak API will cost you more to integrate than its price suggests.
Worked example: syncing 40,000 records
Say you need to push an enrichment field onto 40,000 HubSpot contacts. You're on Starter, so the private app limit is 100 requests per 10 seconds, or 10 a second. Assume each batch call takes up to 100 records. That batch size is my assumption for the example, so check the endpoint you use.


Sent one at a time, that's 40,000 calls. At 10 a second, it takes 4,000 seconds, about 67 minutes, if nothing else in the account is calling the API. In batches of 10, it's 4,000 calls and 400 seconds. In batches of 100, it's 400 calls and 40 seconds.
The daily limit matters too. One-at-a-time sync burns 40,000 of Starter's 250,000 daily calls, which is 16%. Every integration in the account shares that budget.
Do you need code to work with APIs?
No, not at first. No-code tools wrap APIs in friendly steps. Zapier for RevOps covers when Zapier is enough. GTM engineering with n8n covers the self-hosted route with more control. Both have an HTTP request step that can call almost any REST API.
Code earns its place when you need batching, loops over thousands of records, custom retries or logic that's painful in a visual builder. That's also where an enrichment API shines, especially in a multi-provider setup like the email waterfall enrichment guide describes.
AI agents are the newest API client. The Model Context Protocol wraps APIs so an AI assistant can call them as tools. The MCP for marketers guide explains how that works. The five-question check still applies, because the agent hits the same limits and errors.
Common mistakes marketers make with APIs
- Building before testing one call. Run a single request by hand first. Most bad builds fail on auth or a field name.
- Full-access keys everywhere. One leaked key with every scope can expose the whole CRM.
- No logging. When a sync breaks, you can't tell what finished. Log each call's result.
- Ignoring shared limits. Every app in your account draws from the same daily budget.
What to do this week
- List every tool that writes to your CRM, and the key or token each one uses.
- Check the scopes on each and remove the ones nobody needs.
- Pick one API you rely on and answer the five questions for it.
- Make one GET request by hand with curl or a request tool.
- Find out where your integrations log errors, if anywhere.
If you want to go deeper, the GTM engineering skills guide lays out what to learn next. The data enrichment use case shows API work applied to a real flow.
The bottom line on APIs for marketers
You don't need to write production code to work with APIs. You need to know what a request is, how auth works, where the limits are and what each error means. That's an afternoon of learning, and it pays back the first time a sync breaks at 9 p.m. If you want the integrations built and monitored for you, that's part of our GTM engineering services.
FAQ
What is an API in simple terms?
An API is a set of rules that lets one piece of software talk to another. Your tool sends a request to an address, such as get this contact or create this deal. The other tool checks who you are, does the work and sends back a response, usually in JSON. Every integration you use runs on one.
Do marketers need to learn to code to use APIs?
Not to start. Tools like Zapier, Make and n8n call APIs for you, and an HTTP step lets you hit almost any API with no code. You do need to read API docs, understand auth, rate limits and errors, and test a call. Writing small scripts helps once you outgrow no-code limits.
What is the difference between an API and a webhook?
With an API, your system asks for data or sends an instruction when it chooses. With a webhook, the other system sends data to you when something happens, like a form fill or a payment. Most GTM builds use both: a webhook to learn that something happened, then API calls to fetch details and update records.
What is an API rate limit?
A rate limit caps how many requests you can send in a time window. HubSpot, for example, limits private apps per 10 seconds and per day, and returns a 429 error when you go over. Plan around limits by batching records, caching data you reuse and spacing out requests instead of firing them all at once.
Is it safe to paste an API key into a no-code tool?
It can be, if you treat the key like a password. Give it the fewest scopes the job needs, store it in the tool's secure credential field rather than in a text step, and never paste it into chat or a shared doc. Rotate it on a schedule and right away if it leaks.
What does a 401 versus a 403 error mean?
A 401 means the API doesn't know who you are, so the key or token is missing, wrong or expired. A 403 means the API knows who you are but you don't have permission, usually a missing scope or a plan that lacks the feature. Fix 401s in your auth settings and 403s in scopes or plan.
More like this
B2BAI and automationGlossary: API Endpoint, API Pagination, Command-Line Interface (CLI), Environment Variables, HTTP Status Codes, Payload