개발자 워크벤치
REST API, MCP 또는 CLI로 배포를 관리해요.
첫 API 요청
볼 수 있는 봇을 나열하려면 read 접근이 있는 토큰을 써요. 셸에서 BH_PORTAL_URL을 대시보드 원본으로, BH_API_TOKEN를 계정 → AI 에이전트의 토큰으로 설정해요.
GET/api/v1/botscurl --fail-with-body \
-H "Authorization: Bearer $BH_API_TOKEN" \
"$BH_PORTAL_URL/api/v1/bots"200 OK{
"bots": []
}이 토큰에 보이는 봇이 없을 때예요.
REST API 레퍼런스
OpenAPI JSON 보기read작업 26개
계정, 배포, 런타임 가용성, 도메인, 상태, 로그를 살펴봐요.
GET/api/v1/me
- 작업 ID
whoami- 필요한 스코프
read
GET/api/v1/plans
- 작업 ID
list_plans- 필요한 스코프
read
GET/api/v1/bots
- 작업 ID
list_bots- 필요한 스코프
read
GET/api/v1/bots/{id}
- 작업 ID
get_bot- 필요한 스코프
read
GET/api/v1/bots/{id}/status
- 작업 ID
get_status- 필요한 스코프
read
GET/api/v1/bots/{id}/usage
- 작업 ID
get_usage- 필요한 스코프
read
GET/api/v1/bots/{id}/logs
- 작업 ID
get_logs- 필요한 스코프
read
GET/api/v1/bots/{id}/logs/stream
- 작업 ID
tail_logs- 필요한 스코프
read
GET/api/v1/deployments/{id}/database
소유한 데이터베이스 엔드포인트와 인증 방법을 읽어요. 소유자 대시보드에서 비공개 클라이언트 신원을 다운로드해요.
- 작업 ID
get_database_connection- 필요한 스코프
read
GET/api/v1/pool
계정 플랜 용량과 예약된 리소스를 읽어요.
- 작업 ID
get_resource_pool- 필요한 스코프
read
GET/api/v1/runtimes
- 작업 ID
list_runtimes- 필요한 스코프
read
GET/api/v1/deployments
- 작업 ID
list_deployments- 필요한 스코프
read
GET/api/v1/deployments/{id}
- 작업 ID
get_deployment- 필요한 스코프
read
GET/api/v1/deployments/{id}/backups/history
자동 복구 지점과 배포의 백업 간격, 보관 기간을 나열해요.
- 작업 ID
list_recovery_points- 필요한 스코프
read- 쿼리 매개변수
before
GET/api/v1/deployments/{id}/domains
연결된 호스트 이름을 나열해요. 도메인 서비스는 처음 사용할 때 기본 배포 주소를 할당해요.
- 작업 ID
list_domains- 필요한 스코프
read
GET/api/v1/deployments/{id}/releases
- 작업 ID
get_site_releases- 필요한 스코프
read
GET/api/v1/deployments/{id}/runs
- 작업 ID
get_job_runs- 필요한 스코프
read
GET/api/v1/deployments/{id}/ports
할당된 배포 포트, 배포당 한도, 현재 리비전을 나열해요.
- 작업 ID
list_ports- 필요한 스코프
read
GET/api/v1/projects
- 작업 ID
list_projects- 필요한 스코프
read
GET/api/v1/docs/search
- 작업 ID
search_docs- 필요한 스코프
read- 쿼리 매개변수
query,limit
GET/api/v1/docs/{slug}
- 작업 ID
get_doc- 필요한 스코프
read
GET/api/v1/templates
- 작업 ID
list_templates- 필요한 스코프
read- 쿼리 매개변수
sort,category,q,official,page,perPage
GET/api/v1/templates/{slug}
- 작업 ID
get_template- 필요한 스코프
read
GET/api/v1/deployments/{id}/check
- 작업 ID
check_deployment- 필요한 스코프
read- 쿼리 매개변수
path
GET/api/v1/deployments/{id}/diagnose
- 작업 ID
diagnose_deployment- 필요한 스코프
read
GET/api/v1/deployments/{id}/logs/search
- 작업 ID
search_logs- 필요한 스코프
read- 쿼리 매개변수
pattern,context
manage작업 75개
소유한 배포, 파일, 변수, 패키지, 도메인, 백업을 운영해요.
POST/api/v1/bots/{id}/power
- 작업 ID
power- 필요한 스코프
manage- JSON 필드
signal,confirm
GET/api/v1/bots/{id}/env
- 작업 ID
get_env- 필요한 스코프
manage
POST/api/v1/bots/{id}/token
- 작업 ID
set_bot_token- 필요한 스코프
manage- JSON 필드
token,confirm
POST/api/v1/bots/{id}/env
- 작업 ID
set_env- 필요한 스코프
manage- JSON 필드
values,confirm
GET/api/v1/bots/{id}/files
- 작업 ID
list_files- 필요한 스코프
manage- 쿼리 매개변수
directory
GET/api/v1/bots/{id}/files/read
- 작업 ID
read_file- 필요한 스코프
manage- 쿼리 매개변수
path
POST/api/v1/bots/{id}/files/write
- 작업 ID
write_file- 필요한 스코프
manage- JSON 필드
path,content,confirm
POST/api/v1/bots/{id}/files/upload
- 작업 ID
upload_files- 필요한 스코프
manage- JSON 필드
path,base64,confirm
POST/api/v1/bots/{id}/files/extract
- 작업 ID
extract_file- 필요한 스코프
manage- JSON 필드
path,confirm
DELETE/api/v1/bots/{id}
- 작업 ID
delete_bot- 필요한 스코프
manage- JSON 필드
confirm
PATCH/api/v1/deployments/{id}/allocation
소유한 풀 배포에 새 네이티브 리소스 한도를 예약하고 적용해요.
- 작업 ID
resize_deployment- 필요한 스코프
manage- JSON 필드
resources,confirm
POST/api/v1/deployments/{id}/runtime
배포를 중지하고, 프로젝트 파일을 유지하고, 선택한 런타임을 다시 설치해요. 시작하기 전에 설정 상태를 확인해요.
- 작업 ID
change_runtime- 필요한 스코프
manage- JSON 필드
profile,confirm
GET/api/v1/deployments/{id}/startup
현재 워크로드 프로필, 런타임 계열, 엔트리 파일을 읽어요.
- 작업 ID
get_startup- 필요한 스코프
manage
PATCH/api/v1/deployments/{id}/startup
엔트리 파일을 배포 루트 기준 상대 경로로 설정해요. 변경은 다음 시작부터 적용돼요.
- 작업 ID
set_startup- 필요한 스코프
manage- JSON 필드
entry,confirm
POST/api/v1/deployments/{id}/files/folder
- 작업 ID
create_folder- 필요한 스코프
manage- JSON 필드
path
POST/api/v1/deployments/{id}/files/delete
- 작업 ID
delete_file- 필요한 스코프
manage- JSON 필드
path,confirm
GET/api/v1/deployments/{id}/packages
루트 package.json 또는 requirements.txt에 선언된 의존성을 나열해요.
- 작업 ID
list_packages- 필요한 스코프
manage
POST/api/v1/deployments/{id}/packages
Node.js나 Python 의존성 선언을 추가하거나 업데이트해요. 배포를 시작하면 설치돼요. lockfile이나 복잡한 requirements는 파일 편집기에서 업데이트해 주세요.
- 작업 ID
set_package- 필요한 스코프
manage- JSON 필드
name,version,confirm
POST/api/v1/deployments/{id}/packages/remove
루트 매니페스트에서 의존성 선언을 제거해요.
- 작업 ID
remove_package- 필요한 스코프
manage- JSON 필드
name,confirm
GET/api/v1/deployments/{id}/backups
배포의 관리형 스토리지에 있는 파일 백업과 플랜의 보관 한도를 나열해요.
- 작업 ID
list_backups- 필요한 스코프
manage
GET/api/v1/deployments/{id}/backups/detail
이 배포에 속한 복원 지점 하나를 살펴봐요.
- 작업 ID
get_backup- 필요한 스코프
manage- 쿼리 매개변수
backup
POST/api/v1/deployments/{id}/backups
관리형 백업을 요청해요. 완료된 백업은 플랜의 보관 정책에 따라 교체돼요.
- 작업 ID
create_backup- 필요한 스코프
manage- JSON 필드
confirm
POST/api/v1/deployments/{id}/backups/restore
확인된 파일 백업을 복원해요. 패널은 파일을 바꾸기 전에 배포를 중지하고 롤백 체크포인트를 만들어요.
- 작업 ID
restore_backup- 필요한 스코프
manage- JSON 필드
backup,confirm
POST/api/v1/deployments/{id}/domains
자체 호스트 이름을 연결하고 일회성 TXT 증명과 CNAME 대상을 반환해요.
- 작업 ID
register_domain- 필요한 스코프
manage- JSON 필드
host,confirm
POST/api/v1/deployments/{id}/domains/verify
도메인 서비스에서 자체 호스트 이름의 CNAME과 TXT 증명을 확인해요.
- 작업 ID
verify_domain- 필요한 스코프
manage- JSON 필드
domain
DELETE/api/v1/deployments/{id}/domains/custom
- 작업 ID
remove_domain- 필요한 스코프
manage- JSON 필드
domain,confirm
POST/api/v1/deployments/{id}/runs
활성 스크립트 워커에서 수동 실행을 요청해요.
- 작업 ID
request_job_run- 필요한 스코프
manage- JSON 필드
confirm
POST/api/v1/deployments/{id}/ports
설정된 노드 풀에서 네이티브 포트를 하나 더 할당해요.
- 작업 ID
allocate_port- 필요한 스코프
manage- JSON 필드
revision
DELETE/api/v1/deployments/{id}/ports
할당 ID로 관리형 보조 포트 하나를 해제해요.
- 작업 ID
release_port- 필요한 스코프
manage- JSON 필드
revision,allocation_id
POST/api/v1/projects
- 작업 ID
create_project- 필요한 스코프
manage- JSON 필드
name
PATCH/api/v1/projects/{id}
- 작업 ID
rename_project- 필요한 스코프
manage- JSON 필드
name
DELETE/api/v1/projects/{id}
- 작업 ID
delete_project- 필요한 스코프
manage- JSON 필드
confirm
POST/api/v1/deployments/{id}/move
- 작업 ID
move_deployment- 필요한 스코프
manage- JSON 필드
toProjectId
PATCH/api/v1/deployments/{id}
- 작업 ID
update_deployment- 필요한 스코프
manage- JSON 필드
name,confirm
GET/api/v1/deployments/{id}/restart-policy
- 작업 ID
get_restart_policy- 필요한 스코프
manage
PATCH/api/v1/deployments/{id}/restart-policy
- 작업 ID
set_restart_policy- 필요한 스코프
manage- JSON 필드
enabled,confirm
GET/api/v1/deployments/{id}/git
- 작업 ID
get_git- 필요한 스코프
manage
PATCH/api/v1/deployments/{id}/git
- 작업 ID
set_auto_pull- 필요한 스코프
manage- JSON 필드
autoPull,confirm
GET/api/v1/deployments/{id}/sftp
- 작업 ID
get_sftp- 필요한 스코프
manage
PATCH/api/v1/deployments/{id}/env
- 작업 ID
update_env_key- 필요한 스코프
manage- JSON 필드
key,value,confirm
POST/api/v1/deployments/{id}/env/clear
- 작업 ID
clear_env_key- 필요한 스코프
manage- JSON 필드
key,confirm
GET/api/v1/deployments/{id}/env/changes
- 작업 ID
get_env_changes- 필요한 스코프
manage- 쿼리 매개변수
page
GET/api/v1/deployments/{id}/files/content
- 작업 ID
read_file_content- 필요한 스코프
manage- 쿼리 매개변수
path,offset,limit
POST/api/v1/deployments/{id}/files/content
- 작업 ID
write_file_content- 필요한 스코프
manage- JSON 필드
path,content,mode,confirm
POST/api/v1/deployments/{id}/files/read-many
- 작업 ID
read_many_files- 필요한 스코프
manage- JSON 필드
paths,maxBytes
POST/api/v1/deployments/{id}/files/writeMany
- 작업 ID
write_many_files- 필요한 스코프
manage- JSON 필드
files,confirm
POST/api/v1/deployments/{id}/files/edit
- 작업 ID
edit_file- 필요한 스코프
manage- JSON 필드
oldString,newString,replaceAll,path,confirm
POST/api/v1/deployments/{id}/files/editMany
- 작업 ID
edit_many_file- 필요한 스코프
manage- JSON 필드
path,edits,confirm
GET/api/v1/deployments/{id}/files/tree
- 작업 ID
file_tree- 필요한 스코프
manage- 쿼리 매개변수
path,depth,maxEntries,includeVendor
GET/api/v1/deployments/{id}/files/search
- 작업 ID
search_files- 필요한 스코프
manage- 쿼리 매개변수
path,query,regex,caseSensitive,glob,maxResults
GET/api/v1/deployments/{id}/files/outline
- 작업 ID
file_outline- 필요한 스코프
manage- 쿼리 매개변수
path
POST/api/v1/deployments/{id}/files/index
- 작업 ID
file_index- 필요한 스코프
manage- JSON 필드
path,ignore,hashMaxBytes,digest
GET/api/v1/deployments/{id}/files/history
- 작업 ID
file_history- 필요한 스코프
manage- 쿼리 매개변수
path
POST/api/v1/deployments/{id}/files/restore
- 작업 ID
restore_file- 필요한 스코프
manage- JSON 필드
path,versionId,confirm
POST/api/v1/deployments/{id}/files/rename
- 작업 ID
rename_file- 필요한 스코프
manage- JSON 필드
root,from,to,confirm
POST/api/v1/deployments/{id}/files/move
- 작업 ID
move_files- 필요한 스코프
manage- JSON 필드
files,to,confirm
POST/api/v1/deployments/{id}/files/copy
- 작업 ID
copy_file- 필요한 스코프
manage- JSON 필드
location,confirm
POST/api/v1/deployments/{id}/files/chmod
- 작업 ID
chmod_file- 필요한 스코프
manage- JSON 필드
root,file,mode,confirm
POST/api/v1/deployments/{id}/files/compress
- 작업 ID
compress_files- 필요한 스코프
manage- JSON 필드
root,files,confirm
POST/api/v1/deployments/{id}/files/decompress
- 작업 ID
decompress_file- 필요한 스코프
manage- JSON 필드
root,file,removeArchive,confirm
GET/api/v1/deployments/{id}/files/download-url
- 작업 ID
file_download_url- 필요한 스코프
manage- 쿼리 매개변수
path
POST/api/v1/deployments/{id}/files/upload-url
- 작업 ID
file_upload_url- 필요한 스코프
manage- JSON 필드
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.
- 작업 ID
send_console_command- 필요한 스코프
manage- JSON 필드
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.
- 작업 ID
reinstall_deployment- 필요한 스코프
manage- JSON 필드
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.
- 작업 ID
reset_bot_token- 필요한 스코프
manage- JSON 필드
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.
- 작업 ID
restore_deleted_deployment- 필요한 스코프
manage- JSON 필드
confirm
GET/api/v1/deployments/{id}/alerts
Report whether Discord crash alerts are connected for a deployment. The webhook address is never returned.
- 작업 ID
get_crash_alerts- 필요한 스코프
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.
- 작업 ID
set_crash_alerts- 필요한 스코프
manage- JSON 필드
webhookUrl,confirm
POST/api/v1/deployments/{id}/alerts/test
Send a test message to the deployment’s connected crash-alert webhook.
- 작업 ID
test_crash_alert- 필요한 스코프
manage
DELETE/api/v1/deployments/{id}/alerts
Disconnect the deployment’s crash-alert webhook.
- 작업 ID
remove_crash_alerts- 필요한 스코프
manage- JSON 필드
confirm
GET/api/v1/deployments/{id}/access
List the other Bothosting accounts that can use this deployment and the areas each one can use.
- 작업 ID
list_access- 필요한 스코프
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.
- 작업 ID
grant_access- 필요한 스코프
manage- JSON 필드
email,areas,confirm
DELETE/api/v1/deployments/{id}/access
Remove another account’s access to this deployment. Use list_access for the id.
- 작업 ID
revoke_access- 필요한 스코프
manage- JSON 필드
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.
- 작업 ID
rotate_database_identity- 필요한 스코프
manage- JSON 필드
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.
- 작업 ID
set_database_sources- 필요한 스코프
manage- JSON 필드
sources,confirm
deploy작업 11개
manage 접근으로 배포 설정, 리비전 게시, GitHub 구성을 요청해요.
POST/api/v1/bots
- 작업 ID
create_bot- 필요한 스코프
deploy- JSON 필드
name,runtime,tier,period
POST/api/v1/checkout
- 작업 ID
start_checkout- 필요한 스코프
deploy- JSON 필드
name,runtime,tier,period
POST/api/v1/bots/{id}/upgrade
- 작업 ID
request_upgrade- 필요한 스코프
deploy- JSON 필드
tier,period
POST/api/v1/bots/{id}/github
- 작업 ID
connect_github- 필요한 스코프
deploy,manage- JSON 필드
repo,branch,confirm
POST/api/v1/bots/{id}/deploy
- 작업 ID
deploy- 필요한 스코프
deploy- JSON 필드
confirm
POST/api/v1/pool/reservations/{id}/release
네이티브 생성이 시작되기 전에 이름이 있는 대기 중 풀 예약을 해제해요.
- 작업 ID
release_reservation- 필요한 스코프
deploy- JSON 필드
confirm
POST/api/v1/pool/checkout
사람용 결제 페이지를 반환해서 계정 플랜을 확인해요.
- 작업 ID
choose_account_plan- 필요한 스코프
deploy- JSON 필드
plan,period
POST/api/v1/deployments
계정 플랜에서 리소스를 예약해 소유 워크로드를 만들어요. 무료 신청은 브라우저에서 소유자가 해야 해요.
- 작업 ID
create_deployment- 필요한 스코프
deploy- JSON 필드
name,profile,resources,tier,period
POST/api/v1/deployments/{id}/releases
실행 중인 정적 웹사이트 워커에서 게시나 롤백을 요청해요.
- 작업 ID
request_site_release- 필요한 스코프
deploy- JSON 필드
action,confirm
POST/api/v1/deployments/{id}/sync
- 작업 ID
sync_git- 필요한 스코프
deploy- JSON 필드
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.
- 작업 ID
disconnect_github- 필요한 스코프
deploy- JSON 필드
confirm
billing-read작업 1개
구독과 결제 상태를 읽어요.
GET/api/v1/billing
- 작업 ID
billing_status- 필요한 스코프
billing-read
일치하는 작업이 없어요. 메서드, 경로, 스코프를 시도해 보세요.
MCP 서버
대시보드 원본의 /mcp에 Streamable HTTP 클라이언트를 연결해요. 토큰의 스코프와 선택한 배포가 클라이언트가 쓸 수 있는 도구를 정해요.
- 에디터 설정
- 사용할 수 있는 도구
- 도구 117개
- 연결 확인
- 에디터에서 다음을 실행하도록 요청해요
list_deployments토큰을 사용하며, 접근은read접근이에요. - GitHub 배포
- 배포 탭에서 저장소와 브랜치를 연결하면 에디터의 변경을 배포할 수 있어요. 런타임 가이드 찾기
토큰과 OAuth
자격 증명이 닿을 배포를 고르고, 만료를 정하고, 계정 → AI 에이전트에서 접근을 취소할 수 있어요.
Bearer 토큰
토큰을 만들 때 복사해 두세요. 첫 요청에 나온 대로 Authorization 헤더로 보내요. 허용된 스코프 밖의 요청은 HTTP 403을 받아요.
애플리케이션용 OAuth
/oauth/register에서 공개 클라이언트와 콜백 URL을 등록해요./oauth/authorize에서 state, 스코프, S256 PKCE challenge로 동의를 요청해요. resource는 대시보드 원본에 REST면/api/v1, 에디터면/mcp를 붙인 값으로 설정해요./oauth/token에서 인증 코드와 verifier를 교환해요.
명령줄 도구
CLI 패키지 다운로드Node.js 22 이상과 Git을 사용해요. 셸에서 BH_API_TOKEN과 BH_PORTAL_URL을 내보내요. HTTPS 대시보드 원본이나 로컬 포트가 있는 http://127.0.0.1를 사용해요.
read으로 배포를 나열하고 연결해요. 파일을 동기화하기 전에 manage을 추가해요. 드라이 런은 변경을 미리 봐요. 감시자를 시작하면 업로드한 뒤 편집할 때마다 동기화해요.
npm install -g ./bothosting-cli.tgz
bothosting list
bothosting link DEPLOYMENT_ID
bothosting push --dry-run
bothosting watch다운로드 폴더에서 설치해요. 나머지 명령은 프로젝트 폴더에서 실행하고, DEPLOYMENT_ID을 목록의 ID로 바꿔요. Ctrl+C을 누르면 감시를 멈춰요.