# Free Trial and License Key

> A new API Maker server works for 7 days without a license key. After them, a server without a good key pauses its APIs, web sockets, schedulers and SSR websites until a key is set. What you see, the error callers get, how to buy a key (Lifetime first) and paste it, and why your own computer stays free.

Source: https://docs.apimaker.dev/v4/docs/getting-started/free-trial-and-license.html

A new API Maker server works at once, **without a license key**, for **7 days**. After them, a server without a good key pauses its APIs until you paste a key in the admin panel. Nothing is deleted.

> **In short**
>
> - A new server works for 7 days without a key. A chip in the header of the admin panel counts the days.
> - After 7 days, a server without a good key pauses its APIs, web sockets, schedulers and SSR websites. Callers get HTTP `402`.
> - The admin panel, your data and your settings stay. Paste a key on **Licenses** and the APIs start again at once, without a restart.
> - Buy a key on [API Maker Cloud](https://cloud.apimaker.dev). Choose **Lifetime** : you pay once, it never ends.
> - API Maker on your own computer, in Launchpad's **Local mode**, stays free.

| | |
|---|---|
| Since | API Maker v4.5.0 |
| The trial | 7 days of 24 hours, from the first start of the installation |
| Where the key goes | `Dashboard → Licenses`, or the settings of the environment in [Launchpad](https://docs.apimaker.dev/v4/docs/getting-started/install-on-server.html) |
| Who sets it | The root user and admins. A developer sees "Please ask your administrator to add a license key." |
| What pauses | The APIs, the web sockets, the schedulers and the SSR websites of the accounts |
| What stays | The admin panel, the data, the settings, the code. Nothing is deleted |
| One key | For one server. Several servers need one key each |
| Where to buy | [cloud.apimaker.dev](https://cloud.apimaker.dev) |

## The 7 days

The 7 days begin with the **first start of the installation**. A restart, an upgrade or a second server does not start them again : a server added on day 5 has 2 days left.

An installation made before v4.5.0 gets its 7 days from its **first start on v4.5.0**. So nothing stops at once when you upgrade : you have 7 days to paste a key.

You need no key for the trial, and nobody has to type anything. An empty or missing `license.txt` starts it. When the key is left empty in Launchpad, Launchpad writes the text of the trial (`____7_days_free_trial____`) into `license.txt`. It means the same : it is never sent to the license server.

## What you see in the admin panel

A **chip** in the header shows the days left :

| When | The chip |
|---|---|
| The first 4 days | `Free trial : 6 days left`, calm |
| The last 3 days | `Free trial : 2 days left`, then `5 hours left`, in amber |
| After 7 days | `Free trial ended : APIs are paused`, in red |
| An expired key | `License expired : APIs stop in …`, in red, then `License expired : APIs are paused` |
| A key the license server does not know | `License key not valid : APIs stop in …`, then `License key not valid : APIs are paused` |

A click on the chip opens **Licenses**. When the APIs are paused, it opens a dialog first : what happened, and the buttons **Add license key** and **Buy a license**.

**Licenses** shows the status of the key of each server : `TRIAL` with the end of the trial, `TRIAL_ENDED`, `VALID`, `PENDING` while the license server is asked. **Check again** asks it once more, at once.

## What a caller gets

After the 7 days, every API of the server answers **HTTP `402`** :

```json
{
  "success": false,
  "statusCode": 402,
  "data": null,
  "errors": [
    {
      "code": 402,
      "reason": "TRIAL_ENDED",
      "message": "The APIs of this server are paused because its free 7-day trial has ended. Please contact the administrator of this service.",
      "trialEndedAt": "2026-12-11T14:05:00.000Z",
      "howToFix": "Administrators : sign in to the admin panel, open Licenses and set a license key. The APIs start again at once.",
      "buyUrl": "https://cloud.apimaker.dev"
    }
  ],
  "warnings": null
}
```

`reason` says why : `TRIAL_ENDED`, `LICENSE_EXPIRED` or `LICENSE_NOT_FOUND`.

- A web socket client of an account is refused.
- A visitor of an SSR website gets a short page : "This website is paused". It names no product.
- The schedulers of the accounts do not run. With several servers, a server with a good key takes them over.
- The admin panel, its web sockets and the upkeep of the installation go on.

## Add a license key

1. Open `Dashboard → Licenses`.
2. Paste the key of the server and press **Set Key**.
3. The status shows `PENDING`, then `VALID`. The APIs start again at once, without a restart.

A key pasted in the admin panel stays : the next deployment of Launchpad keeps it. Only a key you type in Launchpad after that replaces it.

## Buy a license

The panel shows these steps on **Buy a license** :

1. Open [cloud.apimaker.dev](https://cloud.apimaker.dev).
2. Register (a verification code comes by mail), or log in.
3. Open **Licenses** in the menu.
4. Press **Buy License** and give it a name. **Choose Lifetime : you pay once, it never ends.** Or enter a number of months.
5. Pay by card, netbanking or UPI, or from your wallet.
6. Press **Copy license key**.
7. Come back to `Dashboard → Licenses` and paste it.

The prices are on [cloud.apimaker.dev/pricing](https://cloud.apimaker.dev/pricing).

### Renew an expired license

The key stays the same, so there is nothing to paste :

1. Log in to [cloud.apimaker.dev](https://cloud.apimaker.dev) and open **Licenses**.
2. Press **Renew license** on the expired license. Choose **Lifetime**, or a number of months.
3. Pay, then press **Check again** on `Dashboard → Licenses`. The APIs start again at once.

## Which keys keep the APIs running

| Key | After the 7 days |
|---|---|
| A key the license server said is valid | The APIs run. |
| A new key the license server has not answered yet | The APIs run. |
| No key, an empty `license.txt`, the text of the trial | The APIs pause. |
| The free key of Launchpad, on a server | The APIs pause. It is for your own computer. |
| An expired key | The APIs pause, 7 days after the last valid answer. |
| A key the license server does not know | The APIs pause, 7 days after the last valid answer. |

**A server which cannot reach the license server keeps running.** A server keeps its APIs for 7 days after the last valid answer of the license server : a lost `license.txt` or a late renewal stops nobody at once.

## Your own computer stays free

In **Local mode** of [API Maker Launchpad](https://docs.apimaker.dev/v4/docs/getting-started/local-run.html), API Maker is free for ever, with or without a key. After the 7 days it still answers this computer and your private network, a phone on the same Wi-Fi too, and its schedulers run. Only callers from the internet get the `402`.

API Maker installed with npm on a laptop is not Local mode : it needs a key after its 7 days, like a server.

## Several servers

Each API Maker server needs a key of its own. Behind a load balancer, a server without a good key answers `402` while the others answer : **Licenses** names each server and its status.

## What the license check sends

The trial sends nothing. A real key is checked with the license server : [what the check sends](https://docs.apimaker.dev/v4/docs/security/overview.html#licence-check).
