GTM Engineering term, automation and APIs

REST API

A REST API is a web API that exposes data as resources at URLs, which clients read and change using standard HTTP methods like GET, POST, PATCH and DELETE.

Also called: RESTful API, REST, representational state transfer

REST API sits under every stage: it's part of the data and systems the whole funnel runs on, near related terms like API, GraphQL and JSON (the blue squares).

A REST API is a web API that exposes data as resources at URLs, which other software reads and changes with standard HTTP methods. Almost every CRM, sequencer, enrichment provider and billing tool in a GTM stack offers one. If you can read a REST API's docs, you can connect nearly any two tools, even when no prebuilt integration exists.

How it works

REST organizes an API around resources: contacts, companies, deals, invoices. Each one lives at a URL, and you act on it with an HTTP method:

  • GET /v1/contacts/123 reads contact 123.
  • POST /v1/contacts creates a new contact from the body you send.
  • PATCH /v1/contacts/123 updates only the fields you include.
  • DELETE /v1/contacts/123 removes it.

Requests and responses are almost always JSON. Every request carries credentials, usually an API key or an OAuth access token in a header. Every response carries a status code:

  • 200 / 201: success, or created.
  • 400: your request was malformed or failed validation.
  • 401 / 403: missing or insufficient permissions.
  • 404: the record doesn't exist.
  • 429: you hit the API rate limit. Slow down.
  • 500 range: the server failed. Usually safe to retry later.

REST is stateless, meaning each request carries everything the server needs. That makes it simple to call from anywhere: an iPaaS, a script, a serverless function or a spreadsheet add-on.

Example

Say you need to update a "fit score" field on 50,000 CRM contacts after a scoring change. Calling PATCH once per record is 50,000 requests. If the CRM allows 100 requests every 10 seconds (assumption), that's 50,000 / 10 per second = 5,000 seconds, about 83 minutes, and it eats the rate limit every other integration shares.

Most CRMs also offer batch endpoints. At 100 records per batch request, the same job is 50,000 / 100 = 500 requests, under a minute of API time. Checking the docs for batch and search endpoints before writing a loop is the single biggest efficiency habit we teach.

REST vs GraphQL vs webhooks

REST gives you fixed endpoints that return fixed shapes. GraphQL gives you one endpoint where you ask for exactly the fields you want, which cuts over-fetching. Webhooks flip the direction: instead of you calling the API, the app calls you when something changes.

Real integrations combine them. A webhook tells you a deal closed, then a REST call fetches the full deal and its line items. If a vendor ships an SDK, it usually wraps their REST API so you don't hand-build authentication, pagination and retries.

Common mistakes

  • Looping single-record calls when a batch endpoint exists.
  • Ignoring pagination, so you only ever process the first 100 results.
  • Treating every non-200 response the same instead of retrying 429s and 500s and fixing 400s.
  • Using PUT when you meant PATCH and wiping fields you didn't send.
  • Hardcoding record IDs that differ between sandbox and production.
  • Skipping the changelog, then getting surprised when an API version is retired.

FAQ

What does REST stand for?

REST stands for representational state transfer, an architectural style described by Roy Fielding in his 2000 doctoral dissertation. In practice it means organizing an API around resources at URLs and using standard HTTP methods to work with them.

What is the difference between a REST API and an API?

API is the general term for any interface that lets software talk to other software. A REST API is one specific style of web API, and it's the most common style among SaaS tools like CRMs, sequencers and enrichment providers.

What are the main REST API methods?

GET reads data, POST creates a record or triggers an action, PATCH updates part of a record, PUT replaces a record and DELETE removes it. Each request returns a status code that says whether it worked.

See all automation and APIs terms ↳

Used in these articles