Templates API
Reference for the 11 Templates operations in the Intuidy API.
Responses are JSON. A successful response is { "success": true, "data": …, "meta": … }, and each operation below documents its data. Errors use the error envelope described in Errors, pagination and limits.
| Operation | Method and path | Authorization |
|---|---|---|
| Browse the solution-template catalog | GET /templates | templates:read |
| Get one template | GET /templates/{slug} | templates:read |
| Template cover image | GET /templates/{slug}/cover | templates:read |
| Install a template into your organization | POST /templates/{slug}/install | templates:write |
| Uninstall a template | POST /templates/{slug}/uninstall | templates:write |
| Preview an upgrade | GET /templates/{slug}/upgrade | templates:read |
| Apply an upgrade | POST /templates/{slug}/upgrade | templates:write |
| Write several assets' contents in one call | POST /assets/apply | workflows:write or dashboards:write |
| Which of these assets have drifted from the hashes you hold? | POST /assets/diff | workflows:read, or dashboards:read, or agents:read, or mcp:read |
| An asset's version history | GET /assets/versions | workflows:read or dashboards:read |
| Roll an asset back to one of its snapshots | POST /assets/versions/restore | workflows:write or dashboards:write |
Browse the solution-template catalog
GET /templates
Prebuilt bundles of workflows, notebooks, dashboards, agents, skills and
managed databases. Each template carries databaseCount: the number of
managed databases its install provisions. An install of a template with a
databaseCount above zero is billed and needs databases:write (see the
install operation); get the template for the names and the cost first.
Authorization: scope templates:read.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
category | string | No | — |
featured | boolean | No | — |
search | string | No | — |
Response 200 OK
Errors 403 (INSUFFICIENT_SCOPE). See Errors, pagination and limits.
Example request
curl -X GET "https://vantage.intuidy.com/api/v1/templates" \
-H "Authorization: Bearer $INTUIDY_API_KEY"Get one template
GET /templates/{slug}
Inactive templates return 404. For a template that provisions a managed database the detail carries databases (one entry per database: ref, engine, extensions it is created with such as PostGIS, tables, seed rows and defaultName, the name it will get), installCredits (the one-time charge of the install) and canProvisionDatabases (whether the key owner holds manage_databases).
Authorization: scope templates:read.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
slug | string | Yes | — |
Response 200 OK
Errors 404. See Errors, pagination and limits.
Example request
curl -X GET "https://vantage.intuidy.com/api/v1/templates/<slug>" \
-H "Authorization: Bearer $INTUIDY_API_KEY"Template cover image
GET /templates/{slug}/cover
The template's cover image, the same one the web app shows.
Authorization: scope templates:read.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
slug | string | Yes | — |
Response 200 OK
Errors 404. See Errors, pagination and limits.
Example request
curl -X GET "https://vantage.intuidy.com/api/v1/templates/<slug>/cover" \
-H "Authorization: Bearer $INTUIDY_API_KEY"Install a template into your organization
POST /templates/{slug}/install
Creates the bundle's workflows, dashboards, notebooks, agents and skills. A template whose detail lists databases also PROVISIONS a managed database as the key owner, applies its tables and loads its seed rows — billed like a manual create (the provisioning charge plus usage for each table created and each table seeded; the whole cost is checked before anything is created). Such a template additionally needs the databases:write scope on the key and the manage_databases permission on its owner. The scope must be named on the key: a blanket mcp scope does not carry it, here or on an upgrade that provisions or an uninstall that deletes a database. A database name already in use in the company gets a " (2)" suffix.
Authorization: scope templates:write.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
slug | string | Yes | — |
Request body (application/json, optional)
| Field | Type | Required | Description |
|---|---|---|---|
connections | object | No | Account binding { serviceKey: credentialId } for multi-account services |
databases | object | No | Names for the databases the template provisions, by ref from the detail: { "md1": { "name": "Inventory EU" } } |
Response 200 OK
Errors 402 (BILLING_REQUIRED), 403 (INSUFFICIENT_SCOPE, SCOPE_REQUIRED, PERMISSION_DENIED), 409 (ALREADY_INSTALLED). See Errors, pagination and limits.
Example request
curl -X POST "https://vantage.intuidy.com/api/v1/templates/<slug>/install" \
-H "Authorization: Bearer $INTUIDY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"connections":"<connections>"}'Uninstall a template
POST /templates/{slug}/uninstall
Removes everything the install created in your organization, then the
install record. All or nothing: a member who may not delete every
asset (a colleague's workflow, for example) is refused with 403, the
error names those assets, and nothing is removed.
A database the install provisioned is KEPT with its data unless
databases is deprovision, which soft-deletes it with a 7-day grace
(needs databases:write on the key and manage_databases on its owner).
Authorization: scope templates:write.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
slug | string | Yes | — |
Request body (application/json, optional)
| Field | Type | Required | Description |
|---|---|---|---|
databases | "keep" or "deprovision" | No | — |
Response 200 OK
Errors 403 (INSUFFICIENT_SCOPE, SCOPE_REQUIRED). See Errors, pagination and limits.
Example request
curl -X POST "https://vantage.intuidy.com/api/v1/templates/<slug>/uninstall" \
-H "Authorization: Bearer $INTUIDY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"databases":"<databases>"}'Preview an upgrade
GET /templates/{slug}/upgrade
Reports, per asset, whether it is clean (untouched since install) or dirty (locally modified) so the caller can choose what to do with each. A database asset also carries choices (keep, apply) and delta: the tables and columns apply would add to the live database, in addIndexes the declared indexes its existing tables lack (null when they could not be read), and in enableExtensions the extensions (PostGIS, for example) it would enable first. Its status is unreadable, with a reason, when the database exists and could not be read (suspended, for example); such a database can only be kept. upgradeCredits is what provisioning any database new in the version, or deleted since install, would cost.
Authorization: scope templates:read.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
slug | string | Yes | — |
Response 200 OK
Example request
curl -X GET "https://vantage.intuidy.com/api/v1/templates/<slug>/upgrade" \
-H "Authorization: Bearer $INTUIDY_API_KEY"Apply an upgrade
POST /templates/{slug}/upgrade
Authorization: scope templates:write.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
slug | string | Yes | — |
Request body (application/json, optional)
| Field | Type | Required | Description |
|---|---|---|---|
choices | object | No | Per-asset ref → replace | keep | copy; a database ref takes keep | apply (add the new version's tables and columns — never drop, rename or retype) and defaults to apply |
Response 200 OK
Errors 403 (INSUFFICIENT_SCOPE, SCOPE_REQUIRED), 409 (TEMPLATE_ERROR). See Errors, pagination and limits.
Example request
curl -X POST "https://vantage.intuidy.com/api/v1/templates/<slug>/upgrade" \
-H "Authorization: Bearer $INTUIDY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"choices":"<choices>"}'Write several assets' contents in one call
POST /assets/apply
Replace workflow graphs, dashboard tiles and notebook cells for several existing assets at once — the one-call-per-asset loop is what turns a 50-asset spec into dozens of sequential round trips.
NOT ATOMIC. Each asset type is saved separately, so items are applied in order and some may succeed while others fail. The response carries atomic: false, a per-item status, and a note naming the resumable retry: re-send only the items whose status is not applied. A partly-applied batch is a 200, not an error — the caller needs to see which items landed.
Updates only. Creating assets — with id allocation and cross-asset references — is what /templates/{slug}/install is for. Agents and skills are excluded: their writes carry lifecycle semantics that do not reduce to replacing content.
Pass expected_hash per item (from content_hash on a GET, or from /assets/diff) to be refused rather than overwrite a concurrent edit. For a workflow or a dashboard the check and the save happen together, so no other edit can land in between. A dashboard item is announced on the board's event stream as tiles, with the X-Write-Origin header when one is sent.
Authorization: scope workflows:write or dashboards:write (any one). Notebooks are not available through the REST API; use the MCP server for notebook items.
Each item also needs its own type’s scope:
| Type | Scope |
|---|---|
| dashboard | dashboards:write |
| workflow | workflows:write |
Header parameters
| Name | Type | Required | Description |
|---|---|---|---|
X-Write-Origin | string | No | Optional. An id for the page or client process that makes this board write, 8 to 64 characters of A-Z a-z 0-9 _ -; anything else is ignored. It is echoed to every viewer of the board as by.origin on the dashboard.saved event (GET /dashboards/{dashboardId}/events), so a client that reads that stream can skip the reload its own write caused. It is a client claim, never an authority check: it grants and refuses nothing. |
Request body (application/json)
| Field | Type | Required | Description |
|---|---|---|---|
stop_on_error | boolean | No | Stop at the first item that does not apply — for specs where later items depend on earlier ones. |
assets | array of object | Yes | — |
assets[].type | "workflow" or "dashboard" or "notebook" | Yes | — |
assets[].id | integer | Yes | Existing asset id — this endpoint updates, it does not create. |
assets[].expected_hash | string | No | — |
assets[].title | string | No | workflow only |
assets[].description | string | No | workflow only |
assets[].nodes | array of object | No | workflow only — replaces the whole node list |
assets[].edges | array of object | No | workflow only — references nodes array indices |
assets[].tiles | array of object | No | dashboard only — replaces all tiles |
assets[].cells | object | No | notebook only — { sections, meta? } |
Response 200 OK
data fields:
| Field | Type | Description |
|---|---|---|
atomic | boolean | Always false — stated in the payload, not only the docs. |
results | array of object | — |
results[].type | string | — |
results[].id | integer | — |
results[].status | "applied" or "conflict" or "not_found" or "invalid" or "forbidden" or "failed" | forbidden means retrying will never succeed — a view-only notebook, or a dashboard shared from another company. |
results[].message | string | — |
results[].content_hash | string | The new hash, on an applied item — record it as the next baseline. |
summary | object | — |
note | string | — |
Errors 400. See Errors, pagination and limits.
Example request
curl -X POST "https://vantage.intuidy.com/api/v1/assets/apply" \
-H "Authorization: Bearer $INTUIDY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":"<assets>"}'Which of these assets have drifted from the hashes you hold?
POST /assets/diff
Send [{type, id, hash}] and get back match / drifted / missing per item, with the live content_hash. Answers "does live still match my spec?" without pulling and comparing every asset.
Without it, external tooling managing Intuidy assets as code records ids but not versions, so "already applied" is the only available signal and the only reliable move is to force re-apply everything.
Omit an item's hash to read the current one — how a spec file gets its first baseline. Pass a hash back as expected_hash on /assets/apply (or on the MCP write tools) to be refused rather than silently overwrite a concurrent edit.
Each asset is fenced individually: one the key cannot read reports missing rather than leaking its fingerprint.
Authorization: scope workflows:read, or dashboards:read, or agents:read, or mcp:read (any one). Notebooks are not available through the REST API; use the MCP server for notebook items.
Each item also needs its own type’s scope:
| Type | Scope |
|---|---|
| agent | agents:read |
| dashboard | dashboards:read |
| skill | agents:read |
| workflow | workflows:read |
Request body (application/json)
| Field | Type | Required | Description |
|---|---|---|---|
assets | array of object | Yes | — |
assets[].type | "workflow" or "dashboard" or "agent" or "skill" | Yes | Notebooks are an MCP-only family and are refused here; use the diff_assets MCP tool for those. |
assets[].id | integer | Yes | — |
assets[].hash | string | No | The content_hash you last recorded. Omit to read the current one. |
Response 200 OK
data fields:
| Field | Type | Description |
|---|---|---|
results | array of object | — |
results[].type | string | — |
results[].id | integer | — |
results[].status | "match" or "drifted" or "missing" or "unknown" or "invalid" | unknown means no hash was supplied, so the live one is returned; missing means unreadable or absent; invalid means a malformed entry. |
results[].hash | string | — |
results[].expected | string | — |
summary | object | Counts by status, plus total |
Errors 400. See Errors, pagination and limits.
Example request
curl -X POST "https://vantage.intuidy.com/api/v1/assets/diff" \
-H "Authorization: Bearer $INTUIDY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":"<assets>"}'An asset's version history
GET /assets/versions
Newest-first list of an asset's snapshots, without payloads. Answers "what did this look like before someone changed it?"
Listing follows read access: what you can open, you can see the history of.
Authorization: scope workflows:read or dashboards:read (any one). Notebooks are not available through the REST API; use the MCP server for notebook items.
Each item also needs its own type’s scope:
| Type | Scope |
|---|---|
| dashboard | dashboards:read |
| workflow | workflows:read |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
type | "workflow" or "dashboard" | Yes | Notebooks are an MCP-only family and are refused here; use the list_notebook_versions MCP tool for those. |
id | integer | Yes | — |
Response 200 OK
data fields:
| Field | Type | Description |
|---|---|---|
type | string | — |
id | integer | — |
versions | array of object | — |
versions[].key | string | Pass to /assets/versions/restore to roll back to this snapshot. |
versions[].savedAt | string (date-time) | — |
versions[].savedBy | integer or null | — |
versions[].reason | string | What produced the snapshot — save, pre-restore, batch, agent or node. |
versions[].hash | string | — |
versions[].summary | object | Per-type counts (nodes/edges, tiles/tabs). |
Errors 400, 403, 404. See Errors, pagination and limits.
Example request
curl -X GET "https://vantage.intuidy.com/api/v1/assets/versions" \
-H "Authorization: Bearer $INTUIDY_API_KEY"Roll an asset back to one of its snapshots
POST /assets/versions/restore
Replays a snapshot through the asset's normal save, after snapshotting the current state first — so a restore is itself undoable, and is checked exactly like any other save of that asset.
Restoring is a write and needs write access to the asset: a dashboard shared from another company is read-only here.
A dashboard restore answers content_hash_before and content_hash and is announced on the board's event stream as tiles, source restore.
Authorization: scope workflows:write or dashboards:write (any one). Notebooks are not available through the REST API; use the MCP server for notebook items.
Each item also needs its own type’s scope:
| Type | Scope |
|---|---|
| dashboard | dashboards:write |
| workflow | workflows:write |
Header parameters
| Name | Type | Required | Description |
|---|---|---|---|
X-Write-Origin | string | No | Optional. An id for the page or client process that makes this board write, 8 to 64 characters of A-Z a-z 0-9 _ -; anything else is ignored. It is echoed to every viewer of the board as by.origin on the dashboard.saved event (GET /dashboards/{dashboardId}/events), so a client that reads that stream can skip the reload its own write caused. It is a client claim, never an authority check: it grants and refuses nothing. |
Request body (application/json)
| Field | Type | Required | Description |
|---|---|---|---|
type | "workflow" or "dashboard" | Yes | Notebooks are an MCP-only family and are refused here; use the restore_notebook_version MCP tool for those. |
id | integer | Yes | — |
key | string | Yes | The version key from GET /assets/versions. |
Response 200 OK
data fields:
| Field | Type | Description |
|---|---|---|
restored | object | — |
restored.key | string | — |
restored.savedAt | string (date-time) | — |
tileCount | integer | — |
nodeCount | integer | — |
content_hash_before | string or null | Dashboard only. The dashboard's content_hash before the restore. |
content_hash | string or null | Dashboard only. The dashboard's content_hash after the restore. |
Errors 400, 403, 404. See Errors, pagination and limits.
Example request
curl -X POST "https://vantage.intuidy.com/api/v1/assets/versions/restore" \
-H "Authorization: Bearer $INTUIDY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"type":"<type>","id":"<id>","key":"<key>"}'