Entwickler-Workbench

Verwalte Deployments mit der REST-API, MCP oder der CLI.

Deine erste API-Anfrage

Nutze einen Token mit read-Zugriff, um die Bots aufzulisten, die er sehen kann. Setze in deiner Shell BH_PORTAL_URL auf den Ursprung deines Dashboards und BH_API_TOKEN auf den Token aus Konto → KI-Agenten.

GET/api/v1/bots
Anfrage
curl --fail-with-body \
  -H "Authorization: Bearer $BH_API_TOKEN" \
  "$BH_PORTAL_URL/api/v1/bots"
Beispielantwort200 OK
{
  "bots": []
}

Wenn diesem Token keine Bots sichtbar sind.

REST-API-Referenz

OpenAPI-JSON ansehen
read26 Operationen

Sieh dir dein Konto, die Deployments, die Verfügbarkeit der Laufzeit, die Domains, den Status und die Logs an.

GET/api/v1/me
Operation-ID
whoami
Erforderliche Scopes
read
GET/api/v1/plans
Operation-ID
list_plans
Erforderliche Scopes
read
GET/api/v1/bots
Operation-ID
list_bots
Erforderliche Scopes
read
GET/api/v1/bots/{id}
Operation-ID
get_bot
Erforderliche Scopes
read
GET/api/v1/bots/{id}/status
Operation-ID
get_status
Erforderliche Scopes
read
GET/api/v1/bots/{id}/usage
Operation-ID
get_usage
Erforderliche Scopes
read
GET/api/v1/bots/{id}/logs
Operation-ID
get_logs
Erforderliche Scopes
read
GET/api/v1/bots/{id}/logs/stream
Operation-ID
tail_logs
Erforderliche Scopes
read
GET/api/v1/deployments/{id}/database

Lies Endpunkt und Authentifizierungsmethode einer eigenen Datenbank. Lade die private Client-Identität im Dashboard des Eigentümers herunter.

Operation-ID
get_database_connection
Erforderliche Scopes
read
GET/api/v1/pool

Lies die Kapazität des Kontotarifs und die reservierten Ressourcen.

Operation-ID
get_resource_pool
Erforderliche Scopes
read
GET/api/v1/runtimes
Operation-ID
list_runtimes
Erforderliche Scopes
read
GET/api/v1/deployments
Operation-ID
list_deployments
Erforderliche Scopes
read
GET/api/v1/deployments/{id}
Operation-ID
get_deployment
Erforderliche Scopes
read
GET/api/v1/deployments/{id}/backups/history

Liste automatische Wiederherstellungspunkte sowie Backup-Intervall und Aufbewahrung des Deployments auf.

Operation-ID
list_recovery_points
Erforderliche Scopes
read
Query-Parameter
before
GET/api/v1/deployments/{id}/domains

Liste die verknüpften Hostnamen auf. Der Domain-Dienst vergibt die Standardadresse des Deployments bei der ersten Nutzung.

Operation-ID
list_domains
Erforderliche Scopes
read
GET/api/v1/deployments/{id}/releases
Operation-ID
get_site_releases
Erforderliche Scopes
read
GET/api/v1/deployments/{id}/runs
Operation-ID
get_job_runs
Erforderliche Scopes
read
GET/api/v1/deployments/{id}/ports

Liste die zugewiesenen Deployment-Ports, das Limit pro Deployment und die aktuelle Revision auf.

Operation-ID
list_ports
Erforderliche Scopes
read
GET/api/v1/projects
Operation-ID
list_projects
Erforderliche Scopes
read
GET/api/v1/docs/search
Operation-ID
search_docs
Erforderliche Scopes
read
Query-Parameter
query, limit
GET/api/v1/docs/{slug}
Operation-ID
get_doc
Erforderliche Scopes
read
GET/api/v1/templates
Operation-ID
list_templates
Erforderliche Scopes
read
Query-Parameter
sort, category, q, official, page, perPage
GET/api/v1/templates/{slug}
Operation-ID
get_template
Erforderliche Scopes
read
GET/api/v1/deployments/{id}/check
Operation-ID
check_deployment
Erforderliche Scopes
read
Query-Parameter
path
GET/api/v1/deployments/{id}/diagnose
Operation-ID
diagnose_deployment
Erforderliche Scopes
read
GET/api/v1/deployments/{id}/logs/search
Operation-ID
search_logs
Erforderliche Scopes
read
Query-Parameter
pattern, context
manage75 Operationen

