Repository navigation
Incoming Webhook
cuban8IO edited this page Nov 20, 2026
·
1 revision
Other programs – scripts, home automation, a NAS – can start backup jobs over HTTP, ask how they are doing and stop a running backup. Only with BorgStudio in the background.
Tools → Settings → Incoming webhook:
- Listen for the webhook – BorgStudio creates a token the first time.
- Port – 8473 by default.
- Also reachable from other computers in the network – otherwise only from this computer (127.0.0.1). The connection is plain HTTP: use it only in a network you trust, or put an HTTPS proxy in front. Windows may ask once whether to let BorgStudio through the firewall.
- Token – copy it, or make a New token (callers with the old one are refused from then on). It is kept like a passphrase.
A job must allow it: May be started by the incoming webhook in its editor.
Every call needs the token in the header Authorization: Bearer <token> (or X-BorgStudio-Token: <token>).
| Call | Does |
|---|---|
POST /run/<job name or id> |
starts the job like a scheduled one – after the backup running now, without questions; answers 202 with started or queued
|
POST /run/<job>?wait=1 |
answers when the backup is done: 200 with outcome, duration, archive and message |
GET /status |
what runs, what waits, and each job with its last and next run |
POST /cancel |
stops the running backup |
curl -X POST -H "Authorization: Bearer <token>" "http://localhost:8473/run/Documents?wait=1"{
"job": "Documents",
"outcome": "Succeeded",
"durationSeconds": 94,
"archive": "Documents-laptop-2026-11-20T08:00:00",
"message": null
}Answers on problems: 401 missing or wrong token, 403 the job does not allow the webhook, 404 unknown job,
503 no token set up.