API reference
Apps
Git-deployed apps (PHP, Node.js, Python), releases, processes, environment, Redis, GitHub connections.
#List apps
GET/api/v1/accounts/{id}/apps
- Who
- root, reseller (ACL: create-user-session); customer
- API tokens
- admin token area: accounts; account token area: apps
- Feature
apps- Operation
appList · ky call appList
Parameters
Responses
- 200 OK
Body
- 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
- 404 Not Found: not-found
- 409 Conflict: not-ready
- 500 Internal Server Error: internal
#Create an app
POST/api/v1/accounts/{id}/apps
- Who
- root, reseller (ACL: create-user-session); customer
- API tokens
- admin token area: accounts; account token area: apps
- Feature
apps- Operation
appCreate · ky call appCreate
Parameters
Request body
| Field | Type |
|---|
branch | string |
composer_auth | string |
create_database | boolean |
deploy_script | string |
deploy_timeout | integer |
domain_id | string |
git_connection_id | string |
health_path | string |
inject_env | boolean |
keep_releases | integer |
name | string |
php_version | string |
push_to_deploy | boolean |
repo_full_name | string |
repo_url | string |
runtime_version | string |
scheduler | boolean |
shared_paths | array of string |
start_command | string |
type | string |
web_dir | string |
Responses
- 201 Created
Body
| Field | Type |
|---|
app | AppView |
webhook_secret | string |
- 400 Bad Request: validation
- 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
- 404 Not Found: not-found
- 409 Conflict: limit-reached, not-ready, validation
- 500 Internal Server Error: internal
#Delete an app
DELETE/api/v1/accounts/{id}/apps/{aid}
- Who
- root, reseller (ACL: create-user-session); customer
- API tokens
- admin token area: accounts; account token area: apps
- Feature
apps- Operation
appDelete · ky call appDelete
Parameters
| Name | In |
|---|
id | path |
aid | path |
confirm | query |
Responses
- 204 Done, no content
- 400 Bad Request: confirmation-required
- 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
- 404 Not Found: not-found
- 409 Conflict: not-ready
- 500 Internal Server Error: internal
#Get an app
GET/api/v1/accounts/{id}/apps/{aid}
- Who
- root, reseller (ACL: create-user-session); customer
- API tokens
- admin token area: accounts; account token area: apps
- Feature
apps- Operation
appGet · ky call appGet
Parameters
Responses
- 200 OK
Body
- 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
- 404 Not Found: not-found
- 409 Conflict: not-ready
- 500 Internal Server Error: internal
#Update an app
PUT/api/v1/accounts/{id}/apps/{aid}
- Who
- root, reseller (ACL: create-user-session); customer
- API tokens
- admin token area: accounts; account token area: apps
- Feature
apps- Operation
appUpdate · ky call appUpdate
Parameters
Request body
| Field | Type |
|---|
branch | string |
composer_auth | string |
create_database | boolean |
deploy_script | string |
deploy_timeout | integer |
domain_id | string |
git_connection_id | string |
health_path | string |
inject_env | boolean |
keep_releases | integer |
name | string |
php_version | string |
push_to_deploy | boolean |
repo_full_name | string |
repo_url | string |
runtime_version | string |
scheduler | boolean |
shared_paths | array of string |
start_command | string |
type | string |
web_dir | string |
Responses
- 200 OK
Body
- 400 Bad Request: validation
- 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
- 404 Not Found: not-found
- 409 Conflict: not-ready
- 500 Internal Server Error: internal
#Run a command in the app's directory
POST/api/v1/accounts/{id}/apps/{aid}/command
- Who
- root, reseller (ACL: create-user-session); customer
- API tokens
- admin token area: accounts; account token area: apps
- Feature
apps- Operation
appCommand · ky call appCommand
Parameters
Request body
Responses
- 200 OK
Body
map of any
- 400 Bad Request: validation
- 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
- 404 Not Found: not-found
- 409 Conflict: not-deployed, not-ready
- 500 Internal Server Error: internal
#Start, stop or restart the app's processes
POST/api/v1/accounts/{id}/apps/{aid}/ctl
- Who
- root, reseller (ACL: create-user-session); customer
- API tokens
- admin token area: accounts; account token area: apps
- Feature
apps- Operation
appControl · ky call appControl
Parameters
Request body
| Field | Type |
|---|
action | string |
proc | string |
Responses
- 200 OK
- 400 Bad Request: validation
- 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
- 404 Not Found: not-found
- 409 Conflict: not-ready
- 500 Internal Server Error: internal
- 502 Bad Gateway: ctl-failed
#Deploy the app
POST/api/v1/accounts/{id}/apps/{aid}/deploy
- Who
- root, reseller (ACL: create-user-session); customer
- API tokens
- admin token area: accounts; account token area: apps
- Feature
apps- Operation
appDeploy · ky call appDeploy
Parameters
Request body
Responses
- 202 Accepted (runs in the background)
Body
- 400 Bad Request: validation
- 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
- 404 Not Found: not-found
- 409 Conflict: deploy-busy, not-ready
- 500 Internal Server Error: internal
#Remove the app's deploy hook URL
DELETE/api/v1/accounts/{id}/apps/{aid}/deploy-hook
- Who
- root, reseller (ACL: create-user-session); customer
- API tokens
- admin token area: accounts; account token area: apps
- Feature
apps- Operation
appHookDelete · ky call appHookDelete
Parameters
Responses
- 204 Done, no content
- 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
- 404 Not Found: not-found
- 409 Conflict: not-ready
- 500 Internal Server Error: internal
#Create or rotate the app's deploy hook URL
POST/api/v1/accounts/{id}/apps/{aid}/deploy-hook
- Who
- root, reseller (ACL: create-user-session); customer
- API tokens
- admin token area: accounts; account token area: apps
- Feature
apps- Operation
appHookRotate · ky call appHookRotate
Parameters
Responses
- 200 OK
Body
- 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
- 404 Not Found: not-found
- 409 Conflict: not-ready
- 500 Internal Server Error: internal
#List deployments
GET/api/v1/accounts/{id}/apps/{aid}/deployments
- Who
- root, reseller (ACL: create-user-session); customer
- API tokens
- admin token area: accounts; account token area: apps
- Feature
apps- Operation
appDeployments · ky call appDeployments
Parameters
Responses
- 200 OK
Body
- 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
- 404 Not Found: not-found
- 409 Conflict: not-ready
- 500 Internal Server Error: internal
#Get a deployment
GET/api/v1/accounts/{id}/apps/{aid}/deployments/{did}
- Who
- root, reseller (ACL: create-user-session); customer
- API tokens
- admin token area: accounts; account token area: apps
- Feature
apps- Operation
appDeployment · ky call appDeployment
Parameters
| Name | In |
|---|
id | path |
aid | path |
did | path |
Responses
- 200 OK
Body
- 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
- 404 Not Found: not-found
- 409 Conflict: not-ready
- 500 Internal Server Error: internal
#Cancel a deployment
POST/api/v1/accounts/{id}/apps/{aid}/deployments/{did}/cancel
- Who
- root, reseller (ACL: create-user-session); customer
- API tokens
- admin token area: accounts; account token area: apps
- Feature
apps- Operation
appDeployCancel · ky call appDeployCancel
Parameters
| Name | In |
|---|
id | path |
aid | path |
did | path |
Responses
- 204 Done, no content
- 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
- 404 Not Found: not-found
- 409 Conflict: not-ready, not-running
- 500 Internal Server Error: internal
#Deployment log
GET/api/v1/accounts/{id}/apps/{aid}/deployments/{did}/log
- Who
- root, reseller (ACL: create-user-session); customer
- API tokens
- admin token area: accounts; account token area: apps
- Feature
apps- Operation
appDeployLog · ky call appDeployLog
Parameters
| Name | In |
|---|
id | path |
aid | path |
did | path |
offset | query |
Responses
- 200 OK
Body
| Field | Type |
|---|
offset | integer |
size | integer |
status | string |
text | string |
- 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
- 404 Not Found: not-found
- 409 Conflict: not-ready
- 500 Internal Server Error: internal
#Get the app's environment file
GET/api/v1/accounts/{id}/apps/{aid}/env
- Who
- root, reseller (ACL: create-user-session); customer
- API tokens
- admin token area: accounts; account token area: apps
- Feature
apps- Operation
appEnvGet · ky call appEnvGet
Parameters
Responses
- 200 OK
Body
- 400 Bad Request: file-operation
- 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
- 404 Not Found: not-found
- 409 Conflict: not-ready
- 500 Internal Server Error: internal
#Save the app's environment file
PUT/api/v1/accounts/{id}/apps/{aid}/env
- Who
- root, reseller (ACL: create-user-session); customer
- API tokens
- admin token area: accounts; account token area: apps
- Feature
apps- Operation
appEnvPut · ky call appEnvPut
Parameters
Request body
| Field | Type |
|---|
config_cache | boolean |
content | string |
restart_queues | boolean |
Responses
- 200 OK
Body
| Field | Type |
|---|
notes | array of string |
saved | boolean |
- 400 Bad Request: file-operation, validation
- 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
- 404 Not Found: not-found
- 409 Conflict: not-ready
- 500 Internal Server Error: internal
#List versions of the environment file
GET/api/v1/accounts/{id}/apps/{aid}/env/history
- Who
- root, reseller (ACL: create-user-session); customer
- API tokens
- admin token area: accounts; account token area: apps
- Feature
apps- Operation
appEnvHistory · ky call appEnvHistory
Parameters
Responses
- 200 OK
Body
- 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
- 404 Not Found: not-found
- 409 Conflict: not-ready
- 500 Internal Server Error: internal
#Get a version of the environment file
GET/api/v1/accounts/{id}/apps/{aid}/env/history/{vid}
- Who
- root, reseller (ACL: create-user-session); customer
- API tokens
- admin token area: accounts; account token area: apps
- Feature
apps- Operation
appEnvVersion · ky call appEnvVersion
Parameters
| Name | In |
|---|
id | path |
aid | path |
vid | path |
Responses
- 200 OK
Body
| Field | Type |
|---|
content | string |
created_at | integer |
created_by | string |
- 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
- 404 Not Found: not-found
- 409 Conflict: not-ready
- 500 Internal Server Error: internal
#Pin the Git server's host keys again
POST/api/v1/accounts/{id}/apps/{aid}/known-hosts
Reads the Git server's host keys again and pins them (after the server changed its keys).
- Who
- root, reseller (ACL: create-user-session); customer
- API tokens
- admin token area: accounts; account token area: apps
- Feature
apps- Operation
appKnownHosts · ky call appKnownHosts
Parameters
Responses
- 200 OK
Body
| Field | Type |
|---|
host_key_fingerprints | array of string |
- 400 Bad Request: not-ssh
- 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
- 404 Not Found: not-found
- 409 Conflict: not-ready
- 500 Internal Server Error: internal
- 502 Bad Gateway: keyscan-failed
#App logs
GET/api/v1/accounts/{id}/apps/{aid}/logs
- Who
- root, reseller (ACL: create-user-session); customer
- API tokens
- admin token area: accounts; account token area: apps
- Feature
apps- Operation
appLogs · ky call appLogs
Parameters
| Name | In |
|---|
id | path |
aid | path |
file | query |
Responses
- 200 OK
Body
map of any
- 400 Bad Request: file-operation
- 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
- 404 Not Found: not-found
- 409 Conflict: not-ready
- 500 Internal Server Error: internal
#List the app's processes (workers, queues, scheduler)
GET/api/v1/accounts/{id}/apps/{aid}/processes
- Who
- root, reseller (ACL: create-user-session); customer
- API tokens
- admin token area: accounts; account token area: apps
- Feature
apps- Operation
appProcesses · ky call appProcesses
Parameters
Responses
- 200 OK
Body
- 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
- 404 Not Found: not-found
- 409 Conflict: not-ready
- 500 Internal Server Error: internal
#Add a process
POST/api/v1/accounts/{id}/apps/{aid}/processes
- Who
- root, reseller (ACL: create-user-session); customer
- API tokens
- admin token area: accounts; account token area: apps
- Feature
apps- Operation
postAccountsIdAppsAidProcesses · ky call postAccountsIdAppsAidProcesses
Parameters
Request body
| Field | Type |
|---|
command | string |
enabled | boolean |
instances | integer |
kind | string |
name | string |
stop_wait | integer |
worker | HostingWorkerOptions |
Responses
- 200 OK
Body
- 400 Bad Request: validation
- 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
- 404 Not Found: not-found
- 409 Conflict: not-ready
- 500 Internal Server Error: internal
- 502 Bad Gateway: apply-failed
#Delete a process
DELETE/api/v1/accounts/{id}/apps/{aid}/processes/{pid}
- Who
- root, reseller (ACL: create-user-session); customer
- API tokens
- admin token area: accounts; account token area: apps
- Feature
apps- Operation
appProcessDelete · ky call appProcessDelete
Parameters
| Name | In |
|---|
id | path |
aid | path |
pid | path |
Responses
- 204 Done, no content
- 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
- 404 Not Found: not-found
- 409 Conflict: not-ready
- 500 Internal Server Error: internal
#Update a process
PUT/api/v1/accounts/{id}/apps/{aid}/processes/{pid}
- Who
- root, reseller (ACL: create-user-session); customer
- API tokens
- admin token area: accounts; account token area: apps
- Feature
apps- Operation
putAccountsIdAppsAidProcessesPid · ky call putAccountsIdAppsAidProcessesPid
Parameters
| Name | In |
|---|
id | path |
aid | path |
pid | path |
Request body
| Field | Type |
|---|
command | string |
enabled | boolean |
instances | integer |
kind | string |
name | string |
stop_wait | integer |
worker | HostingWorkerOptions |
Responses
- 200 OK
Body
- 400 Bad Request: validation
- 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
- 404 Not Found: not-found
- 409 Conflict: not-ready
- 500 Internal Server Error: internal
- 502 Bad Gateway: apply-failed
#List releases
GET/api/v1/accounts/{id}/apps/{aid}/releases
- Who
- root, reseller (ACL: create-user-session); customer
- API tokens
- admin token area: accounts; account token area: apps
- Feature
apps- Operation
appReleases · ky call appReleases
Parameters
Responses
- 200 OK
- 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
- 404 Not Found: not-found
- 409 Conflict: not-ready
- 500 Internal Server Error: internal
#Roll back to a previous release
POST/api/v1/accounts/{id}/apps/{aid}/rollback
- Who
- root, reseller (ACL: create-user-session); customer
- API tokens
- admin token area: accounts; account token area: apps
- Feature
apps- Operation
appRollback · ky call appRollback
Parameters
Request body
Responses
- 202 Accepted (runs in the background)
Body
- 400 Bad Request: validation
- 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
- 404 Not Found: not-found
- 409 Conflict: already-live, deploy-busy, not-ready
- 500 Internal Server Error: internal
#Get the app's push-to-deploy webhook
GET/api/v1/accounts/{id}/apps/{aid}/webhook
- Who
- root, reseller (ACL: create-user-session); customer
- API tokens
- admin token area: accounts; account token area: apps
- Feature
apps- Operation
appWebhookGet · ky call appWebhookGet
Parameters
Responses
- 200 OK
Body
| Field | Type |
|---|
secret | string |
url | string |
- 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
- 404 Not Found: not-found
- 409 Conflict: not-ready
- 500 Internal Server Error: internal
#Rotate the app's push-to-deploy webhook
POST/api/v1/accounts/{id}/apps/{aid}/webhook/rotate
- Who
- root, reseller (ACL: create-user-session); customer
- API tokens
- admin token area: accounts; account token area: apps
- Feature
apps- Operation
appWebhookRotate · ky call appWebhookRotate
Parameters
Responses
- 200 OK
Body
| Field | Type |
|---|
secret | string |
url | string |
- 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
- 404 Not Found: not-found
- 409 Conflict: not-ready
- 500 Internal Server Error: internal
#Options for a new app (runtimes, domains, versions)
GET/api/v1/accounts/{id}/apps/options
- Who
- root, reseller (ACL: create-user-session); customer
- API tokens
- admin token area: accounts; account token area: apps
- Feature
apps- Operation
appOptions · ky call appOptions
Parameters
Responses
- 200 OK
Body
| Field | Type |
|---|
node_versions | array of string |
php_versions | array of string |
python_versions | array of string |
types | array of map of any |
- 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
#List Git connections
GET/api/v1/accounts/{id}/git/connections
- Who
- root, reseller (ACL: create-user-session); customer
- API tokens
- admin token area: accounts; account token area: git
- Feature
apps- Operation
gitConnections · ky call gitConnections
Parameters
Responses
- 200 OK
Body
- 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
- 404 Not Found: not-found
- 409 Conflict: not-ready
- 500 Internal Server Error: internal
#Remove a Git connection
DELETE/api/v1/accounts/{id}/git/connections/{cid}
- Who
- root, reseller (ACL: create-user-session); customer
- API tokens
- admin token area: accounts; account token area: git
- Feature
apps- Operation
gitConnectionDelete · ky call gitConnectionDelete
Parameters
Responses
- 204 Done, no content
- 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
- 404 Not Found: not-found
- 409 Conflict: not-ready
- 500 Internal Server Error: internal
#Rename a Git connection
PUT/api/v1/accounts/{id}/git/connections/{cid}
- Who
- root, reseller (ACL: create-user-session); customer
- API tokens
- admin token area: accounts; account token area: git
- Feature
apps- Operation
gitConnectionRename · ky call gitConnectionRename
Parameters
Request body
Responses
- 200 OK
Body
- 400 Bad Request: validation
- 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
- 404 Not Found: not-found
- 409 Conflict: not-ready
- 500 Internal Server Error: internal
#List a repository's branches
GET/api/v1/accounts/{id}/git/connections/{cid}/branches
- Who
- root, reseller (ACL: create-user-session); customer
- API tokens
- admin token area: accounts; account token area: git
- Feature
apps- Operation
gitConnectionBranches · ky call gitConnectionBranches
Parameters
| Name | In |
|---|
id | path |
cid | path |
repo | query |
repo_id | query |
Responses
- 200 OK
Body
| Field | Type |
|---|
items | array of string |
- 400 Bad Request: validation
- 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
- 404 Not Found: not-found
- 409 Conflict: not-ready
- 500 Internal Server Error: internal
- 502 Bad Gateway: github-failed
#Detect the PHP version a repository needs
GET/api/v1/accounts/{id}/git/connections/{cid}/php
- Who
- root, reseller (ACL: create-user-session); customer
- API tokens
- admin token area: accounts; account token area: git
- Feature
apps- Operation
gitConnectionPHP · ky call gitConnectionPHP
Parameters
| Name | In |
|---|
id | path |
cid | path |
branch | query |
repo | query |
repo_id | query |
Responses
- 200 OK
Body
| Field | Type |
|---|
constraint | string |
version | string |
- 400 Bad Request: validation
- 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
- 404 Not Found: not-found
- 409 Conflict: not-ready
- 500 Internal Server Error: internal
- 502 Bad Gateway: github-failed
#List repositories
GET/api/v1/accounts/{id}/git/connections/{cid}/repos
- Who
- root, reseller (ACL: create-user-session); customer
- API tokens
- admin token area: accounts; account token area: git
- Feature
apps- Operation
gitConnectionRepos · ky call gitConnectionRepos
Parameters
Responses
- 200 OK
Body
- 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
- 404 Not Found: not-found
- 409 Conflict: not-ready
- 500 Internal Server Error: internal
- 502 Bad Gateway: github-failed
#Connect a GitHub account or organization
POST/api/v1/accounts/{id}/git/connections/github
- Who
- root, reseller (ACL: create-user-session); customer
- API tokens
- admin token area: accounts; account token area: git
- Feature
apps- Operation
gitConnectGitHub · ky call gitConnectGitHub
Parameters
Request body
Responses
- 200 OK
Body
- 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
- 404 Not Found: not-found
- 409 Conflict: github-off, not-ready
- 500 Internal Server Error: internal
#Remove a GitHub user and its connections
DELETE/api/v1/accounts/{id}/git/users/{uid}
- Who
- root, reseller (ACL: create-user-session); customer
- API tokens
- admin token area: accounts; account token area: git
- Feature
apps- Operation
gitUserDelete · ky call gitUserDelete
Parameters
Responses
- 204 Done, no content
- 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
- 404 Not Found: not-found
- 409 Conflict: not-ready
- 500 Internal Server Error: internal
#Rename a GitHub user
PUT/api/v1/accounts/{id}/git/users/{uid}
- Who
- root, reseller (ACL: create-user-session); customer
- API tokens
- admin token area: accounts; account token area: git
- Feature
apps- Operation
gitUserRename · ky call gitUserRename
Parameters
Request body
Responses
- 204 Done, no content
- 400 Bad Request: validation
- 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
- 404 Not Found: not-found
- 409 Conflict: not-ready
- 500 Internal Server Error: internal
#Turn off Redis (Valkey)
DELETE/api/v1/accounts/{id}/valkey
- Who
- root, reseller (ACL: create-user-session); customer
- API tokens
- admin token area: accounts; account token area: valkey
- Feature
apps- Operation
valkeyDelete · ky call valkeyDelete
Parameters
Responses
- 204 Done, no content
- 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
- 404 Not Found: not-found
- 409 Conflict: not-ready
- 500 Internal Server Error: internal
#Get the Redis (Valkey) instance
GET/api/v1/accounts/{id}/valkey
- Who
- root, reseller (ACL: create-user-session); customer
- API tokens
- admin token area: accounts; account token area: valkey
- Feature
apps- Operation
valkeyGet · ky call valkeyGet
Parameters
Responses
- 200 OK
Body
| Field | Type |
|---|
enabled always | boolean |
host | string |
maxmemory_mb | integer |
password | string |
port | integer |
status | string |
- 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
- 404 Not Found: not-found
- 409 Conflict: not-ready
- 500 Internal Server Error: internal
#Turn on or resize Redis (Valkey)
PUT/api/v1/accounts/{id}/valkey
- Who
- root, reseller (ACL: create-user-session); customer
- API tokens
- admin token area: accounts; account token area: valkey
- Feature
apps- Operation
valkeyPut · ky call valkeyPut
Parameters
Request body
| Field | Type |
|---|
maxmemory_mb | integer |
Responses
- 200 OK
Body
| Field | Type |
|---|
enabled always | boolean |
host | string |
maxmemory_mb | integer |
password | string |
port | integer |
status | string |
- 400 Bad Request: validation
- 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
- 404 Not Found: not-found
- 409 Conflict: not-ready
- 500 Internal Server Error: internal
- 502 Bad Gateway: valkey-failed
#Delete the server's GitHub App
DELETE/api/v1/github/app
- Who
- root
- API tokens
- admin token area: server
- Operation
githubAppDelete · ky call githubAppDelete
Responses
- 204 Done, no content
- 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
- 500 Internal Server Error: internal
#Get the server's GitHub App
GET/api/v1/github/app
- Who
- root
- API tokens
- admin token area: server
- Operation
githubAppGet · ky call githubAppGet
Responses
- 200 OK
Body
- 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
- 500 Internal Server Error: internal
#Finish creating the GitHub App (GitHub redirect)
GET/api/v1/github/app/created
- Who
- public
- API tokens
- not needed
- Operation
githubAppCreated · ky call githubAppCreated
Parameters
| Name | In |
|---|
code | query |
state | query |
Responses
#Start creating the GitHub App
POST/api/v1/github/app/manifest
Returns the form the browser posts to GitHub ("Create GitHub App" page, back to /created).
- Who
- root
- API tokens
- admin token area: server
- Operation
githubAppManifest · ky call githubAppManifest
Request body
Responses
- 200 OK
Body
| Field | Type |
|---|
action | string |
manifest | string |
- 400 Bad Request: validation
- 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
- 500 Internal Server Error: internal
#GitHub installation callback
GET/api/v1/github/callback
Is where GitHub sends a customer after installing or authorizing the app.
- Who
- public
- API tokens
- not needed
- Operation
githubCallback · ky call githubCallback
Parameters
| Name | In |
|---|
code | query |
installation_id | query |
state | query |
Responses