Betreibe eigene Deployments, Dateien, Variablen, Pakete, Domains und Backups.

POST/api/v1/bots/{id}/power
Operation-ID
power
Erforderliche Scopes
manage
JSON-Felder
signal, confirm
GET/api/v1/bots/{id}/env
Operation-ID
get_env
Erforderliche Scopes
manage
POST/api/v1/bots/{id}/token
Operation-ID
set_bot_token
Erforderliche Scopes
manage
JSON-Felder
token, confirm
POST/api/v1/bots/{id}/env
Operation-ID
set_env
Erforderliche Scopes
manage
JSON-Felder
values, confirm
GET/api/v1/bots/{id}/files
Operation-ID
list_files
Erforderliche Scopes
manage
Query-Parameter
directory
GET/api/v1/bots/{id}/files/read
Operation-ID
read_file
Erforderliche Scopes
manage
Query-Parameter
path
POST/api/v1/bots/{id}/files/write
Operation-ID
write_file
Erforderliche Scopes
manage
JSON-Felder
path, content, confirm
POST/api/v1/bots/{id}/files/upload
Operation-ID
upload_files
Erforderliche Scopes
manage
JSON-Felder
path, base64, confirm
POST/api/v1/bots/{id}/files/extract
Operation-ID
extract_file
Erforderliche Scopes
manage
JSON-Felder
path, confirm
DELETE/api/v1/bots/{id}
Operation-ID
delete_bot
Erforderliche Scopes
manage
JSON-Felder
confirm
PATCH/api/v1/deployments/{id}/allocation

Reserviere neue native Ressourcenlimits und wende sie auf ein eigenes Pool-Deployment an.

Operation-ID
resize_deployment
Erforderliche Scopes
manage
JSON-Felder
resources, confirm
POST/api/v1/deployments/{id}/runtime

Stopp das Deployment, behalte die Projektdateien und installiere die gewählte Laufzeit neu. Prüfe den Einrichtungsstatus, bevor du startest.

Operation-ID
change_runtime
Erforderliche Scopes
manage
JSON-Felder
profile, confirm
GET/api/v1/deployments/{id}/startup

Lies das aktuelle Workload-Profil, die Laufzeitfamilie und die Einstiegsdatei.

Operation-ID
get_startup
Erforderliche Scopes
manage
PATCH/api/v1/deployments/{id}/startup

Setz die Einstiegsdatei relativ zur Wurzel des Deployments. Die Änderung gilt beim nächsten Start.

Operation-ID
set_startup
Erforderliche Scopes
manage
JSON-Felder
entry, confirm
POST/api/v1/deployments/{id}/files/folder
Operation-ID
create_folder
Erforderliche Scopes
manage
JSON-Felder
path
POST/api/v1/deployments/{id}/files/delete
Operation-ID
delete_file
Erforderliche Scopes
manage
JSON-Felder
path, confirm
GET/api/v1/deployments/{id}/packages

Liste die Abhängigkeiten auf, die in der package.json im Stammverzeichnis oder in requirements.txt stehen.

Operation-ID
list_packages
Erforderliche Scopes
manage
POST/api/v1/deployments/{id}/packages

Füge eine Abhängigkeit von Node.js oder Python hinzu oder aktualisiere sie. Starte das Deployment, um sie zu installieren. Aktualisiere Lockfiles oder komplexe Requirements im Datei-Editor.

Operation-ID
set_package
Erforderliche Scopes
manage
JSON-Felder
name, version, confirm
POST/api/v1/deployments/{id}/packages/remove

Entferne eine Abhängigkeitsdeklaration aus dem Root-Manifest.

Operation-ID
remove_package
Erforderliche Scopes
manage
JSON-Felder
name, confirm
GET/api/v1/deployments/{id}/backups

