API Maker

The backend engine for the AI era

One callEpisode 82 5:55 10 chapters November 2026

Upgrade or Downgrade API Maker From Your Pipeline With One Call

An engine webhook installs a version of API Maker on every server with one call from your CI : answered at once, followed with a second call, and rolled back by itself when the new version can not start. It stays on your server, out of git.

In the playlists The complete course Run in production

Chapters

What you will learn

  • Why the engine is often the one step of a release still done by hand
  • A webhook : its address, its access token and its secret
  • Allowing downgrades, switching a webhook off, listing who may call it
  • Why a webhook is never part of a commit, a pull or a push
  • A dry run, the real call, and asking how it goes
  • What happens when a new version can not start, and every refused call on the page
In the docsUpgrade or downgrade by API
Transcript911 words · click a time to play from there

The one step left by hand

Here are engine webhooks. One call from your pipeline upgrades or downgrades API Maker itself, on every server. Think about how your code reaches production today. A pipeline tests it, builds it, and ships it, with nobody watching. But the engine underneath is often the one step still done by hand. Somebody signs in to each environment, picks a version, and waits. With many environments, that step comes late, or it is skipped.

An engine webhook puts it in the pipeline. You make one call with a version. Every server installs it. And a server that cannot start on it goes back by itself. So let us build it, step by step: making a webhook, deciding who can call it, why it stays out of Git, a dry run, the real upgrade, and what a refused call looks like.

Making a webhook

Webhooks live with the other ways to change the engine. On the dashboard, under Operations, open Upgrade Engine. At the top are the two ways you may know already: a bundle, or a version from npm. Below them is the third way: upgrade or downgrade by API. There is no webhook yet, and three steps say what one does. An address that can replace your engine must be protected, so a webhook is made of three values.

Click New webhook. API Maker fills them in with random values. Keep them, or type your own. First, a name, so you know later who calls it. The hook URL is the last part of the address. The access token says which webhook is called. And the secret proves that the caller is allowed to use it. The secret deserves a moment, because you see it only once. Show it, and copy it now.

Once it is saved, it is kept encrypted. It can only be replaced, never read back. The final URL is what your pipeline calls, with a POST.

Who may call it

Next, you decide what a call can do. Allow downgrades lets a pipeline go back to an older version. Turn it off, and an older version is refused. Active stops every call at once, without removing anything. And when you list addresses, only those callers get an answer. So we add the address of our pipeline, and we keep it.

How to call it

Save it. Now, how does the pipeline call it? The row answers at a glance: who can call it, whether it downgrades, and its last call. Open it, and the page writes the call for you, with the address and the token filled in. Only the secret is left for you to add. A second call asks how it is going. And the whole step is ready to paste into a pipeline.

Out of git

You may wonder why this is not in your repository, since almost everything else is. A repository travels: to other environments, to every developer, and to anyone who can read it. An address that can replace the engine should not travel with it. So a webhook is never part of a commit, a pull, or a push. Each installation makes its own, and it stays there.

A dry run

Before the first real call, you want to know that it would work, without any risk. That is what dry run is for. API Maker checks all of it: the credentials, the address, the version, and which way it goes. Then it says what it would do, and it installs nothing.

The real call

Now the real one. It is the same call, without dry run. It answers at once, with the name of the run, because a deployment takes longer than most proxies wait. From there, a second call asks how it is going. It says running, while the servers download and install it. Then it says restarting, until each server answers on the new version. A call may find nobody for a moment, so ask again.

And then it says done. And what if the new version does not start? Underneath, each server does what the page does. It downloads the package for its own machine, and checks it. It unpacks it next to the running version. It checks that the program starts. The new version takes its place. And if it cannot start, the server goes back to the version it ran before. The status then says failed, and why.

Refused calls

An address on the internet gets calls you did not plan, so you want to see them. Every call is listed, even refused ones, with the address it came from. Here is our dry run. Here is an older version, while downgrades are off. Here is a caller who is not on the list. And here is a wrong secret. Each one says why it was refused, and nothing was installed.

Good habits

Here are a few good habits. Keep the secret in the secrets of your pipeline, never in its code. Make one webhook for each pipeline, so you can switch one off alone. List the addresses that can call it. And on production, keep downgrades off, unless going back is the job of that pipeline.

Recap

To sum up. A webhook is an address, a token, and a secret, kept on your server and out of Git. A call with a version is answered at once. A second call says how it is going. A server that cannot start goes back by itself. And every call is listed, even refused ones. Next, how to upgrade from the page itself. API Maker. Build faster, spend smarter, deliver better.