create_app
Build a private data app on Autario in one call from an HTTPS URL or self-contained HTML that reads Autario datasets.
Instructions
Create a data app on autario in ONE call, owned by you. You give it a name and an entry: either an https URL where the app already runs, or the app's HTML itself (a single self-contained document, max 512 KB) which autario then hosts and serves inside a locked sandbox. The app id is derived from the name, so you never invent one. The new app is PRIVATE: only you can open it, it is in no catalog and at no public URL until you call publish_app. Use this as the FIRST step whenever a user asks you to build them an app, a dashboard, a report page or a tool that runs on autario data | the public catalog (World Bank, FRED, Eurostat, OECD, WHO, IMF, ECB, US Census, SEC) or the user's own connector tables (Google Search Console, GA4, Google Ads, Meta Ads, YouTube, TikTok, Instagram, Facebook, Shopify, LinkedIn). Inside the HTML read data with autario.js, never with fetch (the sandbox has no network): autario.ready(), autario.datasets(), autario.query(datasetId, {limit, orderBy, where}), autario.artifacts.get/set(key); autario inlines the SDK into every app, docs at https://autario.com/developer/docs/autario-js. Pass datasets with the ids of the user's own tables the app may read. Follow it with write_app_artifact (to save the app's data or saved views), get_app_preview_url (to hand the user a link to try) and publish_app (to make it public). Requires authentication.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Display name of the app. The app id is derived from it (lowercased, hyphenated); needs at least three letters or digits. | |
| content | No | REQUIRED when entry_kind is "upload". The app's entry document, normally a single self-contained HTML file. It runs in a sandbox with no outbound network: read autario data through the sandbox bridge, not through fetch to third parties. | |
| tagline | No | One line saying what the app does, max 200 chars. Worth writing: it is what a user reads in the app store, and an app cannot be indexed without one. | |
| datasets | No | Ids of the user's OWN datasets (connector tables, uploads; get them from get_my_workspace) this app may read through autario.js. Everyone the owner shares the app with (role reader and up) reads exactly these, nothing else. Public catalog datasets need no declaration. | |
| entry_url | No | REQUIRED when entry_kind is "url". Must start with https://. | |
| entry_kind | No | "url" = the app already runs somewhere (give entry_url). "upload" = you are sending the app itself (give content). Default "url". | |
| source_url | No | Optional link to the app's open source repository. | |
| content_type | No | Type of the uploaded content. Default text/html. |