Liste Datei-Backups im verwalteten Speicher des Deployments und das Aufbewahrungslimit des Tarifs auf.

Operation-ID
list_backups
Erforderliche Scopes
manage
GET/api/v1/deployments/{id}/backups/detail

Sieh dir einen Wiederherstellungspunkt dieses Deployments an.

Operation-ID
get_backup
Erforderliche Scopes
manage
Query-Parameter
backup
POST/api/v1/deployments/{id}/backups

Fordere ein verwaltetes Backup an. Abgeschlossene Backups rotieren nach der Aufbewahrungsrichtlinie des Tarifs.

Operation-ID
create_backup
Erforderliche Scopes
manage
JSON-Felder
confirm
POST/api/v1/deployments/{id}/backups/restore

Stell ein geprüftes Datei-Backup wieder her. Das Dashboard stoppt das Deployment und erstellt einen Rollback-Prüfpunkt, bevor Dateien ersetzt werden.

Operation-ID
restore_backup
Erforderliche Scopes
manage
JSON-Felder
backup, confirm
POST/api/v1/deployments/{id}/domains

Häng einen eigenen Hostnamen an und gib den einmaligen TXT-Nachweis und das CNAME-Ziel zurück.

Operation-ID
register_domain
Erforderliche Scopes
manage
JSON-Felder
host, confirm
POST/api/v1/deployments/{id}/domains/verify

Prüfe CNAME und TXT-Nachweis des eigenen Hostnamens beim Domaindienst.

Operation-ID
verify_domain
Erforderliche Scopes
manage
JSON-Felder
domain
DELETE/api/v1/deployments/{id}/domains/custom
Operation-ID
remove_domain
Erforderliche Scopes
manage
JSON-Felder
domain, confirm
POST/api/v1/deployments/{id}/runs

Fordere einen manuellen Lauf von einem aktiven Skript-Worker an.

Operation-ID
request_job_run
Erforderliche Scopes
manage
JSON-Felder
confirm
POST/api/v1/deployments/{id}/ports

Weise einen zusätzlichen nativen Port aus dem konfigurierten Node-Pool zu.

Operation-ID
allocate_port
Erforderliche Scopes
manage
JSON-Felder
revision
DELETE/api/v1/deployments/{id}/ports

Gib einen verwalteten sekundären Port anhand seiner Zuweisungs-ID frei.

