{
  "topic": "embarko-json",
  "section": {
    "n": 3,
    "name": "Deploy"
  },
  "title": "The embarko.json file",
  "covers": "The optional settings file in the app's top folder: what goes in it, its rules, and its errors and warnings",
  "summary": "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.",
  "done_when": "The deploy reply has no embarko.json error or warning, its app.id matches \"appId\", and its schedules facts match the file.",
  "available": true,
  "who": {
    "connector": "deploy_app: embarko.json is one of the files",
    "api": "POST https://ship.embarko.ai/apps (the file travels in the upload)",
    "dashboard": null,
    "needs_human": null
  },
  "steps": {
    "any": [
      "Create embarko.json in the app's top folder, next to package.json (or requirements.txt, go.mod...).",
      "Write one JSON object. Put the settings in it: \"appId\" (app.id from the first deploy reply) and, if the app needs them, \"schedules\" (see schedules) and/or \"lock\" (see lock).",
      "Optional: add \"$schema\": \"https://embarko.ai/schema/embarko.json\" so editors can check it.",
      "Deploy as usual: skill, HTTP .tar.gz, JSON files list or connector. The file goes with the other files; there is no special field.",
      "Read the reply. A 400 names what is wrong; fix the file and deploy again. Read warnings[] and fix those too before telling the person it is done."
    ]
  },
  "examples": [
    {
      "title": "embarko.json with one schedule",
      "lang": "json",
      "code": "{\n  \"$schema\": \"https://embarko.ai/schema/embarko.json\",\n  \"appId\": \"cmh1q2w3e0001abcdmyapp\",\n  \"schedules\": [\n    {\n      \"cron\": \"0 9 * * 1-5\",\n      \"path\": \"/tasks/daily-digest\",\n      \"timezone\": \"Asia/Kolkata\",\n      \"name\": \"daily digest\"\n    }\n  ]\n}",
      "note": "\"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": [
    "Optional. No file means no change.",
    "\"appId\" decides which app the deploy goes to, so a deploy under the app's old name still reaches it after a rename. Keep it after the first deploy and commit it. A deploy with an \"appId\" never creates a new app: one the token cannot reach gets 404 app_not_found, a deleted one 410 app_deleted, a moved one 409 app_moved.",
    "Copying an app's code to start a new app copies its \"appId\" too. Remove it before the first deploy of the copy: a name the app never had gets 409 app_id_mismatch, so the original app is never overwritten.",
    "\"appId\" is read for token deploys only. A dashboard upload goes to the app the person picked.",
    "The file is the source of truth. A setting changed through the API is set back by the next deploy whose file lists it.",
    "\"schedules\" is the app's full set, matched by path. [] removes all. A file without a \"schedules\" key leaves them as they are.",
    "\"lock\" is true or false. A file without a \"lock\" key leaves the lock as it is, so a redeploy never unlocks an app. The password, if any, is set in the dashboard only.",
    "Never put secrets in it. It is part of the code and is never private. Use env vars (see env-vars).",
    "Only the top folder is read. A copy in a subfolder is ignored.",
    "Only the exact name embarko.json is read. Not .embarko, embarko.yaml, embarko.config.json or embarko.jsonc.",
    "Plain JSON: no comments, no trailing commas.",
    "Unknown keys are ignored, with a warning.",
    "At most 64 KB."
  ],
  "errors": [
    {
      "code": "invalid_embarko_json",
      "status": 400,
      "retry": "No",
      "do": "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."
    },
    {
      "code": "app_not_found / app_deleted",
      "status": "404 / 410",
      "retry": "No",
      "do": "\"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\"."
    },
    {
      "code": "app_id_mismatch",
      "status": 409,
      "retry": "No",
      "do": "\"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."
    },
    {
      "code": "secrets_in_embarko_json",
      "status": 400,
      "retry": "No",
      "do": "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."
    },
    {
      "code": "invalid_schedules / invalid_cron / schedule_too_frequent / invalid_timezone / invalid_path / duplicate_schedule_path / schedule_limit_reached",
      "status": 400,
      "retry": "No",
      "do": "A schedule entry is wrong. The message names it, e.g. \"Schedule 1: ...\". Fixes: see schedules."
    },
    {
      "code": "embarko_json_not_at_top (warning)",
      "status": 202,
      "retry": "No",
      "do": "Found in a subfolder; only the top folder is read. Move it next to package.json and deploy again."
    },
    {
      "code": "embarko_json_misnamed (warning)",
      "status": 202,
      "retry": "No",
      "do": "A file like .embarko or embarko.yaml was found. Rename it to embarko.json, as JSON, and deploy again."
    },
    {
      "code": "embarko_json_unknown_keys (warning)",
      "status": 202,
      "retry": "No",
      "do": "Keys Embarko does not use were ignored. Remove them, or check the spelling of \"schedules\" and \"lock\"."
    },
    {
      "code": "lock_ignored_orphan (warning)",
      "status": 202,
      "retry": "No",
      "do": "The app is temporary, so \"lock\" was not applied. Claim it, then deploy again with the same file."
    },
    {
      "code": "in_process_timer (warning)",
      "status": 202,
      "retry": "No",
      "do": "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\"."
    },
    {
      "code": "schedules_unchanged (warning)",
      "status": 202,
      "retry": "No",
      "do": "The app has schedules and this upload declares none, so they were kept. To remove them, deploy with \"schedules\": []."
    },
    {
      "code": "schedules_on_static_site (warning)",
      "status": 202,
      "retry": "No",
      "do": "A static site runs no code, so its schedules were not applied. Deploy it as a server app to use them."
    }
  ],
  "prerequisites": {
    "read_first": "https://embarko.ai/docs/prerequisites",
    "user": "The person is usually not a developer. They want to know if the app is live, not how.",
    "talk": "Reply in 1-3 short plain sentences: what happened, and what the person needs to do only if something is needed. Do not show commands, API names, tokens, headers or logs, or describe the steps you took, unless the person asks for technical details. If the person is clearly a developer (uses technical terms, asks what you ran), talk to them that way for the rest of the conversation. Never show a token. Never invent a link, name or code: use only what Embarko's replies, this guide or the person give you.",
    "route": "Connector first if it is in your tools, then the HTTP API. If you can reach neither, ask the person to add the connector. The upload page is the last resort.",
    "domains": "ship.embarko.ai (API), embarko.ai (website), {app-name}.embarko.app (apps): all Embarko.",
    "requires": [
      {
        "topic": "deploy",
        "why": "The deploy that reads the file",
        "url": "https://embarko.ai/docs/deploy"
      }
    ]
  },
  "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": [
    {
      "topic": "schedules",
      "why": "Timed calls into the app",
      "url": "https://embarko.ai/docs/schedules"
    },
    {
      "topic": "lock",
      "why": "Making the app private",
      "url": "https://embarko.ai/docs/lock"
    },
    {
      "topic": "rename",
      "why": "Why appId matters after a rename",
      "url": "https://embarko.ai/docs/rename"
    },
    {
      "topic": "env-vars",
      "why": "Where secrets go instead",
      "url": "https://embarko.ai/docs/env-vars"
    },
    {
      "topic": "errors",
      "why": "Every deploy error",
      "url": "https://embarko.ai/docs/errors"
    }
  ],
  "links": {
    "schema": "https://embarko.ai/schema/embarko.json",
    "deploy": "https://ship.embarko.ai/apps"
  },
  "url": "https://embarko.ai/docs/embarko-json",
  "contents": "https://embarko.ai/docs",
  "version": "2026-11-24"
}