Configure by API
Everything a project needs to go live can be done from code, without opening the dashboard: turn an automation on, make it answer right away, set environment variables and publish a portal. This is the path for CI pipelines and for AI agents working on your behalf.
Authentication
Same as every other call to the API — both headers, always:
Authorization: Token <your_token>
x-api-key: <your_x_api_key>Both come from the SDK key you create in the dashboard (the one datallog login stores). A call without x-api-key, or with the key of another account, is refused with 403.
All routes below live under https://api-mwm.datallog.com/api/. Members of an account can only touch the projects they were given, and only roles that configure projects can change them.
The whole flow
API=https://api-mwm.datallog.com/api
H=(-H "Authorization: Token $DATALLOG_TOKEN" -H "x-api-key: $DATALLOG_API_KEY" -H "content-type: application/json")
# 1. create the project and send the code (automations and pages/*.html)
datallog create-project my-office && cd my-office
datallog push
# 2. turn the automation on and make it wait for the result
curl "${H[@]}" -X POST $API/update-project-blocking-mode -d '{"project_name": "my-office", "enabled": true}'
curl "${H[@]}" -X POST $API/update-application-settings \
-d '{"project_name": "my-office", "app_name": "sign_in", "is_active": true, "blocking_enabled": true}'
# 3. environment variables
curl "${H[@]}" -X POST $API/env-vars -d '{"deploy_name": "my-office", "env_vars": {"SIGNING_SECRET": "..."}}'
# 4. open the portal and get its address
curl "${H[@]}" -X POST $API/pages/my-office/office/link -d '{"enabled": true}'
# → {"link_enabled": true, "url": "https://office-my-office.portais.datallog.io/", ...}Automation: on, off, and how it answers
POST /api/update-application-settings
| Field | Type | |
|---|---|---|
project_name | string | required |
app_name | string | required — the automation |
is_active | bool | new automations start off; an off automation refuses every call |
blocking_enabled | bool | true = Wait for the result (needs the project's fast mode, below) |
The same route accepts the other settings of the automation screen (description, seed_example, parallelism, schedule_crontab...). Only the fields you send change. Turning an automation off also turns its schedule off.
Read the message
An automation name that does not exist answers 200 with {"message": "This application do not exists"}. Check the body, not only the status.
Project fast mode
Waiting for the result has two switches: the project (which prepares the fast runtime from the current image) and each automation (blocking_enabled, above).
GET /api/get-project-blocking-support/<project_name> — {"supports_blocking": bool, "reason": ...}
POST /api/update-project-blocking-mode — {"project_name": "...", "enabled": true}
| Status | Meaning |
|---|---|
200 | on (or off) |
202 | still being prepared — ask again in a few seconds |
409 | no image yet, or an image too old: run datallog push first |
503 | the test call failed; the mode stays off |
Environment variables
POST /api/env-vars
{ "deploy_name": "my-office", "env_vars": { "SIGNING_SECRET": "...", "OLD_ONE": null } }- it merges: variables you do not name stay as they are;
nullremoves one; - add
"automation_name"to set a variable for one automation only (it wins over the project's); - the answer lists only names (
set,removed) — values never come back, not even in errors. To check a value, read it inside the automation.
Portals
datallog push already publishes every pages/<address>.html of the project (the file name is the address). These routes are for publishing without the CLI and for the link:
| Route | |
|---|---|
GET /api/pages/<project> | list the project's portals |
GET /api/pages/<project>/<address> | read one, with link_enabled and url |
PUT /api/pages/<project>/<address> | publish: {"title": "...", "html": "..."} (up to 2 MB). 201 created, 200 updated |
DELETE /api/pages/<project>/<address> | remove |
POST /api/pages/<project>/<address>/link | {"enabled": true} opens, false closes, {"revoke": true} replaces the link |
Publishing does not open the portal — a new portal starts closed. When it is open, the answer carries url, the portal's own address on .portais.datallog.io. It is fixed from then on. Who can enter is still the rule in Portals: signed in and part of the account.

