mountable.io

Workflow connectors

Importable n8n, Make.com and Zapier workflows that create a filesystem, set its spending cap and limits, mint mount tickets, and run when files change.

n8n, Make.com and Zapier call mountable.io's control-plane API. They do not mount the filesystem. The workflow holds MOUNTABLE_API_KEY, an API key; creating filesystems and setting their limits take MOUNTABLE_MANAGEMENT_KEY, a management key. The sandbox step receives only the one-time ticket. Storage and downloads are billed, so create a filesystem once and reuse its id.

The importable files and apps keep the two keys in two credentials: the management key's creates the filesystem, sets its limits and grants the API key access; the API key's mints tickets, revokes sessions and receives file changes. Either reads usage. A step run with the wrong kind of key fails with 403 management_key_required or 403 api_key_required. Files and apps from before 2026-11-07 create filesystems and set limits with the API key, which API keys can no longer do (see Permissions and keys): import the current file or update the app.

The importable files are on this site under /integrations/. Publishing a directory listing needs the owner's marketplace account; importing a blueprint does not.

Calls

Send Authorization: Bearer and the key from the workflow's secret store. Replace ORG_ID with api_key.org_id and API_KEY_ID with api_key.id from the first call. The management key creates the filesystem and gives the API key access to it; the API key does the rest.

curl -sS -H "Authorization: Bearer $MOUNTABLE_API_KEY" https://mountable.io/api/v1/me
 
curl -sS -H "Authorization: Bearer $MOUNTABLE_MANAGEMENT_KEY" -H "Content-Type: application/json" \
  -d '{"name":"agent-workspace"}' \
  https://mountable.io/api/v1/orgs/ORG_ID/filesystems
 
curl -sS -X PUT -H "Authorization: Bearer $MOUNTABLE_MANAGEMENT_KEY" -H "Content-Type: application/json" \
  -d '{"principal_type":"api_key","principal_id":"API_KEY_ID","mode":"rw"}' \
  https://mountable.io/api/v1/orgs/ORG_ID/filesystems/FS_ID/grants
 
curl -sS -H "Authorization: Bearer $MOUNTABLE_API_KEY" \
  https://mountable.io/api/v1/orgs/ORG_ID/filesystems/FS_ID/usage
 
curl -sS -H "Authorization: Bearer $MOUNTABLE_API_KEY" -H "Content-Type: application/json" \
  -d '{"filesystem_id":"FS_ID","mode":"rw","idempotency_key":"job-42","max_duration_seconds":3600}' \
  https://mountable.io/api/v1/mount-sessions
 
curl -sS -X DELETE -H "Authorization: Bearer $MOUNTABLE_API_KEY" \
  https://mountable.io/api/v1/mount-sessions/SESSION_ID

Creating a filesystem is not idempotent. After a timeout, list filesystems before creating the same name again. A repeated mount-session create with the same idempotency_key returns the existing session and a null ticket. If state is still requested, the ticket was lost: revoke that session and create again with a new key. If state is active or later, keep the working mount. Do not send a null ticket to the sandbox. The full rules are on Agents.

max_duration_seconds in these templates is 3600 (the API allows 60 to 31536000 (365 days) and defaults to 43200 when the field is omitted). Revoke still runs when the sandbox step finishes. A revoked mount stops admitting new operations within 15 seconds.

Give each end user of your app their own filesystem with its own monthly spending cap and limits, set with the management key when you create it or later with PATCH. Send only the fields you change; null removes a cap. The fields, ranges and errors are on Limits per end user.

curl -sS -H "Authorization: Bearer $MOUNTABLE_MANAGEMENT_KEY" -H "Content-Type: application/json" \
  -d '{"name":"user-42","spending_cap_cents":500,"mutations_per_minute":120}' \
  https://mountable.io/api/v1/orgs/ORG_ID/filesystems
 
curl -sS -X PATCH -H "Authorization: Bearer $MOUNTABLE_MANAGEMENT_KEY" -H "Content-Type: application/json" \
  -d '{"spending_cap_cents":2000}' \
  https://mountable.io/api/v1/orgs/ORG_ID/filesystems/FS_ID

The sandbox command, with the ticket in MOUNTABLE_TICKET and not in an argument, is:

mkdir -p /mnt/mountable && printf '%s\n' "$MOUNTABLE_TICKET" | mountable mount --ticket-stdin --json /mnt/mountable

Wait for {"event":"mounted"}. The sandbox needs Linux FUSE (/dev/fuse).

Run a workflow when files change

A webhook calls your workflow's URL with signed files.changed messages whenever files are created, written, renamed or deleted, from mounts and the files API alike. Each message's data.events lists changed paths with type created, updated or deleted; a rename is deleted for the old path and created for the new one. A files.resync message has no events and means "list what you keep track of again". It is also the first message a new webhook receives.

Register the workflow's URL once. It must be https:// on port 443 and reachable from the internet:

WEBHOOK_SECRET=$(mountable webhooks create "$FS_ID" WORKFLOW_WEBHOOK_URL --path-prefix /)
HOOK_JSON=$(mktemp)   # the answer holds the secret
printf 'header = "Authorization: Bearer %s"\n' "$MOUNTABLE_API_KEY" |
  curl -q -sS --fail-with-body --config - --output "$HOOK_JSON" \
    "https://mountable.io/api/v1/orgs/$ORG_ID/filesystems/$FS_ID/webhooks" \
    --header "Content-Type: application/json" \
    --data '{"url": "WORKFLOW_WEBHOOK_URL", "path_prefix": "/"}'

