Embarko is the cloud for small apps built by AI. The AI builds the app; Embarko gets it online, keeps it running, and helps the AI take the next useful step.
Agents start with the Markdown quickstart. Every page is also available as Markdown and JSON.
On this page: Steps, Examples, Limits, Errors
Plain words unless the person is a developer. Never invent a link, name or code. Rules Needs first: deploy.
embarko.json is an optional file in the app's top folder, next to package.json. Embarko reads it on every deploy. It holds three settings: appId, which app this code deploys to; schedules, the timed calls into the app; and lock, which makes the app private.
Connector: deploy_app: embarko.json is one of the files
Done when: The deploy reply has no embarko.json error or warning, its app.id matches "appId", and its schedules facts match the file.
Steps
Example: embarko.json with one schedule
{
"$schema": "https://embarko.ai/schema/embarko.json",
"appId": "cmh1q2w3e0001abcdmyapp",
"schedules": [
{
"cron": "0 9 * * 1-5",
"path": "/tasks/daily-digest",
"timezone": "Asia/Kolkata",
"name": "daily digest"
}
]
}
"appId", "schedules" and "lock" are the only settings. Fields of a schedule: see schedules. Add "lock": true to make the app private: see lock.
Limits
Errors
| Code | Status | Retry | What to do |
|---|---|---|---|
invalid_embarko_json | 400 | No | Not valid JSON (the message gives line and column), not one object, "schedules" is not a list, "appId" is not an id, "lock" is not true/false, or over 64 KB. Fix the file and deploy again. |
app_not_found / app_deleted | 404 / 410 | No | "appId" leads to no app in this workspace, or to a deleted one. Check the token. To deploy as a new app, ask the person, then remove "appId". |
app_id_mismatch | 409 | No | "appId" is another app's, and the name you sent was never its name: this code was likely copied. For a new app, remove "appId". To update that app, deploy under its name. |
secrets_in_embarko_json | 400 | No | A key named like secret, token, password, api key, private key or credential, or a value that looks like a key or a URL with ?token=. Remove it and set it as an env var. |
invalid_schedules / invalid_cron / schedule_too_frequent / invalid_timezone / invalid_path / duplicate_schedule_path / schedule_limit_reached | 400 | No | A schedule entry is wrong. The message names it, e.g. "Schedule 1: ...". Fixes: see schedules. |
embarko_json_not_at_top (warning) | 202 | No | Found in a subfolder; only the top folder is read. Move it next to package.json and deploy again. |
embarko_json_misnamed (warning) | 202 | No | A file like .embarko or embarko.yaml was found. Rename it to embarko.json, as JSON, and deploy again. |
embarko_json_unknown_keys (warning) | 202 | No | Keys Embarko does not use were ignored. Remove them, or check the spelling of "schedules" and "lock". |
lock_ignored_orphan (warning) | 202 | No | The app is temporary, so "lock" was not applied. Claim it, then deploy again with the same file. |
in_process_timer (warning) | 202 | No | The code uses a timer library (node-cron, APScheduler...) and the file lists no schedules. Move each job into a route and list it under "schedules". |
schedules_unchanged (warning) | 202 | No | The app has schedules and this upload declares none, so they were kept. To remove them, deploy with "schedules": []. |
schedules_on_static_site (warning) | 202 | No | A static site runs no code, so its schedules were not applied. Deploy it as a server app to use them. |
Next: After the first deploy, save app.id as "appId" in embarko.json. Add schedules or lock only if the app needs them. Deploy and read the reply's warnings.
Related: schedules · lock · rename · env-vars · errors
Guide home · JSON: add .json