REST API
A REST API is a web interface based on the principles of REST, short for representational state transfer. Data is addressed as resources via unique URLs and read, created, changed or deleted with HTTP methods such as GET, POST, PUT and DELETE, usually in JSON format.
REST APIs are a common way for CMSs, editorial tools and other applications to exchange data. The functions a specific interface offers are described in its documentation.
Why this matters for you
REST APIs are the most common type of web interface. Almost every CMS, CRM and marketing tool offers one. Whoever knows the basic principles can better assess integration options during tool selection and coordinate requirements precisely with IT and service providers.
Context
REST was described by Roy Fielding in his dissertation in 2000. The core idea is that every resource, for example an article or a contact, can be reached at its own address. Standard web commands determine what is to happen: GET reads data, POST creates new data, PUT or PATCH changes it, DELETE deletes it. Responses usually come in JSON format.
REST interfaces are stateless; each request contains all the necessary information. This makes them simple, robust and easily scalable. They are usually secured with API keys or OAuth. One example is the WordPress REST API, through which content platforms can automatically create and update posts.
What questions about the REST API do you ask during tool selection?
During tool selection, you mainly clarify whether the REST API actually maps your planned processes. These questions belong in every vendor conversation:
- Scope: which content, fields and functions can be reached via the API, read only or also write?
- Documentation: is there public, up-to-date documentation with examples?
- Authentication: how do other systems sign in, and can rights be restricted per access?
- Limits: are there limits on the number of requests, and are they sufficient for your volume?
- Events: can the system actively notify you of changes, for example via webhooks, or do you have to poll regularly?
- Stability: how are new versions introduced, and how long do old ones remain usable?
- Costs: is API access included in the plan or charged separately?
Have the answers assessed by your IT or an integration partner before you decide.
How does a REST API work, simply explained?
A REST API works with addresses and commands. An example for blog posts:
- GET on the address for posts: returns a list of all posts.
- GET on the address of a specific post: returns exactly this post.
- POST on the address for posts: creates a new post.
- PATCH on the address of a post: changes individual fields, for example the title.
- DELETE on the address of a post: deletes it.
The response usually contains the data in JSON format and a status code, for example 200 for success, 404 for not found or 429 for too many requests.
A CMS provides an article as a resource that can be read or, with permission, updated.
Typical mistakes
- Only checking that it exists: what matters is which data and actions the interface covers.
- Not checking the documentation: a poorly documented API makes every integration more expensive.
- Ignoring versioning: if the vendor changes the API, existing connections can fail.
Frequently asked questions
REST API or GraphQL: what is the difference?
A REST API provides fixed endpoints for individual resources, for example articles or images. With GraphQL, there is usually a single endpoint through which the querying system requests exactly the fields it needs. GraphQL thus avoids superfluous data and multiple queries; REST is more widespread and often easier to use. Some systems offer both.
Does marketing need to understand a REST API?
Marketing does not need to be able to program a REST API but should understand what it does. Whoever knows that content is transferred as resources with individual fields can formulate requirements more clearly and assess offers better. It helps to go through a tool's documentation together with IT once.
What does an integration via a REST API cost?
The costs of an integration via a REST API depend above all on the scope of the data flows, the quality of the documentation and the necessary error handling. A simple transfer of a few fields is manageable; complex processes with many fields, images and status changes need considerably more development. Also factor in maintenance when interfaces change.
How are REST APIs and AI connected?
Many applications connect AI models via a REST API: a prompt is sent to the provider's interface, and the response usually comes back as JSON. Conversely, AI agents can read and write data in editorial tools or CMSs via REST APIs. In this case in particular, restricted access rights are important so that an agent only carries out permitted actions.
What is a REST API, simply explained?
A REST API is a web interface through which programs can retrieve, create, change or delete data. Each resource, for example an article, has its own address, and standard commands such as GET or POST determine what is to happen. REST APIs are the most widespread type of web interface.