The CLI prints only the webhook's secret (whsec_…); the curl answer holds it in the private file. It is shown once. The workflows below check every message's signature with it and stop on a message that is not signed by mountable.io. A message can arrive more than once, so make each step safe to repeat: read the path's current state rather than counting events. Webhooks are not billed.

n8n

Import these workflows (menu, Import from file). Create two Header Auth credentials, each with header name Authorization and value Bearer plus the key: mountable.io management key with the management key, and mountable.io API key with the API key. The workflows name the one each mountable.io HTTP node needs. Do not put a key in the workflow file.

  • /integrations/n8n/create-filesystem.workflow.json uses the management key. Replace REPLACE_WITH_FILESYSTEM_NAME and REPLACE_WITH_API_KEY_ID (the API key's api_key.id), then run it once: it creates the filesystem and grants the API key read-write on it.

  • /integrations/n8n/sandbox-job.workflow.json replaces REPLACE_WITH_FILESYSTEM_ID and the sandbox URL. The shipped URL is https://example.invalid/mountable-sandbox, so a trial run does not send the ticket anywhere. The idempotency key is String($execution.id), because the API requires a string and the execution id is a number. The sandbox node has no mountable.io credential. If the ticket is missing and the session is still requested, the workflow revokes that lost ticket.

  • /integrations/n8n/file-changes.workflow.json starts on each webhook message and gives one item per changed path, with type, path, file and cursor. Paste the webhook secret into the Verify and split changes node, activate the workflow, and register the Webhook node's production URL with the call above. The Webhook node keeps the raw body, because the signature covers the exact bytes. The check uses Node's crypto module: n8n Cloud allows it; self-hosted n8n needs NODE_FUNCTION_ALLOW_BUILTIN=crypto. A files.resync arrives as one item of type resync.

To set an end user's limits in n8n, add an HTTP Request node with the management key's credential that sends the PATCH above.

The community-node contract (who am I, create filesystem with limits, set limits, grant an API key access, usage, create mount session, revoke, create and delete webhook, and the file-change trigger, each with the key kind it needs) is /integrations/n8n/node-spec.json. The HTTP workflows are the connector you can import today.

Make.com

In a new scenario, choose the menu, Import blueprint, and save. The first module is a webhook so the scenario has a trigger. On each mountable.io HTTP module, replace Bearer REPLACE_WITH_MANAGEMENT_KEY with the management key or Bearer REPLACE_WITH_API_KEY with the API key. Do not share a blueprint after a key is in it. HTTP responses are read from data (for example {{2.data.management_key.org_id}}).

The sandbox module posts to https://example.invalid/mountable-sandbox and sends no Authorization header. Replace that URL with your worker, and replace REPLACE_WITH_FILESYSTEM_ID. Each webhook body must include a new string field idempotency_key. The create-session module sends it as {{1.idempotency_key}}. If that field is missing, the scenario requests https://example.invalid/missing-idempotency-key with no error handler, so the run stops as an error instead of replaying a stored key. After the session is created, a router sends the bundle one of two ways:

  • data.ticket exists: call the sandbox, then revoke. The sandbox module's error handler is Ignore, so a connection failure still reaches revoke.
  • data.ticket is missing and data.state is requested: revoke only.

Any other state stops without calling the sandbox and without revoking an active mount.

  • /integrations/make/file-changes.blueprint.json runs on each webhook message and iterates over data.events. When you create its webhook in Make, open the advanced settings and turn on JSON pass-through and Get request headers: the signature covers the raw body and lives in the headers. Replace REPLACE_WITH_WEBHOOK_SECRET in the filter before the Parse JSON module with the webhook secret, and do not share the blueprint after that. The filter lets through only messages signed with that secret in the last five minutes. Register the Make webhook address with the call above. A files.resync has no events, so the iterator emits nothing; if you keep a copy of files, add a route on type equal to files.resync that lists them again.

To set an end user's limits in Make, add an HTTP module that sends the PATCH above with the management key. The custom-app contract is /integrations/make/app-spec.json. The mountable.io app takes one key per connection: make one connection with the management key for Create a filesystem, Update filesystem limits, Grant an API key access and Delete a filesystem, and one with the API key for mount sessions, webhooks and Watch file changes.

Zapier

/integrations/zapier/ is a Zapier Platform app with:

  • a Files Changed trigger. Turning the Zap on creates a mountable.io webhook for the filesystem (and an optional folder) and keeps its secret; turning it off deletes the webhook. The trigger checks each message's signature and gives one item per changed path, with type, path, file and cursor. A files.resync gives one item of type resync; filter on type if the Zap handles only changes.
  • creates for a filesystem with optional limits, Set Filesystem Limits, Grant API Key Access, a mount session and revoke. An empty limit field keeps the current value.
  • a search for usage, including reserved_cents of this month's cap.

Each account holds one key: connect the management key for the filesystem, limit and grant actions, and the API key for mount sessions and the trigger. Authentication calls GET /api/v1/me. It is not in the Zapier directory yet. From that directory, with the owner's Zapier CLI logged in:

npm install
zapier push

Until that listing exists, a Zap can call the same URLs with Zapier's HTTP action and a stored API key. Keep that key off the sandbox step.