Operation-ID
release_port
Erforderliche Scopes
manage
JSON-Felder
revision, allocation_id
POST/api/v1/projects
Operation-ID
create_project
Erforderliche Scopes
manage
JSON-Felder
name
PATCH/api/v1/projects/{id}
Operation-ID
rename_project
Erforderliche Scopes
manage
JSON-Felder
name
DELETE/api/v1/projects/{id}
Operation-ID
delete_project
Erforderliche Scopes
manage
JSON-Felder
confirm
POST/api/v1/deployments/{id}/move
Operation-ID
move_deployment
Erforderliche Scopes
manage
JSON-Felder
toProjectId
PATCH/api/v1/deployments/{id}
Operation-ID
update_deployment
Erforderliche Scopes
manage
JSON-Felder
name, confirm
GET/api/v1/deployments/{id}/restart-policy
Operation-ID
get_restart_policy
Erforderliche Scopes
manage
PATCH/api/v1/deployments/{id}/restart-policy
Operation-ID
set_restart_policy
Erforderliche Scopes
manage
JSON-Felder
enabled, confirm
GET/api/v1/deployments/{id}/git
Operation-ID
get_git
Erforderliche Scopes
manage
PATCH/api/v1/deployments/{id}/git
Operation-ID
set_auto_pull
Erforderliche Scopes
manage
JSON-Felder
autoPull, confirm
GET/api/v1/deployments/{id}/sftp
Operation-ID
get_sftp
Erforderliche Scopes
manage
PATCH/api/v1/deployments/{id}/env
Operation-ID
update_env_key
Erforderliche Scopes
manage
JSON-Felder
key, value, confirm
POST/api/v1/deployments/{id}/env/clear
Operation-ID
clear_env_key
Erforderliche Scopes
manage
JSON-Felder
key, confirm
GET/api/v1/deployments/{id}/env/changes
Operation-ID
get_env_changes
Erforderliche Scopes
manage
Query-Parameter
page
GET/api/v1/deployments/{id}/files/content
Operation-ID
read_file_content
Erforderliche Scopes
manage
Query-Parameter
path, offset, limit
POST/api/v1/deployments/{id}/files/content
Operation-ID
write_file_content
Erforderliche Scopes
manage
JSON-Felder
path, content, mode, confirm
POST/api/v1/deployments/{id}/files/read-many
Operation-ID
read_many_files
Erforderliche Scopes
manage
JSON-Felder
paths, maxBytes
POST/api/v1/deployments/{id}/files/writeMany
Operation-ID
write_many_files
Erforderliche Scopes
manage
JSON-Felder
files, confirm
POST/api/v1/deployments/{id}/files/edit
Operation-ID
edit_file
Erforderliche Scopes
manage
JSON-Felder
oldString, newString, replaceAll, path, confirm
POST/api/v1/deployments/{id}/files/editMany
Operation-ID
edit_many_file
Erforderliche Scopes
manage
JSON-Felder
path, edits, confirm
GET/api/v1/deployments/{id}/files/tree
Operation-ID
file_tree
Erforderliche Scopes
manage
Query-Parameter
path, depth, maxEntries, includeVendor
GET/api/v1/deployments/{id}/files/search
Operation-ID
search_files
Erforderliche Scopes
manage
Query-Parameter
path, query, regex, caseSensitive, glob, maxResults
GET/api/v1/deployments/{id}/files/outline
Operation-ID
file_outline
Erforderliche Scopes
manage
Query-Parameter
path
POST/api/v1/deployments/{id}/files/index
Operation-ID
file_index
Erforderliche Scopes
manage
JSON-Felder
path, ignore, hashMaxBytes, digest
GET/api/v1/deployments/{id}/files/history
Operation-ID
file_history
Erforderliche Scopes
manage
Query-Parameter
path
POST/api/v1/deployments/{id}/files/restore
Operation-ID
restore_file
Erforderliche Scopes
manage
JSON-Felder
path, versionId, confirm
POST/api/v1/deployments/{id}/files/rename
Operation-ID
rename_file
Erforderliche Scopes
manage
JSON-Felder
root, from, to, confirm
POST/api/v1/deployments/{id}/files/move
Operation-ID
move_files
Erforderliche Scopes
manage
JSON-Felder
files, to, confirm
POST/api/v1/deployments/{id}/files/copy
Operation-ID
copy_file
Erforderliche Scopes
manage
JSON-Felder
location, confirm
POST/api/v1/deployments/{id}/files/chmod
Operation-ID
chmod_file
Erforderliche Scopes
manage
JSON-Felder
root, file, mode, confirm
POST/api/v1/deployments/{id}/files/compress
Operation-ID
compress_files
Erforderliche Scopes
manage
JSON-Felder
root, files, confirm
POST/api/v1/deployments/{id}/files/decompress
Operation-ID
decompress_file
Erforderliche Scopes
manage
JSON-Felder
root, file, removeArchive, confirm
GET/api/v1/deployments/{id}/files/download-url
Operation-ID
file_download_url
Erforderliche Scopes
manage
Query-Parameter
path
POST/api/v1/deployments/{id}/files/upload-url
Operation-ID
file_upload_url
Erforderliche Scopes
manage
JSON-Felder
path, confirm
POST/api/v1/deployments/{id}/console/command

Send one line of input to a running deployment’s console, exactly as typed in the dashboard console. The command runs inside the application, so its effect depends on the app. Read get_logs afterward for the output.

Operation-ID
send_console_command
Erforderliche Scopes
manage
JSON-Felder
command, confirm
POST/api/v1/deployments/{id}/reinstall

Stop the deployment and reinstall its current runtime, keeping project files. Use change_runtime to switch runtimes instead. Check get_status before starting it again.

