Back to glossary
Technology & Integrations

REST API

An API architecture style that uses HTTP's own methods and status codes to operate on resources identified by a URL, with no state kept between calls.

Also known as: rest api · restful api · rest api · restful · rest architecture

Try CRPRO free for 7 days

REST (Representational State Transfer) is an architecture style for APIs. An API that follows this style is called RESTful. The core idea: everything is a resource with its own address, manipulated through the verbs HTTP already offers.

The methods

MethodWhat it does
GETfetches data, without changing anything
POSTcreates a new resource
PUT / PATCHupdates an existing resource (fully / partially)
DELETEremoves it

So GET /contacts/42 fetches contact 42 and DELETE /contacts/42 removes it. The address says what; the method says the action.

The status codes you will run into

  • 2xx — it worked (200 ok, 201 created).
  • 4xx — the error was on the requester's side: 401 no credentials, 403 no permission, 404 does not exist, 429 rate limit exceeded.
  • 5xx — the error was on the server's side. Here, retrying the call usually makes sense; on a 4xx, it does not.

Stateless — and why it matters

REST is stateless: every call carries everything it needs, and the server does not keep memory between one call and the next. This simplifies scaling, but it means authentication goes on every request.

REST, SOAP and GraphQL

  • SOAP — older, XML-based, more rigid and verbose. Still common in banks and legacy systems.
  • GraphQL — the client describes exactly the fields it wants, in a single call. Avoids fetching too much data.
  • REST — the dominant standard for web integrations, including the WhatsApp API.

Frequently asked questions

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

API is the general concept of an interface between systems. REST is a specific architecture style, which uses HTTP methods and status codes and treats each piece of data as a resource with its own address.

What does RESTful mean?

It is the adjective for an API that follows REST principles: resources identified by a URL, HTTP verbs for actions, and stateless communication between calls.

What does a 429 error mean?

Too Many Requests: you exceeded the allowed number of calls in the period. The fix is to reduce frequency and respect the interval indicated in the response, not retry immediately.

When should I use GraphQL instead of REST?

When the client needs variable combinations of fields and excess transferred data becomes a problem. For simple, predictable integrations, REST is usually more straightforward to operate.

Related pages

Related glossary terms