{"service":"fullstacked-cloud-docs","version":"1.25.8","environment":"test","generatedAt":"2026-12-03T03:11:46.752Z","formats":{"html":"https://d.fullstacked.cloud/","markdown":"https://d.fullstacked.cloud/?format=md","json":"https://d.fullstacked.cloud/?format=json"},"services":{"console":"https://c.fullstacked.cloud","auth":"https://a.fullstacked.cloud","git":"https://g.fullstacked.cloud","tunnels":"https://t.fullstacked.cloud","tunnelsHost":"t.fullstacked.cloud","mcp":"https://m.fullstacked.cloud","install":"https://i.fullstacked.cloud","docs":"https://d.fullstacked.cloud"},"runtime":{"version":"1.0.0-1861","guide":"https://d.fullstacked.cloud/runtime?format=md"},"dataEngineLimits":{"postgres":{"image":"postgres:18.6-alpine","port":5432,"memoryMB":256,"cpus":2,"pids":256},"redis":{"image":"redis:8.10.2-alpine","port":6379,"memoryMB":256,"cpus":1,"pids":128},"mongodb":{"image":"mongo:8.3.11-noble","port":27017,"memoryMB":512,"cpus":2,"pids":512},"s3":{"image":"rustfs/rustfs:1.0.0","port":9000,"memoryMB":768,"cpus":2,"pids":1024},"p2p":{"image":"fullstackedorg/p2p:0.5.1","port":4444,"memoryMB":256,"cpus":1,"pids":128}},"projectRuntimeEnv":[{"name":"TUNNELS_HOST","injectedBy":"GET /api/v1/projects/:id/env","description":"Tunnels hub host for tunnel.register from fullstacked/tunnel."},{"name":"AUTH_HOST","injectedBy":"GET /api/v1/projects/:id/env","description":"Bare host of the Authentication service."},{"name":"AUTH_URL","injectedBy":"GET /api/v1/projects/:id/env","description":"Base URL of the Authentication service (GET ${AUTH_URL}/api/v1/me)."},{"name":"AUTH_TOKEN","injectedBy":"Client GUI / action runner at launch (in memory, never stored)","description":"The signed-in user's fsc_* bearer token for this run (from the Client GUI, a project-scoped fsc_prj_ token: the user's identity and the project's linked resources only): Authorization: Bearer ${AUTH_TOKEN}."}],"topics":[{"slug":"data","title":"Managed Data","url":"https://d.fullstacked.cloud/data","markdownUrl":"https://d.fullstacked.cloud/data?format=md","jsonUrl":"https://d.fullstacked.cloud/data?format=json","markdown":"# Managed Data\n\nFullStacked Cloud runs PostgreSQL, Redis, MongoDB, S3-compatible object storage (RustFS) and FullStacked P2P (realtime presence, messaging, shared state and audio/video between the users of an app) instances, each in its own container. A project reaches an instance linked to it through `fullstacked/tunnel`: register the tunnels hub with the user's `AUTH_TOKEN` and the instance's data token, then point the standard npm driver at the returned name. The runtime keeps a WebSocket session to the hub for that tunnel and carries every driver connection as a stream on it. Credentials come from `process.env` and match the current user's access (read-write or read-only), so the same code serves every user.\n\n## Setup\n\n1. Provision an instance and link it to the project: Console (https://c.fullstacked.cloud, Data, then Project, Linked data) or MCP (`data_provision`, then `data_link_project`).\n2. The project environment then carries the data token and credentials (see [Injected process.env](https://d.fullstacked.cloud/project-runtime)):\n\n| Engine | Variables |\n| :--- | :--- |\n| PostgreSQL | `PG_DATA_TOKEN`, `DATA_USER`, `DATA_PASSWORD`, `DATA_DB` |\n| Redis | `REDIS_DATA_TOKEN`, `DATA_USER`, `DATA_PASSWORD` |\n| MongoDB | `MONGO_DATA_TOKEN`, `DATA_USER`, `DATA_PASSWORD`, `DATA_DB` |\n| S3 | `S3_DATA_TOKEN`, `DATA_KEY_ID`, `DATA_KEY_SECRET`, `DATA_BUCKET` |\n| P2P | `P2P_DATA_TOKEN`, `DATA_USER`, `DATA_PASSWORD` |\n\nThe oldest linked instance uses these names; other instances add a prefix from their name (`ANALYTICS_DB_DATA_USER`, `ANALYTICS_DB_PG_DATA_TOKEN`, ...).\n\n3. Connect with the code below. Always `ssl: false` (the tunnel is already `wss://`); the port given to the driver is ignored (the token selects the instance), keep the engine's default for readability.\n\n## PostgreSQL (`pg`)\n\n```ts\n// db.ts\nimport tunnel from \"fullstacked/tunnel\";\nimport pg from \"pg\";\n\nlet pool: pg.Pool | null = null;\n\nexport async function getPool(): Promise<pg.Pool> {\n    if (pool) return pool;\n    const host = await tunnel.register({\n        host: process.env.TUNNELS_HOST!,\n        authorization: `${process.env.AUTH_TOKEN}:${process.env.PG_DATA_TOKEN}`,\n    });\n    pool = new pg.Pool({\n        host,\n        port: 5432,\n        user: process.env.DATA_USER,\n        password: process.env.DATA_PASSWORD,\n        database: process.env.DATA_DB,\n        ssl: false,\n        max: 10,\n    });\n    pool.on(\"error\", (err) => console.error(\"pg pool error\", err));\n    return pool;\n}\n\nconst { rows } = await (await getPool()).query(\"SELECT now()\");\n```\n\n## Redis (`ioredis`)\n\n```ts\nimport tunnel from \"fullstacked/tunnel\";\nimport Redis from \"ioredis\";\n\nconst host = await tunnel.register({\n    host: process.env.TUNNELS_HOST!,\n    authorization: `${process.env.AUTH_TOKEN}:${process.env.REDIS_DATA_TOKEN}`,\n});\nconst redis = new Redis({\n    host,\n    port: 6379,\n    username: process.env.DATA_USER,\n    password: process.env.DATA_PASSWORD,\n});\nredis.on(\"error\", (err) => console.error(\"redis error\", err));\nawait redis.set(\"greeting\", \"hello\");\n```\n\n## MongoDB (`mongodb`)\n\n```ts\nimport tunnel from \"fullstacked/tunnel\";\nimport { MongoClient } from \"mongodb\";\n\nconst host = await tunnel.register({\n    host: process.env.TUNNELS_HOST!,\n    authorization: `${process.env.AUTH_TOKEN}:${process.env.MONGO_DATA_TOKEN}`,\n});\nconst { DATA_USER, DATA_PASSWORD, DATA_DB } = process.env;\nconst client = new MongoClient(\n    `mongodb://${DATA_USER}:${DATA_PASSWORD}@${host}:27017/${DATA_DB}?authSource=${DATA_DB}&directConnection=true`\n);\nawait client.connect();\nconst db = client.db(DATA_DB);\n```\n\nKeep `directConnection=true` (a single server reached through the tunnel name) and `authSource` set to the database: the app users live there.\n\n## S3 (`@aws-sdk/client-s3`)\n\n```ts\nimport tunnel from \"fullstacked/tunnel\";\nimport { S3Client, PutObjectCommand, ListObjectsV2Command } from \"@aws-sdk/client-s3\";\n\nconst host = await tunnel.register({\n    host: process.env.TUNNELS_HOST!,\n    authorization: `${process.env.AUTH_TOKEN}:${process.env.S3_DATA_TOKEN}`,\n});\nconst s3 = new S3Client({\n    endpoint: `http://${host}`,\n    region: \"us-east-1\",\n    forcePathStyle: true,\n    credentials: {\n        accessKeyId: process.env.DATA_KEY_ID!,\n        secretAccessKey: process.env.DATA_KEY_SECRET!,\n    },\n});\nconst Bucket = process.env.DATA_BUCKET!;\nawait s3.send(new PutObjectCommand({ Bucket, Key: \"hello.txt\", Body: \"hi\", ContentType: \"text/plain\" }));\nconst list = await s3.send(new ListObjectsV2Command({ Bucket }));\n```\n\nUse `http://` (not `https://`) and `forcePathStyle: true`. Each instance has one bucket, `DATA_BUCKET`.\n\n## P2P (`@fullstacked/p2p`)\n\nA P2P instance is a realtime server for the users of a project. Every user who runs the project connects as a peer and sees every other peer (presence), wherever they are in the app, and can message any of them directly (`send`, `request`). The rest happens in **channels**: named scopes such as `lobby` or `board:42` that a client subscribes to. A channel carries its own shared key-value state (persisted by the instance; a subscriber gets it on subscribe), broadcasts, per-channel presence and audio/video, and they reach only its subscribers. Subscribe to what the current screen needs and unsubscribe when it goes away. Use it for multiplayer and collaborative features: live cursors, chat, shared documents and whiteboards, calls.\n\nAdd the driver to the project's `package.json`: `\"dependencies\": { \"@fullstacked/p2p\": \"^0.5.0\" }`.\n\n```ts\n// p2p.ts\nimport tunnel from \"fullstacked/tunnel\";\nimport { P2PClient } from \"@fullstacked/p2p\";\n\nlet client: Promise<P2PClient> | null = null;\n\n/** One client per app instance: every caller shares it. */\nexport function getP2P(): Promise<P2PClient> {\n    client ??= (async () => {\n        const host = await tunnel.register({\n            host: process.env.TUNNELS_HOST!,\n            authorization: `${process.env.AUTH_TOKEN}:${process.env.P2P_DATA_TOKEN}`,\n        });\n        // The signed-in user is the peer: one peerId per user, one session per device.\n        const res = await fetch(`${process.env.AUTH_URL}/api/v1/me`, {\n            headers: { Authorization: `Bearer ${process.env.AUTH_TOKEN}` },\n        });\n        const { data: me } = await res.json();\n        return P2PClient.connect({\n            host,\n            port: 4444,\n            user: process.env.DATA_USER, // decides the role: read-write creates channels, read-only joins existing ones\n            password: process.env.DATA_PASSWORD,\n            peer: { id: me.id, name: me.name ?? me.username, meta: { color: \"#0080ff\" } },\n        });\n    })();\n    return client;\n}\n```\n\n```ts\n// board.ts\nimport { P2PError } from \"@fullstacked/p2p\";\nimport { getP2P } from \"./p2p\";\n\nconst p2p = await getP2P();\np2p.on(\"peer:joined\", (peer) => console.log(`${peer.name} is online`));\np2p.on(\"peer:left\", (peer, reason) => console.log(`${peer.name} left (${reason})`));\nconsole.log(\"online:\", p2p.getActivePeers().map((p) => p.name));\nconsole.log(\"boards:\", p2p.getChannels().map((c) => c.id)); // listed without subscribing\n\nlet board;\ntry {\n    // Read-write users create the channel when it is missing; read-only users join existing ones.\n    board = await p2p.subscribe(\"board:42\", { create: p2p.role !== \"ro\", meta: { tool: \"pen\" } });\n} catch (err) {\n    if (err instanceof P2PError && err.code === \"CHANNEL_NOT_FOUND\") throw new Error(\"This board does not exist yet\");\n    throw err;\n}\n// Register listeners right after subscribe: earlier events are not replayed (state is, via getState).\nboard.on(\"message\", (event) => console.log(event.from.name, event.data));\nboard.on(\"state:changed\", ({ key, value, deleted }) => console.log(key, deleted ? \"deleted\" : value));\nboard.on(\"subscriber:joined\", ({ peer }) => console.log(`${peer.name} opened the board`));\n\nconsole.log(\"title:\", board.getState(\"title\"));\nawait board.setState(\"title\", \"Sprint planning\");\nawait board.broadcast({ type: \"chat\", text: \"hello\" });\nawait board.broadcast({ type: \"cursor\", x: 10, y: 20 }, { ephemeral: true });\n// Leaving the screen:\nawait board.unsubscribe();\n```\n\n- **Client API**: `getActivePeers()`, `getPeers(peerId)` (one entry per device), `updatePresence(meta)` (global), `send(peerIdOr{ sessionId }, data)`, `request(target, data)` answered by `event.reply(value)` in the target's `message` listener, `getChannels()` (each with its `meta`: a title, a description, up to 4 KiB), `getSubscribers(channel)`, `createChannel(id, { meta? })` / `updateChannelMeta(id, patch)` (read-write only), `deleteChannel(id)` (its creator only), `peek(id | ids, { keys?, prefix? })` (read one or many channels' entries and stats without subscribing), `getChannelStats({ prefix })` / `followStats(prefix)` (the `channel:stats` event: \"edited 3 min ago\"), `can(action, channel)` (the server's rule, for your UI), `subscribe(id, { create?, meta?, replace?, state? })` (`replace` switches from another channel in one step; `state: false` loads no state). Values are any JSON.\n- **Channel API**: `getState(key?)`, `setState(key, value, { tag?, ephemeral? })` / `setStates({ key: value })`, `deleteState(key, { tag? })` / `deleteStates(keys)`, `clearState({ prefix? })`, `broadcast(data, { ephemeral?, throttleMs?, settleMs?, stream? })`, `getSubscribers()`, `updatePresence(meta, { merge?, ephemeral?, throttleMs?, settleMs? })` (channel presence; `ephemeral` with `throttleMs` / `settleMs` for cursors), `lease(name)` with the `lease:changed` event (exactly one device holds a job at a time). An ephemeral `setState` is a live value while dragging (`live: true` on `state:changed`), never stored: finish with a regular `setState`. `tag` says why a key changed (`change.tag`, e.g. `\"undo\"`); `change.created` marks a new key. `shareMedia(stream)` / `stopMedia()` with the `media` event, `unsubscribe()`, and the `closed` event when the channel is deleted. Concurrent state writes resolve last-write-wins. Every export of the package carries TSDoc; its README is the full guide.\n- **Channel ids** are 1 to 128 letters, digits, `.`, `_`, `:` or `-` (`INVALID_CHANNEL` otherwise); use a prefix per kind (`board:42`, `call:team`). Subscribing to a missing channel without `create` rejects with `CHANNEL_NOT_FOUND`.\n- **Transport**: the control connection goes through the tunnel like any driver. FullStacked apps (webview) also open direct WebRTC links to the devices they share a channel with when they can (the instance provides no STUN/TURN servers, so links form between devices that can reach each other directly, such as on one network) and fall back to the relay through the instance otherwise, with no code change. Media over the relay arrives with about 0.3 to 0.8 s of latency at 250 kbps. Actions and the CLI are socket-only: everything but media works.\n- **Connection drops** (instance restart, network change) reconnect automatically with a new `sessionId` (same `peerId` and `deviceId`) and resubscribe every channel: listen to `disconnected` / `reconnected`. When access can change while the app runs, pass `beforeConnect` to re-read credentials before each reconnect. A failed first `connect()` rejects (`AUTH_FAILED`, `TIMEOUT`, `SERVER_FULL`) and is not retried.\n- **From the Console or MCP**, `data_query` takes the driver's inspection operations as JSON, without subscribing: `{\"operation\":\"channels\"}`, `{\"operation\":\"peers\",\"channel\":\"board:42\"}`, `{\"operation\":\"getState\",\"channel\":\"board:42\",\"prefix\":\"shape:\"}`, `{\"operation\":\"getStates\",\"channels\":[\"board:1\",\"board:2\"],\"keys\":[\"thumb\"]}`, `{\"operation\":\"stats\",\"prefix\":\"board:\"}`, `{\"operation\":\"setState\",\"channel\":\"board:42\",\"key\":\"title\",\"value\":\"Q4\"}`, `deleteState`, `clearState` (`prefix?`), `broadcast` (`channel`, `data`), `send` (`to`, `data`), `createChannel` (`channel`, `meta?`), `updateChannel` (`channel`, `meta`) and `deleteChannel` (`channel`; only channels you created). `data_query_schema` shows the connected devices with their channels, every channel with its subscriber count, size and keys, storage and limits; `schema_name` set to a channel id shows that channel's subscribers and keys. Writes made there are attributed to your user id (`updatedBy`).\n\n## Read-only users\n\nA user with read access only receives the `app_ro` credentials and the read-only token: PostgreSQL rejects writes (`SQLSTATE 25006` read-only transaction, or `42501` insufficient privilege), Redis allows only read and subscribe commands, MongoDB and S3 refuse writes, and a P2P `app_ro` client (`p2p.role === \"ro\"`) cannot create or delete channels (`P2PError` `FORBIDDEN`) but joins existing ones and takes full part in them: broadcasts, shared state, presence and media. A frozen instance (over quota) also resolves to read-only credentials for everyone. Design the UI to handle a failed write, and gate write controls with `GET /api/v1/user/access`: `resources.data[<instanceId>].write && !resources.data[<instanceId>].frozen` (`write` stays true on a frozen instance).\n\n## Container limits\n\n| Engine | Image | Port | Memory | CPUs | PIDs |\n| :--- | :--- | :--- | :--- | :--- | :--- |\n| PostgreSQL | `postgres:18.6-alpine` | `5432` | 256 MB | 2 | 256 |\n| Redis | `redis:8.10.2-alpine` | `6379` | 256 MB | 1 | 128 |\n| MongoDB | `mongo:8.3.11-noble` | `27017` | 512 MB | 2 | 512 |\n| S3 (RustFS) | `rustfs/rustfs:1.0.0` | `9000` | 768 MB | 2 | 1024 |\n| P2P | `fullstackedorg/p2p:0.5.1` | `4444` | 256 MB | 1 | 128 |\n\nEngine settings:\n\n- **PostgreSQL**: `shared_buffers=32MB`, `maintenance_work_mem=16MB`, `max_connections=110`, and each backend's private memory capped at 64 MB. A query that needs more fails alone with `out of memory` (SQLSTATE `53200`); if backends together exceed the container memory, one is killed and PostgreSQL resets every connection of the instance. A query's temporary files stop at 1 GB (`temp_file_limit`, SQLSTATE `53400` for that query alone).\n- **Redis**: AOF persistence (`appendonly yes`) and `maxmemory 192mb` with `noeviction`: past 192 MB of data, writes fail with an `OOM` error while reads keep working; nothing is evicted. Keep keys bounded (TTLs).\n- **MongoDB**: default settings inside the container memory limit (diagnostic data capped at 20 MB).\n- **S3 (RustFS)**: at most 8 concurrent disk reads and 4 concurrent uploads per instance; further uploads queue for up to 60 s.\n- **P2P**: shared state up to 16 MiB across all channels (`STATE_TOO_LARGE` past it), messages and state values up to 1 MiB each (`PAYLOAD_TOO_LARGE`), 100 concurrent connections (`SERVER_FULL`), 1,024 channels per instance and 16 subscribed at once per device (`CHANNEL_LIMIT`), and a client that falls 1 MiB behind on reliable frames is disconnected (`slow_consumer`) and reconnects.\n\nContainers have no swap and restart automatically after being killed.\n\n## Fair use and driver practices\n\n1. **Page large results**: `LIMIT` with keyset pagination or cursors in PostgreSQL so no single query needs more than 64 MB of backend memory; `SCAN` instead of `KEYS *` in Redis; batch MongoDB reads with `limit` and cursors.\n2. **Bound concurrency**: keep `pg.Pool` small (`max` 10 or less per app) and avoid many heavy queries at once (`Promise.all` over dozens of large result sets) that together exceed the instance memory.\n3. **Bound uploads**: run at most 4 S3 uploads at a time per instance and keep the AWS SDK's default retries.\n   P2P: send high-frequency values (cursors, live strokes) with `{ ephemeral: true }` and keep large data out of messages and state.\n4. **Handle errors**: attach `error` listeners to pools and clients so a dropped connection (revoked access, instance restart) does not surface as an unhandled error; reconnect on demand.\n5. **Register once**: call `tunnel.register` once per instance and reuse the name and the client.\n6. **Unlink before deprovisioning**: an instance that a project still links cannot be deprovisioned (`409 INSTANCE_LINKED`, naming the projects). Unlink it from each project first (Console: Project, Linked data; REST: `DELETE /api/v1/projects/:id/data-links`). The instance page lists the projects that link it.\n7. **Plan quotas**: every owner's instances count against the owner's plan: on Base 5 data instances, 1 GiB of storage across their projects and data instances together, and 5 GiB per UTC calendar month of data tunnel transfer (both directions); on Pro 15 instances, 25 GiB and 100 GiB; on Business 60 instances, 200 GiB and 1 TiB. Instances beyond the plan's oldest ones are frozen (read-only) until others are deleted; over the storage limit every non-sponsored instance is frozen until storage falls below 95% of it; once the monthly transfer is spent, new connections are refused (`402 quota_exceeded`) until the next month. An instance linked to a project that a Pro or Business member sponsors (an accepted member, within their 10 or 50 sponsored projects and Edges) has no limits.\n\n## Troubleshooting\n\nA refused tunnel session fails every connection with an error naming the tunnel and the WebSocket handshake status (for example `expected handshake response status code 101 but got 401`); the reason word below is in the hub's response body, not in the error.\n\n| Symptom | Cause |\n| :--- | :--- |\n| Variable undefined | Instance not linked, or the user has no access to it (omitted from the environment). |\n| Connection fails, status `401` | `AUTH_TOKEN` missing, expired or revoked, or the data token was rolled (re-read the environment). |\n| Status `403` (`read_access_denied` / `write_access_denied`) | The user lost access to the instance. |\n| Status `402` (`quota_exceeded`) | Frozen instance (read-write token) or monthly data transfer spent. |\n| Status `503` (`auth_unavailable`) | The hub could not check the token: retry. |\n| SSL negotiation error | Driver TLS enabled: set `ssl: false` / plain `http://`. |\n\n## Endpoints\n\n### GET /api/v1/data\n\nManaged data instances visible to the caller (?engine=).\n\n- **Service**: `data` (`https://t.fullstacked.cloud`)\n- **Auth**: Bearer fsc_*\n\ncurl:\n\n```bash\ncurl -sS -H \"Authorization: Bearer $AUTH_TOKEN\" \"https://t.fullstacked.cloud/api/v1/data\"\n```\n\n### POST /api/v1/data/provision\n\nProvisions an isolated instance { engine: postgres | redis | mongodb | s3 | p2p, label? } (201).\n\n- **Service**: `data` (`https://t.fullstacked.cloud`)\n- **Auth**: Bearer fsc_*\n\nRequest:\n\n```json\n{\n  \"engine\": \"postgres\"\n}\n```\n\n### GET /api/v1/data/:id\n\nOne instance.\n\n- **Service**: `data` (`https://t.fullstacked.cloud`)\n- **Auth**: Bearer fsc_*\n\n### DELETE /api/v1/data/:id\n\nDeprovisions an instance (owner only, 204).\n\n- **Service**: `data` (`https://t.fullstacked.cloud`)\n- **Auth**: Bearer fsc_*\n\n### GET /api/v1/data/:id/connection\n\nConnection parameters, DATA_* variables and fullstacked/tunnel snippets for ?access_level=rw|ro within the caller's permission.\n\n- **Service**: `data` (`https://t.fullstacked.cloud`)\n- **Auth**: Bearer fsc_*\n\n### GET /api/v1/data/:id/schema\n\nIntrospects tables, keys, collections or buckets (?schema=).\n\n- **Service**: `data` (`https://t.fullstacked.cloud`)\n- **Auth**: Bearer fsc_*\n\n### POST /api/v1/data/:id/query\n\nRuns one operation: { sql, params? } (postgres), { command } (redis), { operation, collection, ... } (mongodb), { operation, key?, prefix?, ... } (s3) or { operation, key?, prefix?, value?, data?, to? } (p2p).\n\n- **Service**: `data` (`https://t.fullstacked.cloud`)\n- **Auth**: Bearer fsc_*\n\nRequest:\n\n```json\n{\n  \"sql\": \"select now()\"\n}\n```\n"}],"endpoints":[{"service":"data","topic":"data","auth":"Bearer fsc_*","id":"data.list","method":"GET","path":"/api/v1/data","summary":"Managed data instances visible to the caller (?engine=).","codeExamples":{"curl":"curl -sS -H \"Authorization: Bearer $AUTH_TOKEN\" \"https://t.fullstacked.cloud/api/v1/data\""},"fullUrl":"https://t.fullstacked.cloud/api/v1/data"},{"service":"data","topic":"data","auth":"Bearer fsc_*","id":"data.provision","method":"POST","path":"/api/v1/data/provision","summary":"Provisions an isolated instance { engine: postgres | redis | mongodb | s3 | p2p, label? } (201).","requestExample":{"engine":"postgres"},"fullUrl":"https://t.fullstacked.cloud/api/v1/data/provision"},{"service":"data","topic":"data","auth":"Bearer fsc_*","id":"data.get","method":"GET","path":"/api/v1/data/:id","summary":"One instance.","fullUrl":"https://t.fullstacked.cloud/api/v1/data/:id"},{"service":"data","topic":"data","auth":"Bearer fsc_*","id":"data.deprovision","method":"DELETE","path":"/api/v1/data/:id","summary":"Deprovisions an instance (owner only, 204).","fullUrl":"https://t.fullstacked.cloud/api/v1/data/:id"},{"service":"data","topic":"data","auth":"Bearer fsc_*","id":"data.connection","method":"GET","path":"/api/v1/data/:id/connection","summary":"Connection parameters, DATA_* variables and fullstacked/tunnel snippets for ?access_level=rw|ro within the caller's permission.","fullUrl":"https://t.fullstacked.cloud/api/v1/data/:id/connection"},{"service":"data","topic":"data","auth":"Bearer fsc_*","id":"data.schema","method":"GET","path":"/api/v1/data/:id/schema","summary":"Introspects tables, keys, collections or buckets (?schema=).","fullUrl":"https://t.fullstacked.cloud/api/v1/data/:id/schema"},{"service":"data","topic":"data","auth":"Bearer fsc_*","id":"data.query","method":"POST","path":"/api/v1/data/:id/query","summary":"Runs one operation: { sql, params? } (postgres), { command } (redis), { operation, collection, ... } (mongodb), { operation, key?, prefix?, ... } (s3) or { operation, key?, prefix?, value?, data?, to? } (p2p).","requestExample":{"sql":"select now()"},"fullUrl":"https://t.fullstacked.cloud/api/v1/data/:id/query"}]}