{"openapi":"3.1.0","info":{"title":"DeployAI API","version":"1.0.0-beta","summary":"Put sites built with AI coding agents live: log in, create a site, upload a version, preview it and put it live.","description":"The API behind the `deployai` command line tool (npx deployai@latest). Most agents should run the CLI instead of calling these endpoints: it packs the folder, checks it can run on DeployAI and prints every next step. Chat apps without a terminal use the MCP server at https://deployai.co.il/api/mcp. Authentication: an OAuth style device flow (startDeviceLogin, then the person approves the code in the browser, then pollDeviceLogin returns a bearer token that lasts 30 days). A temporary site needs no account (deployGuestSite). Errors are JSON with an `error` code, and often `messageHe` (the line for the owner in Hebrew) and `url` (the page that resolves it). The API is in beta: fields may be added at any time.","contact":{"name":"DeployAI","email":"info@deployai.co.il","url":"https://deployai.co.il/contact"},"termsOfService":"https://deployai.co.il/terms"},"externalDocs":{"description":"DeployAI for developers: the CLI, what is supported and the limits","url":"https://deployai.co.il/developers"},"servers":[{"url":"https://deployai.co.il"}],"tags":[{"name":"Service","description":"Whether the service answers."},{"name":"Login","description":"The device flow that gives a bearer token."},{"name":"Sites","description":"Sites and their versions."},{"name":"Settings","description":"A site's environment variables and incoming requests."},{"name":"MCP","description":"The MCP server for chat apps."},{"name":"Apps","description":"Manage your Uptime, Cron, Links and Temp Files apps with an account API key (dak_...), made in your account."}],"paths":{"/api/health":{"get":{"operationId":"getHealth","tags":["Service"],"summary":"Check the service","description":"200 with ok true when the service answers and reaches its database, else 503 with ok false. No login.","responses":{"200":{"description":"The service is up.","content":{"application/json":{"schema":{"type":"object","required":["ok"],"properties":{"ok":{"type":"boolean"}}}}}},"503":{"description":"The service or its database does not answer.","content":{"application/json":{"schema":{"type":"object","required":["ok"],"properties":{"ok":{"type":"boolean"}}}}}}}}},"/api/version":{"get":{"operationId":"getVersion","tags":["Service"],"summary":"Get the running build","description":"The git commit this server was built from. No login.","responses":{"200":{"description":"The commit, or null when unknown.","content":{"application/json":{"schema":{"type":"object","required":["commit"],"properties":{"commit":{"type":["string","null"]}}}}}}}}},"/api/cli/device/start":{"post":{"operationId":"startDeviceLogin","tags":["Login"],"summary":"Start a login","description":"Starts the device flow. Show the person `verifyUrl` and `userCode`; they approve it in the browser while logged in to DeployAI. Then call pollDeviceLogin every `intervalSeconds` until it is approved or expired. No login.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"folder":{"type":"string"},"site":{"type":"string"},"computer":{"type":"string"}}}}}},"responses":{"200":{"description":"The codes to show and poll with.","content":{"application/json":{"schema":{"type":"object","properties":{"deviceCode":{"type":"string"},"userCode":{"type":"string"},"verifyUrl":{"type":"string"},"intervalSeconds":{"type":"number"},"expiresInSeconds":{"type":"number"}},"required":["deviceCode","userCode","verifyUrl","intervalSeconds","expiresInSeconds"],"additionalProperties":false}}}}}}},"/api/cli/device/poll":{"post":{"operationId":"pollDeviceLogin","tags":["Login"],"summary":"Poll a login","description":"Returns `pending` until the person approves, then `approved` with a bearer token (once), or `expired`. Send the token as `Authorization: Bearer <token>`. No login.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"deviceCode":{"type":"string"}},"required":["deviceCode"]}}}},"responses":{"200":{"description":"Where the login stands.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["pending","approved","expired"]},"token":{"type":"string"},"email":{"type":"string"}},"required":["status"],"additionalProperties":false}}}}}}},"/api/cli/me":{"get":{"operationId":"getMe","tags":["Login"],"summary":"Who is logged in","description":"The account the bearer token belongs to.","security":[{"bearer":[]}],"responses":{"200":{"description":"The account.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"name":{"type":"string"}},"required":["id","email","name"],"additionalProperties":false}}}},"401":{"description":"No token, or the token expired. Log in again with the device flow (startDeviceLogin).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/cli/projects":{"get":{"operationId":"listProjects","tags":["Sites"],"summary":"List sites","description":"Every site the account can edit, with its address and live version.","security":[{"bearer":[]}],"responses":{"200":{"description":"The sites.","content":{"application/json":{"schema":{"type":"object","properties":{"projects":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"status":{"type":"string","enum":["online","off","new"]},"url":{"type":["string","null"]},"liveVersion":{"type":["number","null"]},"notice":{"type":"string"}},"required":["id","name","slug","status","url","liveVersion"],"additionalProperties":false}}},"required":["projects"],"additionalProperties":false}}}},"401":{"description":"No token, or the token expired. Log in again with the device flow (startDeviceLogin).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"createProject","tags":["Sites"],"summary":"Create a site","description":"Creates an empty site on a free address. Upload its first version with deploySite. Refused with 403 when the plan has no room for another site.","security":[{"bearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"framework":{"type":"string"}},"required":["name"]}}}},"responses":{"201":{"description":"The new site.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"status":{"type":"string","enum":["online","off","new"]},"url":{"type":["string","null"]},"liveVersion":{"type":["number","null"]},"notice":{"type":"string"}},"required":["id","name","slug","status","url","liveVersion"],"additionalProperties":false}}}},"401":{"description":"No token, or the token expired. Log in again with the device flow (startDeviceLogin).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The plan's site limit is reached (`max` and `used` say by how much), or a temporary account tries a second site.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/cli/status":{"get":{"operationId":"getSiteStatus","tags":["Sites"],"summary":"Get a site's status","description":"The site, its build queue and the newest version, with the error and the end of the build log when the build failed.","security":[{"bearer":[]}],"parameters":[{"name":"projectId","in":"query","required":true,"description":"The site's id, from listProjects or the folder's .deployai/project.json.","schema":{"type":"string"}}],"responses":{"200":{"description":"The status.","content":{"application/json":{"schema":{"type":"object","properties":{"project":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"status":{"type":"string","enum":["online","off","new"]},"url":{"type":["string","null"]},"liveVersion":{"type":["number","null"]},"notice":{"type":"string"}},"required":["id","name","slug","status","url","liveVersion"],"additionalProperties":false},"queue":{"type":"object","properties":{"position":{"type":"number"},"running":{"type":"boolean"}},"required":["position","running"],"additionalProperties":false},"latest":{"anyOf":[{"type":"object","properties":{"number":{"type":"number"},"message":{"type":["string","null"]},"status":{"type":"string","enum":["queued","building","ready","failed","replaced"]},"error":{"type":["string","null"]},"logTail":{"type":["string","null"]},"migrationStatus":{"anyOf":[{"type":"string","enum":["waiting","queued","running","done","failed"]},{"type":"null"}]},"migrationError":{"type":["string","null"]},"preview":{"type":["string","null"]},"goingLive":{"type":"boolean"},"wentBack":{"anyOf":[{"type":"object","properties":{"previous":{"type":"number"},"reason":{"type":"string"}},"required":["previous","reason"],"additionalProperties":false},{"type":"null"}]}},"required":["number","status","error","logTail"],"additionalProperties":false},{"type":"null"}]},"closedHere":{"anyOf":[{"type":"object","properties":{"country":{"type":"string"},"countries":{"type":"array","items":{"type":"string"}},"settingsUrl":{"type":["string","null"]}},"required":["country","countries","settingsUrl"],"additionalProperties":false},{"type":"null"}]},"liveVia":{"anyOf":[{"type":"object","properties":{"via":{"type":["string","null"]},"at":{"type":"string"}},"required":["via","at"],"additionalProperties":false},{"type":"null"}]},"githubPull":{"anyOf":[{"type":"object","properties":{"version":{"type":"number"},"number":{"type":"number"},"url":{"type":"string"},"he":{"type":"string"},"en":{"type":"string"}},"required":["version","number","url","he","en"],"additionalProperties":false},{"type":"null"}]}},"required":["project","queue"],"additionalProperties":false}}}},"401":{"description":"No token, or the token expired. Log in again with the device flow (startDeviceLogin).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No site with this id in the account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/cli/versions":{"get":{"operationId":"listVersions","tags":["Sites"],"summary":"List versions","description":"Every version of the site, newest first, with which one is live.","security":[{"bearer":[]}],"parameters":[{"name":"projectId","in":"query","required":true,"description":"The site's id, from listProjects or the folder's .deployai/project.json.","schema":{"type":"string"}}],"responses":{"200":{"description":"The versions.","content":{"application/json":{"schema":{"type":"object","properties":{"versions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"number"},"message":{"type":"string"},"status":{"type":"string","enum":["queued","building","ready","failed","replaced"]},"isLive":{"type":"boolean"},"createdAt":{"type":"string"},"sizeBytes":{"type":"number"},"error":{"type":["string","null"]},"migrationStatus":{"anyOf":[{"type":"string","enum":["waiting","queued","running","done","failed"]},{"type":"null"}]},"preview":{"type":["string","null"]}},"required":["id","number","message","status","isLive","createdAt","sizeBytes"],"additionalProperties":false}}},"required":["versions"],"additionalProperties":false}}}},"401":{"description":"No token, or the token expired. Log in again with the device flow (startDeviceLogin).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No site with this id in the account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/cli/deploy":{"post":{"operationId":"deploySite","tags":["Sites"],"summary":"Upload a version","description":"Uploads the source as a new version. DeployAI builds it in an isolated container and gives it a private preview address. Whether it then goes live by itself is the owner's setting; otherwise put it live with promoteVersion. Poll getSiteStatus for the build.","security":[{"bearer":[]}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","required":["archive"],"properties":{"archive":{"type":"string","format":"binary","description":"A .tar.gz of the site's source folder, without .env files or node_modules."},"message":{"type":"string","description":"A short note on what changed."},"projectId":{"type":"string","description":"The site's id."}}}}}},"responses":{"200":{"description":"The version was queued.","content":{"application/json":{"schema":{"type":"object","properties":{"versionId":{"type":"string"},"number":{"type":"number"},"queuePosition":{"type":"number"},"previewUrl":{"type":"string"},"page":{"type":"object","properties":{"files":{"type":"number"},"prefetches":{"type":"boolean"}},"required":["files","prefetches"],"additionalProperties":false},"autoLive":{"type":"boolean"},"prefs":{"type":"object","properties":{"sound":{"type":["boolean","null"]},"voice":{"type":["boolean","null"]},"voiceLang":{"anyOf":[{"type":"string","enum":["he","en"]},{"type":"null"}]}},"required":["sound","voice","voiceLang"],"additionalProperties":false}},"required":["versionId","number","queuePosition","previewUrl"],"additionalProperties":false}}}},"400":{"description":"No archive, or the archive could not be read.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No token, or the token expired. Log in again with the device flow (startDeviceLogin).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No site with this id in the account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"A plan limit is reached (`max` and `used` say which).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/cli/guest":{"post":{"operationId":"deployGuestSite","tags":["Sites"],"summary":"Put a temporary site live with no account","description":"Creates a temporary site on a random address with a Temporary site banner, hidden from search engines, and returns its address, a claim link (open it and sign up free to keep the site) and a bearer token for this one site. Small limits; deleted after the time DeployAI sets unless claimed. Paused while signup is by invite only. No login.","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","required":["archive"],"properties":{"archive":{"type":"string","format":"binary","description":"A .tar.gz of the site's source folder, without .env files or node_modules."},"message":{"type":"string","description":"A short note on what changed."},"name":{"type":"string","description":"Optional name for the site."}}}}}},"responses":{"201":{"description":"The temporary site.","content":{"application/json":{"schema":{"type":"object","required":["projectId","url","claimUrl","token","expiresAt"],"properties":{"projectId":{"type":"string"},"slug":{"type":"string"},"url":{"type":"string"},"claimUrl":{"type":"string"},"token":{"type":"string"},"expiresAt":{"type":"string","format":"date-time"},"versionId":{"type":"string"},"number":{"type":"integer"}}}}}},"400":{"description":"No archive, a damaged archive, a .env file, or a secret found in a file (`file` and `line` say where).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Temporary sites are paused while signup is by invite only.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Over the 10MB limit of a temporary site.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"The day's limit of temporary sites is reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"No room for temporary sites with a database right now.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/cli/sql":{"get":{"operationId":"getSqlPlan","tags":["Sites"],"summary":"Get a version's database changes","description":"The SQL a version runs before it goes live. Only the owner approves it, by passing `hash` to promoteVersion; an agent may never approve changes listed in `destructive`.","security":[{"bearer":[]}],"parameters":[{"name":"projectId","in":"query","required":true,"description":"The site's id, from listProjects or the folder's .deployai/project.json.","schema":{"type":"string"}},{"name":"number","in":"query","required":true,"description":"The version number.","schema":{"type":"integer","minimum":1}}],"responses":{"200":{"description":"The plan.","content":{"application/json":{"schema":{"type":"object","properties":{"number":{"type":"number"},"migrationStatus":{"anyOf":[{"type":"string","enum":["waiting","queued","running","done","failed"]},{"type":"null"}]},"database":{"type":["string","null"]},"isNew":{"type":"boolean"},"files":{"type":"array","items":{"type":"object","properties":{"file":{"type":"string"},"kind":{"type":"string"},"statements":{"type":"number"},"skip":{"type":"boolean"}},"required":["file","kind","statements","skip"],"additionalProperties":false}},"destructive":{"type":"array","items":{"type":"object","properties":{"file":{"type":"string"},"statement":{"type":"string"}},"required":["file","statement"],"additionalProperties":false}},"stuck":{"type":"array","items":{"type":"string"}},"hash":{"type":"string"},"canApprove":{"type":"boolean"},"account":{"type":"string"},"url":{"type":"string"}},"required":["number","migrationStatus","database","isNew","files","destructive","stuck","hash","canApprove","url"],"additionalProperties":false}}}},"401":{"description":"No token, or the token expired. Log in again with the device flow (startDeviceLogin).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No site with this id in the account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/cli/promote":{"post":{"operationId":"promoteVersion","tags":["Sites"],"summary":"Put a version live","description":"Puts a built version live. Ask the owner first. Answers 409 when the version was built on older code than the live one, or was rolled back: put it live only after the owner says so (`anyway`). A version whose SQL waits for the owner needs `approveSql` with the hash from getSqlPlan.","security":[{"bearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"projectId":{"type":"string"},"number":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"approveSql":{"type":"string"},"confirmDatabase":{"type":"string"},"anyway":{"type":"boolean"}},"required":["projectId","number"]}}}},"responses":{"200":{"description":"The version is going live.","content":{"application/json":{"schema":{"type":"object","required":["ok","number"],"properties":{"ok":{"type":"boolean","const":true},"number":{"type":"integer"}}}}}},"401":{"description":"No token, or the token expired. Log in again with the device flow (startDeviceLogin).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No site with this id in the account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The version was built on older code or was rolled back; `error` says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/cli/rollback":{"post":{"operationId":"rollbackVersion","tags":["Sites"],"summary":"Go back to a version","description":"Puts an earlier version live again. Ask the owner first.","security":[{"bearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"projectId":{"type":"string"},"number":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["projectId","number"]}}}},"responses":{"200":{"description":"The earlier version is live.","content":{"application/json":{"schema":{"type":"object","required":["ok","number"],"properties":{"ok":{"type":"boolean","const":true},"number":{"type":"integer"}}}}}},"401":{"description":"No token, or the token expired. Log in again with the device flow (startDeviceLogin).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No site with this id in the account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/cli/env":{"get":{"operationId":"listEnvVars","tags":["Settings"],"summary":"List environment variables","description":"The site's variable names with a hint; a secret's value is never shown.","security":[{"bearer":[]}],"parameters":[{"name":"projectId","in":"query","required":true,"description":"The site's id, from listProjects or the folder's .deployai/project.json.","schema":{"type":"string"}}],"responses":{"200":{"description":"The variables.","content":{"application/json":{"schema":{"type":"object","properties":{"vars":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"isSecret":{"type":"boolean"},"hint":{"type":"string"}},"required":["key","isSecret","hint"],"additionalProperties":false}}},"required":["vars"],"additionalProperties":false}}}},"401":{"description":"No token, or the token expired. Log in again with the device flow (startDeviceLogin).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No site with this id in the account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"setEnvVar","tags":["Settings"],"summary":"Set an environment variable","description":"Sets a variable on the live site, a secret unless `secret` is false. Not for a temporary site.","security":[{"bearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"projectId":{"type":"string"},"key":{"type":"string"},"value":{"type":"string"},"secret":{"default":true,"type":"boolean"}},"required":["projectId","key","value"]}}}},"responses":{"200":{"description":"Saved.","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true},"key":{"type":"string"},"secret":{"type":"boolean"},"delivered":{"type":"boolean"}},"required":["ok","key","secret","delivered"],"additionalProperties":false}}}},"401":{"description":"No token, or the token expired. Log in again with the device flow (startDeviceLogin).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No site with this id in the account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"removeEnvVar","tags":["Settings"],"summary":"Remove an environment variable","security":[{"bearer":[]}],"description":"Removes a variable from the site.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"projectId":{"type":"string"},"key":{"type":"string"}},"required":["projectId","key"]}}}},"responses":{"200":{"description":"Removed.","content":{"application/json":{"schema":{"type":"object","required":["ok"],"properties":{"ok":{"type":"boolean","const":true}}}}}},"401":{"description":"No token, or the token expired. Log in again with the device flow (startDeviceLogin).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No site with this id in the account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/cli/requests":{"get":{"operationId":"listIncomingRequests","tags":["Settings"],"summary":"List incoming requests","description":"The site's latest incoming requests (webhooks and the like), with no IP addresses. `lines` is null when the list cannot be read now, which never means nothing arrived.","security":[{"bearer":[]}],"parameters":[{"name":"projectId","in":"query","required":true,"description":"The site's id, from listProjects or the folder's .deployai/project.json.","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"How many lines, newest first.","schema":{"type":"integer","minimum":1}}],"responses":{"200":{"description":"The requests.","content":{"application/json":{"schema":{"type":"object","properties":{"lines":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"at":{"type":"number"},"method":{"type":"string"},"path":{"type":"string"},"status":{"type":"number"},"outcome":{"type":"string"},"country":{"type":"string"},"dropped":{"type":"number"}},"required":["at","method","path","status","outcome","country"],"additionalProperties":false}},{"type":"null"}]}},"required":["lines"],"additionalProperties":false}}}},"400":{"description":"A wrong limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No token, or the token expired. Log in again with the device flow (startDeviceLogin).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No site with this id in the account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/mcp/server-card":{"get":{"operationId":"getMcpServerCard","tags":["MCP"],"summary":"Get the MCP server card","description":"The MCP Server Card (SEP-2127) of the DeployAI MCP server at https://deployai.co.il/api/mcp (streamable HTTP, OAuth 2.1). No login.","responses":{"200":{"description":"The card.","content":{"application/mcp-server-card+json":{"schema":{"type":"object","additionalProperties":true}}}}}}},"/api/v1/apps":{"get":{"operationId":"listAppInstallations","tags":["Apps"],"summary":"List the app sites this key reaches","description":"Each installation with its id, app, name, address and state. Use the id in the other app calls.","security":[{"apiKey":[]}],"responses":{"200":{"description":"{ \"ok\": true, \"installations\": [...] }"},"401":{"description":"A missing, expired or revoked key."}}}},"/api/v1/apps/uptime/{installation}/list":{"post":{"operationId":"uptimeList","tags":["Apps"],"summary":"Every monitor with its state, and the plan limits.","description":"Needs a key with the read scope. The answer is { \"ok\": true, \"result\": ... }, or { \"ok\": false, \"code\": ... } with \"fields\" for wrong fields.","security":[{"apiKey":[]}],"parameters":[{"name":"installation","in":"path","required":true,"schema":{"type":"string"},"description":"The installation id, from listAppInstallations."}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"Done."},"400":{"description":"A wrong field, or an unknown one."},"401":{"description":"A missing, expired or revoked key."},"403":{"description":"The key does not reach this installation, or lacks the scope."},"404":{"description":"No such installation or operation."},"409":{"description":"A plan limit, or the app is paused or ended."},"429":{"description":"More than 60 requests a minute on this key."}}}},"/api/v1/apps/uptime/{installation}/get":{"post":{"operationId":"uptimeGet","tags":["Apps"],"summary":"One monitor with its recent checks.","description":"Needs a key with the read scope. The answer is { \"ok\": true, \"result\": ... }, or { \"ok\": false, \"code\": ... } with \"fields\" for wrong fields.","security":[{"apiKey":[]}],"parameters":[{"name":"installation","in":"path","required":true,"schema":{"type":"string"},"description":"The installation id, from listAppInstallations."}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64}},"required":["id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Done."},"400":{"description":"A wrong field, or an unknown one."},"401":{"description":"A missing, expired or revoked key."},"403":{"description":"The key does not reach this installation, or lacks the scope."},"404":{"description":"No such installation or operation."},"409":{"description":"A plan limit, or the app is paused or ended."},"429":{"description":"More than 60 requests a minute on this key."}}}},"/api/v1/apps/uptime/{installation}/create":{"post":{"operationId":"uptimeCreate","tags":["Apps"],"summary":"Add a monitor.","description":"Needs a key with the write scope. The answer is { \"ok\": true, \"result\": ... }, or { \"ok\": false, \"code\": ... } with \"fields\" for wrong fields.","security":[{"apiKey":[]}],"parameters":[{"name":"installation","in":"path","required":true,"schema":{"type":"string"},"description":"The installation id, from listAppInstallations."}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":80},"url":{"type":"string","maxLength":2000},"intervalSec":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"keyword":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]}},"required":["name","url","intervalSec"],"additionalProperties":false}}}},"responses":{"200":{"description":"Done."},"400":{"description":"A wrong field, or an unknown one."},"401":{"description":"A missing, expired or revoked key."},"403":{"description":"The key does not reach this installation, or lacks the scope."},"404":{"description":"No such installation or operation."},"409":{"description":"A plan limit, or the app is paused or ended."},"429":{"description":"More than 60 requests a minute on this key."}}}},"/api/v1/apps/uptime/{installation}/update":{"post":{"operationId":"uptimeUpdate","tags":["Apps"],"summary":"Change a monitor, or pause it.","description":"Needs a key with the write scope. The answer is { \"ok\": true, \"result\": ... }, or { \"ok\": false, \"code\": ... } with \"fields\" for wrong fields.","security":[{"apiKey":[]}],"parameters":[{"name":"installation","in":"path","required":true,"schema":{"type":"string"},"description":"The installation id, from listAppInstallations."}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"name":{"type":"string","maxLength":80},"url":{"type":"string","maxLength":2000},"intervalSec":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"keyword":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"paused":{"type":"boolean"}},"required":["id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Done."},"400":{"description":"A wrong field, or an unknown one."},"401":{"description":"A missing, expired or revoked key."},"403":{"description":"The key does not reach this installation, or lacks the scope."},"404":{"description":"No such installation or operation."},"409":{"description":"A plan limit, or the app is paused or ended."},"429":{"description":"More than 60 requests a minute on this key."}}}},"/api/v1/apps/uptime/{installation}/checkNow":{"post":{"operationId":"uptimeCheckNow","tags":["Apps"],"summary":"Check a monitor now.","description":"Needs a key with the write scope. The answer is { \"ok\": true, \"result\": ... }, or { \"ok\": false, \"code\": ... } with \"fields\" for wrong fields.","security":[{"apiKey":[]}],"parameters":[{"name":"installation","in":"path","required":true,"schema":{"type":"string"},"description":"The installation id, from listAppInstallations."}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64}},"required":["id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Done."},"400":{"description":"A wrong field, or an unknown one."},"401":{"description":"A missing, expired or revoked key."},"403":{"description":"The key does not reach this installation, or lacks the scope."},"404":{"description":"No such installation or operation."},"409":{"description":"A plan limit, or the app is paused or ended."},"429":{"description":"More than 60 requests a minute on this key."}}}},"/api/v1/apps/uptime/{installation}/delete":{"post":{"operationId":"uptimeDelete","tags":["Apps"],"summary":"Delete a monitor and its history.","description":"Needs a key with the delete scope. The body carries \"confirmed\": true. The answer is { \"ok\": true, \"result\": ... }, or { \"ok\": false, \"code\": ... } with \"fields\" for wrong fields.","security":[{"apiKey":[]}],"parameters":[{"name":"installation","in":"path","required":true,"schema":{"type":"string"},"description":"The installation id, from listAppInstallations."}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"confirmed":{"type":"boolean","const":true}},"required":["id","confirmed"],"additionalProperties":false}}}},"responses":{"200":{"description":"Done."},"400":{"description":"A wrong field, or an unknown one."},"401":{"description":"A missing, expired or revoked key."},"403":{"description":"The key does not reach this installation, or lacks the scope."},"404":{"description":"No such installation or operation."},"409":{"description":"A plan limit, or the app is paused or ended."},"429":{"description":"More than 60 requests a minute on this key."}}}},"/api/v1/apps/cron/{installation}/list":{"post":{"operationId":"cronList","tags":["Apps"],"summary":"Every job with its schedule and last run. Header values are never returned, only their names.","description":"Needs a key with the read scope. The answer is { \"ok\": true, \"result\": ... }, or { \"ok\": false, \"code\": ... } with \"fields\" for wrong fields.","security":[{"apiKey":[]}],"parameters":[{"name":"installation","in":"path","required":true,"schema":{"type":"string"},"description":"The installation id, from listAppInstallations."}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"Done."},"400":{"description":"A wrong field, or an unknown one."},"401":{"description":"A missing, expired or revoked key."},"403":{"description":"The key does not reach this installation, or lacks the scope."},"404":{"description":"No such installation or operation."},"409":{"description":"A plan limit, or the app is paused or ended."},"429":{"description":"More than 60 requests a minute on this key."}}}},"/api/v1/apps/cron/{installation}/get":{"post":{"operationId":"cronGet","tags":["Apps"],"summary":"One job with its recent runs.","description":"Needs a key with the read scope. The answer is { \"ok\": true, \"result\": ... }, or { \"ok\": false, \"code\": ... } with \"fields\" for wrong fields.","security":[{"apiKey":[]}],"parameters":[{"name":"installation","in":"path","required":true,"schema":{"type":"string"},"description":"The installation id, from listAppInstallations."}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"failsOnly":{"type":"boolean"}},"required":["id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Done."},"400":{"description":"A wrong field, or an unknown one."},"401":{"description":"A missing, expired or revoked key."},"403":{"description":"The key does not reach this installation, or lacks the scope."},"404":{"description":"No such installation or operation."},"409":{"description":"A plan limit, or the app is paused or ended."},"429":{"description":"More than 60 requests a minute on this key."}}}},"/api/v1/apps/cron/{installation}/create":{"post":{"operationId":"cronCreate","tags":["Apps"],"summary":"Add a job. Headers are one \"Name: value\" per line.","description":"Needs a key with the write scope. The answer is { \"ok\": true, \"result\": ... }, or { \"ok\": false, \"code\": ... } with \"fields\" for wrong fields.","security":[{"apiKey":[]}],"parameters":[{"name":"installation","in":"path","required":true,"schema":{"type":"string"},"description":"The installation id, from listAppInstallations."}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":80},"url":{"type":"string","maxLength":2000},"method":{"type":"string","enum":["GET","POST","PUT","PATCH","DELETE","HEAD"]},"schedule":{"type":"string","maxLength":100},"headers":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}]},"body":{"anyOf":[{"type":"string","maxLength":16000},{"type":"null"}]}},"required":["name","url","method","schedule"],"additionalProperties":false}}}},"responses":{"200":{"description":"Done."},"400":{"description":"A wrong field, or an unknown one."},"401":{"description":"A missing, expired or revoked key."},"403":{"description":"The key does not reach this installation, or lacks the scope."},"404":{"description":"No such installation or operation."},"409":{"description":"A plan limit, or the app is paused or ended."},"429":{"description":"More than 60 requests a minute on this key."}}}},"/api/v1/apps/cron/{installation}/update":{"post":{"operationId":"cronUpdate","tags":["Apps"],"summary":"Change a job, pause it, or clear its headers.","description":"Needs a key with the write scope. The answer is { \"ok\": true, \"result\": ... }, or { \"ok\": false, \"code\": ... } with \"fields\" for wrong fields.","security":[{"apiKey":[]}],"parameters":[{"name":"installation","in":"path","required":true,"schema":{"type":"string"},"description":"The installation id, from listAppInstallations."}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"name":{"type":"string","maxLength":80},"url":{"type":"string","maxLength":2000},"method":{"type":"string","enum":["GET","POST","PUT","PATCH","DELETE","HEAD"]},"schedule":{"type":"string","maxLength":100},"headers":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}]},"body":{"anyOf":[{"type":"string","maxLength":16000},{"type":"null"}]},"paused":{"type":"boolean"},"clearHeaders":{"type":"boolean"}},"required":["id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Done."},"400":{"description":"A wrong field, or an unknown one."},"401":{"description":"A missing, expired or revoked key."},"403":{"description":"The key does not reach this installation, or lacks the scope."},"404":{"description":"No such installation or operation."},"409":{"description":"A plan limit, or the app is paused or ended."},"429":{"description":"More than 60 requests a minute on this key."}}}},"/api/v1/apps/cron/{installation}/runNow":{"post":{"operationId":"cronRunNow","tags":["Apps"],"summary":"Run a job now.","description":"Needs a key with the write scope. The answer is { \"ok\": true, \"result\": ... }, or { \"ok\": false, \"code\": ... } with \"fields\" for wrong fields.","security":[{"apiKey":[]}],"parameters":[{"name":"installation","in":"path","required":true,"schema":{"type":"string"},"description":"The installation id, from listAppInstallations."}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64}},"required":["id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Done."},"400":{"description":"A wrong field, or an unknown one."},"401":{"description":"A missing, expired or revoked key."},"403":{"description":"The key does not reach this installation, or lacks the scope."},"404":{"description":"No such installation or operation."},"409":{"description":"A plan limit, or the app is paused or ended."},"429":{"description":"More than 60 requests a minute on this key."}}}},"/api/v1/apps/cron/{installation}/delete":{"post":{"operationId":"cronDelete","tags":["Apps"],"summary":"Delete a job and its runs.","description":"Needs a key with the delete scope. The body carries \"confirmed\": true. The answer is { \"ok\": true, \"result\": ... }, or { \"ok\": false, \"code\": ... } with \"fields\" for wrong fields.","security":[{"apiKey":[]}],"parameters":[{"name":"installation","in":"path","required":true,"schema":{"type":"string"},"description":"The installation id, from listAppInstallations."}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"confirmed":{"type":"boolean","const":true}},"required":["id","confirmed"],"additionalProperties":false}}}},"responses":{"200":{"description":"Done."},"400":{"description":"A wrong field, or an unknown one."},"401":{"description":"A missing, expired or revoked key."},"403":{"description":"The key does not reach this installation, or lacks the scope."},"404":{"description":"No such installation or operation."},"409":{"description":"A plan limit, or the app is paused or ended."},"429":{"description":"More than 60 requests a minute on this key."}}}},"/api/v1/apps/links/{installation}/list":{"post":{"operationId":"linksList","tags":["Apps"],"summary":"Every link on the page, in order, with its clicks.","description":"Needs a key with the read scope. The answer is { \"ok\": true, \"result\": ... }, or { \"ok\": false, \"code\": ... } with \"fields\" for wrong fields.","security":[{"apiKey":[]}],"parameters":[{"name":"installation","in":"path","required":true,"schema":{"type":"string"},"description":"The installation id, from listAppInstallations."}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"Done."},"400":{"description":"A wrong field, or an unknown one."},"401":{"description":"A missing, expired or revoked key."},"403":{"description":"The key does not reach this installation, or lacks the scope."},"404":{"description":"No such installation or operation."},"409":{"description":"A plan limit, or the app is paused or ended."},"429":{"description":"More than 60 requests a minute on this key."}}}},"/api/v1/apps/links/{installation}/get":{"post":{"operationId":"linksGet","tags":["Apps"],"summary":"One link.","description":"Needs a key with the read scope. The answer is { \"ok\": true, \"result\": ... }, or { \"ok\": false, \"code\": ... } with \"fields\" for wrong fields.","security":[{"apiKey":[]}],"parameters":[{"name":"installation","in":"path","required":true,"schema":{"type":"string"},"description":"The installation id, from listAppInstallations."}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64}},"required":["id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Done."},"400":{"description":"A wrong field, or an unknown one."},"401":{"description":"A missing, expired or revoked key."},"403":{"description":"The key does not reach this installation, or lacks the scope."},"404":{"description":"No such installation or operation."},"409":{"description":"A plan limit, or the app is paused or ended."},"429":{"description":"More than 60 requests a minute on this key."}}}},"/api/v1/apps/links/{installation}/create":{"post":{"operationId":"linksCreate","tags":["Apps"],"summary":"Add a link.","description":"Needs a key with the write scope. The answer is { \"ok\": true, \"result\": ... }, or { \"ok\": false, \"code\": ... } with \"fields\" for wrong fields.","security":[{"apiKey":[]}],"parameters":[{"name":"installation","in":"path","required":true,"schema":{"type":"string"},"description":"The installation id, from listAppInstallations."}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"label":{"type":"string","maxLength":200},"target":{"type":"string","maxLength":2000},"type":{"type":"string","maxLength":20},"slug":{"type":"string","maxLength":64},"note":{"type":"string","maxLength":500},"message":{"type":"string","maxLength":500}},"required":["label","target"],"additionalProperties":false}}}},"responses":{"200":{"description":"Done."},"400":{"description":"A wrong field, or an unknown one."},"401":{"description":"A missing, expired or revoked key."},"403":{"description":"The key does not reach this installation, or lacks the scope."},"404":{"description":"No such installation or operation."},"409":{"description":"A plan limit, or the app is paused or ended."},"429":{"description":"More than 60 requests a minute on this key."}}}},"/api/v1/apps/links/{installation}/update":{"post":{"operationId":"linksUpdate","tags":["Apps"],"summary":"Change a link, hide it, or make it the main button or an icon.","description":"Needs a key with the write scope. The answer is { \"ok\": true, \"result\": ... }, or { \"ok\": false, \"code\": ... } with \"fields\" for wrong fields.","security":[{"apiKey":[]}],"parameters":[{"name":"installation","in":"path","required":true,"schema":{"type":"string"},"description":"The installation id, from listAppInstallations."}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"label":{"type":"string","maxLength":200},"target":{"type":"string","maxLength":2000},"type":{"type":"string","maxLength":20},"slug":{"type":"string","maxLength":64},"note":{"type":"string","maxLength":500},"message":{"type":"string","maxLength":500},"hidden":{"type":"boolean"},"featured":{"type":"boolean"},"icon":{"type":"boolean"}},"required":["id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Done."},"400":{"description":"A wrong field, or an unknown one."},"401":{"description":"A missing, expired or revoked key."},"403":{"description":"The key does not reach this installation, or lacks the scope."},"404":{"description":"No such installation or operation."},"409":{"description":"A plan limit, or the app is paused or ended."},"429":{"description":"More than 60 requests a minute on this key."}}}},"/api/v1/apps/links/{installation}/move":{"post":{"operationId":"linksMove","tags":["Apps"],"summary":"Move a link one place up or down.","description":"Needs a key with the write scope. The answer is { \"ok\": true, \"result\": ... }, or { \"ok\": false, \"code\": ... } with \"fields\" for wrong fields.","security":[{"apiKey":[]}],"parameters":[{"name":"installation","in":"path","required":true,"schema":{"type":"string"},"description":"The installation id, from listAppInstallations."}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"dir":{"type":"string","enum":["up","down"]}},"required":["id","dir"],"additionalProperties":false}}}},"responses":{"200":{"description":"Done."},"400":{"description":"A wrong field, or an unknown one."},"401":{"description":"A missing, expired or revoked key."},"403":{"description":"The key does not reach this installation, or lacks the scope."},"404":{"description":"No such installation or operation."},"409":{"description":"A plan limit, or the app is paused or ended."},"429":{"description":"More than 60 requests a minute on this key."}}}},"/api/v1/apps/links/{installation}/delete":{"post":{"operationId":"linksDelete","tags":["Apps"],"summary":"Delete a link and its clicks.","description":"Needs a key with the delete scope. The body carries \"confirmed\": true. The answer is { \"ok\": true, \"result\": ... }, or { \"ok\": false, \"code\": ... } with \"fields\" for wrong fields.","security":[{"apiKey":[]}],"parameters":[{"name":"installation","in":"path","required":true,"schema":{"type":"string"},"description":"The installation id, from listAppInstallations."}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"confirmed":{"type":"boolean","const":true}},"required":["id","confirmed"],"additionalProperties":false}}}},"responses":{"200":{"description":"Done."},"400":{"description":"A wrong field, or an unknown one."},"401":{"description":"A missing, expired or revoked key."},"403":{"description":"The key does not reach this installation, or lacks the scope."},"404":{"description":"No such installation or operation."},"409":{"description":"A plan limit, or the app is paused or ended."},"429":{"description":"More than 60 requests a minute on this key."}}}},"/api/v1/apps/files/{installation}/list":{"post":{"operationId":"filesList","tags":["Apps"],"summary":"Every file with its size and expiry.","description":"Needs a key with the read scope. The answer is { \"ok\": true, \"result\": ... }, or { \"ok\": false, \"code\": ... } with \"fields\" for wrong fields.","security":[{"apiKey":[]}],"parameters":[{"name":"installation","in":"path","required":true,"schema":{"type":"string"},"description":"The installation id, from listAppInstallations."}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"Done."},"400":{"description":"A wrong field, or an unknown one."},"401":{"description":"A missing, expired or revoked key."},"403":{"description":"The key does not reach this installation, or lacks the scope."},"404":{"description":"No such installation or operation."},"409":{"description":"A plan limit, or the app is paused or ended."},"429":{"description":"More than 60 requests a minute on this key."}}}},"/api/v1/apps/files/{installation}/get":{"post":{"operationId":"filesGet","tags":["Apps"],"summary":"One file.","description":"Needs a key with the read scope. The answer is { \"ok\": true, \"result\": ... }, or { \"ok\": false, \"code\": ... } with \"fields\" for wrong fields.","security":[{"apiKey":[]}],"parameters":[{"name":"installation","in":"path","required":true,"schema":{"type":"string"},"description":"The installation id, from listAppInstallations."}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64}},"required":["id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Done."},"400":{"description":"A wrong field, or an unknown one."},"401":{"description":"A missing, expired or revoked key."},"403":{"description":"The key does not reach this installation, or lacks the scope."},"404":{"description":"No such installation or operation."},"409":{"description":"A plan limit, or the app is paused or ended."},"429":{"description":"More than 60 requests a minute on this key."}}}},"/api/v1/apps/files/{installation}/link":{"post":{"operationId":"filesLink","tags":["Apps"],"summary":"A signed download link, until expires_in seconds or expires_at (ISO), within the plan limit.","description":"Needs a key with the write scope. The answer is { \"ok\": true, \"result\": ... }, or { \"ok\": false, \"code\": ... } with \"fields\" for wrong fields.","security":[{"apiKey":[]}],"parameters":[{"name":"installation","in":"path","required":true,"schema":{"type":"string"},"description":"The installation id, from listAppInstallations."}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"expires_in":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"expires_at":{"type":"string","maxLength":40}},"required":["id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Done."},"400":{"description":"A wrong field, or an unknown one."},"401":{"description":"A missing, expired or revoked key."},"403":{"description":"The key does not reach this installation, or lacks the scope."},"404":{"description":"No such installation or operation."},"409":{"description":"A plan limit, or the app is paused or ended."},"429":{"description":"More than 60 requests a minute on this key."}}}},"/api/v1/apps/files/{installation}/revoke":{"post":{"operationId":"filesRevoke","tags":["Apps"],"summary":"Stop every link given for a file so far.","description":"Needs a key with the write scope. The answer is { \"ok\": true, \"result\": ... }, or { \"ok\": false, \"code\": ... } with \"fields\" for wrong fields.","security":[{"apiKey":[]}],"parameters":[{"name":"installation","in":"path","required":true,"schema":{"type":"string"},"description":"The installation id, from listAppInstallations."}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64}},"required":["id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Done."},"400":{"description":"A wrong field, or an unknown one."},"401":{"description":"A missing, expired or revoked key."},"403":{"description":"The key does not reach this installation, or lacks the scope."},"404":{"description":"No such installation or operation."},"409":{"description":"A plan limit, or the app is paused or ended."},"429":{"description":"More than 60 requests a minute on this key."}}}},"/api/v1/apps/files/{installation}/delete":{"post":{"operationId":"filesDelete","tags":["Apps"],"summary":"Delete a file.","description":"Needs a key with the delete scope. The body carries \"confirmed\": true. The answer is { \"ok\": true, \"result\": ... }, or { \"ok\": false, \"code\": ... } with \"fields\" for wrong fields.","security":[{"apiKey":[]}],"parameters":[{"name":"installation","in":"path","required":true,"schema":{"type":"string"},"description":"The installation id, from listAppInstallations."}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"confirmed":{"type":"boolean","const":true}},"required":["id","confirmed"],"additionalProperties":false}}}},"responses":{"200":{"description":"Done."},"400":{"description":"A wrong field, or an unknown one."},"401":{"description":"A missing, expired or revoked key."},"403":{"description":"The key does not reach this installation, or lacks the scope."},"404":{"description":"No such installation or operation."},"409":{"description":"A plan limit, or the app is paused or ended."},"429":{"description":"More than 60 requests a minute on this key."}}}}},"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","description":"An account API key (starts with dak_), made in your account under API keys. It reaches your app sites with the scope it was given."},"bearer":{"type":"http","scheme":"bearer","description":"A token from pollDeviceLogin (starts with dai_), or the token deployGuestSite returns for its one site."}},"schemas":{"Error":{"type":"object","properties":{"error":{"type":"string"},"messageHe":{"type":"string"},"buyUrl":{"type":"string"},"url":{"type":"string"}},"required":["error"],"additionalProperties":false,"description":"Every error. `error` is a stable code; `messageHe` the line for the owner in Hebrew; `url` the page that resolves it; `buyUrl` where to buy what the call needs."}}}}