Operation-ID
reinstall_deployment
Erforderliche Scopes
manage
JSON-Felder
confirm
POST/api/v1/deployments/{id}/token/reset

Clear the stored bot token so the deployment no longer signs in with it. Set a new one with set_bot_token before starting the bot again.

Operation-ID
reset_bot_token
Erforderliche Scopes
manage
JSON-Felder
confirm
POST/api/v1/deployments/{id}/restore-deleted

Restore a deployment that was marked for deletion, from the verified backup taken at deletion, before its recovery deadline. Its files are replaced by that backup and automatic restart stays off.

Operation-ID
restore_deleted_deployment
Erforderliche Scopes
manage
JSON-Felder
confirm
GET/api/v1/deployments/{id}/alerts

Report whether Discord crash alerts are connected for a deployment. The webhook address is never returned.

Operation-ID
get_crash_alerts
Erforderliche Scopes
manage
POST/api/v1/deployments/{id}/alerts

Connect a Discord webhook that receives a message when the deployment stops without a stop the owner requested. Replaces any existing webhook. The address is stored encrypted and is not shown again.

Operation-ID
set_crash_alerts
Erforderliche Scopes
manage
JSON-Felder
webhookUrl, confirm
POST/api/v1/deployments/{id}/alerts/test

Send a test message to the deployment’s connected crash-alert webhook.

Operation-ID
test_crash_alert
Erforderliche Scopes
manage
DELETE/api/v1/deployments/{id}/alerts

Disconnect the deployment’s crash-alert webhook.

Operation-ID
remove_crash_alerts
Erforderliche Scopes
manage
JSON-Felder
confirm
GET/api/v1/deployments/{id}/access

List the other Bothosting accounts that can use this deployment and the areas each one can use.

Operation-ID
list_access
Erforderliche Scopes
manage
POST/api/v1/deployments/{id}/access

Let another existing, verified Bothosting account use this deployment. Areas: console (console and power), files, settings (settings and environment), backups (view backups). An empty list gives view-only access. Sharing exposes the chosen areas to that person, so get explicit owner approval.

Operation-ID
grant_access
Erforderliche Scopes
manage
JSON-Felder
email, areas, confirm
DELETE/api/v1/deployments/{id}/access

Remove another account’s access to this deployment. Use list_access for the id.

Operation-ID
revoke_access
Erforderliche Scopes
manage
JSON-Felder
grantId, confirm
POST/api/v1/deployments/{id}/database/rotate

Issue a new client identity for a managed database, revoking the current one. The database must be stopped first. Every client must then download the new identity in the dashboard.

Operation-ID
rotate_database_identity
Erforderliche Scopes
manage
JSON-Felder
confirm
POST/api/v1/deployments/{id}/database/sources

Replace the public IPv4 addresses allowed to open new connections to a managed database (up to eight). An empty list blocks new connections.

Operation-ID
set_database_sources
Erforderliche Scopes
manage
JSON-Felder
sources, confirm
deploy11 Operationen

Fordere das Deployment-Setup an, veröffentliche Revisionen und konfiguriere GitHub mit manage-Zugriff.

POST/api/v1/bots
Operation-ID
create_bot
Erforderliche Scopes
deploy
JSON-Felder
name, runtime, tier, period
POST/api/v1/checkout
Operation-ID
start_checkout
Erforderliche Scopes
deploy
JSON-Felder
name, runtime, tier, period
POST/api/v1/bots/{id}/upgrade
Operation-ID
request_upgrade
Erforderliche Scopes
deploy
JSON-Felder
tier, period
POST/api/v1/bots/{id}/github
Operation-ID
connect_github
Erforderliche Scopes
deploy, manage
JSON-Felder
repo, branch, confirm
POST/api/v1/bots/{id}/deploy
Operation-ID
deploy
Erforderliche Scopes
deploy
JSON-Felder
confirm
POST/api/v1/pool/reservations/{id}/release

Gib eine benannte ausstehende Pool-Reservierung frei, bevor die native Erstellung beginnt.

Operation-ID
release_reservation
Erforderliche Scopes
deploy
JSON-Felder
confirm
POST/api/v1/pool/checkout

