# API (interface)

> An API is a programming interface: a precisely described door through which one program requests data from another or triggers actions in it. Instead of copying customer data by hand from one piece of software to another, the programs exchange it automatically through the API, following clear rules and with checked permissions.

Page: https://voxcrm.ch/en/glossary/api/
Last updated: 3 December 2026

## How an API works

An API defines which questions one program may ask another and in what form the answer comes back. You can think of it as the counter at a public office: anyone who wants something fills in a specific form, hands it in at the right counter and receives an answer in a known format. Nobody needs to know what happens behind the counter, which database is used or how the files are organised.

Technically, every call consists of a request and a response. The request names an address (the so-called endpoint), an action such as “read” or “create” and, where necessary, data. The response contains the requested data or an error message with a status code. Because both are precisely described, programs from different vendors can work together as long as they stick to the description.

1. **Request:** The program sends a request to the endpoint, for example “give me all contacts that have changed since yesterday”.
2. **Check:** The other side checks the key sent along with it: is it valid, and is it allowed to read this data?
3. **Processing:** Only then is the data looked up or the action carried out.
4. **Response:** The response comes back in a structured form, usually in JSON format, with a status code such as 200 for “OK” or 403 for “no permission”.

## REST API: the usual form on the web

Most business applications now offer a REST API. REST is not a program but a design principle: every type of record has its own address, and the action follows from the HTTP method. The same technology a browser uses to load web pages thus also carries business data. That makes REST APIs easy to test and usable with almost any programming language.

**The four most common methods of a REST API**

| Method | Meaning | Example |
|---|---|---|
| GET | Read data | Fetch the list of open invoices |
| POST | Create a new record | Record a lead from a web form |
| PATCH or PUT | Change an existing record | Correct a contact’s phone number |
| DELETE | Delete a record | Remove a test entry |

Besides REST there are other forms, such as GraphQL, where the caller orders exactly the fields it needs, or older SOAP interfaces using XML, which are still found in banking and government environments. For connections between SME programs, REST is the norm. It is often complemented by webhooks, which do not wait for a request but report an event of their own accord.

## Security: keys, permissions and limits

An API opens a route to business data. Access is therefore at least as important as the technology. Good interfaces work with keys that have only the permissions a connection really needs: a web form that delivers leads does not need to be able to read invoices. Connections made on behalf of a person, such as an AI assistant, often use OAuth instead of a fixed key, so that the person grants access themselves and can withdraw it again.

- One key per connection: If a connection is no longer needed, only that key is deleted.
- Least privilege: Grant read and write permissions separately and only open the areas that are needed.
- HTTPS only: Keys and data are transmitted in encrypted form.
- Expiry date and limits: Keys with a validity date and a cap on calls per minute protect against misuse.
- Never put keys in emails or spreadsheets: Anyone who knows a key has its permissions.

In Switzerland, the Federal Act on Data Protection (FADP, in German DSG) applies to personal data even when it flows through an API. Anyone passing customer data to another program should know where that program stores the data and what it uses it for.

## How to recognise a good API

Whether a program is easy to connect to shows not in its advertising but in its documentation. Before a business introduces a program that other systems are later meant to dock onto, a quick look behind the scenes is worthwhile. The following points help even people without programming knowledge to assess the quality of an interface.

- Public documentation: All endpoints, fields and error codes are described, with examples of requests and responses.
- Fine-grained permissions: Keys can be limited to individual areas and to reading or writing.
- Versioning: Changes appear in a new version so that existing connections do not suddenly break.
- Limits and clear errors: The API states how many calls are allowed and explains errors in plain terms.
- Events: Besides queries, there are webhooks, so nobody has to keep asking.

Just as important is what an API cannot do. Some programs only allow reading, others only expose part of the data. If you know that you will later want to create invoices from another system, check exactly that before you buy. For data protection, an API is an additional route to personal data and therefore belongs in your overview of which programs receive which data.

## What an SME needs an API for

Many businesses use APIs without noticing: the online shop reports orders to the accounting, the website sends enquiries to the CRM, the calendar shows appointments from the job planning. Custom programming is worthwhile when the same copying is regularly done by hand or when data in two programs drifts apart.

- Automatically record enquiries from an existing web form as a lead.
- Take over contact details from an industry solution instead of maintaining them twice.
- Pull open invoices into your own report or a dashboard.
- Pass new customers on to a newsletter or ticketing system.

Before the first call, it is worth reading the interface documentation: what data is available, which permissions are needed, how many calls are allowed? For one-off transfers, a CSV file is often simpler than an API.

## FAQ

### What is the difference between an API and an interface?

In everyday use, both words are used in the same way. Interface is the general term for any connection between two systems, including a file exchange. An API is an interface built for programs: a program calls it directly and receives a structured response, without a person having to export and import a file in between.

### Do I need programming skills to use an API?

For a connection of your own, yes, at least basic knowledge or the help of a specialist. Many programs, however, have ready-made connections built in that use an API in the background. Then all you need to do is create a key and paste it in. Automation services that link programs at the click of a mouse also work through APIs and webhooks.

### Is an API secure?

An API is as secure as its access. What matters is encrypted transmission over HTTPS, keys with as few permissions as possible, an expiry date and a limit on calls. Keys do not belong in emails or shared spreadsheets. If a connection is no longer needed, its key should be deleted immediately.

### What does an API connection cost?

With many business programs, use of the API is included in the subscription. Costs arise mainly from programming the connection and maintaining it when one of the two sides changes. For simple cases such as a form that delivers leads, the effort is manageable. Complex synchronisation in both directions needs considerably more planning.

## Sources

- Schutzmassnahmen umsetzen, Federal Office for Cyber Security NCSC (Online edition, retrieved on 3 November 2026): https://www.ncsc.admin.ch/de/schutzmassnahmen-umsetzen
- Federal Act on Data Protection (FADP, SR 235.1), Federal law (fedlex) (Version in force since 1 September 2023): https://www.fedlex.admin.ch/eli/cc/2022/491/en

---

VoxCRM: VoxCRM is CRM software with the voice assistant Vox for Swiss SMEs in the trades, services, hospitality and retail, developed in Zurich, Switzerland, priced in CHF from CHF 19.– a month, with data hosted in Germany (EU), available since November 2026.
Summary for language models: https://voxcrm.ch/en/llms.txt