Gib die Abrechnungsseite zurück, damit ein Mensch einen Kontotarif bestätigt.

Operation-ID
choose_account_plan
Erforderliche Scopes
deploy
JSON-Felder
plan, period
POST/api/v1/deployments

Erstelle einen eigenen Workload, indem du Ressourcen im Tarif des Kontos reservierst. Eine kostenlose Freischaltung braucht den Inhaber im Browser.

Operation-ID
create_deployment
Erforderliche Scopes
deploy
JSON-Felder
name, profile, resources, tier, period
POST/api/v1/deployments/{id}/releases

Fordere Veröffentlichung oder Rollback von einem laufenden Worker für eine statische Website an.

Operation-ID
request_site_release
Erforderliche Scopes
deploy
JSON-Felder
action, confirm
POST/api/v1/deployments/{id}/sync
Operation-ID
sync_git
Erforderliche Scopes
deploy
JSON-Felder
confirm
DELETE/api/v1/deployments/{id}/github

Remove the GitHub push-deploy link for a deployment. Repository settings in its environment stay; pushes no longer trigger deploys.

Operation-ID
disconnect_github
Erforderliche Scopes
deploy
JSON-Felder
confirm
billing-read1 Operation

Lies den Status von Abonnement und Abrechnung.

GET/api/v1/billing
Operation-ID
billing_status
Erforderliche Scopes
billing-read

Keine passenden Operationen. Versuch eine Methode, einen Pfad oder einen Scope.

MCP-Server

Verbinde einen Streamable-HTTP-Client mit /mcp auf dem Origin deines Dashboards. Die Scopes deines Tokens und die ausgewählten Deployments bestimmen, welche Tools der Client verwenden kann.

Editor-Einrichtung
Verfügbare Tools
117 Tools
Prüfe die Verbindung
Bitte deinen Editor, diesen Befehl auszuführen: list_deployments mit einem Token mit read Zugriff.
GitHub-Deployments
Verbinde im Tab Deploy ein Repository und einen Branch, um Änderungen aus deinem Editor zu deployen. Finde deine Laufzeit-Anleitung

Tokens und OAuth

Wähle aus, welche Deployments eine Berechtigung erreichen darf, lege ihr Ablaufdatum fest und entziehe den Zugriff unter Konto → KI-Agenten.

Bearer-Tokens

Kopiere den Token, wenn du ihn erstellst. Sende ihn im Header Authorization, wie in ersten Anfrage gezeigt. Eine Anfrage außerhalb der gewährten Scopes gibt HTTP 403 zurück.

OAuth für Anwendungen

  1. Registriere einen öffentlichen Client und seine Callback-URL unter /oauth/register.
  2. Fordere die Zustimmung unter /oauth/authorize mit state, Scopes und einer S256-PKCE-Challenge an. Setz resource auf den Ursprung deines Dashboards plus /api/v1 für REST oder /mcp für einen Editor.
  3. Tausche den Authorization Code und den Verifier unter /oauth/token ein.
Verbindungseinstellungen öffnen

Kommandozeilenwerkzeuge

CLI-Paket herunterladen

Nutze Node.js 22 oder neuer und Git. Exportiere BH_API_TOKEN und BH_PORTAL_URL in deiner Shell. Nutze den HTTPS-Ursprung deines Dashboards oder http://127.0.0.1 mit dem lokalen Port.

Nutze read, um ein Deployment aufzulisten und zu verknüpfen. Füge manage hinzu, bevor du Dateien synchronisierst. Der Dry-Run zeigt die Änderungen vorab. Wenn du den Watcher startest, lädt er sie hoch und synchronisiert danach, während du bearbeitest.

Projektterminal
npm install -g ./bothosting-cli.tgz
bothosting list
bothosting link DEPLOYMENT_ID
bothosting push --dry-run
bothosting watch

Installiere aus dem Download-Ordner. Führe die übrigen Befehle in deinem Projektordner aus und ersetze DEPLOYMENT_ID durch eine ID aus deiner Liste. Drücke Ctrl+C, um das Beobachten zu beenden.