Tier0 Technical Guidance Manual

Get Started

Choosing the Best Product

Edge, Cloud, or Enterprise — positioning, plans, and a capability matrix for picking your Tier0 edition.

Check here for detailed features of each product and make the choice that fits you the best.

Get Started

Installation

Install Tier0 by edition.

Tier0 ships in three editions:

  • Cloud - Managed SaaS, no infrastructure required.
  • Enterprise - Private deployment for enterprise environments.
  • Edge - Open-source, runs locally with Docker.

See Choosing the Best Version to find the edition that best fits your requirements.

Apply for a trial account before exploring Tier0 Cloud.

  1. Register your account at Register Tier0.
  2. Use the verification code sent to your email to verify and then log in with the registered account.
  3. Create a workspace and start your trial.

Choosing the Best Version - Compare each version and select the one best fits you

Get Started

User Journey

The recommended way to get started with Tier0.

flowchart TD
  app["Build Your App"]
  namespace["Create Namespace"]
  external["Extend with External Data (Optional)"]
  use["Use Unified Data in Your App"]

  app --> namespace --> external --> use
  namespace -.->|"Skip optional step"| use

  classDef t0accent fill:#B2ED1D,stroke:#73B200,color:#171717
  class use t0accent
Action Operator Edition Description
Build App You Cloud Talk to the Agent to create a custom application.
Create Namespace Agent Cloud Creates a Namespace and data models based on the App’s business logic.
Connect External Data (optional) You Cloud, Enterprise Provide information of existing business systems or devices for the agent to connect when necessary.
Integrate Data Agent Cloud, Enterprise Maps, transforms, and integrates external data into the existing model for the App.

Using Tier0

Building Apps

A container is an app — deploy full containers on Tier0 Edge and Enterprise.

Build customized industrial applications through AI conversations. Applications can use factory data and include built-in capabilities such as role-based access control, version management, and external deployment.

  • Folder is used to categorize applications only.
  • Templates will be automatically matched and used based on your prompt to save development time.
  • Template prompt is available for general industrial applications, such as equipment management, production monitoring, and energy management.

Make sure your prompt covers the following aspects for the agent to generate an application that better fits your requirements.

  • Application Purpose: What is the purpose of the application?

    Terminal window
    Create an equipment maintenance application for factory technicians.
  • Application Function: What does the application do?

    Terminal window
    The application should allow users to monitor equipment conditions, submit maintenance requests, and track repair progress.
  • Application Data: Does the application need external data?

    Terminal window
    The application should use alarm records and maintenance history from the xxx table.

Applications adopt role-based access control (RBAC) to manage member access and allowed actions.

  • Roles are automatically generated by the agent based on business logic of the application when not explicitly defined. Existing roles from other applications may be reused when their responsibilities align.
  • Can only be assigned to workspace members.
  • The application is open to all members if the prompt explicitly specifies that no roles are required.

Applications exist on Tier0 in 3 shapes.

  • Unpublished: The latest state of the application. Changes on this version will not affect other versions if not deployed.
  • Snapshot: Saves the application at the time of taking the snapshot. Deploying a snapshot version takes down the current Active version.
  • Published: The current online version of the application.

Once the application is ready, you can export it from the Preview page for external third-party environments or Tier0 Enterprise.

  • Download Source Code: Export source code of the application for secondary development.
  • Export Bundle: Specifically exported for local import on Tier0 Enterprise.

Build Digital Twins — Turn factory data into a visual view of your operations.

Using Tier0

Preparing Data Foundation

Connect, model and intergrate external data into Tier0 for your applications.

Tier0 builds a data foundation for customized applications that:

  • Takes in business data from applications;
  • Connects external data sources from your existing systems and devices;
  • Integrates data into a unified model for your applications to use.

All data is modeled into Tables under Namespace and organized based on data types.

  • Relational data, mostly from business systems, is stored in Record tables.
  • Time-series data, mostly from devices, is stored in Sample tables.
flowchart TB
  namespace["Namespace"] --> table["Table"]
  table --> record["Record table<br/>relational data"]
  table --> sample["Sample table<br/>time-series data"]

  classDef t0accent fill:#B2ED1D,stroke:#73B200,color:#171717
  class table t0accent
  • Business data can be from application usage or external systems.
  • Time-series data is mostly from connected devices.
flowchart LR
  app["App"] -->|"business data"| record["Record Table"]
  stream["Source & Stream"] -->|"device data"| sample["Sample Table"]

  classDef t0accent fill:#B2ED1D,stroke:#73B200,color:#171717
  class record,sample t0accent
  • Source: Connects to external data servers, often with authentications.
  • Stream: Collects data from servers, processes it according to requirements and stores it in Namespace tables.
flowchart LR
  source["Source<br/>connects server"] --> stream["Stream<br/>collects + processes data from servers"]

  classDef t0accent fill:#B2ED1D,stroke:#73B200,color:#171717
  class source,stream t0accent
  1. Build your application in Builder and have the business data models prepared in Namespace using agent.

  2. Connect needed data sources under Connect > Source with authentication.

  3. Tell the agent to create Stream to collect and process data from connected sources into Namespace models generated from the application.

Using Tier0

Building Digital Twins

Bind live UNS data to 3D models and assemble a complete factory scene for digital-twin visualization.

Factory data connected to Tier0 can be visualized as digital twin with life-like motions and environment. The process goes from mapping data to 3D models to combining models together to build a complete factory scene.

  1. Select nodes to map with UNS data for real-time motions after uploading a model in Model.
  2. Add instances with different UNS data onto the model to simulate different machines.
  3. Bind data to the model, and use Preview to check whether it moves and rotates as the data changes.
    • Position: The model moves along the mapped direction of the coordinate.
    • Rotation: The model rotates around the coordinate original point in the mapped direction.
  4. Use Data Tagging to add tags for static information display.
  1. Add instances that should exist in the scene from Instance Library.
  2. Use tools at the top to move, scale, and rotate models to fit the scene, and to change the viewing perspective and coordinate position.
  3. Model position can be confirmed by Object at the right corner, which displays the bound UNS data.
  4. Viewport and lighting are for environment details.

Only instances can be shared either by model or by scene.

  • Share Model: Generates a Tier0 platform link where the model with live UNS data is displayed.
  • Share Scene: Generates a Tier0 platform link where the model and its scene, with live UNS data and environment settings, are displayed.
Using Tier0

Manage Data from Center to Edge

Seamlessly manage data on connected edge nodes from a central node.

With Tier0 edge-center collaboration, you can collect data on edge devices, and manage it on the center platform.

  • Edge device: Tier0 Edge or Tier0 Enterprise on an edge node.
  • Center platform: Tier0 Enterprise on a center node or Tier0 Cloud.
  1. Create fleet nodes on the central node first.

  2. Use the token generated by the central node to connect each edge node.

  • Namespace Tables can be selected and synced only from edge nodes to the central node. Once synced, both history and real-time data of the selected Tables will be available on the central node.
  • From the central node, you can assign users or user groups to edge nodes for node management.
Using Tier0

Working with Factory Data

Operate on the UNS data over MQTT and the API — with the API reference.

Data in Tier0 unified namespace can be altered and managed through MQTT and APIs with authorization.

MQTT clients can connect to the UNS broker with credentials generated on Tier0.

Generate MQTT credentials in Connect > Source > MQTT Device and make a note of it.

  1. Install and open MQTTX.
  2. Add a connection with the information of the UNS broker and the generated credentials.
    Terminal window
    {
    "Host": "mqtt.tier0.dev",
    "Port": 1883,
    "Client ID": "<generated client ID>",
    "Username": "<generated username>",
    "Password": "<generated password>"
    }
  1. Make sure the client status is normal.
  2. Copy a UNS model topic and publish a message to it through the client.
  • Base URL: https://<your-tier0-host>/openapi/v2
  • Authentication: Send the API key obtained from Tier0 in the x-api-key header.
  • POST /uns/metadata:find — List tables and get the table ID

    Terminal window
    const base = "https://your-tier0-host/openapi/v2";
    const response = await fetch(`${base}/uns/metadata:find`, {
    method: "POST",
    headers: { "content-type": "application/json", "x-api-key": "your-api-key" },
    body: JSON.stringify({"kind": "collection", "filter": {}, "page": {"mode": "offset", "page": 1, "size": 20}}),
    });
    const result = await response.json();
    if (!response.ok || result.code !== 0) throw new Error(result.error?.code || result.msg);
    console.log(result.data.items);
  • POST /uns/collections/{collectionId}/records:find — List records and get the record ID

    Terminal window
    const base = "https://your-tier0-host/openapi/v2";
    const collectionId = "your-collection-id";
    const response = await fetch(`${base}/uns/collections/${encodeURIComponent(collectionId)}/records:find`, {
    method: "POST",
    headers: { "content-type": "application/json", "x-api-key": "your-api-key" },
    body: JSON.stringify({"limit": 20}),
    });
    const result = await response.json();
    if (!response.ok || result.code !== 0) throw new Error(result.error?.code || result.msg);
    console.log(result.data);
  • POST /uns/collections/{collectionId}/samples:latest — Get the latest sample for a record

    Terminal window
    const base = "https://your-tier0-host/openapi/v2";
    const collectionId = "your-collection-id";
    const response = await fetch(`${base}/uns/collections/${encodeURIComponent(collectionId)}/samples:latest`, {
    method: "POST",
    headers: { "content-type": "application/json", "x-api-key": "your-api-key" },
    body: JSON.stringify({"recordIds": ["record_123"]}),
    });
    const result = await response.json();
    if (!response.ok || result.code !== 0) throw new Error(result.error?.code || result.msg);
    console.log(result.data);
  • POST /uns/collections/{collectionId}/samples:find — Get samples in a time range

    Terminal window
    const base = "https://your-tier0-host/openapi/v2";
    const collectionId = "your-collection-id";
    const response = await fetch(`${base}/uns/collections/${encodeURIComponent(collectionId)}/samples:find`, {
    method: "POST",
    headers: { "content-type": "application/json", "x-api-key": "your-api-key" },
    body: JSON.stringify({"recordIds": ["record_123"], "from": 1792454400000, "to": 1792540800000, "filter": {"temperature": {"$gt": 20}}, "limit": 20}),
    });
    const result = await response.json();
    if (!response.ok || result.code !== 0) throw new Error(result.error?.code || result.msg);
    console.log(result.data);
Using Tier0

Operating on Tier0 with Agents

Connect an AI agent to Tier0 through MCP.

Connect your AI agent to Tier0 through MCP. The agent can find and use platform APIs within the permissions you grant.

Work on Tier0 with your preferred AI agent.
Claude Code
Codex
Gemini CLI
Cursor
GitHub Copilot
WorkBuddy
  1. Add an MCP server in Settings > Plugin > MCP using the URL from Tier0.
  2. Add a personal API key in Tier0 under Settings > API Keys > Personal Keys with the required permission level.
  3. Enter the personal API key in the MCP server you added in Codex.
    Terminal window
    {
    "Authorization": "Bearer <your-personal-api-key>"
    }
  4. Ask the agent to use whoami to check the connection.
  • MCP tools:

    Tool Use
    whoami Check your identity and permissions.
    docs Read API documentation.
    search Find an API operation.
    execute Call an API operation.
  • Usage

    1. Ask your agent to use docs and search to find the API operation you want to call.
    2. Use execute to call the API operation.

For example:

Terminal window
Read the current value of `Plant/Line1/Metric/Temperature` in my workspace.

Working with Factory Data — Learn how Tier0 organizes and serves factory data.

Best Practice

RBAC Access Control

Tier0 uses role-based access control (RBAC) at two levels:

  • Workspace Seats govern platform capabilities,
  • Business Roles govern business access inside Apps.

Tier0 provides only 2 types of seats for workspace members: Builder and Operator.

Type Capabilities
Owner All functions in the Workspace, and alone controls billing, manages all members, ownership transfer, and Workspace deletion.
Builder All functions in the Workspace except those reserved for the Owner.
Operator Uses applications for which they have access.
  • Set the seat type of members when you invite them to the Workspace.
  • You can also change the seat type of existing members in Settings > Member.
  • Business roles are generated automatically in applications based on business logic.
  • When specifically declared in the prompt that no roles are necessary, the application will not generate any roles.
  • The agent will reuse existing roles from other applications with similar responsibilities after confirming with you.
  • Roles can be assigned to members or member groups.
  • A member can belong to multiple groups and hold multiple roles from both direct assignment and group inheritance.
  • Removing one assignment does not revoke a role that still comes from another source.
  • A member assigned a role can access every App that uses it, but only the accessible parts.
  • Business roles are not affected by Workspace seats. Being a Builder doesn’t automatically grant access to any application.
  • Preview roles during application generation simulate access for development only.
  • Applications with no roles are available for all active members in the workspace.
Best Practice

User Management

Manage platform access and user permissions in Tier0.

Use the edition tab to find the applicable user management steps.

  • Workspace owner or existing members can invite new members by phone or email.

  • After receiving an invitation code or link, new members register an account and join the Workspace.

  • Set each new member’s seat type (Operator or Builder) when sending the invitation to determine which features they can access.

    • Builder: Can use Workspace functions except those reserved for the owner.
    • Operator: Can use applications they have access to in Launchpad.
  • Account registration requires two-step verification.

Action Who Description
Change seat type Owner / Builder
  • The owner can change any member’s seat type.
  • A Builder can change only an Operator’s seat type.
Delete Workspace Owner Deleting the Workspace immediately erases all data. This cannot be undone.
Transfer Workspace Owner —
Remove member Owner / Builder
  • The owner can remove any member.
  • A Builder can remove only an Operator.
Delete account All members
  • The owner must delete or transfer their Workspace first.
  • The member’s account immediately leaves all Workspaces.
  • Account data is erased immediately and cannot be recovered.
Best Practice

Connecting Data Sources

Tier0 supports connecting to various industrial protocols, including OPC UA, Modbus, MQTT and more.

  • Security configuration is automatically obtained from the server once you enter the server address.
  • Authentication is supported through username/password or certificate.
Terminal window
{
"name": "ua",
"description": "",
"protocol": "opcua",
"endpoint": "opc.tcp://220.184.175.73:4841/demo/",
"runtimeLocation": "local",
"opcua": {
"securityMode": "None",
"securityPolicy": "None"
}
}

Only server address and unit ID are required.

Terminal window
{
"name": "modbus",
"description": "",
"protocol": "modbus-tcp",
"endpoint": "tcp://220.184.175.73:1502",
"runtimeLocation": "local",
"modbus": {
"unitId": 1
}
}

Tier0 can be used as an MQTT broker to receive data from devices, or as a client to connect to an external MQTT broker.

  • As a broker:

    1. Generates connection credentials including client ID, username and password when connecting MQTT Device.
    2. Third-party client must use the publish topic displayed on the connection panel to publish messages.
    3. Use the agent to build a stream, with the publish topic as input, to send data to the secified Namespace.
  • As a client: Connect third-party broker.

    Terminal window
    {
    "name": "111",
    "description": "",
    "protocol": "mqtt",
    "endpoint": "mqtt://220.184.175.73:1883",
    "runtimeLocation": "local",
    "mqtt": {
    "clientId": "tier0UxxxxxxxxuwQVfi"
    }
    }

Tier0 can be used as an HTTP server for third-party to access, or as a client to call API from other HTTP server.

  • As a server:

    1. Add an HTTP server in Tier0, and get the full address from the information panel.
    2. Use the agent to build a stream that defines data and subsequent routing, together forming an API.
    3. Third-party uses the address and the set routing to call the API and get the data.
  • As a client: Connect third-party HTTP servers.

Terminal window
{
"name": "222",
"description": "",
"protocol": "http-api",
"endpoint": "http://220.184.175.73:8088/api/telemetry",
"runtimeLocation": "local",
"role": "client",
"http": {
"authentication": "none"
}
}
  • Database address must include both port and database name.
  • An initial query command is necessary.
  • When the database is available for anonymous connection, authentication can be skipped.
Terminal window
{
"name": "eee",
"description": "",
"protocol": "edge-sql",
"endpoint": "mysql://hzoffice.tier0.dev:3307/demo_factory",
"runtimeLocation": "local",
"sql": {
"queries": {
"query1": "SELECT * FROM telemetry ORDER BY id DESC LIMIT 5"
},
"tlsMode": "verify-full"
},
"credentialRef": "ref_9ce47b8778xxxxxxxx7dad49a86dbad"
}
  1. Connect to Tier0 Github through OAuth.
  2. Discover resources in this organization on the source information panel.
  3. Ask the agent to build a stream to get needed data.
  1. Ask the agent to build streams to get data from the connected sources.
  2. Necessary information, such as Modbus registers, database queries, UA namespace URIs, MQTT topics are required in the prompt.
Best Practice

Security and Resilience

Overview of identity, data access, deployment availability, and recovery controls in Tier0.

Tier0 ensures data security through the following aspects:

  • Security: Controls who can access the platform, applications, and data.
  • Resilience: Covers service continuity and data recovery after failures.
Edition Security Coverage
Cloud Platform access control and authenticated access to MQTT and APIs.
Enterprise Platform and data access control, plus deployment availability, backup, and recovery for private deployments.
Edge (open source) Local data connection and modeling. Its built-in MQTT broker allows unauthenticated subscriptions.

See Choosing the Best Product for edition positioning.

Area Tier0 Mechanism Details
Platform access
  • Cloud controls access through workspace membership.
  • Enterprise controls access through user accounts.
User Management
Agent access Agents connect through MCP and operate the platform within the permissions granted to them. Connect an agent
Application access Tier0 uses RBAC to control access to applications. Access control
Access Tier0 Mechanism Details
MQTT
  • Clients authenticate with credentials generated by Tier0.
  • TLS and secure WebSocket encrypt data in transit.
MQTT credentials and connections
REST API Accessing data requires a key generated by Tier0. API Reference

Enterprise currently provides two deployment plans for center nodes:

Plan Availability Boundary Details
Standard deployment
  • Provides database primary/standby failover.
  • The Enterprise application and EMQX remain single points of failure.
Standard Deployment Plan
High availability deployment
  • Adds active/standby Enterprise nodes and defined failover behavior for the database, cache, object storage, and managed runtime files.
  • Does not promise zero interruption or zero data loss.
High Availability Deployment Plan

Enterprise provides database backup and recovery. After recovery, check deployment status, run basic functionality checks, and confirm that users can sign in to the platform.

Reference

API Reference

Connect to the Tier0 API, check responses, and retry writes safely.

  • Base URL: https://<your-tier0-host>/openapi/v2
  • Authentication: Send your Tier0 API key in the x-api-key request header.
  • Keep API keys on a trusted server; do not put them in a URL, browser bundle, or log.

Cloud OpenAPI endpoints lists paths, parameters, limits, and response schemas.

  • For /uns/ requests, check both the HTTP status and the response body. A successful response has a 2xx status and code: 0. Read the result from data.
  • On failure, inspect error.code for the reason and keep requestId for troubleshooting.
  • For batch requests, check each item even when the HTTP status is 200. Some items may have failed.
  • Check error.execution to see whether the write was started, rolled back, committed, or has an unknown outcome.
  • If error.retry.safe is true, retry the same request with the same idempotency key. If one was supplied, wait at least as long as indicated by error.retry.afterMs or the Retry-After header.
  • If part of a batch was committed, check which items succeeded before submitting any remaining work. If the outcome is unknown and the response does not confirm a safe retry, verify whether the write took effect before sending it again.
Reference

Embedded Builder Skills

Reference for the AI skills embedded in Tier0 Builder.

The Tier0 Builder Skills repository currently contains 6 skills for requirements, app building, platform alignment, browser capabilities, responsive design, and preview troubleshooting. This page follows its feature/cloud-new-architecture-migration branch.

Meaning: The requirements-analysis entry point for industrial-enterprise apps. It creates an SRS from a request, converts a PRD, or revises an existing SRS.

Example:

Terminal window
Use $app-srs to design a quality exception management system for an automotive parts factory.

What it does:

  1. Maps business roles, workflows, states, validations, and exceptions.
  2. Defines a bounded first release with visible, usable commitments.
  3. Saves the complete SRS to specs/spec.md by default.
  4. Continues to app-builder for a first-time app unless the user asks for requirements only or clarification is needed.

Meaning: Builds a runnable app or substantially extends an existing app from requirements or specs/spec.md.

Example:

Terminal window
Use $app-builder to build the first version from specs/spec.md.

Work modes:

  • First release: Builds the bounded first version; creates an SRS with app-srs first if needed.
  • Substantial extension: Adds a business module or workflow while preserving existing behavior.

Ordinary field, copy, style, and isolated UI repairs do not require the full Builder workflow.

What it checks:

  • Discoverable entry points and executable user paths for committed capabilities.
  • Real data and state changes, validation, and role permissions.
  • Build, preview, and interactive workflow evidence.

For list-type pages, it uses the target scaffold’s MetaListPage when suitable and connects it to real services and permissions.

Meaning: Migrates an imported app to the Tier0 scaffold or aligns an existing Tier0 app with the current scaffold contract.

Example:

Terminal window
Use $align-platform-app to align this app to the latest Tier0 scaffold while keeping its business code.

Suitable sources:

  • Imported applications and older Tier0 apps.
  • Apps with app-owned SQL databases, browser storage, or mock business persistence.
  • Existing scaffold apps that need a full update or a scoped platform repair.

What it does:

  • Compares the app against an exact commit of the cloud architecture scaffold.
  • Preserves business behavior while aligning runtime, routing, Gateway roles, and platform contracts.
  • For a full cloud migration, moves app-owned durable records to Tier0 UNS tables through @tier0/sdk-v2; historical records from the original database require a separate UNS-side import when needed.
  • Verifies the changed build and runtime behavior before writing the scaffold version marker in package.json.

Meaning: Guides browser interactions for QR/barcode scanning, photo capture, geolocation, audio recording, file reading, and clipboard access.

Example:

Terminal window
Use $browser-platform-capabilities to add photo capture with a file-upload fallback to an inspection form.

What it does:

  • Chooses browser APIs and fallbacks for the target device and container.
  • Checks secure contexts, permissions, and iframe or WebView restrictions.
  • Preserves form input on cancellation or failure and labels fallback data when its meaning differs from live capture.
  • Verifies success, denial, retry, and cleanup for the implemented capability.

Meaning: Handles complex breakpoint decisions, coordinated sticky and scroll regions, and multi-viewport audits or previews. Isolated overflow and clipped controls can be repaired directly.

Invocation modes:

  • audit: Audits and repairs an existing responsive layout.
  • build: Builds a responsive page from scratch.
  • preview: Starts a multi-breakpoint live preview.

Examples:

Terminal window
Use $responsive-craft audit to fix the mobile layout of this dashboard.
Terminal window
Use $responsive-craft preview to show 375, 768, 1024, and 1440 px breakpoints.

Meaning: Diagnoses managed preview installation, startup, readiness, role, port, and HMR failures. It does not build business features.

Example:

Terminal window
Use $preview-runtime-stability to diagnose "Preview loading timed out".

Suitable issues:

  • Missing dependencies, npm ERESOLVE, or lockfile errors.
  • Vite or TanStack Start startup failures and port 5173 conflicts.
  • /api/health failures, preview role errors, or artifact.toml mismatches.
  • Frequent full-page reloads during HMR and stale app-owned preview processes.

Standard flow:

  1. Read the first relevant install or preview error.
  2. Fix the evidenced cause in the app or use the managed preview control for runtime issues.
  3. Restart only when needed and verify the original failure, health, and affected route.
  • Use app-srs to create or revise requirements; it normally hands a new app to app-builder.
  • Use app-builder for a first release or substantial business extension.
  • Use align-platform-app for migration or scaffold alignment.
  • Use browser-platform-capabilities when an app needs one of its six browser capabilities.
  • Use responsive-craft for complex responsive work, and preview-runtime-stability for managed preview failures.
Reference

Tier0 Cloud Network and Data Security Overview

Network boundaries, tenant isolation, data protection, and security operations for the Tier0 Cloud production SaaS service.

Scope: The Tier0 Cloud production SaaS service, deployed in the AWS Singapore Region.
Document date: October 22, 2026

Tier0 Cloud uses network access controls, tenant isolation, identity and access management, data encryption, and backup and recovery measures to reduce the risk of network attacks and unauthorized access. This overview describes the platform’s security measures and the controls that limit the spread of security incidents to other tenants, internal platform services, and customer networks.

Public Web and API access to Tier0 Cloud uses TLS encryption and passes through a unified edge entry point and application gateway. Core service endpoints validate access to the origin and reject direct requests that do not meet the validation requirements, reducing the risk of bypassing the edge entry point to access the origin.

Production environments are isolated from development and staging environments at the cloud account, network, cluster, and database levels, with access credentials managed separately. Administrative access to production uses an authenticated, dedicated network channel.

2 Tenant Isolation and Incident Containment

Section titled “2 Tenant Isolation and Incident Containment”

Tenant workloads run in separate Kubernetes namespaces and are separated from platform services and management components through dedicated node pools and scheduling constraints. These controls limit direct interaction between tenant applications and platform components, reducing the impact on other services if an application experiences a security incident.

Inbound and outbound traffic for tenant namespaces follows network policies that deny traffic by default and allow it only through explicit rules. The platform automatically configures and synchronizes these policies, which are enforced by the cluster networking components.

Inbound traffic is allowed only from workloads belonging to the same tenant and platform services that perform necessary business functions. Outbound rules allow cluster DNS resolution, services belonging to the same tenant, designated platform gateways, messaging services, and assigned database endpoints. Public internet access is subject to network policies. Except for explicitly allowed business dependencies, these policies restrict access to private network addresses and block direct access to cloud instance metadata addresses.

These measures limit unauthorized connections between tenants and lateral movement from tenant workloads into the platform’s internal network. A security incident affecting one tenant application does not automatically grant access to other tenants or platform management components. Authorized business connections remain subject to the applicable network rules and identity and access controls.

Tenant application data is logically isolated at the database level. Where a separate database unit is allocated, network access rules also restrict connection sources.

The platform assigns access permissions according to service responsibilities, limiting each workload’s access to the resources needed for its functions. Network isolation and identity-based authorization work together to limit the resources an affected workload can access.

The tenant isolation measures described in this section apply within the Tier0 Cloud platform. When customers connect internal systems through connectors, gateways, or other integrations, the access boundaries of their networks also depend on the connection method, routing, firewall rules, and permissions granted to the credentials used.

Customers should allow only the destination addresses, ports, and account permissions required for their business needs, and segment integration components from other internal systems. Platform isolation cannot replace network access controls on the customer side. Both parties should determine and verify the access scope for the specific integration to limit the risk of an incident spreading to other customer systems through authorized connections.

The platform protects data in transit, at rest, and during access through the following measures:

  • Public Web and API communication, as well as access to managed databases and caches, uses TLS encryption.
  • Managed databases, caches, and object storage have encryption at rest enabled.
  • Object storage blocks public access and restricts data access through encryption requirements, HTTPS requirements, and resource permissions.
  • Access to tenant data is subject to both database isolation and identity and access controls.

Tier0 Cloud backs up production databases and service-level databases included in the backup scope. Backup data is stored in dedicated object storage with restricted access and managed according to the applicable retention policies.

Backup jobs use a separate identity with permissions limited to the required read and write operations at designated storage locations. This identity is not granted permission to delete backup objects. Storage lifecycle rules remove expired backups, reducing the risk that compromised backup credentials could be used to delete recovery data.

Integrity checks are performed after backups complete, and restore validation in an isolated environment checks that backups are usable. Application configurations are version-controlled, and build artifacts are stored in a private container image registry to support service recovery and version rollback.

5 Administrative Access and Production Changes

Section titled “5 Administrative Access and Production Changes”

Administrative access to production uses individually assigned identities and permissions based on the principle of least privilege. Console identities used for sensitive operations require multi-factor authentication.

Routine inspections use a restricted, read-only identity that can view workload status, logs, and events, but cannot read sensitive credentials, modify resources, or execute remote commands. Production changes use separately authorized identities and processes.

Infrastructure configurations, deployment manifests, and operations scripts are version-controlled. Production changes must define their objectives, scope of impact, verification steps, and rollback plans. Records include the executing identity, configuration differences, and verification results to support traceability and recovery.

6 Monitoring and Security Incident Response

Section titled “6 Monitoring and Security Incident Response”

The platform centrally collects production metrics, logs, and health information and sends anomaly alerts to operational response channels. Monitoring covers service availability, error rates, database health, certificate validity, backup job status, and cluster status.

When a security incident occurs, response efforts prioritize containing its impact and preserving relevant logs, configurations, and the incident timeline. Service is restored after the necessary isolation and investigation, followed by an incident review and tracked corrective actions. Production changes during incident response follow established authorization and recordkeeping processes.

For security assessments, customer due diligence, or suspected vulnerabilities, contact your Tier0 account manager or the security team. Non-public architecture and control details may be provided under appropriate confidentiality arrangements. Do not include access credentials, private keys, or sensitive customer data in your initial contact.

Reference

OpenAPI Reference Appendix

Tier0 OpenAPI 5.0.0 · Operations: 141 · Schemas: 363

Operations

API field names, examples, and source descriptions follow the bundled English OpenAPI specification.

Collection management

Collection management endpoints

POST/uns/discovery/describe

Read collection data definitions

Return field definitions and data-operation capabilities by collectionId for constructing queries and writes.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/discovery/describe' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"collectionId":"string"}'

application/json

FieldTypeRequiredDescription
collectionIdstringYesCollection ID identifying the owner of business records and samples.
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "collectionId": "string",
    "description": "string",
    "fields": [
      "value"
    ],
    "indexStatus": [
      "value"
    ],
    "indexes": [
      "value"
    ]
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesCollectionDescription. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Query result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/discovery/search

Search accessible collections

Search collections accessible to the current credentials using keywords and pagination.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/discovery/search' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"search":"string","page":0,"size":0}'

application/json

FieldTypeRequiredDescription
searchstringNoSearch names or supported text fields; not SQL.
pageintegerNoPage number, starting at 1.
sizeintegerNoPage size; see this endpoint's maximum or the capability catalog. Page size, at most 200.
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "asOf": 0,
    "complete": false,
    "hasMore": false,
    "list": [
      "value"
    ],
    "nextCursor": "string"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesDiscoveryResult. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Query result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

API capabilities

Capability endpoints

POST/uns/catalog/get

Read the capability catalog

Return current UNS resource, query and write capabilities and limits.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/catalog/get' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{}'

application/json

This request body has no declared object fields in OpenAPI.

Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "capabilities": {},
    "contractVersion": "string",
    "limits": {},
    "models": [
      "value"
    ],
    "operations": [
      "value"
    ]
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesDocCatalog. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Query result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/edges/list

Discover Edges in the current workspace

List Edge nodes in the current workspace. This is a Center-only read operation; do not send X-Fleet-Node-Id. - **Access:** A workspace identity with uns.read can call this endpoint. App-bound identities cannot. - **Query:** Use page and size to paginate. Optionally filter by keyword or status. - **Result:** Returns each node's ID, name, description and infrastructure status. Credentials, sessions and host details are excluded. To read a specific Edge node's catalog, Sources, Streams, Collections or business data, use its ID in the X-Fleet-Node-Id header on the corresponding endpoint.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/edges/list' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"page":0,"size":0,"keyword":"string","status":"unjoined"}'

application/json

FieldTypeRequiredDescription
pageintegerNoNot specified in OpenAPI
sizeintegerNoNot specified in OpenAPI
keywordstringNoNot specified in OpenAPI
statusstringNoNot specified in OpenAPI
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "list": [
      "value"
    ],
    "total": 0,
    "page": 0,
    "size": 0
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Query result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

Namespace

Namespace endpoints

POST/uns/namespace/query

Query the namespace

Use queries to retrieve directories and topics by parent, optionally including ancestors.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/namespace/query' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"queries":[{"queryId":"value","page":"value","size":"value","search":"value","ids":"value"}]}'

application/json

FieldTypeRequiredDescription
queriesarray<object>YesNot specified in OpenAPI
Responses
200default
Success response example

200 · application/json

{
  "code": 200,
  "msg": "success",
  "requestId": "request-id",
  "data": {
    "results": []
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Query result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/topics/view

Read topic views

Read bound field values, availability and associated timestamps.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/topics/view' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"queries":[{"queryId":"value","topicId":"value"}]}'

application/json

FieldTypeRequiredDescription
queriesarray<object>YesNot specified in OpenAPI
Responses
200default
Success response example

200 · application/json

{
  "code": 200,
  "msg": "success",
  "requestId": "request-id",
  "data": {
    "results": []
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Query result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

Metadata management

Metadata management endpoints

POST/uns/metadata

Insert one metadata object

Create a directory, topic or collection. With appId/alias, only collection creation is allowed. The server atomically binds app grants, requires idempotencyKey and rechecks current Builder permissions. Prefer the ISA-95 equipment hierarchy for industrial data: Enterprise > Site > Area > Work Center (production line, production unit, process cell, or storage zone) > Work Unit. First query existing directories with paginated metadataFind and reuse them. Create only known, meaningful business levels; do not invent enterprises, sites, or equipment, or substitute control activity Levels 0-4 for the equipment hierarchy. Attach data and references with parentId. Place shared data under a suitable common ancestor, and organize non-industrial data by its actual business hierarchy. User-facing names of directories, collections, and references must be concise, readable, and describe their business purpose. Follow the user's language preferences and established terminology; Chinese is not required and translation is not mandatory. name is the sole user-facing business name. App SDK alias is a separate stable program identifier, for example alias=production_orders and name=Production Orders. For example, use Quality Inspection Records or its equivalent in the user's language. Do not use program aliases such as quality_records as display labels, or use App-timestamp, random strings, or IDs as names or meaningless suffixes. Dates, versions, and equipment numbers with actual business meaning may remain. Rename only changes name; keep ID and alias unchanged to preserve program references. Report sibling name collisions explicitly; never append random suffixes automatically. Do not automatically move existing data or change permissions to reorganize directories.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/metadata' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"kind":"directory","id":"string","data":{},"appId":"string","alias":"string"}'

application/json

FieldTypeRequiredDescription
kindstringYesOnly directory, topic and collection are generic metadata kinds. Source/Stream writes use their dedicated /uns/sources/documents/create, update, delete and /uns/streams/documents/create, update lifecycle routes. Generic metadata cannot provision credentials or bypass dependency confirmation.
idstringNoNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI
appIdstring (uuid)NoNot specified in OpenAPI
aliasstringNoNot specified in OpenAPI
dryRunbooleanNotrue validates only; false performs writes.
idempotencyKeystringNoOptional idempotency key; reuse for the same request, never for different requests.
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "insertedId": "string",
    "status": "validated",
    "replayed": false
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/metadata:aggregate

Aggregate metadata

Supports match/project/group/sort/skip/limit for permitted metadata kinds, without cross-table joins or writes.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/metadata:aggregate' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"kind":"directory","kinds":["directory"],"state":"active","filter":{"$and":[{"_id":"example-record"},{"available":{"$gte":20}}]},"pipeline":["string"]}'

application/json

FieldTypeRequiredDescription
kindstringNoOnly directory, topic and collection are generic metadata kinds. Source/Stream writes use their dedicated /uns/sources/documents/create, update, delete and /uns/streams/documents/create, update lifecycle routes. Generic metadata cannot provision credentials or bypass dependency confirmation.
kindsarray<string>NoNot specified in OpenAPI
statestringNoActive, soft-deleted or all objects.
filterobjectNoUnsV2DataFilter. See the referenced schema in the Schemas section.
pipelinearray<object>YesSupports $match/$project/$group/$sort/$skip/$limit/$distinct. $distinct uses JSONB value ordering and the outer pagination options.
pageobjectNoNot specified in OpenAPI
limitintegerNoNot specified in OpenAPI
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "items": [
      "value"
    ],
    "pageInfo": {
      "mode": "value",
      "hasMore": "value",
      "nextCursor": "value",
      "nextPage": "value",
      "snapshotScope": "value"
    }
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Query result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/metadata:bulkWrite

Execute mixed metadata writes

At most 200 operations of one kind. Atomic by default; for non-atomic execution, ordered controls continuation after errors and results retain original indices. After any non-atomic item commits, failures report error.execution=committed and retry.safe=false. Error data contains cumulative results with nextIndex and optionally unknownUntil. Indices below nextIndex absent from errors committed; [nextIndex, unknownUntil) has unknown outcome. Retry with the same idempotency key if available. Without a key, only client-ID inserts and ID-based replacements/deletes can be reconciled by reading IDs. Server-generated-ID inserts, filter-selected operations and incremental updates such as $inc cannot be safely reconciled; always use keys for these writes. Without unknownUntil, continuation from nextIndex is safe. Only when nothing committed is execution rolledBack or notStarted. Prefer the ISA-95 equipment hierarchy for industrial data: Enterprise > Site > Area > Work Center (production line, production unit, process cell, or storage zone) > Work Unit. First query existing directories with paginated metadataFind and reuse them. Create only known, meaningful business levels; do not invent enterprises, sites, or equipment, or substitute control activity Levels 0-4 for the equipment hierarchy. Attach data and references with parentId. Place shared data under a suitable common ancestor, and organize non-industrial data by its actual business hierarchy. User-facing names of directories, collections, and references must be concise, readable, and describe their business purpose. Follow the user's language preferences and established terminology; Chinese is not required and translation is not mandatory. name is the sole user-facing business name. App SDK alias is a separate stable program identifier, for example alias=production_orders and name=Production Orders. For example, use Quality Inspection Records or its equivalent in the user's language. Do not use program aliases such as quality_records as display labels, or use App-timestamp, random strings, or IDs as names or meaningless suffixes. Dates, versions, and equipment numbers with actual business meaning may remain. Rename only changes name; keep ID and alias unchanged to preserve program references. Report sibling name collisions explicitly; never append random suffixes automatically. Do not automatically move existing data or change permissions to reorganize directories.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/metadata:bulkWrite' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"kind":"directory","operations":["string"],"atomic":false,"ordered":false,"dryRun":false}'

application/json

FieldTypeRequiredDescription
kindstringYesOnly directory, topic and collection are generic metadata kinds. Source/Stream writes use their dedicated /uns/sources/documents/create, update, delete and /uns/streams/documents/create, update lifecycle routes. Generic metadata cannot provision credentials or bypass dependency confirmation.
operationsarray<object>YesNot specified in OpenAPI
atomicbooleanNoAtomic batch commit by default. false commits items independently; each object still receives full permission and domain validation.
orderedbooleanNoWith atomic=false, controls stopping or continuing after errors; atomic batches reject ordered=false.
dryRunbooleanNotrue validates only; false performs writes.
idempotencyKeystringNoOptional idempotency key; reuse for the same request, never for different requests.
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "insertedCount": 0,
    "matchedCount": 0,
    "modifiedCount": 0,
    "deletedCount": 0,
    "restoredCount": 0
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result.application/json
defaultFailure response. After a partial commit, error.execution=committed and retry.safe=false; data contains cumulative results.application/json

POST/uns/metadata:count

Count metadata objects

Count matching objects within the specified kind and state.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/metadata:count' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"kind":"directory","kinds":["directory"],"state":"active","filter":{"$and":[{"_id":"example-record"},{"available":{"$gte":20}}]}}'

application/json

FieldTypeRequiredDescription
kindstringNoOnly directory, topic and collection are generic metadata kinds. Source/Stream writes use their dedicated /uns/sources/documents/create, update, delete and /uns/streams/documents/create, update lifecycle routes. Generic metadata cannot provision credentials or bypass dependency confirmation.
kindsarray<string>NoNot specified in OpenAPI
statestringNoActive, soft-deleted or all objects.
filterobjectNoUnsV2DataFilter. See the referenced schema in the Schemas section.
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "count": 0
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Query result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/metadata:deleteMany

Soft-delete metadata in bulk

Conditional bulk operation within an explicit kind. Atomic batch; reject everything if matches exceed maxDocs. Use bulkWrite when objects need independent revision checks. Soft deletion moves objects to Trash; deleting a directory atomically moves its entire active subtree to Trash. References do not block deletion. Referring configurations and Record/Sample data are retained; historical data remains readable under existing authorization while in Trash, with writes rejected.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/metadata:deleteMany' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"kind":"directory","filter":{"$and":[{"_id":"example-record"},{"available":{"$gte":20}}]},"atomic":true,"maxDocs":0,"dryRun":false}'

application/json

FieldTypeRequiredDescription
kindstringYesOnly directory, topic and collection are generic metadata kinds. Source/Stream writes use their dedicated /uns/sources/documents/create, update, delete and /uns/streams/documents/create, update lifecycle routes. Generic metadata cannot provision credentials or bypass dependency confirmation.
filterobjectYesUnsV2DataFilter. See the referenced schema in the Schemas section.
atomicbooleanNoAtomic batch commit; use bulkWrite for per-item commits.
maxDocsintegerNoReject the entire request if the match limit is exceeded; do not truncate the write scope.
dryRunbooleanNotrue validates only; false performs writes.
idempotencyKeystringNoOptional idempotency key; reuse for the same request, never for different requests.
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "deletedCount": 0,
    "results": [
      "value"
    ],
    "errors": [
      "value"
    ],
    "status": "validated",
    "replayed": false
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/metadata:deleteOne

Soft-delete one metadata object

Soft deletion moves objects to Trash; deleting a directory atomically moves its entire active subtree to Trash. References do not block deletion. Referring configurations and Record/Sample data are retained; historical data remains readable under existing authorization while in Trash, with writes rejected.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/metadata:deleteOne' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"kind":"directory","filter":{"$and":[{"_id":"example-record"},{"available":{"$gte":20}}]},"sort":[["value"]],"expectedRevision":0,"dryRun":false}'

application/json

FieldTypeRequiredDescription
kindstringYesOnly directory, topic and collection are generic metadata kinds. Source/Stream writes use their dedicated /uns/sources/documents/create, update, delete and /uns/streams/documents/create, update lifecycle routes. Generic metadata cannot provision credentials or bypass dependency confirmation.
filterobjectYesUnsV2DataFilter. See the referenced schema in the Schemas section.
sortarray<array<object>>NoUnsV2PipelineSort. See the referenced schema in the Schemas section.
expectedRevisionintegerNoOptional optimistic lock; management forms should send the revision read. Read again after a conflict.
dryRunbooleanNotrue validates only; false performs writes.
idempotencyKeystringNoOptional idempotency key; reuse for the same request, never for different requests.
returnDocumentstringNonone returns counts only; before/after includes value from the same write transaction and requires read access. No match returns value:null; before is null for an insertion.
projectionobjectNoInclude or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained.
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "deletedCount": 0,
    "status": "validated",
    "replayed": false,
    "value": "string"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/metadata:find

Query metadata

Query directories, topics and collections. Use bare configuration field names and _id / _meta.* for system fields. Returns items/pageInfo.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/metadata:find' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"kind":"directory","kinds":["directory"],"state":"active","filter":{"$and":[{"_id":"example-record"},{"available":{"$gte":20}}]},"sort":[["value"]]}'

application/json

FieldTypeRequiredDescription
kindstringNoOnly directory, topic and collection are generic metadata kinds. Source/Stream writes use their dedicated /uns/sources/documents/create, update, delete and /uns/streams/documents/create, update lifecycle routes. Generic metadata cannot provision credentials or bypass dependency confirmation.
kindsarray<string>NoNot specified in OpenAPI
statestringNoActive, soft-deleted or all objects.
filterobjectNoUnsV2DataFilter. See the referenced schema in the Schemas section.
sortarray<array<object>>NoUnsV2PipelineSort. See the referenced schema in the Schemas section.
projectionobjectNoInclude or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained.
pageobjectNoNot specified in OpenAPI
limitintegerNoNot specified in OpenAPI
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "items": [
      "value"
    ],
    "pageInfo": {
      "mode": "value",
      "hasMore": "value",
      "nextCursor": "value",
      "nextPage": "value",
      "snapshotScope": "value"
    }
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesMetadataPage. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Query result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/metadata:purge

Permanently delete directories, references, or collections from the recycle bin

Accepts up to 200 explicit Directory, Topic, or Collection IDs in the current workspace recycle bin. Single and batch deletion use the same operation. Execution returns accepted/jobId. Query jobs for per-item completion; accepted does not mean permanently deleted. Targets are cleaned independently; a failure does not roll back completed items. Purging a Collection deletes all records (including soft-deleted records), samples, and collection metadata, and revokes App grants to the collection. Indexes are reclaimed in the background. Referencing Topics, Sources, and Streams are preserved. References describe impact rather than blocking deletion; data access reports the missing target. Restore is unavailable after cleanup starts. Interrupted work can resume; same-key retries do not reselect completed targets. Optional dryRun validates targets without creating a task or deleting data. No prerequisite preflight, force flag, or confirmation token is required. Directories include their entire deleted subtree, including previously deleted descendants. Any active descendant rejects the request. Descendants are cleaned before empty directories. Deleting a Topic removes only its reference metadata and preserves the referenced collections, records, and samples. To empty the recycle bin, freeze the current target IDs and submit batches by kind. Do not submit descendants separately when their directory is selected. Items moved to trash with their owner App and their descendants cannot be purged independently; restore or permanently delete the owner App in App Trash. A directory containing these items is rejected as a whole.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/metadata:purge' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"kind":"directory","ids":["string"],"dryRun":false,"idempotencyKey":"string"}'

application/json

FieldTypeRequiredDescription
kindstringYesOnly directory, topic and collection are generic metadata kinds. Source/Stream writes use their dedicated /uns/sources/documents/create, update, delete and /uns/streams/documents/create, update lifecycle routes. Generic metadata cannot provision credentials or bypass dependency confirmation.
idsarray<string>YesNot specified in OpenAPI
dryRunbooleanNotrue validates only; false performs writes.
idempotencyKeystringNoOptional idempotency key; reuse for the same request, never for different requests.
Responses
200default
Success response example

200 · application/json

{
  "code": 200,
  "msg": "success",
  "requestId": "request-id",
  "data": {
    "status": "committed",
    "replayed": false,
    "results": [
      {
        "opId": "item-0",
        "action": "meta.purge",
        "kind": "metadata",
        "id": "example-id",
        "revision": 1,
        "status": "updated"
      }
    ]
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesDocUnsV2MetadataPurgeOutcome. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/metadata:replaceOne

Replace one metadata object

Fully replace writable configuration with schema, index and reference validation; system fields remain server-managed. Upsert insertion requires explicit _id and complete configuration.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/metadata:replaceOne' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"kind":"directory","filter":{"$and":[{"_id":"example-record"},{"available":{"$gte":20}}]},"sort":[["value"]],"expectedRevision":0,"replacement":{}}'

application/json

FieldTypeRequiredDescription
kindstringYesOnly directory, topic and collection are generic metadata kinds. Source/Stream writes use their dedicated /uns/sources/documents/create, update, delete and /uns/streams/documents/create, update lifecycle routes. Generic metadata cannot provision credentials or bypass dependency confirmation.
filterobjectYesUnsV2DataFilter. See the referenced schema in the Schemas section.
sortarray<array<object>>NoUnsV2PipelineSort. See the referenced schema in the Schemas section.
expectedRevisionintegerNoOptional optimistic lock; management forms should send the revision read. Read again after a conflict.
replacementobjectYesNot specified in OpenAPI
upsertbooleanNoSupported only for single updates/replacements; filter must explicitly match _id and inserted configuration must be complete and valid. Deleted objects with the same ID are not restored automatically.
dryRunbooleanNotrue validates only; false performs writes.
idempotencyKeystringNoOptional idempotency key; reuse for the same request, never for different requests.
returnDocumentstringNonone returns counts only; before/after includes value from the same write transaction and requires read access. No match returns value:null; before is null for an insertion.
projectionobjectNoInclude or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained.
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "matchedCount": 0,
    "modifiedCount": 0,
    "upsertedId": "string",
    "status": "validated",
    "replayed": false
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/metadata:restore

Restore metadata by ID

Restore atomically, rechecking current names, parents and references and incrementing revision. Restoring a directory restores only the subtree from the same deletion batch; batch children must be restored with the directory. Other dependencies are not implicitly restored.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/metadata:restore' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"kind":"directory","items":[{"id":"value","expectedRevision":"value"}],"dryRun":false,"idempotencyKey":"string"}'

application/json

FieldTypeRequiredDescription
kindstringYesOnly directory, topic and collection are generic metadata kinds. Source/Stream writes use their dedicated /uns/sources/documents/create, update, delete and /uns/streams/documents/create, update lifecycle routes. Generic metadata cannot provision credentials or bypass dependency confirmation.
itemsarray<object>YesNot specified in OpenAPI
dryRunbooleanNotrue validates only; false performs writes.
idempotencyKeystringNoOptional idempotency key; reuse for the same request, never for different requests.
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "restoredCount": 0,
    "items": [
      "value"
    ],
    "status": "validated",
    "replayed": false
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/metadata:transact

Execute a metadata transaction

Atomic operations across directories, topics and collections. opId/dependsOn control dependencies; parentId/collectionId accept {ref:opId} to reference creation results. At most 200 items; dryRun=true preflights and then rolls back. Prefer the ISA-95 equipment hierarchy for industrial data: Enterprise > Site > Area > Work Center (production line, production unit, process cell, or storage zone) > Work Unit. First query existing directories with paginated metadataFind and reuse them. Create only known, meaningful business levels; do not invent enterprises, sites, or equipment, or substitute control activity Levels 0-4 for the equipment hierarchy. Attach data and references with parentId. Place shared data under a suitable common ancestor, and organize non-industrial data by its actual business hierarchy. User-facing names of directories, collections, and references must be concise, readable, and describe their business purpose. Follow the user's language preferences and established terminology; Chinese is not required and translation is not mandatory. name is the sole user-facing business name. App SDK alias is a separate stable program identifier, for example alias=production_orders and name=Production Orders. For example, use Quality Inspection Records or its equivalent in the user's language. Do not use program aliases such as quality_records as display labels, or use App-timestamp, random strings, or IDs as names or meaningless suffixes. Dates, versions, and equipment numbers with actual business meaning may remain. Rename only changes name; keep ID and alias unchanged to preserve program references. Report sibling name collisions explicitly; never append random suffixes automatically. Do not automatically move existing data or change permissions to reorganize directories.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/metadata:transact' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"operations":[{"opId":"value","action":"value","kind":"value","id":"value","filter":"value"}],"dryRun":false,"idempotencyKey":"string"}'

application/json

FieldTypeRequiredDescription
operationsarray<object>YesNot specified in OpenAPI
dryRunbooleanNotrue validates only; false performs writes.
idempotencyKeystringNoOptional idempotency key; reuse for the same request, never for different requests.
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "results": [
      "value"
    ],
    "status": "validated",
    "replayed": false
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/metadata:updateMany

Update metadata in bulk

Conditional bulk operation within an explicit kind. Atomic batch; reject everything if matches exceed maxDocs. Use bulkWrite when objects need independent revision checks.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/metadata:updateMany' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"kind":"directory","filter":{"$and":[{"_id":"example-record"},{"available":{"$gte":20}}]},"update":{"$set":{},"$unset":{},"$setOnInsert":{}},"atomic":true,"maxDocs":0}'

application/json

FieldTypeRequiredDescription
kindstringYesOnly directory, topic and collection are generic metadata kinds. Source/Stream writes use their dedicated /uns/sources/documents/create, update, delete and /uns/streams/documents/create, update lifecycle routes. Generic metadata cannot provision credentials or bypass dependency confirmation.
filterobjectYesUnsV2DataFilter. See the referenced schema in the Schemas section.
updateobjectYesSupports only $set/$unset/$setOnInsert. Configuration paths omit data.; system fields are read-only. Replace arrays as whole fields.
atomicbooleanNoAtomic batch commit; use bulkWrite for per-item commits.
maxDocsintegerNoReject the entire request if the match limit is exceeded; do not truncate the write scope.
dryRunbooleanNotrue validates only; false performs writes.
idempotencyKeystringNoOptional idempotency key; reuse for the same request, never for different requests.
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "matchedCount": 0,
    "modifiedCount": 0,
    "upsertedId": "string",
    "results": [
      "value"
    ],
    "errors": [
      "value"
    ]
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/metadata:updateOne

Update one metadata object

Selection and update occur in one transaction with domain validation. Upsert insertion requires explicit _id and complete configuration.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/metadata:updateOne' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"kind":"directory","filter":{"$and":[{"_id":"example-record"},{"available":{"$gte":20}}]},"sort":[["value"]],"expectedRevision":0,"update":{"$set":{},"$unset":{},"$setOnInsert":{}}}'

application/json

FieldTypeRequiredDescription
kindstringYesOnly directory, topic and collection are generic metadata kinds. Source/Stream writes use their dedicated /uns/sources/documents/create, update, delete and /uns/streams/documents/create, update lifecycle routes. Generic metadata cannot provision credentials or bypass dependency confirmation.
filterobjectYesUnsV2DataFilter. See the referenced schema in the Schemas section.
sortarray<array<object>>NoUnsV2PipelineSort. See the referenced schema in the Schemas section.
expectedRevisionintegerNoOptional optimistic lock; management forms should send the revision read. Read again after a conflict.
updateobjectYesSupports only $set/$unset/$setOnInsert. Configuration paths omit data.; system fields are read-only. Replace arrays as whole fields.
upsertbooleanNoSupported only for single updates/replacements; filter must explicitly match _id and inserted configuration must be complete and valid. Deleted objects with the same ID are not restored automatically.
dryRunbooleanNotrue validates only; false performs writes.
idempotencyKeystringNoOptional idempotency key; reuse for the same request, never for different requests.
returnDocumentstringNonone returns counts only; before/after includes value from the same write transaction and requires read access. No match returns value:null; before is null for an insertion.
projectionobjectNoInclude or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained.
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "matchedCount": 0,
    "modifiedCount": 0,
    "upsertedId": "string",
    "status": "validated",
    "replayed": false
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/references/query

Query resource references

Query resource references by targets. Collection App references include grants and policy status for that Collection. Stream references include only frozen dependencies of the currently effective release: relationship.access describes read/write access to this target, and data.sourceIds contains the unique, sorted Source IDs bound by the same release. With Source read permission, no bindings returns an empty array. Without that permission, the field is omitted while the Stream reference remains visible. An omitted field does not mean no bindings. Drafts, historical releases and disabled Streams are excluded. Version selection is not supported. Use kinds to select app/stream/source/topic. status=active excludes disabled configuration; filtering precedes permission checks and pagination. Dependencies do not prove active writes or per-record provenance. Each target is paginated independently and sorted by kind and ID. Continue using nextPage only for targets with hasMore. The total request row budget is 2000. With size=20, a batch can contain at most 100 targets. Hidden reference items continue to be indicated only by hasHiddenReferences.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/references/query' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"queries":[{"queryId":"value","page":"value","size":"value","targets":"value","kinds":"value"}]}'

application/json

FieldTypeRequiredDescription
queriesarray<object>YesNot specified in OpenAPI
Responses
200default
Success response example

200 · application/json

{
  "code": 200,
  "msg": "success",
  "requestId": "request-id",
  "data": {
    "results": []
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Query result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

Jobs

Job endpoints

POST/uns/jobs/query

Query job status

Query asynchronous job states and results by jobIds; queryId in queries correlates results. App credentials cannot submit asynchronous jobs or call this endpoint.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/jobs/query' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"queries":[{"queryId":"value","jobIds":"value"}]}'

application/json

FieldTypeRequiredDescription
queriesarray<object>YesNot specified in OpenAPI
Responses
200default
Success response example

200 · application/json

{
  "code": 200,
  "msg": "success",
  "requestId": "request-id",
  "data": {
    "results": []
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Query result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

Sources

Source endpoints

POST/uns/sources/devices/list

Discover attached Edge devices

Requires X-Fleet-Node-Id. Enumerate live USB HID and serial hardware before creating a Source, including device addresses, existing bindings, checkedAt, revision and completeness. Optional kind is usb-hid or serial. Discovery does not capture input text. Serial acquisition requires a protocol adapter. Users must identify ambiguous keyboard devices remotely. No on-site test scan is required.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/devices/list' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"kind":"usb-hid"}'

application/json

FieldTypeRequiredDescription
kindstringNoNot specified in OpenAPI
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {}
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesFresh target Edge inventory. checkedAt is observation time; revision hashes device and binding state; complete=false includes per-kind discovery errors. devices contain deviceId, kind, label, address, canCreateSource, requiredParameters and existing sources. Serial discovery does not imply serial acquisition support. Empty devices only proves absence when complete=true. Never classify an arbitrary HID keyboard as a scanner without device identity supplied by the user.
Response status meanings
StatusMeaningMedia type
200Query result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/sources/discover

Discover Source resources

Read the vendor service directory using id and the current expectedRevision. SAP OData is currently supported. Source management, data read and credential-use permissions are required; endpoint, path, method and authentication overrides are rejected. Returns resource names and references within the service root without credentials or the Source endpoint. Credential use is audited, so this operation is not a side-effect-free query.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/discover' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"id":"string","expectedRevision":0}'

application/json

FieldTypeRequiredDescription
idstringYesNot specified in OpenAPI
expectedRevisionintegerYesNot specified in OpenAPI
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "id": "string",
    "revision": 0,
    "sourceType": "string",
    "resources": [
      "value"
    ]
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Query result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/sources/documents/create

Create a Source document

Create using the shared native document with top-level endpoint and protocol fields. Supply write-only credentials or an existing document.credentialRef. Inline credentials require credential management permission and an idempotency key, including each batch item. dryRun validates without storing credentials or contacting the upstream.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/documents/create' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"dryRun":false,"idempotencyKey":"string","document":{"credentialRef":"string","description":"string","endpoint":"string","extensions":{"tls":"value","ingress":"value"},"file":{"caCertificate":"value","directories":"value","resources":"value","sshHostKey":"value"}},"credentials":{"kind":"basic","username":"string","secret":"string","values":{},"certificateFileId":"string"},"items":[{"id":"value","document":"value","credentials":"value"}]}'

application/json

FieldTypeRequiredDescription
dryRunbooleanNotrue validates only; false performs writes.
idempotencyKeystringNoOptional idempotency key; reuse for the same request, never for different requests.
documentobjectNoSourceDefinition. See the referenced schema in the Schemas section.
credentialsobjectNoSourceCredentials. See the referenced schema in the Schemas section.
itemsarray<object>NoNot specified in OpenAPI
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": "string"
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/sources/documents/credentials/update

Update Source credentials

Provision or rotate shared write-only credentials using Source ID and expectedRevision under uns.source.credentials authority and source:manage scope. For dependencies, inspect sourceImpact with action=credentials first and explicitly supply confirmedImpactRevision after review. Optional Fleet targeting uses the same native request. Credential material is never returned.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/documents/credentials/update' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"dryRun":false,"idempotencyKey":"string","id":"string","expectedRevision":0,"credentials":{"kind":"basic","username":"string","secret":"string","values":{},"certificateFileId":"string"}}'

application/json

FieldTypeRequiredDescription
dryRunbooleanNotrue validates only; false performs writes.
idempotencyKeystringYesRequired idempotency key; reuse for the same request, never for a different request.
idstringYesObject ID as a string, obtained through discovery or read endpoints; do not use a name as an ID.
expectedRevisionintegerYesExpected revision; obtain it by reading the current object. On conflict, read again and decide how to proceed; do not overwrite blindly.
credentialsobjectYesSourceCredentials. See the referenced schema in the Schemas section.
confirmedImpactRevisionstringNoDependency impact confirmation token. May be omitted only when there are no draft, active or historical Stream dependencies. An explicitly supplied token is always validated and cannot be empty.
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {}
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/sources/documents/delete

Delete a Source document

Delete the current Source using id and expectedRevision. Submit the dependency impact confirmation when required. dryRun validates without committing. Fleet targeting uses the same native document contract.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/documents/delete' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"dryRun":false,"idempotencyKey":"string","id":"string","expectedRevision":0,"confirmedImpactRevision":"string"}'

application/json

FieldTypeRequiredDescription
dryRunbooleanNotrue validates only; false performs writes.
idempotencyKeystringNoOptional idempotency key; reuse for the same request, never for different requests.
idstringYesObject ID as a string, obtained through discovery or read endpoints; do not use a name as an ID.
expectedRevisionintegerYesExpected revision; obtain it by reading the current object. On conflict, read again and decide how to proceed; do not overwrite blindly.
confirmedImpactRevisionstringNoDependency impact confirmation token. May be omitted only when there are no draft, active or historical Stream dependencies. An explicitly supplied token is always validated and cannot be empty.
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {}
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/sources/documents/get

Read a source document

Read a source's full native configuration document by id, requiring source management permission.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/documents/get' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"id":"string","view":"summary"}'

application/json

FieldTypeRequiredDescription
idstringYesPositive decimal int64 identifier; always a string on the wire.
viewstringNosummary requires view permission and omits scripts/connection settings. full or omission requires management permission; API keys also require full_access, and MCP requires the corresponding management scope.
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": "string"
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Query result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/sources/documents/list

List source documents

List sources with pagination and filters such as protocol and health. Returns safe summaries by default. includeDocument=true requires management permission and includes full native configuration.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/documents/list' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"page":0,"size":0,"search":"string","protocol":"http-api","health":"string"}'

application/json

FieldTypeRequiredDescription
pageintegerNoNot specified in OpenAPI
sizeintegerNoNot specified in OpenAPI
searchstringNoNot specified in OpenAPI
protocolstringNoNot specified in OpenAPI
healthstringNoNot specified in OpenAPI
archivedbooleanNoNot specified in OpenAPI
includeDocumentbooleanNoFalse returns safe summaries for viewers. True additionally requires current Source manage permission and returns full native editor documents, including opaque references.
desiredStatestringNoNot specified in OpenAPI
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "list": [
      "value"
    ],
    "total": 0,
    "page": 0,
    "size": 0,
    "hasMore": false
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Query result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/sources/documents/oauth/complete

Complete Source OAuth authorization

Complete the Source authorization flow using its one-time state and code under Source credential management authority. Credentials remain write-only.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/documents/oauth/complete' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"dryRun":false,"idempotencyKey":"string","id":"string","state":"string","code":"string"}'

application/json

FieldTypeRequiredDescription
dryRunbooleanNotrue validates only; false performs writes.
idempotencyKeystringNoOptional idempotency key; reuse for the same request, never for different requests.
idstringYesObject ID as a string, obtained through discovery or read endpoints; do not use a name as an ID.
statestringYesNot specified in OpenAPI
codestringYesNot specified in OpenAPI
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {}
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/sources/documents/oauth/start

Start Source OAuth authorization

Start the authorization flow for the selected Source under Source credential management authority. Uses the normal source:manage API Key scope; Fleet targeting forwards the same native contract.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/documents/oauth/start' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"dryRun":false,"idempotencyKey":"string","id":"string","redirectUri":"string"}'

application/json

FieldTypeRequiredDescription
dryRunbooleanNotrue validates only; false performs writes.
idempotencyKeystringNoOptional idempotency key; reuse for the same request, never for different requests.
idstringYesObject ID as a string, obtained through discovery or read endpoints; do not use a name as an ID.
redirectUristringYesNot specified in OpenAPI
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {}
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/sources/documents/state/update

Update native Edge Source enabled state

Requires X-Fleet-Node-Id and Source management permission. Read the target Source revision first; submit dryRun, id, expectedRevision and desiredState (enabled or disabled). Keep any required dependency impact confirmation and a stable idempotency key. The Edge performs final permission and version checks. Requests without a target fail before dispatch; this does not modify center Sources.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/documents/state/update' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"dryRun":false,"id":"string","expectedRevision":0,"desiredState":"enabled","idempotencyKey":"string"}'

application/json

FieldTypeRequiredDescription
dryRunbooleanYestrue validates only; false performs writes.
idstringYesNot specified in OpenAPI
expectedRevisionintegerYesNot specified in OpenAPI
desiredStatestringYesNot specified in OpenAPI
idempotencyKeystringNoOptional idempotency key; reuse for the same request, never for different requests.
confirmedImpactRevisionstringNoNot specified in OpenAPI
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {}
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesNative Edge Source result; inspect the target catalog for its exact versioned response.
Response status meanings
StatusMeaningMedia type
200Operation result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/sources/documents/update

Update source documents

Update a source with document or patch and its current expectedRevision. Name and description changes can be submitted directly. Connection changes can also be submitted directly when there are no Stream references; otherwise supply a confirmedImpactRevision for the exact change. A successful commit returns the complete Source; dryRun=true validates only.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/documents/update' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"dryRun":false,"idempotencyKey":"string","id":"string","expectedRevision":0,"document":{"credentialRef":"string","description":"string","endpoint":"string","extensions":{"tls":"value","ingress":"value"},"file":{"caCertificate":"value","directories":"value","resources":"value","sshHostKey":"value"}}}'

application/json

FieldTypeRequiredDescription
dryRunbooleanNotrue validates only; false performs writes.
idempotencyKeystringNoOptional idempotency key; reuse for the same request, never for different requests.
idstringNoPositive decimal int64 identifier; always a string on the wire.
expectedRevisionintegerNoNot specified in OpenAPI
documentobjectNoSourceDefinition. See the referenced schema in the Schemas section.
confirmedImpactRevisionstringNoCloud requires explicit expectedRevision. confirmedImpactRevision may be omitted only when the same mutation transaction proves there are no draft, active or historical Stream references. Any supplied confirmation remains bound to the exact intent and dependency set. Confirmation never substitutes authorization or idempotency.
patchobjectNoSourceDefinitionPatch. See the referenced schema in the Schemas section.
itemsarray<object>NoNot specified in OpenAPI
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": "string"
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/sources/history

Read source change history

Read source revision history by id; use beforeRevision to page backward.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/history' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"id":"string","beforeRevision":0,"size":0}'

application/json

FieldTypeRequiredDescription
idstringYesNot specified in OpenAPI
beforeRevisionintegerNoNot specified in OpenAPI
sizeintegerNoNot specified in OpenAPI
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "sourceID": "string",
    "currentRevision": 0,
    "deleted": 1,
    "total": 0,
    "missingRevisionCount": 0
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Query result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/sources/impact

Inspect Source mutation dependencies

Submit id, expectedRevision and action. For credential rotation use action=credentials without document, patch or secrets. Review all returned dependencies before explicitly passing confirmedImpactRevision to credentials/update. The token binds ID, revision, dependency snapshot and action; it does not include a random credential reference. Never automatically confirm an impact.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/impact' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"id":"string","expectedRevision":0,"action":"update","document":{"credentialRef":"string","description":"string","endpoint":"string","extensions":{"tls":"value","ingress":"value"},"file":{"caCertificate":"value","directories":"value","resources":"value","sshHostKey":"value"}},"offset":0}'

application/json

FieldTypeRequiredDescription
idstringYesNot specified in OpenAPI
expectedRevisionintegerYesNot specified in OpenAPI
actionstringYesNot specified in OpenAPI
documentobjectNoSourceDefinition. See the referenced schema in the Schemas section.
offsetintegerNoNot specified in OpenAPI
sizeintegerNoNot specified in OpenAPI
impactRevisionstringNoOpaque exact-intent confirmation from sourceImpact. Never inferred, synthesized or refreshed automatically.
patchobjectNoSourceDefinitionPatch. See the referenced schema in the Schemas section.
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "impactRevision": "string",
    "sourceID": "string",
    "sourceRevision": 0,
    "action": "update",
    "complete": 1
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Query result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/sources/observations/get

Read source observations

Read observations for items in a batch; statistics cover accepted execution tasks.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/observations/get' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"items":[{"id":"value","expectedRevision":"value"}],"view":"summary"}'

application/json

FieldTypeRequiredDescription
itemsarray<object>YesNot specified in OpenAPI
viewstringNosummary returns only the latest durable admission time for each requested revision; full preserves the 24-hour counters.
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": "string"
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Query result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/sources/probe

Probe a source connection

Probe the source within timeoutMs. HTTP probes check network connectivity only; they do not send business HTTP requests or establish successful authentication or collection. dryRun=true validates the probe request only.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/probe' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"idempotencyKey":"string","dryRun":false,"id":"string","timeoutMs":0}'

application/json

FieldTypeRequiredDescription
idempotencyKeystringNoOptional idempotency key; reuse for the same request, never for different requests.
dryRunbooleanYestrue validates only; false performs writes.
idstringYesObject ID as a string, obtained through discovery or read endpoints; do not use a name as an ID.
timeoutMsintegerYesNot specified in OpenAPI
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {}
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/sources/protocols/list

List source protocols

Return supported source protocols and their configuration capabilities.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/protocols/list' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{}'

application/json

This request body has no declared object fields in OpenAPI.

Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {}
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Query result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/sources/resources/catalog

List declared Edge Source resources

Use the Source ID to list declared resources, supported modes, input and output schemas, and configuration revisions. Use the target node's native Source ID with X-Fleet-Node-Id, or a cloud Edge reference ID without the header. Import a declared Teamcenter vendor:teamcenter:file:<selectionId> into a formal private Asset with await api.assets.importSource(sourceAlias,resourceRef) in an integration Stream. First declare the bound Source with api.sources.use(alias). This side effect is bounded to 8 MiB and 60 seconds, returns fileKey/filePath/sha256/sizeBytes and version UIDs, and uses the effect ledger and idempotent SYS confirmation. Paths, URLs and tickets are not accepted.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/resources/catalog' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"id":"string","configRevision":0}'

application/json

FieldTypeRequiredDescription
idstringYesNot specified in OpenAPI
configRevisionintegerNoNot specified in OpenAPI
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "id": "string",
    "configRevision": 0,
    "protocol": "string",
    "sourceType": "string",
    "resources": [
      "value"
    ]
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Query result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/sources/resources/preview

Preview an Edge Source resource

Read a bounded sample through the target Edge using the catalog revision and resourceRef. Credentials stay on the Edge. Only declared resources can be read. Device addresses, authentication and vendor request paths cannot be overridden.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/resources/preview' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"id":"string","configRevision":0,"resourceRef":"string","params":{"limit":0,"createdDateTimeBegin":"string","createdDateTimeEnd":"string","material":"string","baseUnit":"string"},"timeoutMs":0}'

application/json

FieldTypeRequiredDescription
idstringYesNot specified in OpenAPI
configRevisionintegerYesNot specified in OpenAPI
resourceRefstringYesNot specified in OpenAPI
paramsobjectNoNot specified in OpenAPI
timeoutMsintegerNoNot specified in OpenAPI
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {}
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesBounded native result. Interpret fields using the selected resource output schema.
Response status meanings
StatusMeaningMedia type
200Query result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/sources/resources/scan

Read an Edge Source resource page

Read a bounded page using an opaque cursor issued for the same Source configuration and resource. Discover the specific Edge resource first. Named resources include file directories, EDI exchanges, SQL queries, controller history, approved Teamcenter files and Salesforce Bulk or deletion windows. Connections, paths, query text and vendor tickets remain on Edge. Commit the cursor only after all returned records are durably written. Preserve a returned checkpoint on the final page for incremental resources. Poll a pending Bulk job using its returned cursor. An empty pending page is not completion.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/resources/scan' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"id":"string","configRevision":0,"resourceRef":"string","cursor":"string","params":{"maxItems":0,"createdDateTimeBegin":"string","createdDateTimeEnd":"string","material":"string","baseUnit":"string"}}'

application/json

FieldTypeRequiredDescription
idstringYesNot specified in OpenAPI
configRevisionintegerYesNot specified in OpenAPI
resourceRefstringYesNot specified in OpenAPI
cursorstringNoNot specified in OpenAPI
paramsobjectNoNot specified in OpenAPI
limitintegerYesUse the resource catalog bounds. Only Salesforce object queries support a native page of 200.
timeoutMsintegerNoNot specified in OpenAPI
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "resourceRef": "string",
    "configRevision": 0,
    "items": [
      "value"
    ],
    "nextCursor": "string",
    "hasMore": false
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Query result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/sources/runtime/get

Read source runtime status

Read the current runtime status of a source by id.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/runtime/get' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"id":"string"}'

application/json

FieldTypeRequiredDescription
idstringYesObject ID as a string, obtained through discovery or read endpoints; do not use a name as an ID.
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "sourceId": "string",
    "revision": 0,
    "state": {
      "schemaVersion": "value",
      "health": "value",
      "healthMessage": "value",
      "lastDataAt": "value",
      "checkedAt": "value"
    }
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Query result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/sources/validate

Validate source configuration

Validate a native SourceDefinition document, including protocol, endpoint and protocol parameters, without creating a Source.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/sources/validate' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"document":{"credentialRef":"string","description":"string","endpoint":"string","extensions":{"tls":"value","ingress":"value"},"file":{"caCertificate":"value","directories":"value","resources":"value","sshHostKey":"value"}}}'

application/json

FieldTypeRequiredDescription
documentobjectYesSourceDefinition. See the referenced schema in the Schemas section.
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {}
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Query result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

Streams

Stream endpoints

POST/uns/stream-requests/grants/get

Read stream-entry grants

Read grants, current release bindings and permission ceilings by code and recipient (app/user only), returning snapshotToken for concurrency checks. Requires a current management session or full_access personal/agent key with stream.requests.manage and uns.source.manage. App and service keys cannot configure grants. Source configuration and credentials are not returned.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/stream-requests/grants/get' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"code":"string","principalKind":"app","principalID":"string"}'

application/json

FieldTypeRequiredDescription
codestringYesNot specified in OpenAPI
principalKindstringYesNot specified in OpenAPI
principalIDstringYesNot specified in OpenAPI
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "code": "string",
    "principalKind": "app",
    "principalID": "string",
    "status": "string",
    "bindingDigest": "string"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesCloudStreamRequestGrantInfo. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Query result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/stream-requests/grants/set

Set or revoke stream-entry grants

Use expectedSnapshotToken from get to atomically modify grants without resubmitting all target revisions. active=1 adds or updates; actions permits only stream.requests.read, stream.requests.invoke and stream.requests.write, and write requires invoke. Resource management includes view, invoke and write operations; stream.requests.manage is the caller's grant-configuration capability. active=2 revokes all historical targets; actions must be empty. Neither recipient nor current release needs to be online. Legacy version fields remain supported; the two validation modes are mutually exclusive. After a version conflict or lost response, reread and reconcile current state before changing it; do not overwrite blindly.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/stream-requests/grants/set' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"code":"string","principalKind":"app","principalID":"string","active":1,"expectedBindingDigest":"string"}'

application/json

FieldTypeRequiredDescription
codestringYesNot specified in OpenAPI
principalKindstringYesNot specified in OpenAPI
principalIDstringYesNot specified in OpenAPI
activeintegerYesNot specified in OpenAPI
expectedBindingDigeststringNoNot specified in OpenAPI
expectedCodeRevisionintegerNoLegacy code CAS revision; new callers use expectedSnapshotToken. The modes are mutually exclusive.
actionsarray<string>NoNot specified in OpenAPI
targetRevisionsarray<object>NoLegacy target revision list; use expectedSnapshotToken for revocation when there are many historical targets.
expectedSnapshotTokenstringNoServer-generated authorization snapshot version, for concurrency checking only, not an invocation credential.
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "code": "string",
    "principalKind": "app",
    "principalID": "string",
    "revision": 0,
    "active": 1
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesCloudStreamRequestGrantMutation. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/streams/documents/create

Create a stream document

Create a Stream from document or program; dryRun=true validates only. Bind an existing Edge Source using target:{fleetNodeId,sourceId,configRevision} and resources from that revision's catalog. When Modbus acquisition.ranges is omitted, the server resolves selected ranges from the target resource catalog. You may provide pollIntervalMs separately; do not copy unitId, writable, connection endpoints or credentials.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/documents/create' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"dryRun":false,"idempotencyKey":"string","document":{"name":"string","description":"string","model":"string","script":{"code":"value","timeoutMs":"value"},"sources":["value"]},"program":{"name":"string","description":"string","script":{"code":"value","timeoutMs":"value"},"sources":["value"],"sourceBindings":["value"]},"expectedSourceRevision":0}'

application/json

FieldTypeRequiredDescription
dryRunbooleanNotrue validates only; false performs writes.
idempotencyKeystringNoOptional idempotency key; reuse for the same request, never for different requests.
documentobjectNoCloudStreamDocument. See the referenced schema in the Schemas section.
programobjectNoRuntimeStreamDefinition. See the referenced schema in the Schemas section.
expectedSourceRevisionintegerNoNot specified in OpenAPI
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": "string"
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/streams/documents/disable

Disable a stream document

Disable by id, using both expectedRevision and expectedActiveRelease to prevent concurrent overwrites; dryRun=true validates only.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/documents/disable' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"id":"string","expectedRevision":0,"dryRun":false,"idempotencyKey":"string","expectedActiveVersion":"string"}'

application/json

FieldTypeRequiredDescription
idstringYesNot specified in OpenAPI
expectedRevisionintegerYesNot specified in OpenAPI
dryRunbooleanYestrue validates only; false performs writes.
idempotencyKeystringNoOptional idempotency key; reuse for the same request, never for different requests.
expectedActiveVersionstringYesAuthoritative active version ID from the receipt; 0 denotes inactive. Not the Cloud release sequence.
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": "string"
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/streams/documents/get

Read a stream document

Read the stream's native configuration document by id.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/documents/get' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"id":"string","view":"summary"}'

application/json

FieldTypeRequiredDescription
idstringYesPositive decimal int64 identifier; always a string on the wire.
viewstringNosummary requires view permission and omits scripts/connection settings. full or omission requires management permission; API keys also require full_access, and MCP requires the corresponding management scope.
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": "string"
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Query result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/streams/documents/update

Update a stream document

Update the stream with document, optionally checking concurrent changes through expectedRevision; dryRun=true validates only.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/documents/update' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"dryRun":false,"idempotencyKey":"string","id":"string","expectedRevision":0,"document":{"name":"string","description":"string","model":"string","script":{"code":"value","timeoutMs":"value"},"sources":["value"]}}'

application/json

FieldTypeRequiredDescription
dryRunbooleanNotrue validates only; false performs writes.
idempotencyKeystringNoOptional idempotency key; reuse for the same request, never for different requests.
idstringYesPositive decimal int64 identifier; always a string on the wire.
expectedRevisionintegerNoNot specified in OpenAPI
documentobjectNoCloudStreamDocument. See the referenced schema in the Schemas section.
programobjectNoRuntimeStreamDefinition. See the referenced schema in the Schemas section.
expectedSourceRevisionintegerNoNot specified in OpenAPI
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": "string"
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/streams/documents/validate

Validate a stream document

Validate document or program through isolated script registration without executing acquisition callbacks or deploying. For existing Edge Modbus Sources, both sources and sourceBindings accept target and resources without acquisition.ranges. The server resolves ranges from the target catalog at configRevision; pollIntervalMs may be specified separately. Select existing catalog resources only; do not copy unitId, writable, connection endpoints or credentials. Validation failures identify the binding field through reason/path; normalizedDocument is returned only when normalization produces one.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/documents/validate' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"document":{"name":"string","description":"string","model":"string","script":{"code":"value","timeoutMs":"value"},"sources":["value"]},"id":"string","program":{"name":"string","description":"string","script":{"code":"value","timeoutMs":"value"},"sources":["value"],"sourceBindings":["value"]},"expectedSourceRevision":0}'

application/json

FieldTypeRequiredDescription
documentobjectNoCloudStreamDocument. See the referenced schema in the Schemas section.
idstringNoStable current Stream ID when validating edits. Omit for new drafts; names never identify which active routes to exclude.
programobjectNoRuntimeStreamDefinition. See the referenced schema in the Schemas section.
expectedSourceRevisionintegerNoNot specified in OpenAPI
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "valid": false,
    "issues": [
      "value"
    ],
    "normalizedDocument": {
      "name": "value",
      "description": "value",
      "model": "value",
      "script": "value",
      "sources": "value"
    }
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Query result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/streams/observation/get

Read stream observations

Read observations and accepted-task statistics for a stream by id.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/observation/get' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"id":"string"}'

application/json

FieldTypeRequiredDescription
idstringYesNot specified in OpenAPI
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "id": "string",
    "revision": 0,
    "stats": {
      "admitted": "value",
      "completed": "value",
      "failed": "value",
      "unknown": "value",
      "pending": "value"
    },
    "window": {
      "from": "value",
      "to": "value"
    },
    "coverage": "durable-admissions"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Query result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/streams/program/delete

Delete a stream program

Delete a stream program by id, including an active program, and revoke future execution admission without a separate stop. Use expectedRevision to check concurrent changes; dryRun=true validates only.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/program/delete' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"dryRun":false,"idempotencyKey":"string","id":"string","expectedRevision":0}'

application/json

FieldTypeRequiredDescription
dryRunbooleanYestrue validates only; false performs writes.
idempotencyKeystringNoOptional idempotency key; reuse for the same request, never for different requests.
idstringYesPositive decimal int64 identifier; always a string on the wire.
expectedRevisionintegerNoNot specified in OpenAPI
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": "string"
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/streams/program/deploy

Deploy a stream program

Deploy the program, optionally checking program/source revisions through expectedRevision and expectedSourceRevision; dryRun=true validates only.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/program/deploy' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"idempotencyKey":"string","dryRun":false,"id":"string","expectedRevision":0,"expectedSourceRevision":0}'

application/json

FieldTypeRequiredDescription
idempotencyKeystringNoOptional idempotency key; reuse for the same request, never for different requests.
dryRunbooleanNotrue validates only; false performs writes.
idstringYesObject ID as a string, obtained through discovery or read endpoints; do not use a name as an ID.
expectedRevisionintegerNoExpected revision; obtain it by reading the current object. On conflict, read again and decide how to proceed; do not overwrite blindly. Optional optimistic concurrency guard; omission updates the current object.
expectedSourceRevisionintegerNoNot specified in OpenAPI
expectedReleaseStatestringNoCloud extension: require inactive state; mutually exclusive with expectedActiveVersion.
expectedActiveVersionstringNoAuthoritative active version ID from the receipt; 0 denotes inactive. Not the Cloud release sequence.
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": "string"
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/streams/program/list

List stream programs

Query programs with pagination and sourceId, model, status and archived filters.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/program/list' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"page":0,"size":0,"search":"string","sourceId":"string","model":"string"}'

application/json

FieldTypeRequiredDescription
pageintegerNoNot specified in OpenAPI
sizeintegerNoNot specified in OpenAPI
searchstringNoNot specified in OpenAPI
sourceIdstringNoPositive decimal int64 identifier; always a string on the wire.
modelstringNoNot specified in OpenAPI
statusstringNoNot specified in OpenAPI
archivedbooleanNoNot specified in OpenAPI
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "list": [
      "value"
    ],
    "total": 0,
    "page": 0,
    "size": 0,
    "hasMore": false
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Query result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/streams/program/rollback

Roll back a stream program

Roll back to versionId; dryRun=true validates only.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/program/rollback' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"idempotencyKey":"string","dryRun":false,"id":"string","expectedRevision":0,"expectedSourceRevision":0}'

application/json

FieldTypeRequiredDescription
idempotencyKeystringNoOptional idempotency key; reuse for the same request, never for different requests.
dryRunbooleanYestrue validates only; false performs writes.
idstringYesObject ID as a string, obtained through discovery or read endpoints; do not use a name as an ID.
expectedRevisionintegerNoExpected revision; obtain it by reading the current object. On conflict, read again and decide how to proceed; do not overwrite blindly. Optional optimistic concurrency guard; omission updates the current object.
expectedSourceRevisionintegerNoNot specified in OpenAPI
versionIdstringYesNot specified in OpenAPI
expectedReleaseStatestringNoCloud extension: require inactive state; mutually exclusive with expectedActiveVersion.
expectedActiveVersionstringNoAuthoritative active version ID from the receipt; 0 denotes inactive. Not the Cloud release sequence.
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": "string"
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/streams/program/versions/list

List stream releases

Read a stream program's release history by id with pagination.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/program/versions/list' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"id":"string","page":0,"size":0,"search":"string"}'

application/json

FieldTypeRequiredDescription
idstringYesObject ID as a string, obtained through discovery or read endpoints; do not use a name as an ID.
pageintegerNoPage number, starting at 1.
sizeintegerNoPage size; see this endpoint's maximum or the capability catalog.
searchstringNoSearch names or supported text fields; not SQL.
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "list": [
      "value"
    ],
    "total": 0,
    "page": 0,
    "size": 0
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Query result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/streams/runs/list

List stream runs

Query stream runs by id using size and cursor pagination. Failed runs may include a safe error reason and repair guidance. error.sourceRequest describes only the failed Source call and does not imply that the entire run had no side effects.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/runs/list' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"id":"string","size":0,"cursor":"string"}'

application/json

FieldTypeRequiredDescription
idstringYesNot specified in OpenAPI
sizeintegerNoNot specified in OpenAPI
cursorstringNoNot specified in OpenAPI
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "items": [
      "value"
    ],
    "nextCursor": "string",
    "checkedAt": 0
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Query result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/streams/sample/test

Test a stream sample

Run an isolated sample test with input on the document's entryId; no external host access or committed data writes.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/streams/sample/test' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"document":{"name":"string","description":"string","model":"string","script":{"code":"value","timeoutMs":"value"},"sources":["value"]},"entryId":"string","input":"string"}'

application/json

FieldTypeRequiredDescription
documentobjectYesCloudStreamDocument. See the referenced schema in the Schemas section.
entryIdstringYesNot specified in OpenAPI
inputobjectYesNot specified in OpenAPI
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "status": "completed",
    "errorCode": "string",
    "snapshot": "string",
    "entryId": "string",
    "data": "string"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Query result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

Time series

Append samples, query multiple records, aggregate, read latest values and delete explicit time ranges. Latest values refer only to actual samples.

POST/uns/collections/{collectionId}/records/{recordId}/samples

Append samples

Append items to the existing record identified by URL collectionId and recordId. Each item requires time as event time in Unix milliseconds and data as sample values; id and quality are optional. receivedAt is generated by the server. dryRun=true validates only. The default is atomic batch commit; allowPartial=true commits items independently and returns individual results. mode is auto, sync or async. Query accepted asynchronous work through jobId; app credentials support only auto/sync.

Request parameters
NameLocationTypeRequiredDescription
collectionIdpathstringYesNot specified in OpenAPI
recordIdpathstringYesNot specified in OpenAPI
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/records/{recordId}/samples' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"idempotencyKey":"string","dryRun":false,"allowPartial":false,"mode":"auto","items":[{"id":"value","time":"value","quality":"value","data":"value"}]}'

application/json

FieldTypeRequiredDescription
idempotencyKeystringNoOptional idempotency key; reuse for the same request, never for different requests.
dryRunbooleanYestrue validates only; false performs writes.
allowPartialbooleanNoDefault false rolls back the entire batch; true commits items independently and reports failures in results[].error.
modestringNoNot specified in OpenAPI
itemsarray<object>YesNot specified in OpenAPI
Responses
200default
Success response example

200 · application/json

{
  "code": 200,
  "msg": "success",
  "requestId": "request-id",
  "data": {
    "status": "committed",
    "replayed": false,
    "results": [
      {
        "opId": "item-0",
        "action": "sample.append",
        "id": "s1",
        "collectionId": "devices",
        "status": "appended"
      }
    ]
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesDocUnsV2SampleAppendOutcome. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/collections/{collectionId}/samples:aggregate

Aggregate samples

Run pipeline on samples within [from,to), using Unix milliseconds. recordIds is optional, at most 20; omission queries the authorized collection. Supports advanced filters, grouping, sorting and time buckets; pipeline determines output documents. page and limit are mutually exclusive; pipeline cannot broaden time or record scope.

Request parameters
NameLocationTypeRequiredDescription
collectionIdpathstringYesNot specified in OpenAPI
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/samples:aggregate' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"recordIds":["string"],"from":0,"to":0,"pipeline":["string"],"limit":0}'

application/json

FieldTypeRequiredDescription
recordIdsarray<string>NoNot specified in OpenAPI
fromintegerYesInclusive start time in Unix milliseconds.
tointegerYesExclusive end time in Unix milliseconds, greater than from.
pipelinearray<object>YesNot specified in OpenAPI
limitintegerNoNot specified in OpenAPI
pageobjectNoUnsV2PipelinePage. See the referenced schema in the Schemas section.
Responses
200default
Success response example

200 · application/json

{
  "code": 200,
  "msg": "success",
  "requestId": "request-id",
  "data": {
    "items": [
      {
        "averageTemperature": 25
      }
    ],
    "pageInfo": {
      "mode": "offset",
      "hasMore": false,
      "nextCursor": null,
      "nextPage": null,
      "snapshotScope": "thisRequestOnly"
    }
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesCloudDataPage. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Query result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/collections/{collectionId}/samples:delete

Delete samples in a time range

Physically delete samples for explicit recordIds within [from,to), at most 20 records; from/to use Unix milliseconds. dryRun=true returns only estimated deletion count; parent records remain.

Request parameters
NameLocationTypeRequiredDescription
collectionIdpathstringYesNot specified in OpenAPI
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/samples:delete' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"recordIds":["string"],"from":0,"to":0,"dryRun":false}'

application/json

FieldTypeRequiredDescription
recordIdsarray<string>YesRecord IDs, not collection IDs.
fromintegerYesTime-range start in Unix milliseconds.
tointegerYesTime-range end in Unix milliseconds.
dryRunbooleanNotrue validates only; false performs writes.
Responses
200default
Success response example

200 · application/json

{
  "code": 200,
  "msg": "success",
  "requestId": "request-id",
  "data": {
    "deletedCount": 1,
    "dryRun": false
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/collections/{collectionId}/samples:find

Query samples

Query samples within [from,to), using Unix milliseconds. recordIds is optional, at most 20; omission queries the authorized collection. Supports filter, sort, projection and either limit/cursor or page; page cannot be combined with limit/cursor. Results paginate across selected records together; filter cannot broaden time or record scope.

Request parameters
NameLocationTypeRequiredDescription
collectionIdpathstringYesNot specified in OpenAPI
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/samples:find' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"recordIds":["string"],"from":0,"to":0,"filter":{"$and":[{"_id":"example-record"},{"available":{"$gte":20}}]},"sort":[["value"]]}'

application/json

FieldTypeRequiredDescription
recordIdsarray<string>NoNot specified in OpenAPI
fromintegerYesInclusive start time in Unix milliseconds.
tointegerYesExclusive end time in Unix milliseconds, greater than from.
filterobjectNoUnsV2DataFilter. See the referenced schema in the Schemas section.
sortarray<array<object>>NoUnsV2PipelineSort. See the referenced schema in the Schemas section.
projectionobjectNoInclude or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained.
limitintegerNoNot specified in OpenAPI
cursorstringNoNot specified in OpenAPI
pageobjectNoUnsV2PipelinePage. See the referenced schema in the Schemas section.
Responses
200default
Success response example

200 · application/json

{
  "code": 200,
  "msg": "success",
  "requestId": "request-id",
  "data": {
    "items": [
      {
        "id": "s1",
        "collectionId": "devices",
        "recordId": "r1",
        "time": 1792454400000,
        "receivedAt": 1792454400100,
        "quality": "good",
        "data": {
          "temperature": 25
        },
        "sourceId": null
      }
    ],
    "pageInfo": {
      "mode": "cursor",
      "hasMore": false,
      "nextCursor": null,
      "nextPage": null,
      "snapshotScope": "thisRequestOnly"
    }
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesCloudSamplePage. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Query result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/collections/{collectionId}/samples:latest

Read each record's latest sample

recordIds is required, at most 20. Return each record's latest actual sample; sample is null if none exists.

Request parameters
NameLocationTypeRequiredDescription
collectionIdpathstringYesNot specified in OpenAPI
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/samples:latest' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"recordIds":["string"]}'

application/json

FieldTypeRequiredDescription
recordIdsarray<string>YesRecord IDs, not collection IDs.
Responses
200default
Success response example

200 · application/json

{
  "code": 200,
  "msg": "success",
  "requestId": "request-id",
  "data": {
    "series": [
      {
        "recordId": "r1",
        "sample": {
          "id": "s1",
          "collectionId": "devices",
          "recordId": "r1",
          "time": 1792454400000,
          "receivedAt": 1792454400100,
          "quality": "good",
          "data": {
            "temperature": 25
          },
          "sourceId": null
        }
      }
    ]
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Query result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

Business data

Business record queries, writes, soft deletion, restoration, lease locks and cross-collection transactions. Use bare names for business fields and _id / _meta.* for system fields.

POST/uns/collections/{collectionId}/records

Insert one record

Insert data into the collection, optionally with id. A deleted record with the same ID is not implicitly restored. By default, only insertedId and execution state are returned. returnDocument=after returns the created value in the same transaction, supports projection, and requires read access. Idempotent replay returns the original creation snapshot; dryRun=true returns only an uncommitted preview.

Request parameters
NameLocationTypeRequiredDescription
collectionIdpathstringYesNot specified in OpenAPI
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/records' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"expectedRevision":0,"dryRun":false,"idempotencyKey":"string","id":"string","data":{}}'

application/json

FieldTypeRequiredDescription
expectedRevisionintegerNoExpected revision; obtain it by reading the current object. On conflict, read again and decide how to proceed; do not overwrite blindly.
dryRunbooleanNotrue validates only; false performs writes.
idempotencyKeystringNoOptional idempotency key; reuse for the same request, never for different requests.
idstringNoObject ID as a string, obtained through discovery or read endpoints; do not use a name as an ID.
dataobjectYesNot specified in OpenAPI
lockTokenstringNoNot specified in OpenAPI
releasebooleanNoNot specified in OpenAPI
assertLocksarray<object>NoNot specified in OpenAPI
returnDocumentstringNonone preserves the insertedId response; after includes the created value from the same write transaction and requires read access. Idempotent replay returns the original creation snapshot; dryRun returns an uncommitted preview.
projectionobjectNoInclude or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained.
Responses
200default
Success response example

200 · application/json

{
  "code": 200,
  "msg": "success",
  "requestId": "request-id",
  "data": {
    "status": "committed",
    "replayed": false,
    "insertedId": "r1"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/collections/{collectionId}/records:aggregate

Aggregate business records

Run pipeline on active records in the collection, supporting filtering, projection, grouping and sorting. Pipeline determines returned documents; page and limit are mutually exclusive. On the first or an offset page, count:{max} includes capped pipeline-output total from the same snapshot.

Request parameters
NameLocationTypeRequiredDescription
collectionIdpathstringYesNot specified in OpenAPI
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/records:aggregate' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"pipeline":["string"],"limit":0,"page":{"size":0,"mode":"offset","page":0,"cursor":"string"},"count":{"max":0}}'

application/json

FieldTypeRequiredDescription
pipelinearray<object>YesNot specified in OpenAPI
limitintegerNoNot specified in OpenAPI
pageobjectNoUnsV2PipelinePage. See the referenced schema in the Schemas section.
countobjectNoCloudRecordTotalOption. See the referenced schema in the Schemas section.
Responses
200default
Success response example

200 · application/json

{
  "code": 200,
  "msg": "success",
  "requestId": "request-id",
  "data": {
    "items": [
      {
        "averageTemperature": 25
      }
    ],
    "pageInfo": {
      "mode": "offset",
      "hasMore": false,
      "nextCursor": null,
      "nextPage": null,
      "snapshotScope": "thisRequestOnly"
    }
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesCloudRecordAggregatePage. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Query result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/collections/{collectionId}/records:bulkWrite

Execute mixed writes within a collection

Use operations to mix insert, update, replace and soft-delete operations in one collection. atomic and ordered control batch execution; result indices refer to original input positions. dryRun=true validates only. With atomic=false, chunks/items commit independently. Once any commit occurs, failure reports error.execution=committed and retry.safe=false, with cumulative data matching the success structure: counts, insertedIds, writeErrors, hasMore and nextIndex, plus unknownUntil when outcomes are unknown. nextIndex is the first unexecuted zero-based operation; earlier indices absent from writeErrors committed. If unknownUntil is present, [nextIndex, unknownUntil) has unknown outcome. Retry with the same idempotency key if supplied. Without a key, only client-ID inserts and ID-based replacements/deletes can be reconciled by reading those IDs before continuation. Server-generated-ID inserts, filter-selected operations and incremental updates such as $inc cannot be reconciled safely; always use idempotency keys for these writes. Without unknownUntil, continuation from nextIndex is safe. execution is rolledBack or notStarted only when nothing committed.

Request parameters
NameLocationTypeRequiredDescription
collectionIdpathstringYesNot specified in OpenAPI
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/records:bulkWrite' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"expectedRevision":0,"dryRun":false,"idempotencyKey":"string","operations":["string"],"ordered":false}'

application/json

FieldTypeRequiredDescription
expectedRevisionintegerNoExpected revision; obtain it by reading the current object. On conflict, read again and decide how to proceed; do not overwrite blindly.
dryRunbooleanNotrue validates only; false performs writes.
idempotencyKeystringNoOptional idempotency key; reuse for the same request, never for different requests.
operationsarray<object>YesNot specified in OpenAPI
orderedbooleanNoNot specified in OpenAPI
atomicbooleanNotrue commits the entire batch atomically, with at most 200 document actions; false commits per document.
lockTokenstringNoNot specified in OpenAPI
releasebooleanNoNot specified in OpenAPI
assertLocksarray<object>NoNot specified in OpenAPI
lockTokensobjectNoNot specified in OpenAPI
Responses
200default
Success response example

200 · application/json

{
  "code": 200,
  "msg": "success",
  "requestId": "request-id",
  "data": {
    "status": "committed",
    "replayed": false,
    "insertedCount": 1,
    "matchedCount": 0,
    "modifiedCount": 0,
    "deletedCount": 0,
    "upsertedCount": 0,
    "insertedIds": {
      "0": "r1"
    },
    "upsertedIds": {}
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result.application/json
defaultFailure response. After a partial commit, error.execution=committed and retry.safe=false; data contains cumulative results.application/json

POST/uns/collections/{collectionId}/records:count

Count records

Count active records matching filter in the collection, up to maxCount (default and maximum 100000). Above the cap, return count=maxCount and capped=true; equality gives capped=false.

Request parameters
NameLocationTypeRequiredDescription
collectionIdpathstringYesNot specified in OpenAPI
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/records:count' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"filter":{"$and":[{"_id":"example-record"},{"available":{"$gte":20}}]},"maxCount":0}'

application/json

FieldTypeRequiredDescription
filterobjectNoUnsV2DataFilter. See the referenced schema in the Schemas section.
maxCountintegerNoCount limit; actual counts above maxCount return count=maxCount and capped=true. Equality returns capped=false.
Responses
200default
Success response example

200 · application/json

{
  "code": 200,
  "msg": "success",
  "requestId": "request-id",
  "data": {
    "count": 1,
    "capped": false
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesCloudCappedCount. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Query result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/collections/{collectionId}/records:deleteMany

Soft-delete multiple records

Soft-delete records matching filter and physically delete related samples in the same transaction. Restoring records does not restore samples. maxDocs bounds this pass and resumeAfter continues it; atomic and ordered control batch execution. dryRun=true validates only. With atomic=false, chunks/items commit independently. Any committed work makes failure report error.execution=committed and retry.safe=false; error-envelope data contains cumulative counts, insertedIds and writeErrors, plus hasMore/resumeAfter when continuation is possible. execution is rolledBack or notStarted only if nothing committed.

Request parameters
NameLocationTypeRequiredDescription
collectionIdpathstringYesNot specified in OpenAPI
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/records:deleteMany' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"expectedRevision":0,"dryRun":false,"idempotencyKey":"string","filter":{"$and":[{"_id":"example-record"},{"available":{"$gte":20}}]},"maxDocs":0}'

application/json

FieldTypeRequiredDescription
expectedRevisionintegerNoExpected revision; obtain it by reading the current object. On conflict, read again and decide how to proceed; do not overwrite blindly.
dryRunbooleanNotrue validates only; false performs writes.
idempotencyKeystringNoOptional idempotency key; reuse for the same request, never for different requests.
filterobjectYesUnsV2DataFilter. See the referenced schema in the Schemas section.
maxDocsintegerNoDefault 1000; atomic requests default to 200.
resumeAfterstringNoNot specified in OpenAPI
atomicbooleanNotrue commits the entire batch atomically, with at most 200 document actions; false commits per document. All selected writes commit together; maxDocs must be <= 200 and the complete match set must fit.
orderedbooleanNoNot specified in OpenAPI
lockTokenstringNoNot specified in OpenAPI
releasebooleanNoNot specified in OpenAPI
assertLocksarray<object>NoNot specified in OpenAPI
lockTokensobjectNoNot specified in OpenAPI
Responses
200default
Success response example

200 · application/json

{
  "code": 200,
  "msg": "success",
  "requestId": "request-id",
  "data": {
    "status": "committed",
    "replayed": false,
    "deletedCount": 1
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result.application/json
defaultFailure response. After a partial commit, error.execution=committed and retry.safe=false; data contains cumulative results.application/json

POST/uns/collections/{collectionId}/records:deleteOne

Soft-delete one record

Select one record by filter and sort, then soft-delete it. Ordinary queries no longer return the record. Related samples are physically deleted in the same transaction; restoring the record does not restore samples. dryRun=true validates only.

Request parameters
NameLocationTypeRequiredDescription
collectionIdpathstringYesNot specified in OpenAPI
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/records:deleteOne' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"expectedRevision":0,"dryRun":false,"idempotencyKey":"string","filter":{"$and":[{"_id":"example-record"},{"available":{"$gte":20}}]},"sort":[["value"]]}'

application/json

FieldTypeRequiredDescription
expectedRevisionintegerNoExpected revision; obtain it by reading the current object. On conflict, read again and decide how to proceed; do not overwrite blindly.
dryRunbooleanNotrue validates only; false performs writes.
idempotencyKeystringNoOptional idempotency key; reuse for the same request, never for different requests.
filterobjectYesUnsV2DataFilter. See the referenced schema in the Schemas section.
sortarray<array<object>>NoUnsV2PipelineSort. See the referenced schema in the Schemas section.
lockTokenstringNoNot specified in OpenAPI
releasebooleanNoNot specified in OpenAPI
assertLocksarray<object>NoNot specified in OpenAPI
returnDocumentstringNonone returns counts only; before/after includes value from the same write transaction and requires read access. No match returns value:null; before is null for an insertion.
projectionobjectNoInclude or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained.
Responses
200default
Success response example

200 · application/json

{
  "code": 200,
  "msg": "success",
  "requestId": "request-id",
  "data": {
    "status": "committed",
    "replayed": false,
    "deletedCount": 1
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/collections/{collectionId}/records:explain

Assess query and write scope

Read-only assessment of find, updateMany or deleteMany plans and a bounded match scope, returning sampleIds without writing. The assessment does not guarantee later data state.

Request parameters
NameLocationTypeRequiredDescription
collectionIdpathstringYesNot specified in OpenAPI
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/records:explain' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"filter":{"$and":[{"_id":"example-record"},{"available":{"$gte":20}}]},"sort":[["value"]],"op":"find","limit":0}'

application/json

FieldTypeRequiredDescription
filterobjectNoUnsV2DataFilter. See the referenced schema in the Schemas section.
sortarray<array<object>>NoUnsV2PipelineSort. See the referenced schema in the Schemas section.
opstringNoNot specified in OpenAPI
limitintegerNoNot specified in OpenAPI
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "op": "string",
    "writesCommitted": false,
    "executionGuaranteed": false,
    "matchedCount": 0,
    "capped": false
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Query result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/collections/{collectionId}/records:find

Query business records

Query active records in a collection using filter, sort, projection and limit/cursor. Return items and pageInfo; each record's business fields are nested under data. On the first page, count:{max} includes capped total:{count,capped} from the same snapshot (default limit 10000, maximum 100000). Continuation cursor cannot include count.

Request parameters
NameLocationTypeRequiredDescription
collectionIdpathstringYesNot specified in OpenAPI
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/records:find' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"filter":{"$and":[{"_id":"example-record"},{"available":{"$gte":20}}]},"sort":[["value"]],"projection":{},"limit":0,"cursor":"string"}'

application/json

FieldTypeRequiredDescription
filterobjectNoUnsV2DataFilter. See the referenced schema in the Schemas section.
sortarray<array<object>>NoUnsV2PipelineSort. See the referenced schema in the Schemas section.
projectionobjectNoInclude or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained.
limitintegerNoNot specified in OpenAPI
cursorstringNoNot specified in OpenAPI
countobjectNoCloudRecordTotalOption. See the referenced schema in the Schemas section.
Responses
200default
Success response example

200 · application/json

{
  "code": 200,
  "msg": "success",
  "requestId": "request-id",
  "data": {
    "items": [
      {
        "id": "r1",
        "collectionId": "devices",
        "data": {
          "temperature": 25
        },
        "revision": 1,
        "createdAt": 1792454400000,
        "updatedAt": 1792454400000,
        "sourceId": null,
        "sourceTime": null
      }
    ],
    "pageInfo": {
      "mode": "cursor",
      "hasMore": false,
      "nextCursor": null,
      "nextPage": null,
      "snapshotScope": "thisRequestOnly"
    },
    "total": {
      "count": 1,
      "capped": false
    }
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesCloudRecordPage. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Query result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/collections/{collectionId}/records:get

Read records by ID

Read at most 100 active records by primary key with optional projection. items follow request order; nonexistent, soft-deleted and employee-rule-filtered IDs all appear in missing without distinguishing absence from unreadability.

Request parameters
NameLocationTypeRequiredDescription
collectionIdpathstringYesNot specified in OpenAPI
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/records:get' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"ids":["string"],"projection":{}}'

application/json

FieldTypeRequiredDescription
idsarray<string>YesNot specified in OpenAPI
projectionobjectNoInclude or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained.
Responses
200default
Success response example

200 · application/json

{
  "code": 200,
  "msg": "success",
  "requestId": "request-id",
  "data": {
    "items": [
      {
        "id": "r1",
        "collectionId": "devices",
        "data": {
          "temperature": 25
        },
        "revision": 1,
        "createdAt": 1792454400000,
        "updatedAt": 1792454400000,
        "sourceId": null,
        "sourceTime": null
      }
    ],
    "missing": [
      "r2"
    ]
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesCloudRecordGetResult. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Query result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/collections/{collectionId}/records:lock

Lock or claim records

Acquire leases atomically by ids, or claim available records using filter, sort and limit. ttlMs defaults to 30000, with range 1000–300000 milliseconds. Return lease tokens and records. Collection read/write permission is required; locks do not affect reads.

Request parameters
NameLocationTypeRequiredDescription
collectionIdpathstringYesNot specified in OpenAPI
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/records:lock' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"ids":["string"],"filter":{"$and":[{"_id":"example-record"},{"available":{"$gte":20}}]},"sort":[["value"]],"limit":0,"ttlMs":0}'

application/json

FieldTypeRequiredDescription
idsarray<string>NoNot specified in OpenAPI
filterobjectNoUnsV2DataFilter. See the referenced schema in the Schemas section.
sortarray<array<object>>NoUnsV2PipelineSort. See the referenced schema in the Schemas section.
limitintegerNoNot specified in OpenAPI
ttlMsintegerNoNot specified in OpenAPI
labelstringNoNot specified in OpenAPI
Responses
200default
Success response example

200 · application/json

{
  "code": 200,
  "msg": "success",
  "requestId": "request-id",
  "data": {
    "locks": [
      {
        "id": "r1",
        "token": "lease-token",
        "expiresAt": 1792454430000,
        "fence": 1,
        "record": {
          "id": "r1",
          "collectionId": "devices",
          "data": {
            "temperature": 25
          },
          "revision": 1,
          "createdAt": 1792454400000,
          "updatedAt": 1792454400000,
          "sourceId": null,
          "sourceTime": null
        }
      }
    ]
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/collections/{collectionId}/records:renew

Renew record locks

Renew currently held leases using id and token in locks. ttlMs defaults to 30000, with range 1000–300000 milliseconds.

Request parameters
NameLocationTypeRequiredDescription
collectionIdpathstringYesNot specified in OpenAPI
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/records:renew' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"locks":[{"id":"value","token":"value"}],"ttlMs":0}'

application/json

FieldTypeRequiredDescription
locksarray<object>YesNot specified in OpenAPI
ttlMsintegerNoNot specified in OpenAPI
Responses
200default
Success response example

200 · application/json

{
  "code": 200,
  "msg": "success",
  "requestId": "request-id",
  "data": {
    "locks": [
      {
        "id": "r1",
        "expiresAt": 1792454460000
      }
    ]
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/collections/{collectionId}/records:replaceOne

Replace one record

Select one record by filter and sort, then fully replace business data with replacement. upsert=true may insert when unmatched, requiring ID or complete unique-key equality. dryRun=true validates only.

Request parameters
NameLocationTypeRequiredDescription
collectionIdpathstringYesNot specified in OpenAPI
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/records:replaceOne' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"expectedRevision":0,"dryRun":false,"idempotencyKey":"string","filter":{"$and":[{"_id":"example-record"},{"available":{"$gte":20}}]},"sort":[["value"]]}'

application/json

FieldTypeRequiredDescription
expectedRevisionintegerNoExpected revision; obtain it by reading the current object. On conflict, read again and decide how to proceed; do not overwrite blindly.
dryRunbooleanNotrue validates only; false performs writes.
idempotencyKeystringNoOptional idempotency key; reuse for the same request, never for different requests.
filterobjectYesUnsV2DataFilter. See the referenced schema in the Schemas section.
sortarray<array<object>>NoUnsV2PipelineSort. See the referenced schema in the Schemas section.
replacementobjectYesNot specified in OpenAPI
upsertbooleanNoInsert if unmatched; filter must include _id equality or complete equality on a ready unique index. Concurrent conflicts do not create duplicate records.
lockTokenstringNoNot specified in OpenAPI
releasebooleanNoNot specified in OpenAPI
assertLocksarray<object>NoNot specified in OpenAPI
returnDocumentstringNonone returns counts only; before/after includes value from the same write transaction and requires read access. No match returns value:null; before is null for an insertion.
projectionobjectNoInclude or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained.
Responses
200default
Success response example

200 · application/json

{
  "code": 200,
  "msg": "success",
  "requestId": "request-id",
  "data": {
    "status": "committed",
    "replayed": false,
    "matchedCount": 1,
    "modifiedCount": 1
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/collections/{collectionId}/records:restore

Restore records by ID

Restore at most 100 soft-deleted records by ids. Execute atomically and revalidate current schema and unique indexes. Any conflict rolls back everything; samples physically deleted with records are not restored. dryRun=true validates only.

Request parameters
NameLocationTypeRequiredDescription
collectionIdpathstringYesNot specified in OpenAPI
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/records:restore' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"ids":["string"],"dryRun":false,"idempotencyKey":"string"}'

application/json

FieldTypeRequiredDescription
idsarray<string>YesNot specified in OpenAPI
dryRunbooleanNotrue validates only; false performs writes.
idempotencyKeystringNoOptional idempotency key; reuse for the same request, never for different requests.
Responses
200default
Success response example

200 · application/json

{
  "code": 200,
  "msg": "success",
  "requestId": "request-id",
  "data": {
    "status": "committed",
    "replayed": false,
    "restoredCount": 1,
    "restoredIds": [
      "r1"
    ]
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/collections/{collectionId}/records:unlock

Release record locks

Ordinary release uses locks with id/token. Administrators may force release with ids and force=true. Apps/API keys cannot force release.

Request parameters
NameLocationTypeRequiredDescription
collectionIdpathstringYesNot specified in OpenAPI
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/records:unlock' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"locks":[{"id":"value","token":"value"}],"ids":["string"],"force":false}'

application/json

FieldTypeRequiredDescription
locksarray<object>NoNot specified in OpenAPI
idsarray<string>NoNot specified in OpenAPI
forcebooleanNoNot specified in OpenAPI
Responses
200default
Success response example

200 · application/json

{
  "code": 200,
  "msg": "success",
  "requestId": "request-id",
  "data": {
    "unlockedCount": 1
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/collections/{collectionId}/records:updateMany

Update multiple records

Update records matching filter; upsert is not supported. maxDocs bounds this pass and resumeAfter continues it; atomic and ordered control batch execution. dryRun=true validates only. With atomic=false, chunks/items commit independently. Any committed work makes failure report error.execution=committed and retry.safe=false; error-envelope data contains cumulative counts, insertedIds and writeErrors, plus hasMore/resumeAfter when continuation is possible. execution is rolledBack or notStarted only if nothing committed.

Request parameters
NameLocationTypeRequiredDescription
collectionIdpathstringYesNot specified in OpenAPI
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/records:updateMany' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"expectedRevision":0,"dryRun":false,"idempotencyKey":"string","filter":{"$and":[{"_id":"example-record"},{"available":{"$gte":20}}]},"update":{}}'

application/json

FieldTypeRequiredDescription
expectedRevisionintegerNoExpected revision; obtain it by reading the current object. On conflict, read again and decide how to proceed; do not overwrite blindly.
dryRunbooleanNotrue validates only; false performs writes.
idempotencyKeystringNoOptional idempotency key; reuse for the same request, never for different requests.
filterobjectYesUnsV2DataFilter. See the referenced schema in the Schemas section.
updateobjectYesupdate operators: $set/$unset/$inc/$mul/$min/$max/$rename/$currentDate/$setOnInsert/$push/$addToSet/$pop/$pull/$pullAll. Business paths omit data.; _id and _meta are read-only.
arrayFiltersarray<object>NoNot specified in OpenAPI
maxDocsintegerNoDefault 1000; atomic requests default to 200.
resumeAfterstringNoNot specified in OpenAPI
atomicbooleanNotrue commits the entire batch atomically, with at most 200 document actions; false commits per document. All selected writes commit together; maxDocs must be <= 200 and the complete match set must fit.
orderedbooleanNoNot specified in OpenAPI
lockTokenstringNoNot specified in OpenAPI
releasebooleanNoNot specified in OpenAPI
assertLocksarray<object>NoNot specified in OpenAPI
lockTokensobjectNoNot specified in OpenAPI
Responses
200default
Success response example

200 · application/json

{
  "code": 200,
  "msg": "success",
  "requestId": "request-id",
  "data": {
    "status": "committed",
    "replayed": false,
    "matchedCount": 1,
    "modifiedCount": 1
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result.application/json
defaultFailure response. After a partial commit, error.execution=committed and retry.safe=false; data contains cumulative results.application/json

POST/uns/collections/{collectionId}/records:updateOne

Update one record

Select one record by filter and sort, then apply update. upsert=true may insert when unmatched, requiring ID or complete unique-key equality. dryRun=true validates only.

Request parameters
NameLocationTypeRequiredDescription
collectionIdpathstringYesNot specified in OpenAPI
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/collections/{collectionId}/records:updateOne' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"expectedRevision":0,"dryRun":false,"idempotencyKey":"string","filter":{"$and":[{"_id":"example-record"},{"available":{"$gte":20}}]},"sort":[["value"]]}'

application/json

FieldTypeRequiredDescription
expectedRevisionintegerNoExpected revision; obtain it by reading the current object. On conflict, read again and decide how to proceed; do not overwrite blindly.
dryRunbooleanNotrue validates only; false performs writes.
idempotencyKeystringNoOptional idempotency key; reuse for the same request, never for different requests.
filterobjectYesUnsV2DataFilter. See the referenced schema in the Schemas section.
sortarray<array<object>>NoUnsV2PipelineSort. See the referenced schema in the Schemas section.
updateobjectYesupdate operators: $set/$unset/$inc/$mul/$min/$max/$rename/$currentDate/$setOnInsert/$push/$addToSet/$pop/$pull/$pullAll. Business paths omit data.; _id and _meta are read-only.
arrayFiltersarray<object>NoNot specified in OpenAPI
upsertbooleanNoInsert if unmatched; filter must include _id equality or complete equality on a ready unique index. Concurrent conflicts do not create duplicate records.
lockTokenstringNoNot specified in OpenAPI
releasebooleanNoNot specified in OpenAPI
assertLocksarray<object>NoNot specified in OpenAPI
returnDocumentstringNonone returns counts only; before/after includes value from the same write transaction and requires read access. No match returns value:null; before is null for an insertion.
projectionobjectNoInclude or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained.
Responses
200default
Success response example

200 · application/json

{
  "code": 200,
  "msg": "success",
  "requestId": "request-id",
  "data": {
    "status": "committed",
    "replayed": false,
    "matchedCount": 1,
    "modifiedCount": 1
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/records:queryBatch

Batch-read page data

Execute at most 20 read-only queries (find/count/distinct/aggregate/get, optionally across collections) with one admission, authorization snapshot and repeatable-read snapshot. Requires uns.read and record:read on each collection. results correlates by query id and returns {ok:true,data} or {ok:false,error}; validation, compilation, authorization and individual SQL errors affect only that item. At most 2000 rows and 8 MiB per batch, otherwise 413 RESPONSE_TOO_LARGE. Any statement timeout returns 504 QUERY_TIMEOUT; neither case returns partial results.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/records:queryBatch' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"queries":["string"]}'

application/json

FieldTypeRequiredDescription
queriesarray<object>YesNot specified in OpenAPI
Responses
200default
Success response example

200 · application/json

{
  "code": 200,
  "msg": "success",
  "requestId": "request-id",
  "data": {
    "results": {
      "open": {
        "ok": true,
        "data": {
          "items": [
            {
              "id": "r1",
              "collectionId": "devices",
              "data": {
                "temperature": 25
              },
              "revision": 1,
              "createdAt": 1792454400000,
              "updatedAt": 1792454400000,
              "sourceId": null,
              "sourceTime": null
            }
          ],
          "pageInfo": {
            "mode": "cursor",
            "hasMore": false,
            "nextCursor": null,
            "nextPage": null,
            "snapshotScope": "thisRequestOnly"
          },
          "total": {
            "count": 1,
            "capped": false
          }
        }
      },
      "byStatus": {
        "ok": false,
        "error": {
          "code": "INVALID_REQUEST",
          "reason": "unknown field status",
          "details": [],
          "execution": "notStarted",
          "retry": {
            "safe": false
          },
          "queryId": "byStatus"
        }
      }
    }
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Query result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

GET/uns/records:subscribe

Subscribe to record changes (SSE)

GET; Accept must be exactly text/event-stream. collectionIds is a repeated query parameter, at most 64. Omission selects all readable collections for the identity, or all collections granted to the app. At most 100 recordIds are allowed and require exactly one collection. Each collection requires record:read. The connection immediately sends heartbeat with the current position as id, then every 15 seconds. change events arrive in commit order and contain only collectionId, recordId, revision, change (record/delete), restricted and occurredAt. Read business data again by ID. restricted=true indicates employee data rules; servers forwarding under app identity may forward only collection-level notifications to browsers. Reconnect with the last event id as Last-Event-ID. Exceeding 24-hour retention or narrowing authorization sends reset and closes the connection. Reread data and subscribe without Last-Event-ID. Authorization is rechecked every 30 seconds. Exceeding the connection limit returns 429 OVERLOADED.

Request parameters
NameLocationTypeRequiredDescription
collectionIdsqueryarray<string>NoSubscribed collections, at most 64; each requires record:read. Omission selects all collections readable by the identity, or all app-granted collections. Authorization-scope changes send reset.
recordIdsqueryarray<string>NoSubscribe only to these records, at most 100; requires exactly one collectionId.
Last-Event-IDheaderstringNoLast received event id; omission starts from the current position.
AcceptheaderstringYesMust be exactly text/event-stream.
Responses
200default
Success response example

200 · text/event-stream

"event: heartbeat\nid: c1\ndata: {\"at\":1792454400000}\n\nevent: change\nid: c2\ndata: {\"eventId\":\"c2\",\"collectionId\":\"work_orders\",\"recordId\":\"wo-1\",\"revision\":3,\"change\":\"record\",\"restricted\":false,\"occurredAt\":1792454401000}\n\n"
Response status meanings
StatusMeaningMedia type
200SSE event stream; each frame's data is JSON.text/event-stream
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/records:transact

Execute a business-data transaction

Execute cross-collection record operations atomically, correlating results by opId, with dependsOn and result references. dryRun=true preflights only. mode is auto, sync or async; query accepted asynchronous work by jobId. App credentials support only auto/sync. Collection permissions are checked for each operation.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/records:transact' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"idempotencyKey":"string","mode":"auto","items":[{"update":"value","arrayFilters":"value","upsert":"value","opId":"value","action":"value"}],"dryRun":false,"assertLocks":[{"collectionId":"value","id":"value","token":"value"}]}'

application/json

FieldTypeRequiredDescription
idempotencyKeystringNoOptional idempotency key; reuse for the same request, never for different requests.
modestringNoNot specified in OpenAPI
itemsarray<object>YesNot specified in OpenAPI
dryRunbooleanNotrue validates only; false performs writes.
assertLocksarray<object>NoNot specified in OpenAPI
Responses
200default
Success response example

200 · application/json

{
  "code": 200,
  "msg": "success",
  "requestId": "request-id",
  "data": {
    "status": "committed",
    "replayed": false,
    "results": [
      {
        "opId": "read",
        "action": "record.read",
        "id": "r1",
        "collectionId": "devices",
        "status": "read",
        "revision": 1,
        "data": {
          "temperature": 25
        },
        "document": {
          "id": "r1",
          "collectionId": "devices",
          "data": {
            "temperature": 25
          },
          "revision": 1,
          "createdAt": 1792454400000,
          "updatedAt": 1792454400000,
          "sourceId": null,
          "sourceTime": null
        }
      }
    ]
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesdryRun=false returns transaction results; dryRun=true returns a rolled-back preflight plan.
Response status meanings
StatusMeaningMedia type
200Operation result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

Apps and grants

App and grant endpoints

POST/uns/app-data-policy/get

Read app data grants

Read collection grants for a real app. Current Builder sessions and full_access personal/Agent keys may call this endpoint. Platform system credentials (service/system/full_access with uns.write) may read every App in their current Workspace, including Apps other than their Builder target. This read access does not grant policy update authority. Ordinary service keys and runtime App credentials cannot call this endpoint.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/app-data-policy/get' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"appId":"string"}'

application/json

FieldTypeRequiredDescription
appIdstring (uuid)YesNot specified in OpenAPI
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "appId": "string",
    "revision": 0,
    "version": "cloud-hosted-app-data/v1",
    "status": "active",
    "collections": [
      "value"
    ]
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesCloudAppDataPolicy. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Query result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/app-data-policy/update

Update app data grants

Use changes to atomically add, modify or remove grants by collection. Omitted fields remain unchanged; other collections or employee rules need not be resubmitted. collections still performs explicit full replacement; the two modes are mutually exclusive. permissionLevel values read/readwrite/manage mean record read-only, read-write and management including deletion, and are mutually exclusive with low-level permissions. New grants cannot exceed the manager's capabilities. Stream request boundaries remain; expectedRevision and idempotencyKey are required. An unchanged retry with the same key replays the result without expanding authorization again.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/app-data-policy/update' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"appId":"string","expectedRevision":0,"status":"active","collections":[{"alias":"value","collectionId":"value","permissions":"value","dataRule":"value"}],"idempotencyKey":"string"}'

application/json

FieldTypeRequiredDescription
appIdstring (uuid)YesNot specified in OpenAPI
expectedRevisionintegerYes0 attaches a data policy to an existing hosted App; positive revisions update it with CAS.
statusstringYesNot specified in OpenAPI
collectionsarray<object>NoExplicitly replace all grants; choose exactly one of this and changes.
idempotencyKeystringYesRequired idempotency key; reuse for the same request, never for a different request.
dryRunbooleanYestrue validates only; false performs writes.
ruleContractVersionstringNoConfirmation is required when full replacement involves employee rules, or incremental changes edit/clear rules or remove a grant containing rules. Retained rules need not be resubmitted during incremental updates.
changesarray<object>NoAtomic incremental updates by collectionId; no duplicate collection within the batch. New grants require alias and permissions; omitted update fields retain their values.
Responses
200default
Success response example

200 · application/json

{
  "code": 200,
  "msg": "success",
  "requestId": "request-id",
  "data": {
    "status": "committed",
    "replayed": false,
    "results": [
      {
        "opId": "item-0",
        "action": "meta.replace",
        "kind": "app",
        "id": "example-id",
        "revision": 1,
        "status": "updated"
      }
    ]
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesDocCloudAppDataPolicyUpdateOutcome. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/app-stream-access/list

Page through an app's stream grants

The server summarizes configured entries, stream names, granted actions and current blocking reasons. Returns non-revoked grants by default; includeInactive=1 includes revoked entries. This is a current grant snapshot. Execution rechecks authorization and does not expand the app's global permission ceiling.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/app-stream-access/list' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"appId":"string","streamId":"string","page":0,"size":0,"includeInactive":1}'

application/json

FieldTypeRequiredDescription
appIdstring (uuid)YesNot specified in OpenAPI
streamIdstringNoNot specified in OpenAPI
pageintegerNoNot specified in OpenAPI
sizeintegerNoNot specified in OpenAPI
includeInactiveintegerNo1 includes revoked grants; 2 (default) returns only non-revoked grants.
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "items": [
      "value"
    ],
    "page": 0,
    "size": 0,
    "total": 0
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesCloudAppStreamAccessPage. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Query result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/app-stream-policy/get

Read an app's stream permission ceiling

Read the real app's control permission ceiling using a current Builder session or full_access personal/agent key, with uns.write and stream.requests.manage. This ceiling applies together with individual stream-entry grants.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/app-stream-policy/get' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"appId":"string"}'

application/json

FieldTypeRequiredDescription
appIdstring (uuid)YesNot specified in OpenAPI
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "appId": "string",
    "revision": 0,
    "version": "cloud-hosted-app-stream/v1",
    "status": "active",
    "authorityStatus": "available"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesCloudAppStreamPolicy. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Query result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/app-stream-policy/update

Update an app's stream permission ceiling

Reuse the existing app policy while preserving collection grants and employee rules; expectedRevision, idempotencyKey and dryRun are required. Available only to a current Builder session or full_access personal/agent key with uns.write and stream.requests.manage. Does not grant any stream entry automatically or upgrade the app key.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/app-stream-policy/update' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"appId":"string","expectedRevision":0,"status":"active","idempotencyKey":"string","dryRun":false}'

application/json

FieldTypeRequiredDescription
appIdstring (uuid)YesNot specified in OpenAPI
expectedRevisionintegerYesShared hosted policy metadata revision. 0 attaches to a real App; either data or Stream policy updates increment this revision.
statusstringYesNot specified in OpenAPI
idempotencyKeystringYesRequired idempotency key; reuse for the same request, never for a different request.
dryRunbooleanYestrue validates only; false performs writes.
platformPermissionsarray<string>YesNot specified in OpenAPI
messageTopicsarray<object>NoNot specified in OpenAPI
Responses
200default
Success response example

200 · application/json

{
  "code": 200,
  "msg": "success",
  "requestId": "request-id",
  "data": {
    "status": "committed",
    "replayed": false,
    "results": [
      {
        "opId": "item-0",
        "action": "meta.replace",
        "kind": "app",
        "id": "example-id",
        "revision": 1,
        "status": "updated"
      }
    ]
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesDocCloudAppStreamPolicyUpdateOutcome. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/app/collections/archive

Archive this app's collection

Only platform-issued app keys may archive collections owned by this app (ownerAppId). The transaction archives the collection and removes the calling app grant, retaining records, samples and query indexes without tombstoning individual records. New archives have no record-count limit. An app may retain at most 64 archived collections, otherwise 409 APP_QUOTA_EXCEEDED. Topic, Source/Stream and other references do not block archiving. Referring configurations remain; existing grants that have not been revoked may read historical data, while writes are rejected. During app collection reclaim or purge, return retryable 503 TEMPORARILY_UNAVAILABLE with data.reason=COLLECTION_TEARDOWN_IN_PROGRESS and data.operation=reclaim/purge. restore restores the collection state; independently deleted records retain their previous state.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/app/collections/archive' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"alias":"string"}'

application/json

FieldTypeRequiredDescription
aliasstringYesCase-insensitively unique app collection alias, matching src/data/collections.ts.
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "alias": "string",
    "collectionId": "string",
    "revision": 0,
    "archived": false
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/app/collections/ensure

Declare collections for this app

Only platform-issued app keys (app/internal/full_access, non-MCP, no employee delegation) are accepted. Declare collections in a batch. Missing collections are created in the app directory and granted record:read/write in the same transaction, plus record:delete if the key has uns.delete. Existing collections only widen through join and union indexes. Annotations (title/description/unit and collection description) are written only on creation; later changes use schema:replace. Stale grants pointing to this app's archived or hard-deleted collections are replaced in the same transaction. The batch is atomic. Any type conflict, join that cannot widen the current structure, or widening that breaks employee-rule fields leaves everything unchanged and returns 409 SCHEMA_CONFLICT with data.conflicts. Administrator-revoked grants return 403 APP_GRANT_REVOKED and are not automatically restored. Exceeding per-app quotas (64 collections, 64 indexes) returns 409 APP_QUOTA_EXCEEDED. Exceeding workspace index quota, counting physically existing non-retired indexes, returns 409 INDEX_QUOTA_EXCEEDED. During app collection reclaim (app deletion) or purge (preview reset), creation, widening or stale-grant cleanup returns retryable 503 TEMPORARILY_UNAVAILABLE with data.reason=COLLECTION_TEARDOWN_IN_PROGRESS and data.operation=reclaim/purge. Fully unchanged batches still succeed. When the App owns no collection with the alias but exactly one grant has the same alias and points to an active collection the App does not own, ensure borrows it: if the stored schema and indexes cover the declaration it returns that collectionId with status=unchanged. If the declaration needs a wider schema, a new index or a longer TTL, it returns 409 SCHEMA_CONFLICT (reason=SHARED_SCHEMA_READONLY); type conflicts still report TYPE_CONFLICT and a shorter TTL reports TTL_REQUIRES_REPLACE. A borrowed collection is never widened or indexed and does not count toward the App quota. While the owner App is in the trash the collection is read-only and can still be borrowed if it was not archived before the move: the declaration is not compared, status=unchanged is always returned, and ignored carries reason=OWNER_APP_TRASHED. When dataAppContext does not show the collection to the credential, for example because the grant carries an employee data rule, the result exposes no fields: indexStatus is empty, notes with a field path are omitted, and conflicts with a path report only SHARED_SCHEMA_READONLY without path or types. dryRun=true computes only.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/app/collections/ensure' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"collections":[{"alias":"value","name":"value","recordSchema":"value","indexes":"value","description":"value"}],"dryRun":false}'

application/json

FieldTypeRequiredDescription
collectionsarray<object>YesNot specified in OpenAPI
dryRunbooleanNotrue validates only; false performs writes.
Responses
200default
Success response example

200 · application/json

{
  "code": 200,
  "msg": "success",
  "requestId": "request-id",
  "data": {
    "status": "committed",
    "replayed": false,
    "results": [
      {
        "opId": "item-0",
        "action": "meta.create",
        "kind": "appCollection",
        "id": "example-id",
        "revision": 1,
        "status": "created"
      }
    ]
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/app/collections/list

List an app's collections

A session or personal API key with uns.read lists collections owned by appId, including archived collections, returning schemas, indexes/indexStatus and retired without grant details.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/app/collections/list' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"appId":"string"}'

application/json

FieldTypeRequiredDescription
appIdstringYesNot specified in OpenAPI
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "appId": "string",
    "collections": [
      "value"
    ]
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Query result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/app/collections/restore

Restore this app's archived collection

Only platform-issued app keys may restore the most recently archived collection for the alias, restore grants while reusing those still referencing it, and reuse retained indexes without rewriting records. Only legacy recordsArchivedAt tombstones restore their original record batch (at most 2000, otherwise 409 COLLECTION_TOO_LARGE). Unique conflicts roll back everything with 409 DUPLICATE_KEY. If ensure recreated a same-name collection, return 409 DUPLICATE with data.activeCollectionId; archive the active collection first. During app collection reclaim or purge, return retryable 503 TEMPORARILY_UNAVAILABLE with data.reason=COLLECTION_TEARDOWN_IN_PROGRESS and data.operation=reclaim/purge.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/app/collections/restore' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"alias":"string"}'

application/json

FieldTypeRequiredDescription
aliasstringYesCase-insensitively unique app collection alias, matching src/data/collections.ts.
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "alias": "string",
    "collectionId": "string",
    "revision": 0,
    "archived": false
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/app/collections/schema:replace

Replace this app collection's schema

Only platform-issued app keys are accepted, for explicit worker-driven narrowing such as removing fields/enum values/indexes or changing required fields; runtime code must not call it. expectedRevision is required. Narrowing validates active records up to 10,000 records and 16MB; larger migrations return 409 SCHEMA_MIGRATION_TOO_LARGE. At most 20 violations are returned with 409 SCHEMA_DATA_VIOLATION; data.violations contains only recordId/path. References from topic fields or app data rules return 409 REFERENCED. Removed paths and enum values enter retired and cannot be reintroduced by ensure. Indexes are replaced exactly and remain subject to per-app quota (64) and workspace index quota. Annotation-only or description-only changes return status=widened. Failure to acquire the lock returns retryable 503 TEMPORARILY_UNAVAILABLE. During app collection reclaim or purge, an actual replacement returns retryable 503 TEMPORARILY_UNAVAILABLE with data.reason=COLLECTION_TEARDOWN_IN_PROGRESS and data.operation=reclaim/purge. dryRun=true validates on a read-only snapshot without holding locks.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/app/collections/schema:replace' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"alias":"string","recordSchema":{"additionalProperties":false,"description":"string","enum":["value"],"items":{"additionalProperties":"value","description":"value","enum":"value","items":"value","maximum":"value"},"maximum":0},"indexes":[{"kind":"value","path":"value","paths":"value","target":"value","unique":"value"}],"expectedRevision":0,"description":"string"}'

application/json

FieldTypeRequiredDescription
aliasstringYesCase-insensitively unique app collection alias, matching src/data/collections.ts.
recordSchemaobjectYesSchema. See the referenced schema in the Schemas section.
indexesarray<object>YesReplace indexes exactly as requested; [] removes all indexes.
expectedRevisionintegerYesNot specified in OpenAPI
descriptionstringNoNot specified in OpenAPI
dryRunbooleanNotrue validates only; false performs writes.
Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "alias": "string",
    "collectionId": "string",
    "revision": 0,
    "status": "unchanged",
    "retired": {
      "paths": "value",
      "enumValues": "value"
    }
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Operation result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

POST/uns/app/context

Read current app data context

Available only to current managed app credentials; returns the real app name and intersection of collection grants and key permissions. A new App without a data policy returns dataState=uninitialized, revision=0 and empty collections without creating a policy or granting access; declaring its actual collections through appCollectionsEnsure makes the state ready. An administrator-disabled policy returns HTTP 403 with reason APP_DATA_POLICY_DISABLED and is never re-enabled automatically. collections[] includes definition revision, recordSchema, indexes, indexStatus and ttl. Both owned and granted collections include ownerAppId (omitted for workspace collections), name, description and directoryPath (directory names from the workspace root, in the same shape as appCollectionsEnsure). Apps use only this endpoint to read collection structures. collections[].createCapability provides allowed, an independent writable input schema and version bindings from the current employee's actual creation rules. Do not infer creation rights from generic record:write or read schemas. limits exposes count, totals, queryBatch, get, subscriptions, TTL, concurrency and idempotency-window limits for adaptive clients. Hints are not credentials; writes and replay are authorized again at runtime. Identity comes only from server authentication. App ID and issuer-user parameters are not accepted; credentials are not returned.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/uns/app/context' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{}'

application/json

This request body has no declared object fields in OpenAPI.

Responses
200default
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "requestId": "string",
  "data": {
    "appId": "string",
    "collections": [
      "value"
    ],
    "name": "string",
    "platformPermissions": [
      "value"
    ],
    "revision": 0
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
requestIdstringYesSee the referenced schema in the Schemas section.
dataobjectYesAppContext. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200Query result.application/json
defaultFailure response; see Common errors for HTTP statuses and shared error fields.application/json

Platform information

POST/capabilities/discover

Discover workspace capabilities and contract versions

Requires a valid Workspace API key and an empty JSON object of at most 4KiB UTF-8 bytes; query parameters and Workspace overrides are rejected. Success returns CapabilityDiscoverV2Resp directly, without a code/msg/data envelope. Capabilities combine public release gates, Workspace feature gates and explicit key grants; Namespace and Stream request report publication and authorization only, with readiness_unknown and no runtime probe. Source/Stream retain evidence for individual operation prerequisites. state=ready does not replace resource authorization or an actual execution receipt. Contract 2.0 uses state, reasonCode and operations and omits redundant boolean states. Actual operations enforce backend execution safety checks and return their authoritative errors. Clients may ignore unknown extension fields. Version labels do not indicate device acknowledgements or npm package versions. Errors return CapabilityErrorResp with the actual HTTP status and do not expose internal exceptions.

Responses
200400401403500503
Success response example

200 · application/json

{
  "product": "cloud",
  "productVersion": "string",
  "contractVersion": "2.0",
  "apiContractVersions": [
    "string"
  ],
  "sdkContractVersions": [
    "string"
  ]
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
productobjectYesSee the referenced schema in the Schemas section.
productVersionstringNoSee the referenced schema in the Schemas section.
contractVersionobjectYesSee the referenced schema in the Schemas section.
apiContractVersionsarray<string>YesSee the referenced schema in the Schemas section.
sdkContractVersionsarray<string>YesSee the referenced schema in the Schemas section.
capabilitiesarray<object>YesSee the referenced schema in the Schemas section.
deprecationsarray<object>YesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200application/json
400Platform operation failed.application/json
401Platform operation failed.application/json
403Platform operation failed.application/json
500Platform operation failed.application/json
503Platform operation failed.application/json

POST/info

info

Responses
200
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "data": {
    "capabilities": [
      "value"
    ],
    "mqttBroker": "string",
    "name": "string",
    "version": "string"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
dataobjectYesPlatformInfoResp. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200application/json

Identity

POST/auth/whoami

whoami

Responses
200
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "data": {
    "apiKeyName": "string",
    "email": "string",
    "keyPrefix": "string",
    "keyType": "string",
    "permissions": [
      "value"
    ]
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
dataobjectYesPlatformAuthWhoamiResp. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200application/json

Files

POST/assets/files

Request a file upload

Request a file upload

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/assets/files' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"appInstanceId":"string","business":"string","contentType":"string","fileName":"string","sessionId":"string"}'

application/json

FieldTypeRequiredDescription
appInstanceIdstringNoNot specified in OpenAPI
businessstringNoNot specified in OpenAPI
contentTypestringNoNot specified in OpenAPI
fileNamestringYesNot specified in OpenAPI
sessionIdstringNoNot specified in OpenAPI
sizeintegerYesNot specified in OpenAPI
useBystringNoNot specified in OpenAPI
visibilitystringNoNot specified in OpenAPI
Responses
200
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "data": {
    "expiresAt": 0,
    "fileId": 0,
    "filePath": "string",
    "fileUrl": "string",
    "postFields": {}
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
dataobjectYesPlatformAssetFileUploadResp. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200application/json

POST/assets/files/delete

Delete a file

Delete a file

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/assets/files/delete' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"filePath":"string"}'

application/json

FieldTypeRequiredDescription
filePathstringYesNot specified in OpenAPI
Responses
200
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "data": {
    "deleted": false
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
dataobjectYesPlatformAssetFileDeleteResp. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200application/json

GET/assets/files/download

Download a file

Returns HTTP 302 with the download URL in Location and no JSON body. Private files use signed URLs; public files use persistent public URLs. When following the redirect, do not forward x-api-key or other credential headers to a different origin. The SDK already follows this rule.

Request parameters
NameLocationTypeRequiredDescription
filePathquerystringYesNot specified in OpenAPI
responseContentDispositionquerystringNoNot specified in OpenAPI
Responses
302
Response status meanings
StatusMeaningMedia type
302Redirect to the public or short-lived signed download URL.—

POST/assets/files/multipart/abort

Abort a multipart upload

Abort the multipart upload, remove remaining parts and release reserved quota.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/assets/files/multipart/abort' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"fileKey":"string","uploadId":"string"}'

application/json

FieldTypeRequiredDescription
fileKeystringYesNot specified in OpenAPI
uploadIdstringYesNot specified in OpenAPI
Responses
200
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "data": {
    "aborted": 0
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
dataobjectYesPlatformAssetFileMultipartAbortResp. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200application/json

POST/assets/files/multipart/complete

Complete a multipart upload

Complete the upload after validating actual sizes with ListParts and reconciling reserved quota; change the file from temp to active.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/assets/files/multipart/complete' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"fileKey":"string","parts":[{"etag":"value","partNumber":"value"}],"uploadId":"string"}'

application/json

FieldTypeRequiredDescription
fileKeystringYesNot specified in OpenAPI
partsarray<object>YesNot specified in OpenAPI
uploadIdstringYesNot specified in OpenAPI
Responses
200
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "data": {
    "expiresAt": 0,
    "filePath": "string",
    "fileUrl": "string",
    "sizeBytes": 0
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
dataobjectYesPlatformAssetFileMultipartCompleteResp. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200application/json

POST/assets/files/multipart/init

Initialize a multipart upload

Initialize direct multipart upload for large files (>100 MB). The server creates the upload and reserves quota, returning uploadId, partSize and partCount.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/assets/files/multipart/init' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"appInstanceId":"string","bizId":"string","business":"string","contentType":"string","fileName":"string"}'

application/json

FieldTypeRequiredDescription
appInstanceIdstringNoNot specified in OpenAPI
bizIdstringNoNot specified in OpenAPI
businessstringNoNot specified in OpenAPI
contentTypestringNoNot specified in OpenAPI
fileNamestringYesNot specified in OpenAPI
partSizeintegerNoNot specified in OpenAPI
sessionIdstringNoNot specified in OpenAPI
sizeintegerYesNot specified in OpenAPI
useBystringNoNot specified in OpenAPI
visibilitystringNoNot specified in OpenAPI
Responses
200
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "data": {
    "expiresAt": 0,
    "fileKey": "string",
    "filePath": "string",
    "partCount": 0,
    "partSize": 0
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
dataobjectYesPlatformAssetFileMultipartInitResp. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200application/json

POST/assets/files/multipart/part-urls

Get signed part upload URLs

Issue signed PUT URLs for selected parts, uploaded directly to object storage. Resumable uploads are supported.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/assets/files/multipart/part-urls' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"fileKey":"string","partNumbers":[0],"uploadId":"string"}'

application/json

FieldTypeRequiredDescription
fileKeystringYesNot specified in OpenAPI
partNumbersarray<integer>YesNot specified in OpenAPI
uploadIdstringYesNot specified in OpenAPI
Responses
200
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "data": {
    "partUrls": [
      "value"
    ]
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
dataobjectYesPlatformAssetFileMultipartPartUrlsResp. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200application/json

GET/assets/files/url

Get a file URL

Get a file URL

Request parameters
NameLocationTypeRequiredDescription
filePathquerystringYesNot specified in OpenAPI
expiredSecqueryintegerNoNot specified in OpenAPI
Responses
200
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "data": {
    "expiresAt": 0,
    "fileUrl": "string"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
dataobjectYesPlatformAssetFileUrlResp. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200application/json

POST/assets/upload

assetUpload

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/assets/upload' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"business":"string","contentType":"string","fileName":"string","isPublic":false,"sha256":"string"}'

application/json

FieldTypeRequiredDescription
businessstringNoNot specified in OpenAPI
contentTypestringNoNot specified in OpenAPI
fileNamestringYesNot specified in OpenAPI
isPublicbooleanNoNot specified in OpenAPI
sha256stringNoNot specified in OpenAPI
sizeintegerNoNot specified in OpenAPI
sizeBytesintegerYesNot specified in OpenAPI
storageKeystringNoNot specified in OpenAPI
useBystringNoNot specified in OpenAPI
Responses
200
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "data": {
    "filePath": "string",
    "fileUrl": "string",
    "postFields": {},
    "postUrl": "string"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
dataobjectYesPlatformAssetUploadResp. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200application/json

Notifications

POST/notifications/get

Get notification delivery status

Get delivery status by messageId. Ownership is checked against the requesting API key.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/notifications/get' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"messageId":"string"}'

application/json

FieldTypeRequiredDescription
messageIdstringYesNot specified in OpenAPI
Responses
200400401403404409422429500503504
Success response example

200 · application/json

{
  "channels": [
    {
      "channel": "value",
      "errorCode": "value",
      "message": "value",
      "platform": "value",
      "status": "value"
    }
  ],
  "completedAt": "string",
  "createdAt": "string",
  "errorCode": "string",
  "message": "string"
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
channelsarray<object>YesSee the referenced schema in the Schemas section.
completedAtstringNoSee the referenced schema in the Schemas section.
createdAtstringYesSee the referenced schema in the Schemas section.
errorCodestringNoSee the referenced schema in the Schemas section.
messagestringNoSee the referenced schema in the Schemas section.
messageIdstringYesSee the referenced schema in the Schemas section.
recipientNamestringNoRecipient display name (nickName, falling back to userName); an empty string when the recipient is not a member of this Workspace or the name cannot be looked up for now
recipientUserIdstringYesRecipient user ID of the request (a large integer carried as string), same as the recipientUserId given when sending
statusstringYesSee the referenced schema in the Schemas section.
typestringYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200application/json
400Platform operation failed.application/json
401Platform operation failed.application/json
403Platform operation failed.application/json
404Platform operation failed.application/json
409Platform operation failed.application/json
422Platform operation failed.application/json
429Platform operation failed.application/json
500Platform operation failed.application/json
503Platform operation failed.application/json
504Platform operation failed.application/json

POST/notifications/list

List notification delivery records

List notification delivery records page by page, without the content. A personal key whose owner is an owner or admin of the workspace sees the whole workspace; any other key sees only the records it sent. The whole-workspace scope includes records dispatched from the admin console (keyId is the string 0).

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/notifications/list' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"messageId":"string","page":0,"recipientUserId":"string","size":0,"status":"string"}'

application/json

FieldTypeRequiredDescription
messageIdstringNoFilter by message ID (a large integer carried as string, a positive integer); omitted or empty string means no filter
pageintegerNoPage number, 1-based; defaults to 1 when omitted, an explicit value must be >= 1
recipientUserIdstringNoFilter by recipient user ID (a large integer carried as string, a positive integer); omitted or empty string means no filter
sizeintegerNoItems per page; defaults to 20 when omitted, an explicit value must be between 1 and 100
statusstringNoFilter by status: accepted / sent / failed; omitted or empty string means no filter, any other value is rejected with 400
Responses
200400401403404409422429500503504
Success response example

200 · application/json

{
  "list": [
    {
      "channels": "value",
      "completedAt": "value",
      "createdAt": "value",
      "errorCode": "value",
      "keyId": "value"
    }
  ],
  "page": 0,
  "size": 0,
  "total": 0
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
listarray<object>YesSee the referenced schema in the Schemas section.
pageintegerYesPage number actually used
sizeintegerYesItems per page actually used
totalintegerYesTotal number of records matching the filters
Response status meanings
StatusMeaningMedia type
200application/json
400Platform operation failed.application/json
401Platform operation failed.application/json
403Platform operation failed.application/json
404Platform operation failed.application/json
409Platform operation failed.application/json
422Platform operation failed.application/json
429Platform operation failed.application/json
500Platform operation failed.application/json
503Platform operation failed.application/json
504Platform operation failed.application/json

POST/notifications/send

Send a notification

Send an inbox notification to a user in the API key's workspace, optionally requesting web or mobile push delivery.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/notifications/send' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"channels":["web"],"content":"string","idempotencyKey":"string","link":"string","mode":"string"}'

application/json

FieldTypeRequiredDescription
channelsarray<string>NoNot specified in OpenAPI
contentstringYesPlain text only; a request containing HTML tags is rejected with 400.
idempotencyKeystringYesNot specified in OpenAPI
linkstringNoNot specified in OpenAPI
modestringNoDeprecated (2026-11-04): test/live is decided by the platform from the API key and sender.type, and the value sent here is ignored (except for existing app credentials that do not distinguish preview from deployment, during the transition). test messages appear only in that App's Building preview bell; they do not enter the message center and are not pushed to devices.
recipientUserIdstringYesNot specified in OpenAPI
senderobjectNoPlatformNotificationSender. See the referenced schema in the Schemas section.
sourcestringNoDeprecated transitional alias for sender.name. sender.name takes precedence; this field will be removed.
titlestringYesPlain text only; a request containing HTML tags is rejected with 400.
typestringYesNot specified in OpenAPI
Responses
200400401403404409422429500503504
Success response example

200 · application/json

{
  "createdAt": "string",
  "messageId": "string",
  "recipientName": "string",
  "recipientUserId": "string",
  "status": "string"
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
createdAtstringYesSee the referenced schema in the Schemas section.
messageIdstringYesSee the referenced schema in the Schemas section.
recipientNamestringNoRecipient display name (nickName, falling back to userName); an empty string when the recipient is not a member of this Workspace or the name cannot be looked up for now; never affects the send result
recipientUserIdstringYesRecipient user ID of the request (a large integer carried as string); on an idempotent hit it is the recipient of the existing request
statusstringYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200application/json
400Platform operation failed.application/json
401Platform operation failed.application/json
403Platform operation failed.application/json
404Platform operation failed.application/json
409Platform operation failed.application/json
422Platform operation failed.application/json
429Platform operation failed.application/json
500Platform operation failed.application/json
503Platform operation failed.application/json
504Platform operation failed.application/json

Members

POST/apps/access-members/list

listAccessMembers

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/apps/access-members/list' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"appId":"string","grantedAtEnd":0,"grantedAtStart":0,"page":0,"roleKeys":["string"]}'

application/json

FieldTypeRequiredDescription
appIdstringYesNot specified in OpenAPI
grantedAtEndintegerNoMilliseconds; inclusive bounds with second precision.
grantedAtStartintegerNoMilliseconds; inclusive bounds with second precision.
pageintegerNoNot specified in OpenAPI
roleKeysarray<string>NoMatch any value, case insensitive.
scopestringNodraft: computed from draft roles; production or omitted: computed from the production version.
sizeintegerNoNot specified in OpenAPI
Responses
200
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "data": {
    "allActiveMembers": 0,
    "appId": "string",
    "list": [
      "value"
    ],
    "page": 0,
    "productionVersionId": "string"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
dataobjectYesPlatformAppAccessMembersListResp. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200application/json

POST/platform/getMembers

getMembers

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/platform/getMembers' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"keyword":"string","page":0,"roleKey":"string","roles":["string"],"size":0}'

application/json

FieldTypeRequiredDescription
keywordstringNoNot specified in OpenAPI
pageintegerNoNot specified in OpenAPI
roleKeystringNoNot specified in OpenAPI
rolesarray<string>NoNot specified in OpenAPI
sizeintegerNoNot specified in OpenAPI
statusesarray<string>NoNot specified in OpenAPI
updatedAtEndstringNoNot specified in OpenAPI
updatedAtStartstringNoNot specified in OpenAPI
Responses
200
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "data": {
    "list": [
      "value"
    ],
    "page": 0,
    "size": 0,
    "total": 0
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
dataobjectYesPlatformPlatformMembersResp. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200application/json

MQTT credentials

POST/mqtt-auth/create

Create an MQTT credential

Create a regular MQTT credential of the same type created manually in the UI. The password is returned only once, in the successful creation response. Store it securely; this API cannot retrieve it later. Requires a full_access API key.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/mqtt-auth/create' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"clientIDRandomSuffixEnabled":false,"description":"string","name":"string"}'

application/json

FieldTypeRequiredDescription
clientIDRandomSuffixEnabledbooleanNoNot specified in OpenAPI
descriptionstringNoNot specified in OpenAPI
namestringYesNot specified in OpenAPI
Responses
200
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "data": {
    "clientID": "string",
    "clientIDRandomSuffixEnabled": false,
    "id": 0,
    "name": "string",
    "password": "string"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
dataobjectYesPlatformMqttAuthCreateResp. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200application/json

POST/mqtt-auth/delete

Delete an MQTT credential

Idempotently delete a regular MQTT credential. Missing, deleted or non-regular IDs return success without deleting Flow, EdgeNode or other system credentials. Requires a full_access API key.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/mqtt-auth/delete' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"id":0}'

application/json

FieldTypeRequiredDescription
idintegerYesNot specified in OpenAPI
Responses
200
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "data": {
    "success": false
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
dataobjectYesPlatformMqttAuthDeleteResp. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200application/json

Agent

POST/agent/analyses/dispatch

Dispatch an analysis using its operation ID

Dispatch an immediate refresh or rerun analysis using an operationId UUID. Repeating the same ID and request reads the original run without executing again. Requires uns:write and the actual owner's identity.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/agent/analyses/dispatch' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"canvasId":"string","cardId":"string","kind":"string","operationId":"string","resultId":"string"}'

application/json

FieldTypeRequiredDescription
canvasIdstringNoNot specified in OpenAPI
cardIdstringNoNot specified in OpenAPI
kindstringYesNot specified in OpenAPI
operationIdstringYesNot specified in OpenAPI
resultIdstringNoNot specified in OpenAPI
taskobjectYesNot specified in OpenAPI
Responses
200
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "data": {
    "dispatchState": "string",
    "errorCode": "string",
    "errorMessage": "string",
    "runId": "string"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
dataobjectYesPlatformAgentAnalysisDispatchResp. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200application/json

POST/agent/analyses/get

Read an analysis run and result reference

Read the current owner's analysis status, errors and results by runId within the workspace. Other users' runs are inaccessible. Requires uns:read.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/agent/analyses/get' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"runId":"string"}'

application/json

FieldTypeRequiredDescription
runIdstringYesNot specified in OpenAPI
Responses
200
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "data": {
    "run": {
      "dispatchState": "value",
      "errorCode": "value",
      "errorMessage": "value",
      "finishedAt": "value",
      "firedAt": "value"
    }
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
dataobjectYesPlatformAgentAnalysisGetResp. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200application/json

POST/agent/canvases/list

List workspace canvases

List canvas metadata in the current workspace, optionally filtered by platform session. page and size are required; size is 1 to 100. Requires uns:read.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/agent/canvases/list' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"page":0,"sessionId":"string","size":0}'

application/json

FieldTypeRequiredDescription
pageintegerYesNot specified in OpenAPI
sessionIdstringNoNot specified in OpenAPI
sizeintegerYesNot specified in OpenAPI
Responses
200
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "data": {
    "list": [
      "value"
    ],
    "page": 0,
    "size": 0,
    "total": 0
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
dataobjectYesPlatformAgentCanvasListResp. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200application/json

POST/agent/cards/delete

Delete a canvas card with optimistic concurrency

Delete by canvas and card row ID. expectedCardSpec must match the full current card or HTTP 409 is returned. Requires uns:write.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/agent/cards/delete' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"canvasId":"string","cardId":"string","expectedCardSpec":"string"}'

application/json

FieldTypeRequiredDescription
canvasIdstringYesNot specified in OpenAPI
cardIdstringYesNot specified in OpenAPI
expectedCardSpecobjectYesNot specified in OpenAPI
Responses
200
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "data": {
    "cardId": "string"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
dataobjectYesPlatformAgentCardDeleteResp. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200application/json

POST/agent/cards/get

Read a complete canvas card

Read the full CardSpec by authenticated workspace, canvas ID and card row ID before editing.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/agent/cards/get' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"canvasId":"string","cardId":"string"}'

application/json

FieldTypeRequiredDescription
canvasIdstringYesNot specified in OpenAPI
cardIdstringYesNot specified in OpenAPI
Responses
200
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "data": {
    "canvasId": "string",
    "cardId": "string",
    "cardKey": "string",
    "cardSpec": "string",
    "updatedAt": 0
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
dataobjectYesPlatformAgentCardGetResp. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200application/json

POST/agent/cards/list

List canvas cards

Operate only in the authenticated workspace. Reads require uns:read; writes require uns:write. The task owner is the actual API key user. Creation is not automatically retried.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/agent/cards/list' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"canvasId":"string","page":0,"size":0}'

application/json

FieldTypeRequiredDescription
canvasIdstringYesNot specified in OpenAPI
pageintegerYesNot specified in OpenAPI
sizeintegerYesNot specified in OpenAPI
Responses
200
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "data": {
    "list": [
      "value"
    ],
    "page": 0,
    "size": 0,
    "total": 0
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
dataobjectYesPlatformAgentCardListResp. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200application/json

POST/agent/cards/update

Update a canvas card

A sandbox Agent updates a canvas card using an App key. The card must belong to the key's workspace.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/agent/cards/update' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"canvasId":"string","cardId":"string","cardSpec":"string","expectedCardSpec":"string","ord":0}'

application/json

FieldTypeRequiredDescription
canvasIdstringNoNot specified in OpenAPI
cardIdstringYesNot specified in OpenAPI
cardSpecobjectYesNot specified in OpenAPI
expectedCardSpecobjectYesThe full previously read card. Changes produce HTTP 409.
ordintegerNoCanvas order: omit to leave unchanged (forwarded to unssvr as -1). Explicit values, including 0, are preserved.
positionobjectNoNot specified in OpenAPI
Responses
200
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "data": {
    "cardId": "string"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
dataobjectYesPlatformAgentCardUpdateResp. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200application/json

POST/agent/job-runs/get

Read a task run

Only the task owner may use this operation. Triggering returns the run ID and current dispatch state, not proof of successful execution. Do not retry automatically after an unknown network outcome.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/agent/job-runs/get' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"jobId":"string","jobRunId":"string"}'

application/json

FieldTypeRequiredDescription
jobIdstringYesNot specified in OpenAPI
jobRunIdstringYesNot specified in OpenAPI
Responses
200
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "data": {
    "run": {
      "dispatchState": "value",
      "errorCode": "value",
      "errorMessage": "value",
      "finishedAt": "value",
      "firedAt": "value"
    }
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
dataobjectYesPlatformAgentJobRunGetResp. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200application/json

POST/agent/job-runs/list

List task run history

Only the task owner may use this operation. Triggering returns the run ID and current dispatch state, not proof of successful execution. Do not retry automatically after an unknown network outcome.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/agent/job-runs/list' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"jobId":"string","page":0,"size":0,"status":"string"}'

application/json

FieldTypeRequiredDescription
jobIdstringYesNot specified in OpenAPI
pageintegerYesNot specified in OpenAPI
sizeintegerYesNot specified in OpenAPI
statusstringNoNot specified in OpenAPI
Responses
200
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "data": {
    "list": [
      "value"
    ],
    "page": 0,
    "size": 0,
    "total": 0
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
dataobjectYesPlatformAgentJobRunListResp. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200application/json

POST/agent/jobs/create

Create a scheduled task

Operate only in the authenticated workspace. Reads require uns:read; writes require uns:write. The task owner is the actual API key user. Creation is not automatically retried.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/agent/jobs/create' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"cardId":"string","cronExpr":"string","expiresAt":0,"intervalSeconds":0,"name":"string"}'

application/json

FieldTypeRequiredDescription
cardIdstringNoNot specified in OpenAPI
cronExprstringNoNot specified in OpenAPI
expiresAtintegerNoNot specified in OpenAPI
intervalSecondsintegerNoNot specified in OpenAPI
namestringYesNot specified in OpenAPI
notifyobjectNoNot specified in OpenAPI
scheduleKindstringYesNot specified in OpenAPI
sessionIdstringYesNot specified in OpenAPI
sourceBlockIdstringNoNot specified in OpenAPI
sourceIdstringNoNot specified in OpenAPI
sourceNamestringNoNot specified in OpenAPI
sourceTypestringYesNot specified in OpenAPI
taskobjectYesNot specified in OpenAPI
typestringNoNot specified in OpenAPI
Responses
200
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "data": {
    "jobId": "string"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
dataobjectYesPlatformAgentJobMutationResp. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200application/json

POST/agent/jobs/delete

Delete a scheduled task

Operate only in the authenticated workspace. Reads require uns:read; writes require uns:write. The task owner is the actual API key user. Creation is not automatically retried.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/agent/jobs/delete' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"jobId":"string"}'

application/json

FieldTypeRequiredDescription
jobIdstringYesNot specified in OpenAPI
Responses
200
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "data": {
    "jobId": "string"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
dataobjectYesPlatformAgentJobMutationResp. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200application/json

POST/agent/jobs/get

Read a scheduled task

Operate only in the authenticated workspace. Reads require uns:read; writes require uns:write. The task owner is the actual API key user. Creation is not automatically retried.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/agent/jobs/get' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"jobId":"string"}'

application/json

FieldTypeRequiredDescription
jobIdstringYesNot specified in OpenAPI
Responses
200
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "data": {
    "job": {
      "attentionReason": "value",
      "cardId": "value",
      "createdAt": "value",
      "cronExpr": "value",
      "expiresAt": "value"
    }
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
dataobjectYesPlatformAgentJobGetResp. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200application/json

POST/agent/jobs/list

List scheduled tasks

Operate only in the authenticated workspace. Reads require uns:read; writes require uns:write. The task owner is the actual API key user. Creation is not automatically retried.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/agent/jobs/list' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"cardId":"string","page":0,"search":"string","size":0,"sourceId":"string"}'

application/json

FieldTypeRequiredDescription
cardIdstringNoNot specified in OpenAPI
pageintegerYesNot specified in OpenAPI
searchstringNoNot specified in OpenAPI
sizeintegerYesNot specified in OpenAPI
sourceIdstringNoNot specified in OpenAPI
sourceTypestringNoNot specified in OpenAPI
statusstringNoactive / paused / needs_attention / expired
typestringNoNot specified in OpenAPI
Responses
200
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "data": {
    "list": [
      "value"
    ],
    "page": 0,
    "size": 0,
    "total": 0
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
dataobjectYesPlatformAgentJobListResp. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200application/json

POST/agent/jobs/pause

Pause a scheduled task

Operate only in the authenticated workspace. Reads require uns:read; writes require uns:write. The task owner is the actual API key user. Creation is not automatically retried.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/agent/jobs/pause' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"jobId":"string"}'

application/json

FieldTypeRequiredDescription
jobIdstringYesNot specified in OpenAPI
Responses
200
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "data": {
    "jobId": "string"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
dataobjectYesPlatformAgentJobMutationResp. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200application/json

POST/agent/jobs/resume

Resume a scheduled task

Operate only in the authenticated workspace. Reads require uns:read; writes require uns:write. The task owner is the actual API key user. Creation is not automatically retried.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/agent/jobs/resume' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"jobId":"string"}'

application/json

FieldTypeRequiredDescription
jobIdstringYesNot specified in OpenAPI
Responses
200
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "data": {
    "jobId": "string"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
dataobjectYesPlatformAgentJobMutationResp. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200application/json

POST/agent/jobs/trigger

Trigger a task once

Only the task owner may use this operation. Triggering returns the run ID and current dispatch state, not proof of successful execution. Do not retry automatically after an unknown network outcome.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/agent/jobs/trigger' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"jobId":"string"}'

application/json

FieldTypeRequiredDescription
jobIdstringYesNot specified in OpenAPI
Responses
200
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "data": {
    "dispatchState": "string",
    "jobId": "string",
    "jobRunId": "string"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
dataobjectYesPlatformAgentJobTriggerResp. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200application/json

POST/agent/jobs/update

Update a scheduled task

Operate only in the authenticated workspace. Reads require uns:read; writes require uns:write. The task owner is the actual API key user. Creation is not automatically retried.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/agent/jobs/update' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"cardId":"string","cronExpr":"string","expiresAt":0,"intervalSeconds":0,"jobId":"string"}'

application/json

FieldTypeRequiredDescription
cardIdstringNoNot specified in OpenAPI
cronExprstringNoNot specified in OpenAPI
expiresAtintegerNoNot specified in OpenAPI
intervalSecondsintegerNoNot specified in OpenAPI
jobIdstringYesNot specified in OpenAPI
namestringNoNot specified in OpenAPI
notifyobjectNoNot specified in OpenAPI
notifyEnabledintegerNoOmit to preserve notification settings. 1 requires notify; 2 disables notifications and must omit notify.
scheduleKindstringNoNot specified in OpenAPI
sessionIdstringNoNot specified in OpenAPI
sourceBlockIdstringNoNot specified in OpenAPI
sourceIdstringNoNot specified in OpenAPI
sourceNamestringNoNot specified in OpenAPI
sourceTypestringNoNot specified in OpenAPI
taskobjectNoNot specified in OpenAPI
typestringNoNot specified in OpenAPI
Responses
200
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "data": {
    "jobId": "string"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
dataobjectYesPlatformAgentJobMutationResp. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200application/json

POST/agent/library/create

Create a library entry with conflict detection

Create a workspace template. The same cardKey and content reuse the existing entry; different content returns HTTP 409 without overwriting the template. Requires uns:write.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/agent/library/create' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"cardKey":"string","cardSpec":"string","sourceSessionId":"string","tags":["string"]}'

application/json

FieldTypeRequiredDescription
cardKeystringYesNot specified in OpenAPI
cardSpecobjectYesNot specified in OpenAPI
sourceSessionIdstringNoNot specified in OpenAPI
tagsarray<string>NoNot specified in OpenAPI
Responses
200
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "data": {
    "libraryItemId": "string"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
dataobjectYesPlatformAgentLibraryMutationResp. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200application/json

POST/agent/library/delete

Delete a card library entry

Delete a workspace template by its verified library entry ID. Requires uns:write.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/agent/library/delete' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"libraryItemId":"string"}'

application/json

FieldTypeRequiredDescription
libraryItemIdstringYesNot specified in OpenAPI
Responses
200
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "data": {
    "libraryItemId": "string"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
dataobjectYesPlatformAgentLibraryMutationResp. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200application/json

POST/agent/library/get

Read a complete card library entry

Read the complete template, tags and source session by library entry ID before editing. Requires uns:read.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/agent/library/get' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"libraryItemId":"string"}'

application/json

FieldTypeRequiredDescription
libraryItemIdstringYesNot specified in OpenAPI
Responses
200
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "data": {
    "item": {
      "cardKey": "value",
      "cardSpec": "value",
      "createdAt": "value",
      "libraryItemId": "value",
      "sourceSessionId": "value"
    }
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
dataobjectYesPlatformAgentLibraryGetResp. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200application/json

POST/agent/library/list

List card library entries

List shared card templates in the current workspace, matching any requested tag and optionally searching titles. Requires uns:read.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/agent/library/list' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"page":0,"search":"string","size":0,"tags":["string"]}'

application/json

FieldTypeRequiredDescription
pageintegerYesNot specified in OpenAPI
searchstringNoNot specified in OpenAPI
sizeintegerYesNot specified in OpenAPI
tagsarray<string>NoNot specified in OpenAPI
Responses
200
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "data": {
    "list": [
      "value"
    ],
    "page": 0,
    "size": 0,
    "total": 0
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
dataobjectYesPlatformAgentLibraryListResp. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200application/json

POST/agent/library/update

Update a library entry with optimistic concurrency

Update a template with the full previously read expectedItem. Changed content returns HTTP 409. An explicit empty tags array clears tags. Requires uns:write.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/agent/library/update' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"cardSpec":"string","expectedItem":{"cardKey":"string","cardSpec":"string","sourceSessionId":"string","tags":["value"]},"libraryItemId":"string","sourceSessionId":"string","tags":["string"]}'

application/json

FieldTypeRequiredDescription
cardSpecobjectYesNot specified in OpenAPI
expectedItemobjectYesPlatformAgentLibrarySnapshot. See the referenced schema in the Schemas section.
libraryItemIdstringYesNot specified in OpenAPI
sourceSessionIdstringNoNot specified in OpenAPI
tagsarray<string>NoNot specified in OpenAPI
Responses
200
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "data": {
    "libraryItemId": "string"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
dataobjectYesPlatformAgentLibraryMutationResp. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200application/json

POST/agent/results/create

Save an Agent analysis result

A sandbox Agent submits a v1 result manifest using an App key, with idempotency by operationId.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/agent/results/create' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"cardSpec":"string","dataScope":"string","images":["value"],"missingData":"string","operationId":"string"}'

application/json

FieldTypeRequiredDescription
cardSpecobjectNoNot specified in OpenAPI
dataScopeobjectNoNot specified in OpenAPI
imagesarrayNoNot specified in OpenAPI
missingDataobjectYesNot specified in OpenAPI
operationIdstringYesNot specified in OpenAPI
resultSchemaVersionintegerYesNot specified in OpenAPI
sourceobjectYesPlatformAgentResultSource. See the referenced schema in the Schemas section.
stepsarrayNoNot specified in OpenAPI
summarystringNoNot specified in OpenAPI
tablesarrayNoNot specified in OpenAPI
titlestringYesNot specified in OpenAPI
warningsarray<string>NoNot specified in OpenAPI
Responses
200
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "data": {
    "jobRunId": "string",
    "resultId": "string"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
dataobjectYesPlatformAgentResultCreateResp. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200application/json

POST/agent/results/get

Read a saved analysis result

Read a result in the authenticated workspace using exactly one of resultId or operationId. Reuse the original operation ID to verify a save after a lost receipt. Returns the full manifest and CardSpec; requires uns:read.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/agent/results/get' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"operationId":"string","resultId":"string"}'

application/json

FieldTypeRequiredDescription
operationIdstringNoProvide this or resultId, but not both. After a save timeout, retrieve by the original ID instead of saving again.
resultIdstringNoNot specified in OpenAPI
Responses
200
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "data": {
    "result": {
      "agentId": "value",
      "byteSize": "value",
      "cardSpec": "value",
      "createdAt": "value",
      "manifest": "value"
    }
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
dataobjectYesPlatformAgentResultGetResp. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200application/json

POST/agent/results/list

List saved analysis results

List results in the authenticated workspace, optionally filtered by platform session. page and size are required; size is 1 to 100. Requires uns:read.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/agent/results/list' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"page":0,"platformSessionId":"string","size":0}'

application/json

FieldTypeRequiredDescription
pageintegerYesNot specified in OpenAPI
platformSessionIdstringNoNot specified in OpenAPI
sizeintegerYesNot specified in OpenAPI
Responses
200
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "data": {
    "list": [
      "value"
    ],
    "page": 0,
    "size": 0,
    "total": 0
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
dataobjectYesPlatformAgentResultListResp. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200application/json

POST/agent/results/pin

Pin a saved result to a canvas

Pin a result in the authenticated workspace; requires uns:write. Create a card from CardSpec when present, or a reference card that reads tabular/chart details by resultId. Retrying the same result and canvas returns the original card without overwriting later edits.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/agent/results/pin' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"canvasId":"string","position":"string","resultId":"string"}'

application/json

FieldTypeRequiredDescription
canvasIdstringYesNot specified in OpenAPI
positionobjectNoNot specified in OpenAPI
resultIdstringYesNot specified in OpenAPI
Responses
200
Success response example

200 · application/json

{
  "code": 0,
  "msg": "string",
  "data": {
    "cardId": "string"
  }
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codeintegerYesSee the referenced schema in the Schemas section.
msgstringYesSee the referenced schema in the Schemas section.
dataobjectYesPlatformAgentResultPinResp. See the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200application/json

Stream requests

POST/stream-requests/{requestCode}/describe

Describe Stream request

Read a public Stream request contract without exposing internal runtime bindings.

Request parameters
NameLocationTypeRequiredDescription
requestCodepathstringYesNot specified in OpenAPI
Responses
200400401403404409422429500503504
Success response example

200 · application/json

{
  "code": "string",
  "contractVersion": "string",
  "description": "string",
  "idempotency": "string",
  "inputSchema": {}
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codestringYesSee the referenced schema in the Schemas section.
contractVersionstringYesSee the referenced schema in the Schemas section.
descriptionstringYesSee the referenced schema in the Schemas section.
idempotencystringYesSee the referenced schema in the Schemas section.
inputSchemaobjectYesSee the referenced schema in the Schemas section.
namestringYesSee the referenced schema in the Schemas section.
outputSchemaobjectYesSee the referenced schema in the Schemas section.
sideEffectstringYesSee the referenced schema in the Schemas section.
statusstringYesSee the referenced schema in the Schemas section.
timeoutMsintegerYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200application/json
400Platform operation failed.application/json
401Platform operation failed.application/json
403Platform operation failed.application/json
404Platform operation failed.application/json
409Platform operation failed.application/json
422Platform operation failed.application/json
429Platform operation failed.application/json
500Platform operation failed.application/json
503Platform operation failed.application/json
504Platform operation failed.application/json

POST/stream-requests/{requestCode}/invoke

Invoke Stream request

Invoke a Stream request using its public contract. The raw body must be valid UTF-8 and at most 1 MiB. The optional idempotencyKey is limited to 128 decoded UTF-8 bytes; the frozen contract determines whether it is required. Returns code, contractVersion, result, runID, status and replayed (boolean), without internal runtime bindings. An unknown result returns HTTP 504 with errorCode=STREAM_REQUEST_RESULT_UNKNOWN. Unclassified internal errors return HTTP 500 with errorCode=STREAM_REQUEST_INTERNAL_ERROR; message does not expose internal exceptions.

Request parameters
NameLocationTypeRequiredDescription
requestCodepathstringYesNot specified in OpenAPI
Request body
curl --request POST 'https://<tier0-host>/openapi/v2/stream-requests/{requestCode}/invoke' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"idempotencyKey":"string","input":"string"}'

application/json

FieldTypeRequiredDescription
idempotencyKeystringNoAt most 128 decoded UTF-8 bytes. The frozen contract determines whether this field is required.
inputobjectYesNot specified in OpenAPI
Responses
200400401403404409422429500503504
Success response example

200 · application/json

{
  "code": "string",
  "contractVersion": "string",
  "replayed": false,
  "result": "string",
  "runID": "string"
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
codestringYesSee the referenced schema in the Schemas section.
contractVersionstringYesThe frozen contract version used for execution.
replayedbooleanYestrue indicates an idempotent replay; false indicates the first execution.
resultobjectYesThe JSON result defined by the contract; null is allowed.
runIDstringYesThe execution identifier returned by the server, represented as an opaque string.
statusstringYesThe final status returned by the server; never accepted, queued, pending or running.
Response status meanings
StatusMeaningMedia type
200application/json
400Platform operation failed.application/json
401Platform operation failed.application/json
403Platform operation failed.application/json
404Platform operation failed.application/json
409Platform operation failed.application/json
422Platform operation failed.application/json
429Platform operation failed.application/json
500Platform operation failed.application/json
503Platform operation failed.application/json
504Platform operation failed.application/json

POST/stream-requests/discover

Discover Stream requests

Discover visible Stream request contracts without exposing internal runtime bindings.

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/stream-requests/discover' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"page":0,"search":"string","size":0}'

application/json

FieldTypeRequiredDescription
pageintegerNoDefaults to 1.
searchstringNoNot specified in OpenAPI
sizeintegerNoDefaults to 20.
Responses
200400401403404409422429500503504
Success response example

200 · application/json

{
  "list": [
    {
      "code": "value",
      "contractVersion": "value",
      "description": "value",
      "idempotency": "value",
      "inputSchema": "value"
    }
  ],
  "total": 0
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
listarray<object>YesSee the referenced schema in the Schemas section.
totalintegerYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200application/json
400Platform operation failed.application/json
401Platform operation failed.application/json
403Platform operation failed.application/json
404Platform operation failed.application/json
409Platform operation failed.application/json
422Platform operation failed.application/json
429Platform operation failed.application/json
500Platform operation failed.application/json
503Platform operation failed.application/json
504Platform operation failed.application/json

Stream messages

POST/stream-messages/connect

Connect Stream messages

Request body
curl --request POST 'https://<tier0-host>/openapi/v2/stream-messages/connect' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{"appId":"string","clientPublicKey":"string","topics":[{"publish":"value","subscribe":"value","topic":"value"}]}'

application/json

FieldTypeRequiredDescription
appIdstringYesNot specified in OpenAPI
clientPublicKeystringYesNot specified in OpenAPI
topicsarray<object>YesNot specified in OpenAPI
Responses
200400401403404409422429500503504
Success response example

200 · application/json

{
  "contractVersion": "string",
  "expiresAt": "string",
  "maxPayloadBytes": 0,
  "permissions": [
    {
      "publishSubject": "value",
      "subscribeSubject": "value",
      "topic": "value"
    }
  ],
  "url": "string"
}
Success response fields

200 · application/json

FieldTypeRequiredDescription
contractVersionstringYesSee the referenced schema in the Schemas section.
expiresAtstringYesSee the referenced schema in the Schemas section.
maxPayloadBytesintegerYesSee the referenced schema in the Schemas section.
permissionsarray<object>YesSee the referenced schema in the Schemas section.
urlstringYesSee the referenced schema in the Schemas section.
userJwtstringYesSee the referenced schema in the Schemas section.
Response status meanings
StatusMeaningMedia type
200application/json
400Platform operation failed.application/json
401Platform operation failed.application/json
403Platform operation failed.application/json
404Platform operation failed.application/json
409Platform operation failed.application/json
422Platform operation failed.application/json
429Platform operation failed.application/json
500Platform operation failed.application/json
503Platform operation failed.application/json
504Platform operation failed.application/json

Schemas

API field names, examples, and source descriptions follow the bundled English OpenAPI specification.

AppCollectionContext

FieldTypeRequiredDescription
aliasstringYesNot specified in OpenAPI
collectionIdstringYesCollection ID identifying the owner of business records and samples.
indexesarray<object>NoUnified index declaration, for example [{"path":"orderNo","unique":true}] or [{"paths":["factoryId","externalId"],"unique":true}]. Omission preserves indexes; [] removes them. Paths omit data.; unique indexes are record B-trees only. Builds are asynchronous; check readiness through indexStatus.
permissionsarray<string>YesNot specified in OpenAPI
recordSchemaobjectYesSchema. See the referenced schema in the Schemas section.
sampleSchemaobjectNoSchema. See the referenced schema in the Schemas section.
createCapabilityobjectNoCloudAppCreateCapability. See the referenced schema in the Schemas section.
revisionintegerYesCollection definition revision; increments on structural or index changes.
indexStatusarray<object>YesCurrent index state; only ready unique indexes support upsert, and only ready TTL indexes begin expiration deletion.
ttlobjectYesCollection TTL rule, or null when absent.
ownerAppIdstringNoOwning App of the collection. Equal to the current appId for an owned collection, different for a collection granted from another App; omitted for workspace collections.
namestringYesBusiness name of the collection.
descriptionstringNoCollection description; omitted when empty.
directoryPatharray<string>YesDirectory names from the workspace root to the collection, in the same shape as appCollectionsEnsure directoryPath; [] when the collection is at the root.

AppContext

FieldTypeRequiredDescription
appIdstringYesNot specified in OpenAPI
collectionsarray<object>YesNot specified in OpenAPI
namestringYesNot specified in OpenAPI
platformPermissionsarray<string>YesExplicit platform capabilities; default none; current App grants intersect with key and issuer resources
revisionintegerYesNot specified in OpenAPI
dataStatestringYesuninitialized means no data policy exists: empty collections are returned without writing initialization state; declaring the actual collections through ensure makes the state ready. An administrator-disabled policy still returns HTTP 403 APP_DATA_POLICY_DISABLED and is never re-enabled automatically.
limitsobjectYesCloudAppDataLimits. See the referenced schema in the Schemas section.

CapabilityDiscoverycapability

Unknown capability codes are ignored; only recognized codes use the frozen assessment contract.

FieldTypeRequiredDescription
codestringYesNot specified in OpenAPI

CapabilityDiscoveryknownCapability

State reports publication and assessed prerequisites only; ready never grants resource access or confirms an actual execution.

FieldTypeRequiredDescription
stateobjectYesNot specified in OpenAPI
reasonCodestringYesNot specified in OpenAPI
checkedAtstring (date-time)NoNot specified in OpenAPI
validUntilstring (date-time)NoProof expiry must follow checkedAt. Cross-field chronological ordering is a semantic constraint checked by consumers in addition to this structural JSON Schema.
retryAfterMsintegerNoNot specified in OpenAPI
codestringYesNot specified in OpenAPI
contractVersionsarray<string>YesNot specified in OpenAPI
operationsarray<object>NoNot specified in OpenAPI

CapabilityDiscoveryknownOperation

State reports publication and assessed prerequisites only; ready never grants resource access or confirms an actual execution.

FieldTypeRequiredDescription
stateobjectYesNot specified in OpenAPI
reasonCodestringYesNot specified in OpenAPI
checkedAtstring (date-time)NoNot specified in OpenAPI
validUntilstring (date-time)NoProof expiry must follow checkedAt. Cross-field chronological ordering is a semantic constraint checked by consumers in addition to this structural JSON Schema.
retryAfterMsintegerNoNot specified in OpenAPI
operationstringYesNot specified in OpenAPI
requiresResourceCheckbooleanYesNot specified in OpenAPI

CapabilityDiscoveryoperation

Unknown operation names are ignored within their parent capability; known names are validated by that capability.

FieldTypeRequiredDescription
operationstringYesNot specified in OpenAPI

CloudAppCollectionDeclaration

FieldTypeRequiredDescription
aliasstringYesCase-insensitively unique app collection alias, matching src/data/collections.ts.
namestringYesThe user-facing business name and the sole name shown in the interface. Use a concise, readable name that describes the business object or purpose. Follow the user's language preferences and existing terminology; Chinese is not required. Do not include surrounding whitespace, slashes, or NUL characters, or append IDs, timestamps, or random strings without business meaning. Report sibling name conflicts explicitly. Programs reference IDs; the App SDK uses a separate stable alias. Renaming does not change the ID or alias. Required. ensure writes the name only on creation; existing names are maintained through metadata updates. Declaration changes do not overwrite user renames.
recordSchemaobjectYesSchema. See the referenced schema in the Schemas section.
indexesarray<object>NoDeclared indexes; ensure unions current and declared indexes without removing any.
descriptionstringNoCollection description is written only on creation; later changes use schema:replace. ensure does not write annotations and reports differences in ignored as ANNOTATION_NOT_APPLIED.
directoryPatharray<string>NoReal business directory names from the workspace root. Required for new aliases; existing aliases may omit it, and changed paths are ignored without moving Collections. Reuse active directories by parent and name or atomically create missing segments. Archived or non-directory name conflicts fail without restoring directories or granting extra permissions. For industrial data, follow the known ISA-95 equipment hierarchy Enterprise, Site, Area, Work Center, Work Unit. Skip inapplicable levels; non-industrial data uses its real business hierarchy. Never invent five levels. MES, App or business-module directories are allowed below the real equipment scope, for example Factory/Line/MES/Work Orders. Do not flatten data from different equipment scopes into a single root App container.

CloudAppCollectionEnsureResult

FieldTypeRequiredDescription
aliasstringYesCase-insensitively unique app collection alias, matching src/data/collections.ts.
collectionIdstringYesNot specified in OpenAPI
revisionintegerYesNot specified in OpenAPI
statusstringYesNot specified in OpenAPI
ignoredarray<object>YesDifferences ignored because the declaration is narrower than storage or hits retired; for logging only.
warningsarray<object>YesNot specified in OpenAPI
indexStatusarray<object>YesCurrent index state; only ready unique indexes support upsert.

CloudAppCollectionRetired

FieldTypeRequiredDescription
pathsarray<string>YesNot specified in OpenAPI
enumValuesarray<object>YesNot specified in OpenAPI

CloudAppCollectionSchemaNote

FieldTypeRequiredDescription
pathstringYesSchema paths join object properties with dots, escaping literal . and backslash with backslash. Array elements use [], such as lines.[].discount; empty string means the record root.
reasonstringYesNot specified in OpenAPI
messagestringNoNot specified in OpenAPI

CloudAppCollectionView

FieldTypeRequiredDescription
aliasstringYesCase-insensitively unique app collection alias, matching src/data/collections.ts.
collectionIdstringYesNot specified in OpenAPI
namestringYesThe user-facing business name and the sole name shown in the interface. Use a concise, readable name that describes the business object or purpose. Follow the user's language preferences and existing terminology; Chinese is not required. Do not include surrounding whitespace, slashes, or NUL characters, or append IDs, timestamps, or random strings without business meaning. Report sibling name conflicts explicitly. Programs reference IDs; the App SDK uses a separate stable alias. Renaming does not change the ID or alias.
descriptionstringNoNot specified in OpenAPI
parentIdstringNoNot specified in OpenAPI
recordSchemaobjectYesSchema. See the referenced schema in the Schemas section.
indexesarray<object>YesNot specified in OpenAPI
indexStatusarray<object>YesNot specified in OpenAPI
retiredobjectYesCloudAppCollectionRetired. See the referenced schema in the Schemas section.
revisionintegerYesNot specified in OpenAPI
archivedbooleanYesNot specified in OpenAPI
updatedAtintegerYesNot specified in OpenAPI

CloudAppCollectionWarning

FieldTypeRequiredDescription
codestringYesNot specified in OpenAPI
pathstringNoNot specified in OpenAPI
messagestringYesNot specified in OpenAPI

CloudAppCreateCapability

Creation-input hint for the current key/app/employee and collection version; not an authorization credential. allowed=true establishes that compliant input exists, not that uniqueness, actual input or future writes will succeed. inputSchema selects writable fields independently, including write-only fields, rather than using the read schema. owner/state are injected by the server and not exposed to clients. No business defaults are filled; required fields must still be supplied. Unprovable schema semantics safely return false. Writes and replay always reauthorize at runtime; binding is only for UI cache invalidation.

FieldTypeRequiredDescription
versionstringYesNot specified in OpenAPI
allowedbooleanYesNot specified in OpenAPI
reasonstringYesNot specified in OpenAPI
appRevisionintegerYesNot specified in OpenAPI
collectionRevisionintegerYesNot specified in OpenAPI
bindingstringYesNot specified in OpenAPI
inputSchemaobjectNoSchema. See the referenced schema in the Schemas section.

CloudAppDataGrant

FieldTypeRequiredDescription
aliasstringNoOptional access alias; when omitted, authorize and access directly by collectionId. An empty string clears the alias.
collectionIdstringYesNot specified in OpenAPI
permissionsarray<string>YesNot specified in OpenAPI
dataRuleobjectNoCloudAppDataRule. See the referenced schema in the Schemas section.

CloudAppDataGrantChange

FieldTypeRequiredDescription
actionstringYesNot specified in OpenAPI
collectionIdstringYesNot specified in OpenAPI
aliasstringNoOptional access alias; when omitted, authorize and access directly by collectionId. An empty string clears the alias.
permissionLevelstringNoBusiness record permission presets: read-only, read-write and manage including deletion. Mutually exclusive with permissions; does not automatically grant sample permissions.
permissionsarray<string>NoNot specified in OpenAPI
dataRuleobjectNoOmission retains employee rules; null clears them explicitly and requires ruleContractVersion confirmation.

CloudAppDataLimits

Current data-plane limits for SDK/MCP batch and concurrency adaptation; returned from current server configuration.

FieldTypeRequiredDescription
countobjectYesNot specified in OpenAPI
totalobjectYesNot specified in OpenAPI
queryBatchobjectYesNot specified in OpenAPI
getobjectYesNot specified in OpenAPI
subscribeobjectYesNot specified in OpenAPI
ttlobjectYesNot specified in OpenAPI
concurrencyobjectYesNot specified in OpenAPI
idempotencyWindowMsintegerYesWrite-idempotency retention window in milliseconds; reuse after the window is treated as a new request.

CloudAppDataPolicy

FieldTypeRequiredDescription
appIdstring (uuid)YesNot specified in OpenAPI
revisionintegerYesNot specified in OpenAPI
versionstringYesNot specified in OpenAPI
statusstringYesNot specified in OpenAPI
collectionsarray<object>YesNot specified in OpenAPI
authorityStatusstringYesNot specified in OpenAPI
appNamestringYesNot specified in OpenAPI
ruleContractVersionstringNoRequired explicitly on updates when any previous or proposed Collection grant has a dataRule, including removal and disabled revocation. Omitted for unprotected policies.

CloudAppDataRule

FieldTypeRequiredDescription
versionstringYesNot specified in OpenAPI
ownerFieldstringYesNot specified in OpenAPI
stateFieldstringNoNot specified in OpenAPI
initialStatestringNoNot specified in OpenAPI
principalsarray<object>YesNot specified in OpenAPI

CloudAppDataRulePrincipal

FieldTypeRequiredDescription
userIdstringYesNot specified in OpenAPI
rowScopestringYesNot specified in OpenAPI
permissionsarray<string>YesNot specified in OpenAPI
readFieldsarray<string>NoNot specified in OpenAPI
writeFieldsarray<string>NoNot specified in OpenAPI
writeStatesarray<string>NoNot specified in OpenAPI
transitionsarray<object>NoNot specified in OpenAPI

CloudAppDataRuleTransition

FieldTypeRequiredDescription
fromstringYesNot specified in OpenAPI
tostringYesNot specified in OpenAPI

CloudAppStreamAccessItem

FieldTypeRequiredDescription
codestringYesNot specified in OpenAPI
streamIdstringYesNot specified in OpenAPI
streamNamestringYesNot specified in OpenAPI
entryIdstringYesNot specified in OpenAPI
entryNamestringYesNot specified in OpenAPI
actionsarray<string>YesNot specified in OpenAPI
configuredActiveintegerYesNot specified in OpenAPI
statestringYesNot specified in OpenAPI
blockedReasonsarray<string>YesNot specified in OpenAPI
revisionintegerYesNot specified in OpenAPI

CloudAppStreamAccessPage

FieldTypeRequiredDescription
itemsarray<object>YesNot specified in OpenAPI
pageintegerYesNot specified in OpenAPI
sizeintegerYesNot specified in OpenAPI
totalintegerYesNot specified in OpenAPI

CloudAppStreamPolicy

FieldTypeRequiredDescription
appIdstring (uuid)YesNot specified in OpenAPI
revisionintegerYesNot specified in OpenAPI
versionstringYesNot specified in OpenAPI
statusstringYesNot specified in OpenAPI
authorityStatusstringYesNot specified in OpenAPI
appNamestringYesNot specified in OpenAPI
platformPermissionsarray<string>YesNot specified in OpenAPI
messageTopicsarray<object>NoNot specified in OpenAPI

CloudCappedCount

Capped count.

FieldTypeRequiredDescription
countintegerYesNot specified in OpenAPI
cappedbooleanYescapped=true means actual matches exceed the cap, checked using cap + 1 rows, and count equals the cap. With capped=false, count is the complete total.

CloudCollectionTTL

Collection TTL rule: physically delete records after path time plus expireAfterSeconds; irreversible.

FieldTypeRequiredDescription
pathstringYesExpiration timestamp field.
expireAfterSecondsintegerYesNot specified in OpenAPI

CloudDataPage

Pipeline-generated documents, without record/sample wrappers. Fields are determined by pipeline.

FieldTypeRequiredDescription
itemsarray<object>YesNot specified in OpenAPI
pageInfoobjectYesCloudPageInfo. See the referenced schema in the Schemas section.

CloudDistinctPage

FieldTypeRequiredDescription
modestringNoNot specified in OpenAPI
pageintegerNoNot specified in OpenAPI
sizeintegerNoNot specified in OpenAPI

CloudDistinctResult

FieldTypeRequiredDescription
valuesarray<object>YesNot specified in OpenAPI
pageInfoobjectYesCloudPageInfo. See the referenced schema in the Schemas section.

CloudNullableRecordDocument

Ordinary business record. Business fields are in data; system attributes are siblings. filter/projection use bare business names and _id/_meta.*, not response-object paths. lock describes only active leases and does not return tokens.

FieldTypeRequiredDescription
idstringYesNot specified in OpenAPI
collectionIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI
revisionintegerYesNot specified in OpenAPI
createdAtintegerYesUnix milliseconds.
updatedAtintegerYesUnix milliseconds.
sourceIdstringYesNot specified in OpenAPI
sourceTimeintegerYesUnix milliseconds.
lockobjectNoCloudRecordLockView. See the referenced schema in the Schemas section.

CloudNullableSampleDocument

Ordinary sample object. Business fields are in data; time, quality, record identity and available provenance are siblings.

FieldTypeRequiredDescription
idstringYesNot specified in OpenAPI
collectionIdstringYesNot specified in OpenAPI
recordIdstringYesNot specified in OpenAPI
timeintegerYesUnix milliseconds.
receivedAtintegerYesUnix milliseconds.
qualitystringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI
sourceIdstringYesNot specified in OpenAPI
streamIdstringNoNot specified in OpenAPI
bindingIdstringNoNot specified in OpenAPI

CloudPageInfo

FieldTypeRequiredDescription
modestringYesNot specified in OpenAPI
hasMorebooleanYesNot specified in OpenAPI
nextCursorstringYesNot specified in OpenAPI
nextPageintegerYesNot specified in OpenAPI
snapshotScopestringYesNot specified in OpenAPI

CloudPlatformReadiness

FieldTypeRequiredDescription
readybooleanYesNot specified in OpenAPI
reasonCodestringYesNot specified in OpenAPI
checkedAtstring (date-time)NoNot specified in OpenAPI
validUntilstring (date-time)NoNot specified in OpenAPI
retryAfterMsintegerNoNot specified in OpenAPI

CloudPreviewResult

FieldTypeRequiredDescription
validatedbooleanYesNot specified in OpenAPI
sideEffectsbooleanYesNot specified in OpenAPI

CloudRecordAggregatePage

Pipeline-generated documents; total is the capped count of pipeline output.

FieldTypeRequiredDescription
itemsarray<object>YesNot specified in OpenAPI
pageInfoobjectYesCloudPageInfo. See the referenced schema in the Schemas section.
totalobjectNoCloudCappedCount. See the referenced schema in the Schemas section.

CloudRecordBatchQuery

Batch entries support find/count/distinct/aggregate/get. Fields follow each op variant, with id and op. Record distinct is available only within queryBatch; no standalone distinct endpoint exists.

{
  "oneOf": [
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": "string",
          "pattern": "^[A-Za-z0-9_.-]{1,64}$",
          "description": "Unique query identifier within the batch, used to return results."
        },
        "op": {
          "type": "string",
          "enum": [
            "find"
          ]
        },
        "collectionId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "description": "Collection ID identifying the owner of business records and samples."
        },
        "filter": {
          "$ref": "#/components/schemas/UnsV2DataFilter"
        },
        "sort": {
          "$ref": "#/components/schemas/UnsV2PipelineSort"
        },
        "projection": {
          "type": "object",
          "additionalProperties": {
            "oneOf": [
              {
                "type": "integer",
                "enum": [
                  0,
                  1
                ]
              },
              {
                "type": "boolean"
              }
            ]
          },
          "description": "Include or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained."
        },
        "limit": {
          "type": "integer",
          "minimum": 1,
          "maximum": 200
        },
        "cursor": {
          "type": "string"
        },
        "count": {
          "$ref": "#/components/schemas/CloudRecordTotalOption"
        }
      },
      "required": [
        "id",
        "op",
        "collectionId"
      ],
      "allOf": [
        {
          "not": {
            "required": [
              "count",
              "cursor"
            ]
          }
        }
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": "string",
          "pattern": "^[A-Za-z0-9_.-]{1,64}$",
          "description": "Unique query identifier within the batch, used to return results."
        },
        "op": {
          "type": "string",
          "enum": [
            "count"
          ]
        },
        "collectionId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "description": "Collection ID identifying the owner of business records and samples."
        },
        "filter": {
          "$ref": "#/components/schemas/UnsV2DataFilter"
        },
        "maxCount": {
          "type": "integer",
          "minimum": 1,
          "maximum": 100000,
          "default": 100000,
          "description": "Count limit; actual counts above maxCount return count=maxCount and capped=true. Equality returns capped=false."
        }
      },
      "required": [
        "id",
        "op",
        "collectionId"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": "string",
          "pattern": "^[A-Za-z0-9_.-]{1,64}$",
          "description": "Unique query identifier within the batch, used to return results."
        },
        "op": {
          "type": "string",
          "enum": [
            "distinct"
          ]
        },
        "collectionId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "description": "Collection ID identifying the owner of business records and samples."
        },
        "filter": {
          "$ref": "#/components/schemas/UnsV2DataFilter"
        },
        "field": {
          "type": "string"
        },
        "limit": {
          "type": "integer",
          "minimum": 1,
          "maximum": 200
        },
        "page": {
          "$ref": "#/components/schemas/CloudDistinctPage"
        }
      },
      "required": [
        "id",
        "op",
        "collectionId",
        "field"
      ],
      "allOf": [
        {
          "not": {
            "required": [
              "limit",
              "page"
            ]
          }
        }
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": "string",
          "pattern": "^[A-Za-z0-9_.-]{1,64}$",
          "description": "Unique query identifier within the batch, used to return results."
        },
        "op": {
          "type": "string",
          "enum": [
            "aggregate"
          ]
        },
        "collectionId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "description": "Collection ID identifying the owner of business records and samples."
        },
        "pipeline": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/UnsV2PipelineStage"
          },
          "minItems": 0,
          "maxItems": 32
        },
        "limit": {
          "type": "integer",
          "minimum": 1,
          "maximum": 200
        },
        "page": {
          "$ref": "#/components/schemas/UnsV2PipelinePage"
        },
        "count": {
          "$ref": "#/components/schemas/CloudRecordTotalOption"
        }
      },
      "required": [
        "id",
        "op",
        "collectionId",
        "pipeline"
      ],
      "allOf": [
        {
          "not": {
            "required": [
              "page",
              "limit"
            ]
          }
        },
        {
          "not": {
            "required": [
              "count",
              "page"
            ],
            "properties": {
              "page": {
                "required": [
                  "cursor"
                ]
              }
            }
          }
        }
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": "string",
          "pattern": "^[A-Za-z0-9_.-]{1,64}$",
          "description": "Unique query identifier within the batch, used to return results."
        },
        "op": {
          "type": "string",
          "enum": [
            "get"
          ]
        },
        "collectionId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "ids": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "minItems": 1,
          "maxItems": 100,
          "uniqueItems": true
        },
        "projection": {
          "type": "object",
          "additionalProperties": {
            "oneOf": [
              {
                "type": "integer",
                "enum": [
                  0,
                  1
                ]
              },
              {
                "type": "boolean"
              }
            ]
          },
          "description": "Include or exclude declared fields; computed expressions use aggregate-pipeline. System identity is retained."
        }
      },
      "required": [
        "id",
        "op",
        "collectionId",
        "ids"
      ]
    }
  ],
  "description": "Batch entries support find/count/distinct/aggregate/get. Fields follow each op variant, with id and op. Record distinct is available only within queryBatch; no standalone distinct endpoint exists."
}

CloudRecordBatchQueryResult

Individual result. Validation, compilation, authorization and individual SQL errors affect only that item; statement timeout or exceeding the batch read budget fails the whole batch.

{
  "oneOf": [
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "ok": {
          "type": "boolean",
          "enum": [
            true
          ]
        },
        "data": {
          "oneOf": [
            {
              "$ref": "#/components/schemas/CloudRecordPage"
            },
            {
              "$ref": "#/components/schemas/CloudCappedCount"
            },
            {
              "$ref": "#/components/schemas/CloudDistinctResult"
            },
            {
              "$ref": "#/components/schemas/CloudRecordAggregatePage"
            },
            {
              "$ref": "#/components/schemas/CloudRecordGetResult"
            }
          ],
          "description": "Same as data in the corresponding single endpoint's successful response."
        }
      },
      "required": [
        "ok",
        "data"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "ok": {
          "type": "boolean",
          "enum": [
            false
          ]
        },
        "error": {
          "$ref": "#/components/schemas/Fault"
        }
      },
      "required": [
        "ok",
        "error"
      ]
    }
  ],
  "description": "Individual result. Validation, compilation, authorization and individual SQL errors affect only that item; statement timeout or exceeding the batch read budget fails the whole batch."
}

CloudRecordChangeEvent

FieldTypeRequiredDescription
eventIdstringYesEvent position, equal to the SSE frame id; use as Last-Event-ID on reconnect. Opaque; do not parse or concatenate it.
collectionIdstringYesNot specified in OpenAPI
recordIdstringYesNot specified in OpenAPI
revisionintegerYesRecord revision after the change; delete uses the deletion revision.
changestringYesrecord: insert, update or restore; delete: soft deletion or physical TTL deletion. Read again by recordId to obtain current content.
occurredAtintegerYesWrite time: server time within the write transaction, in Unix milliseconds. Events follow write-transaction order, not commit order. Revisions for one record are not guaranteed monotonic. Reread by recordId and ignore non-delete events whose revision is no newer than already observed. Always process delete events, including late ones, and clear the record's observed revision. Treat later events with the same ID as a new record: revisions continue after soft deletion but restart at 1 after physical deletion.
restrictedbooleanYestrue when the collection has employee data rules. Servers aggregating under app identity may forward restricted events only as collection-level notifications without recordId/revision. Browsers reread through employee-rule-protected endpoints to avoid disclosing inaccessible record existence.

CloudRecordGetResult

items follow requested ids order; nonexistent, soft-deleted or unreadable IDs appear in missing.

FieldTypeRequiredDescription
itemsarray<object>YesNot specified in OpenAPI
missingarray<string>YesNot specified in OpenAPI

CloudRecordLeaseGrant

FieldTypeRequiredDescription
idstringYesNot specified in OpenAPI
tokenstringYesNot specified in OpenAPI
expiresAtintegerYesUnix milliseconds.
fenceintegerYesNot specified in OpenAPI
recordobjectYesRecordDocument. See the referenced schema in the Schemas section.

CloudRecordLockView

FieldTypeRequiredDescription
labelstringYesNot specified in OpenAPI
expiresAtintegerYesUnix milliseconds.
fenceintegerYesNot specified in OpenAPI
sinceintegerYesUnix milliseconds.

CloudRecordPage

FieldTypeRequiredDescription
itemsarray<object>YesNot specified in OpenAPI
pageInfoobjectYesCloudPageInfo. See the referenced schema in the Schemas section.
totalobjectNoCloudCappedCount. See the referenced schema in the Schemas section.

CloudRecordSubscribeFrame

SSE frame: event is the frame type, id is the resume position, and data is JSON. Sends heartbeat immediately on connection with the current position as id, then every 15 seconds. change follows write-transaction order, so record revisions may not be monotonic; see CloudRecordChangeEvent.occurredAt. reset closes the connection.

{
  "oneOf": [
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "event": {
          "type": "string",
          "enum": [
            "change"
          ]
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 8192
        },
        "data": {
          "$ref": "#/components/schemas/CloudRecordChangeEvent"
        }
      },
      "required": [
        "event",
        "id",
        "data"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "event": {
          "type": "string",
          "enum": [
            "heartbeat"
          ]
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 8192
        },
        "data": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "at": {
              "type": "integer",
              "description": "Server time in Unix milliseconds."
            }
          },
          "required": [
            "at"
          ]
        }
      },
      "required": [
        "event",
        "id",
        "data"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "event": {
          "type": "string",
          "enum": [
            "reset"
          ]
        },
        "data": {
          "$ref": "#/components/schemas/CloudRecordSubscribeReset"
        }
      },
      "required": [
        "event",
        "data"
      ]
    }
  ],
  "description": "SSE frame: event is the frame type, id is the resume position, and data is JSON. Sends heartbeat immediately on connection with the current position as id, then every 15 seconds. change follows write-transaction order, so record revisions may not be monotonic; see CloudRecordChangeEvent.occurredAt. reset closes the connection."
}

CloudRecordSubscribeReset

The server closes the connection after reset. Read current data again, then subscribe without Last-Event-ID.

FieldTypeRequiredDescription
reasonstringYesCURSOR_EXPIRED: changes after the resume position passed 24-hour retention, the cursor cannot be decoded (for example after key rotation), or the tenant database moved instances. SCOPE_CHANGED: authorization scope changed, including readable collection changes when collectionIds was omitted or a collection becoming unreadable during resume. Both require rereading current data and subscribing again without a resume position.
messagestringNoNot specified in OpenAPI

CloudRecordTotalOption

Include matching total from the same read-only snapshot as total:{count,capped}. Only for the first or an offset page; combining with continuation cursor returns INVALID_REQUEST.

FieldTypeRequiredDescription
maxintegerNoTotal cap; if actual total exceeds max, total.count=max and total.capped=true.

CloudSamplePage

FieldTypeRequiredDescription
itemsarray<object>YesNot specified in OpenAPI
pageInfoobjectYesCloudPageInfo. See the referenced schema in the Schemas section.

CloudSourceDocumentSummary

FieldTypeRequiredDescription
idstringYesNot specified in OpenAPI
revisionintegerYesNot specified in OpenAPI
namestringYesNot specified in OpenAPI
descriptionstringYesNot specified in OpenAPI
createdAtintegerYesNot specified in OpenAPI
updatedAtintegerYesNot specified in OpenAPI
redactedbooleanYesNot specified in OpenAPI
protocolstringYesNot specified in OpenAPI
runtimeStatestringYesNot specified in OpenAPI
healthstringYesNot specified in OpenAPI
platformReadinessobjectNoCloudPlatformReadiness. See the referenced schema in the Schemas section.
referencebooleanNoNot specified in OpenAPI
nativeProtocolstringNoNot specified in OpenAPI
targetobjectNoStreamSourceTarget. See the referenced schema in the Schemas section.
configRevisionintegerNoOpaque execution snapshot version; may advance on rename. Read the authoritative receipt, never infer it from revision.
desiredStatestringNoNot specified in OpenAPI
sourceTypestringNoNot specified in OpenAPI
runtimeLocationstringNoNot specified in OpenAPI

CloudSourceDocumentView

FieldTypeRequiredDescription
idstringYesPositive decimal int64 identifier; always a string on the wire.
revisionintegerYesNot specified in OpenAPI
documentobjectYesSourceDefinition. See the referenced schema in the Schemas section.
runtimeStatestringYesNot specified in OpenAPI
healthstringYesNot specified in OpenAPI
createdAtintegerYesNot specified in OpenAPI
updatedAtintegerYesNot specified in OpenAPI
platformReadinessobjectNoCloudPlatformReadiness. See the referenced schema in the Schemas section.
configRevisionintegerNoOpaque execution snapshot version; may advance on rename. Read the authoritative receipt, never infer it from revision.
desiredStatestringNoNot specified in OpenAPI

CloudSourceObservationsFull

FieldTypeRequiredDescription
itemsarray<object>YesNot specified in OpenAPI
windowobjectYesNot specified in OpenAPI
coveragestringYesNot specified in OpenAPI
checkedAtinteger (int64)YesNot specified in OpenAPI

CloudSourceObservationsSummary

FieldTypeRequiredDescription
viewstringYesNot specified in OpenAPI
itemsarray<object>YesNot specified in OpenAPI
coveragestringYesNot specified in OpenAPI
checkedAtinteger (int64)YesNot specified in OpenAPI

CloudSourceReferenceView

FieldTypeRequiredDescription
idstringYesNot specified in OpenAPI
revisionintegerYesNot specified in OpenAPI
configRevisionintegerYesOpaque execution snapshot version; may advance on rename. Read the authoritative receipt, never infer it from revision.
referencebooleanYesNot specified in OpenAPI
nativeProtocolstringYesNot specified in OpenAPI
targetobjectYesStreamSourceTarget. See the referenced schema in the Schemas section.
runtimeStatestringYesNot specified in OpenAPI
healthstringYesNot specified in OpenAPI
desiredStatestringYesNot specified in OpenAPI

CloudSourceSummaryView

Safe source inventory; no document or configuration is returned. Never use this summary as an editor document.

FieldTypeRequiredDescription
idstringYesNot specified in OpenAPI
revisionintegerYesNot specified in OpenAPI
namestringYesNot specified in OpenAPI
descriptionstringYesNot specified in OpenAPI
protocolstringYesNot specified in OpenAPI
runtimeStatestringYesNot specified in OpenAPI
healthstringYesNot specified in OpenAPI
createdAtintegerYesNot specified in OpenAPI
updatedAtintegerYesNot specified in OpenAPI
redactedbooleanYesNot specified in OpenAPI
platformReadinessobjectNoCloudPlatformReadiness. See the referenced schema in the Schemas section.

CloudStreamDocument

Shared Stream script and Source bindings; Cloud deployment additionally exposes model, entries and messages.

FieldTypeRequiredDescription
namestringYesNot specified in OpenAPI
descriptionstringNoNot specified in OpenAPI
modelstringNoNot specified in OpenAPI
scriptobjectYesStreamScript. See the referenced schema in the Schemas section.
sourcesarray<object>NoNot specified in OpenAPI
entriesarray<object>NoNot specified in OpenAPI
messagesarray<object>NoNot specified in OpenAPI
sourceBindingsarray<object>NoNot specified in OpenAPI
extensionsobjectNoNot specified in OpenAPI

CloudStreamDocumentSummary

FieldTypeRequiredDescription
idstringYesNot specified in OpenAPI
revisionintegerYesNot specified in OpenAPI
namestringYesNot specified in OpenAPI
descriptionstringYesNot specified in OpenAPI
createdAtintegerYesNot specified in OpenAPI
updatedAtintegerYesNot specified in OpenAPI
redactedbooleanYesNot specified in OpenAPI
modelstringYesNot specified in OpenAPI
statusstringYesNot specified in OpenAPI
activeReleaseintegerYesCloud extension: release sequence, not the activeVersion identifier.
platformReadinessobjectNoCloudPlatformReadiness. See the referenced schema in the Schemas section.
activeVersionstringNoAuthoritative active version identifier, or 0 when inactive.

CloudStreamDocumentView

FieldTypeRequiredDescription
idstringYesPositive decimal int64 identifier; always a string on the wire.
revisionintegerYesNot specified in OpenAPI
documentobjectYesCloudStreamDocument. See the referenced schema in the Schemas section.
activeDocumentobjectNoCloudStreamDocument. See the referenced schema in the Schemas section.
statusstringYesNot specified in OpenAPI
activeReleaseintegerYesCloud extension: release sequence, not the activeVersion identifier.
createdAtintegerYesNot specified in OpenAPI
updatedAtintegerYesNot specified in OpenAPI
platformReadinessobjectNoCloudPlatformReadiness. See the referenced schema in the Schemas section.
activeVersionstringNoAuthoritative active version identifier, or 0 when inactive.

CloudStreamEntry

FieldTypeRequiredDescription
idstringYesNot specified in OpenAPI
kindstringYesNot specified in OpenAPI
configobjectNoNot specified in OpenAPI
topicstringNoNot specified in OpenAPI
requestobjectNoCloudStreamRequestDefinition. See the referenced schema in the Schemas section.

CloudStreamMessageDeclaration

FieldTypeRequiredDescription
topicstringYesNot specified in OpenAPI
accessstringYesNot specified in OpenAPI

CloudStreamMessageTopicPermission

FieldTypeRequiredDescription
topicstringYesNot specified in OpenAPI
publishbooleanYesNot specified in OpenAPI
subscribebooleanYesNot specified in OpenAPI

CloudStreamProgramSummary

Cloud deployment inventory. model and activeRelease are the stored native values; activeVersion is the immutable release row ID. The redacted document is display-only and has no script, entries or Source bindings.

FieldTypeRequiredDescription
idstringYesNot specified in OpenAPI
revisionintegerYesNot specified in OpenAPI
namestringYesNot specified in OpenAPI
modelstringYesNot specified in OpenAPI
statusstringYesNot specified in OpenAPI
activeReleaseintegerYesNot specified in OpenAPI
activeVersionstringYesNot specified in OpenAPI
executionStatestringYesNot specified in OpenAPI
documentobjectYesNot specified in OpenAPI
redactedbooleanYesNot specified in OpenAPI
createdAtintegerYesNot specified in OpenAPI
updatedAtintegerYesNot specified in OpenAPI
platformReadinessobjectNoCloudPlatformReadiness. See the referenced schema in the Schemas section.

CloudStreamProgramView

FieldTypeRequiredDescription
idstringYesNot specified in OpenAPI
namestringYesNot specified in OpenAPI
modelstringYesNot specified in OpenAPI
revisionintegerYesDraft revision returned by this operation; pass it directly as the next expectedRevision.
activeVersionstringYesAuthoritative active version identifier, or 0 when inactive.
activeReleaseintegerNoCloud extension: release sequence, not the activeVersion identifier.
statusstringYesNot specified in OpenAPI
executionStatestringYesNot specified in OpenAPI
createdAtintegerYesNot specified in OpenAPI
updatedAtintegerYesNot specified in OpenAPI
documentobjectNoNot specified in OpenAPI
platformReadinessobjectNoCloudPlatformReadiness. See the referenced schema in the Schemas section.

CloudStreamRequestDefinition

FieldTypeRequiredDescription
codestringYesNot specified in OpenAPI
namestringYesNot specified in OpenAPI
descriptionstringNoNot specified in OpenAPI
contractVersionstringYesNot specified in OpenAPI
inputSchemaobjectYesNot specified in OpenAPI
outputSchemaobjectYesNot specified in OpenAPI
sideEffectstringYesNot specified in OpenAPI
idempotencystringYesNot specified in OpenAPI
timeoutMsintegerYesNot specified in OpenAPI
statusstringNoNot specified in OpenAPI

CloudStreamRequestGrantInfo

FieldTypeRequiredDescription
codestringYesNot specified in OpenAPI
principalKindstringYesNot specified in OpenAPI
principalIDstringYesNot specified in OpenAPI
statusstringYesNot specified in OpenAPI
bindingDigeststringYesNot specified in OpenAPI
recipientEligibleintegerYesNot specified in OpenAPI
recipientActionsarray<string>YesNot specified in OpenAPI
registeredintegerYesNot specified in OpenAPI
activeintegerYesNot specified in OpenAPI
revisionintegerYesNot specified in OpenAPI
actionsarray<string>YesNot specified in OpenAPI
targetsarray<object>YesNot specified in OpenAPI
createdPrincipalstringYesNot specified in OpenAPI
updatedPrincipalstringYesNot specified in OpenAPI
createdTimeintegerYesNot specified in OpenAPI
updatedTimeintegerYesNot specified in OpenAPI
activationSupportedintegerYesNot specified in OpenAPI
snapshotTokenstringYesServer-generated authorization snapshot version, for concurrency checking only, not an invocation credential.

CloudStreamRequestGrantMutation

FieldTypeRequiredDescription
codestringYesNot specified in OpenAPI
principalKindstringYesNot specified in OpenAPI
principalIDstringYesNot specified in OpenAPI
revisionintegerYesNot specified in OpenAPI
activeintegerYesNot specified in OpenAPI
snapshotTokenstringNoNew snapshot returned after a successful expectedSnapshotToken update; absent in legacy revision-field mode.

CloudStreamRequestGrantTargetInfo

FieldTypeRequiredDescription
digeststringYesNot specified in OpenAPI
actionstringYesNot specified in OpenAPI
revisionintegerYesNot specified in OpenAPI
activeintegerYesNot specified in OpenAPI
currentintegerYesNot specified in OpenAPI
kindstringYesNot specified in OpenAPI
referencestringYesNot specified in OpenAPI

CloudStreamRequestGrantTargetRevision

FieldTypeRequiredDescription
digeststringYesNot specified in OpenAPI
revisionintegerYesNot specified in OpenAPI

CloudStreamRunError

Safe run diagnostics from a server allowlist; credentials, upstream response bodies, query parameters and arbitrary script exceptions are excluded. Older records or services may omit this field.

FieldTypeRequiredDescription
codestringYesStable reason code; callers must tolerate new codes.
stagestringYesConfirmed failure stage; unspecified failures use execution, and unconfirmed outcomes use unknown.
messagestringYesFixed reason text selected from the server allowlist.
repairstringYesFixed repair guidance; it does not authorize automatically expanding permissions or replaying writes.
sourceRequeststringNoIndicates only that the Source request causing this error was not dispatched; earlier external calls or writes in the same run may have completed. Omitted when unconfirmed or unrelated to a Source request.

CloudStreamStopView

FieldTypeRequiredDescription
idstringYesNot specified in OpenAPI
revisionintegerYesNot specified in OpenAPI
statusstringYesNot specified in OpenAPI
activeReleaseintegerYesCloud extension: release sequence, not the activeVersion identifier.
createdAtintegerYesNot specified in OpenAPI
updatedAtintegerYesNot specified in OpenAPI
activeVersionstringNoAuthoritative active version identifier, or 0 when inactive.

CloudWriteError

FieldTypeRequiredDescription
indexintegerYesNot specified in OpenAPI
idstringNoNot specified in OpenAPI
errorobjectYesFault. See the referenced schema in the Schemas section.

CollectionDescription

FieldTypeRequiredDescription
collectionIdstringYesCollection ID identifying the owner of business records and samples.
descriptionstringYesNot specified in OpenAPI
fieldsarray<object>YesNot specified in OpenAPI
indexStatusarray<object>YesRead-only index status: name/spec/state/error. Only ready means the declared physical index is effective; pending/building/failed cannot support business-key upsert. Mounted collections enforce uniqueness at the source.
indexesarray<object>YesUnified index declaration, for example [{"path":"orderNo","unique":true}] or [{"paths":["factoryId","externalId"],"unique":true}]. Omission preserves indexes; [] removes them. Paths omit data.; unique indexes are record B-trees only. Builds are asynchronous; check readiness through indexStatus.
metadataNoticestringYesNot specified in OpenAPI
namestringYesThe user-facing business name and the sole name shown in the interface. Use a concise, readable name that describes the business object or purpose. Follow the user's language preferences and existing terminology; Chinese is not required. Do not include surrounding whitespace, slashes, or NUL characters, or append IDs, timestamps, or random strings without business meaning. Report sibling name conflicts explicitly. Programs reference IDs; the App SDK uses a separate stable alias. Renaming does not change the ID or alias.
recordGrainstringNoNot specified in OpenAPI
recordSchemaobjectYesSchema. See the referenced schema in the Schemas section.
relationshipsarray<object>YesNot specified in OpenAPI
revisionintegerYesNot specified in OpenAPI
sampleGrainstringNoNot specified in OpenAPI
sampleSchemaobjectNoSchema. See the referenced schema in the Schemas section.

CollectionRelationship

FieldTypeRequiredDescription
cardinalitystringYesNot specified in OpenAPI
descriptionstringNoNot specified in OpenAPI
namestringYesNot specified in OpenAPI
sourceFieldstringYesNot specified in OpenAPI
targetCollectionIdstringYesNot specified in OpenAPI
targetFieldstringYesNot specified in OpenAPI

CollectionSemantics

FieldTypeRequiredDescription
fieldsarray<object>NoNot specified in OpenAPI
recordGrainstringNoNot specified in OpenAPI
relationshipsarray<object>NoNot specified in OpenAPI
sampleGrainstringNoNot specified in OpenAPI

DiscoveredField

FieldTypeRequiredDescription
aggregationNotestringNoNot specified in OpenAPI
descriptionstringYesNot specified in OpenAPI
enumarray<object>NoNot specified in OpenAPI
kindstringYesNot specified in OpenAPI
pathstringYesNot specified in OpenAPI
requiredbooleanYesNot specified in OpenAPI
typestringYesNot specified in OpenAPI
unitstringYesNot specified in OpenAPI
formatstringNoType representation annotation: int32 for integer, float (float32) or double (float64) for number, and date-time (datetime) for string. Adds no numeric range, precision or date-format validation, rounding, date parsing or time-zone conversion. Omission preserves base-type semantics. The outer sample time field is unchanged.

DiscoveryCollection

FieldTypeRequiredDescription
collectionIdstringYesCollection ID identifying the owner of business records and samples.
descriptionstringYesNot specified in OpenAPI
hasSamplesbooleanNoNot specified in OpenAPI
namestringYesThe user-facing business name and the sole name shown in the interface. Use a concise, readable name that describes the business object or purpose. Follow the user's language preferences and existing terminology; Chinese is not required. Do not include surrounding whitespace, slashes, or NUL characters, or append IDs, timestamps, or random strings without business meaning. Report sibling name conflicts explicitly. Programs reference IDs; the App SDK uses a separate stable alias. Renaming does not change the ID or alias.
recordGrainstringNoNot specified in OpenAPI
revisionintegerYesNot specified in OpenAPI
sampleGrainstringNoNot specified in OpenAPI

DiscoveryResult

FieldTypeRequiredDescription
asOfintegerNoCursor traversal cutoff in Unix milliseconds; not a retained database snapshot.
completebooleanYesTrue only when this response contains the entire query result; a final page alone is not complete.
hasMorebooleanYesContinue with nextCursor in cursor mode, otherwise nextPage.
listarray<object>YesNot specified in OpenAPI
nextCursorstringNoNot specified in OpenAPI
nextPageintegerNoNot specified in OpenAPI
pageintegerYesPage number, starting at 1.
sizeintegerYesPage size; see this endpoint's maximum or the capability catalog.
snapshotScopestringYesthisRequestOnly uses independent request snapshots; boundedLive limits cursor traversal by asOf but does not preserve row versions across requests.
totalintegerYesMatching row count; null when includeTotal=false.
totalKnownbooleanNoNot specified in OpenAPI
truncatedbooleanYesNot specified in OpenAPI

DocCatalog

FieldTypeRequiredDescription
capabilitiesobjectYesNot specified in OpenAPI
contractVersionstringYesNot specified in OpenAPI
limitsobjectYesNot specified in OpenAPI
modelsarray<object>YesNot specified in OpenAPI
operationsarray<object>YesNot specified in OpenAPI
relationsarray<object>NoNot specified in OpenAPI
schemasobjectYesNot specified in OpenAPI
versionstringNoNot specified in OpenAPI
cloudContractRevisionstringNoNot specified in OpenAPI
kindsarray<string>NoNot specified in OpenAPI
modesarray<string>NoNot specified in OpenAPI
jobStatesarray<string>NoNot specified in OpenAPI
actionsarray<string>NoNot specified in OpenAPI

DocCloudAppDataPolicyGetResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesCloudAppDataPolicy. See the referenced schema in the Schemas section.

DocCloudAppDataPolicyUpdateOutcome

FieldTypeRequiredDescription
jobIdstringNoNot specified in OpenAPI
replayedbooleanYesNot specified in OpenAPI
resultsarray<object>NoNot specified in OpenAPI
statusstringYesExecution state of this operation.
summaryobjectNoOutcomeSummary. See the referenced schema in the Schemas section.

DocCloudAppDataPolicyUpdateResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesDocCloudAppDataPolicyUpdateOutcome. See the referenced schema in the Schemas section.

DocCloudAppDataPolicyUpdateResult

FieldTypeRequiredDescription
opIdstringYesInput identifier for correlating the original request.
actionstringYesNot specified in OpenAPI
idstringYesObject ID as a string, obtained through discovery or read endpoints; do not use a name as an ID.
statusstringYesExecution state of this input item.
kindstringNoNot specified in OpenAPI
revisionintegerNoNot specified in OpenAPI
errorobjectNoDocItemFault. See the referenced schema in the Schemas section.

DocCloudAppStreamAccessListResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesCloudAppStreamAccessPage. See the referenced schema in the Schemas section.

DocCloudAppStreamPolicyGetResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesCloudAppStreamPolicy. See the referenced schema in the Schemas section.

DocCloudAppStreamPolicyUpdateOutcome

FieldTypeRequiredDescription
jobIdstringNoNot specified in OpenAPI
replayedbooleanYesNot specified in OpenAPI
resultsarray<object>NoNot specified in OpenAPI
statusstringYesExecution state of this operation.
summaryobjectNoOutcomeSummary. See the referenced schema in the Schemas section.

DocCloudAppStreamPolicyUpdateResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesDocCloudAppStreamPolicyUpdateOutcome. See the referenced schema in the Schemas section.

DocCloudAppStreamPolicyUpdateResult

FieldTypeRequiredDescription
opIdstringYesInput identifier for correlating the original request.
actionstringYesNot specified in OpenAPI
idstringYesObject ID as a string, obtained through discovery or read endpoints; do not use a name as an ID.
statusstringYesExecution state of this input item.
kindstringNoNot specified in OpenAPI
revisionintegerNoNot specified in OpenAPI
errorobjectNoDocItemFault. See the referenced schema in the Schemas section.

DocCommonError

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectNoNot specified in OpenAPI
errorobjectYesNot specified in OpenAPI

DocItemFault

FieldTypeRequiredDescription
codestringYesMachine-readable error code, such as OVERLOADED or VERSION_CONFLICT.
reasonstringYesDeveloper-facing error reason.
detailsarray<object>YesStructured location information; an empty array when absent.
executionstringYesnotStarted: rejected before the write path; rolledBack: executed then fully rolled back; committed: committed; unknown: commit status cannot be established. unknown occurs only on writes, never reads. notStarted/rolledBack establish no committed side effects. For non-atomic partialCommit operations, any committed chunk/item means committed, possibly partially. retry.safe=false and error-envelope data contains cumulative results.
retryobjectYesErrorRetry. See the referenced schema in the Schemas section.
repairstringNoSuggested correction, such as narrowing query scope.
opIdstringNoIdentifier of the failed input item.
queryIdstringNoIdentifier of the failed query in a query batch.
pathstringNoLocation of the invalid input, when available.

DocJobRow

FieldTypeRequiredDescription
attemptsintegerNoNot specified in OpenAPI
createdAtintegerNoNot specified in OpenAPI
errorobjectNoNot specified in OpenAPI
executionStatusstringYesNot specified in OpenAPI
finishedAtintegerNoNot specified in OpenAPI
jobIdstringYesNot specified in OpenAPI
outcomestringYesData commit outcome independent of legacy status; failed does not imply rollback.
progressobjectYesNot specified in OpenAPI
resultobjectNoOriginal submitted operation result, using that operation's result structure.
startedAtintegerNoNot specified in OpenAPI
statusstringYesNot specified in OpenAPI

DocJobsQueryResult

FieldTypeRequiredDescription
queryIdstringYesNot specified in OpenAPI
listarray<object>YesNot specified in OpenAPI

DocMetadataRow

FieldTypeRequiredDescription
createdAtintegerNoNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI
deletedAtintegerNoNot specified in OpenAPI
idstringYesObject ID as a string, obtained through discovery or read endpoints; do not use a name as an ID.
kindstringYesNot specified in OpenAPI
launchobjectNoNot specified in OpenAPI
revisionintegerYesNot specified in OpenAPI
updatedAtintegerNoNot specified in OpenAPI
relationshipobjectNoNot specified in OpenAPI

DocNamespaceQueryResult

FieldTypeRequiredDescription
listarray<object>YesNot specified in OpenAPI
totalintegerYesNot specified in OpenAPI
pageintegerYesNot specified in OpenAPI
sizeintegerYesNot specified in OpenAPI
hasMorebooleanYesNot specified in OpenAPI
nextPageintegerNoNot specified in OpenAPI
completebooleanYesNot specified in OpenAPI
truncatedbooleanYesNot specified in OpenAPI
snapshotScopestringYesNot specified in OpenAPI
queryIdstringYesNot specified in OpenAPI
ancestorsarray<object>NoNot specified in OpenAPI

DocOtherReference

FieldTypeRequiredDescription
createdAtintegerNoNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI
deletedAtintegerNoNot specified in OpenAPI
idstringYesObject ID as a string, obtained through discovery or read endpoints; do not use a name as an ID.
kindstringYesNot specified in OpenAPI
launchobjectNoNot specified in OpenAPI
revisionintegerYesNot specified in OpenAPI
updatedAtintegerNoNot specified in OpenAPI
relationshipobjectNoNot specified in OpenAPI

DocRecordPlanStep

FieldTypeRequiredDescription
actionstringYesNot specified in OpenAPI
bindingSourcesarray<string>NoNot specified in OpenAPI
changedFieldsarray<string>NoNot specified in OpenAPI
checksRevisionbooleanYesNot specified in OpenAPI
collectionIdstringNoCollection ID identifying the owner of business records and samples.
conditionCountintegerYesNot specified in OpenAPI
conditionFieldsarray<string>NoNot specified in OpenAPI
dependsOnarray<string>NoPrerequisite opIds; the server checks dependency cycles.
opIdstringYesUnique operation identifier within the transaction, used by dependencies and result references.
targetIdstringNoNot specified in OpenAPI

DocRecordValidation

FieldTypeRequiredDescription
executionGuaranteedbooleanYesNot specified in OpenAPI
locksHeldAfterResponsebooleanYesNot specified in OpenAPI
planarray<object>YesNot specified in OpenAPI
readCollectionsarray<string>YesNot specified in OpenAPI
statusstringYesNot specified in OpenAPI
warningsarray<string>YesNot specified in OpenAPI
writeCollectionsarray<string>YesNot specified in OpenAPI
writesCommittedbooleanYesNot specified in OpenAPI

DocReferencesQueryResult

FieldTypeRequiredDescription
queryIdstringYesNot specified in OpenAPI
targetsarray<object>YesNot specified in OpenAPI

DocStreamReference

FieldTypeRequiredDescription
createdAtintegerNoNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI
deletedAtintegerNoNot specified in OpenAPI
idstringYesObject ID as a string, obtained through discovery or read endpoints; do not use a name as an ID.
kindstringYesNot specified in OpenAPI
launchobjectNoNot specified in OpenAPI
revisionintegerYesNot specified in OpenAPI
updatedAtintegerNoNot specified in OpenAPI
relationshipobjectNoNot specified in OpenAPI

DocTopicView

FieldTypeRequiredDescription
queryIdstringYesNot specified in OpenAPI
metaobjectYesDocMetadataRow. See the referenced schema in the Schemas section.
fieldsarray<object>YesNot specified in OpenAPI

DocUnsV2AppCollectionsArchiveResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2AppCollectionsEnsureResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2AppCollectionsListResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2AppCollectionsRestoreResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2AppCollectionsSchemaReplaceResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2CatalogResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesDocCatalog. See the referenced schema in the Schemas section.

DocUnsV2CollectionDescribeResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesCollectionDescription. See the referenced schema in the Schemas section.

DocUnsV2DataAppContextResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesAppContext. See the referenced schema in the Schemas section.

DocUnsV2DataDiscoverResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesDiscoveryResult. See the referenced schema in the Schemas section.

DocUnsV2EdgeNodesListResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2JobsResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2MetadataAggregateResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2MetadataBulkWritePartialError

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectNoWith error.execution=committed, cumulative data includes results/errors/nextIndex/unknownUntil. Indices below nextIndex absent from errors committed; [nextIndex, unknownUntil) is uncertain. Retry with the same key if present. Without a key, only client-ID inserts and ID-based replacements/deletes can be reconciled by reading IDs; server-ID inserts, filter-selected operations and incremental updates such as $inc cannot be safely continued. Always use keys for these writes. Without unknownUntil, continuation from nextIndex is safe. null when nothing committed.
errorobjectYesNot specified in OpenAPI

DocUnsV2MetadataBulkWriteResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2MetadataCountResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2MetadataDeleteManyResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2MetadataDeleteOneResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2MetadataFindResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesMetadataPage. See the referenced schema in the Schemas section.

DocUnsV2MetadataInsertOneResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2MetadataPurgeOutcome

FieldTypeRequiredDescription
jobIdstringNoNot specified in OpenAPI
replayedbooleanYesNot specified in OpenAPI
resultsarray<object>NoNot specified in OpenAPI
statusstringYesExecution state of this operation.
summaryobjectNoOutcomeSummary. See the referenced schema in the Schemas section.

DocUnsV2MetadataPurgeResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesDocUnsV2MetadataPurgeOutcome. See the referenced schema in the Schemas section.

DocUnsV2MetadataPurgeResult

FieldTypeRequiredDescription
opIdstringYesInput identifier for correlating the original request.
actionstringYesNot specified in OpenAPI
idstringYesObject ID as a string, obtained through discovery or read endpoints; do not use a name as an ID.
statusstringYesExecution state of this input item.
kindstringNoNot specified in OpenAPI
revisionintegerNoNot specified in OpenAPI
errorobjectNoDocItemFault. See the referenced schema in the Schemas section.

DocUnsV2MetadataReplaceOneResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2MetadataRestoreResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2MetadataTransactResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2MetadataUpdateManyResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2MetadataUpdateOneResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2NamespaceResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2RecordAggregatePipelineResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesCloudRecordAggregatePage. See the referenced schema in the Schemas section.

DocUnsV2RecordBulkWritePartialError

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectNoWith error.execution=committed, data contains cumulative partial results. Indices below nextIndex absent from writeErrors committed; [nextIndex, unknownUntil) is uncertain. Retry with the same key if present. Without a key, only client-ID inserts and ID-based replacements/deletes can be reconciled by reading IDs; server-ID inserts, filter-selected operations and incremental updates such as $inc cannot be safely continued. Always use keys for these writes. Without unknownUntil, continuation from nextIndex is safe. null when nothing committed.
errorobjectYesNot specified in OpenAPI

DocUnsV2RecordBulkWriteResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2RecordCountResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesCloudCappedCount. See the referenced schema in the Schemas section.

DocUnsV2RecordDeleteManyPartialError

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectNoWith error.execution=committed, contains cumulative results and resumable hasMore/resumeAfter; null when nothing committed.
errorobjectYesNot specified in OpenAPI

DocUnsV2RecordDeleteManyResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2RecordDeleteOneResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2RecordExplainResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2RecordFindResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesCloudRecordPage. See the referenced schema in the Schemas section.

DocUnsV2RecordGetResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesCloudRecordGetResult. See the referenced schema in the Schemas section.

DocUnsV2RecordInsertOneResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2RecordLockResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2RecordQueryBatchResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2RecordRenewResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2RecordReplaceOneResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2RecordRestoreResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2RecordTransactionExecuteOutcome

FieldTypeRequiredDescription
jobIdstringNoNot specified in OpenAPI
replayedbooleanYesNot specified in OpenAPI
resultsarray<object>NoNot specified in OpenAPI
statusstringYesExecution state of this operation.
summaryobjectNoOutcomeSummary. See the referenced schema in the Schemas section.

DocUnsV2RecordTransactionExecuteResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesdryRun=false returns transaction results; dryRun=true returns a rolled-back preflight plan.

DocUnsV2RecordTransactionExecuteResult

FieldTypeRequiredDescription
opIdstringYesInput identifier for correlating the original request.
actionstringYesNot specified in OpenAPI
idstringYesObject ID as a string, obtained through discovery or read endpoints; do not use a name as an ID.
statusstringYesExecution state of this input item.
collectionIdstringNoCollection ID identifying the owner of business records and samples.
revisionintegerNoNot specified in OpenAPI
sourceIdstringNoNot specified in OpenAPI
dataobjectNoBusiness payload for transaction result bindings; use document for the full resource object.
documentobjectNoRecordDocument. See the referenced schema in the Schemas section.
queryobjectNoTransactionQueryResult. See the referenced schema in the Schemas section.
errorobjectNoDocItemFault. See the referenced schema in the Schemas section.

DocUnsV2RecordUnlockResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2RecordUpdateManyPartialError

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectNoWith error.execution=committed, contains cumulative results and resumable hasMore/resumeAfter; null when nothing committed.
errorobjectYesNot specified in OpenAPI

DocUnsV2RecordUpdateManyResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2RecordUpdateOneResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2ReferencesResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2SampleAggregateResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesCloudDataPage. See the referenced schema in the Schemas section.

DocUnsV2SampleAppendOutcome

FieldTypeRequiredDescription
jobIdstringNoNot specified in OpenAPI
replayedbooleanYesNot specified in OpenAPI
resultsarray<object>NoNot specified in OpenAPI
statusstringYesExecution state of this operation.
summaryobjectNoOutcomeSummary. See the referenced schema in the Schemas section.

DocUnsV2SampleAppendResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesDocUnsV2SampleAppendOutcome. See the referenced schema in the Schemas section.

DocUnsV2SampleAppendResult

FieldTypeRequiredDescription
opIdstringYesInput identifier for correlating the original request.
actionstringYesNot specified in OpenAPI
idstringYesObject ID as a string, obtained through discovery or read endpoints; do not use a name as an ID.
statusstringYesExecution state of this input item.
collectionIdstringNoCollection ID identifying the owner of business records and samples.
errorobjectNoDocItemFault. See the referenced schema in the Schemas section.

DocUnsV2SampleDeleteRangeResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2SampleFindResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesCloudSamplePage. See the referenced schema in the Schemas section.

DocUnsV2SampleLatestValuesResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2SourceDevicesListResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesFresh target Edge inventory. checkedAt is observation time; revision hashes device and binding state; complete=false includes per-kind discovery errors. devices contain deviceId, kind, label, address, canCreateSource, requiredParameters and existing sources. Serial discovery does not imply serial acquisition support. Empty devices only proves absence when complete=true. Never classify an arbitrary HID keyboard as a scanner without device identity supplied by the user.

DocUnsV2SourceDiscoverResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2SourceDocumentCreateResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2SourceDocumentDeleteResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2SourceDocumentGetResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2SourceDocumentListResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2SourceDocumentStateUpdateResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNative Edge Source result; inspect the target catalog for its exact versioned response.

DocUnsV2SourceDocumentUpdateResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2SourceHistoryResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2SourceImpactResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2SourceNativeCredentialsUpdateResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2SourceNativeOAuthCompleteResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2SourceNativeOAuthStartResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2SourceObservationsGetResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2SourceProbeResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2SourceProtocolsListResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2SourceResourceCatalogResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2SourceResourceReadResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesBounded native result. Interpret fields using the selected resource output schema.

DocUnsV2SourceResourceScanResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2SourceRuntimeGetResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2SourceValidateResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2StreamDocumentCreateResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2StreamDocumentDisableResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2StreamDocumentGetResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2StreamDocumentUpdateResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2StreamDocumentValidateResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2StreamObservationGetResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2StreamProgramDeleteResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2StreamProgramDeployResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2StreamProgramListResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2StreamProgramRollbackResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2StreamProgramVersionsListResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2StreamRequestGrantGetResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesCloudStreamRequestGrantInfo. See the referenced schema in the Schemas section.

DocUnsV2StreamRequestGrantSetResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesCloudStreamRequestGrantMutation. See the referenced schema in the Schemas section.

DocUnsV2StreamRunsListResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2StreamSampleTestResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

DocUnsV2TopicsResponse

FieldTypeRequiredDescription
codeintegerYesNot specified in OpenAPI
msgstringYesNot specified in OpenAPI
requestIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

ErrorRetry

Whether an unchanged retry is safe. Retry read failures according to safe. Retry write failures only when safe=true, always reusing the original idempotency key.

FieldTypeRequiredDescription
safebooleanYestrue permits retrying the same request unchanged, reusing the write's original key. With false, correct the request or restore authorization first.
afterMsintegerNoSuggested minimum wait in milliseconds, only when safe=true; HTTP also supplies Retry-After in seconds.

Fault

Wire-format error object. The envelope error, bulk item errors, queryBatch item errors and job errors share this structure.

FieldTypeRequiredDescription
codestringYesMachine-readable error code, such as OVERLOADED or VERSION_CONFLICT.
reasonstringYesDeveloper-facing error reason.
detailsarray<object>YesStructured location information; an empty array when absent.
executionstringYesnotStarted: rejected before the write path; rolledBack: executed then fully rolled back; committed: committed; unknown: commit status cannot be established. unknown occurs only on writes, never reads. notStarted/rolledBack establish no committed side effects. For non-atomic partialCommit operations, any committed chunk/item means committed, possibly partially. retry.safe=false and error-envelope data contains cumulative results.
retryobjectYesErrorRetry. See the referenced schema in the Schemas section.
repairstringNoSuggested correction, such as narrowing query scope.
opIdstringNoIdentifier of the failed input in a transaction or bulk write.
queryIdstringNoIdentifier of the failed query in a query batch.
pathstringNoLocation of the invalid input, when available.
objectKindstringNoNot specified in OpenAPI
objectIdstringNoNot specified in OpenAPI
candidatesarray<object>NoNot specified in OpenAPI
conditionIndexintegerNoNot specified in OpenAPI

FieldBinding

FieldTypeRequiredDescription
collectionIdobjectYesUnsV2Identity. See the referenced schema in the Schemas section.
displayNamestringNoNot specified in OpenAPI
fieldPathstringYesNot specified in OpenAPI
kindstringYesNot specified in OpenAPI
namestringYesNot specified in OpenAPI
recordIdobjectYesUnsV2Identity. See the referenced schema in the Schemas section.

FieldSemantics

FieldTypeRequiredDescription
aggregationNotestringYesNot specified in OpenAPI
kindstringYesNot specified in OpenAPI
pathstringYesNot specified in OpenAPI

FileDirectory

FieldTypeRequiredDescription
extensionsarray<string>YesNot specified in OpenAPI
formatstringYesNot specified in OpenAPI
idstringYesUser-declared logical resource selection name within this Source, not a database Source ID or asset file ID. Reuse the same selection name for stable resource identity.
pathstringYesNot specified in OpenAPI

FileSelection

FieldTypeRequiredDescription
idstringYesUser-declared logical resource selection name within this Source, not a database Source ID or asset file ID. Reuse the same selection name for stable resource identity.
pathstringYesNot specified in OpenAPI
tablesarray<string>NoOmit for a byte resource, or select QC2000 tables from a SQLite snapshot.

FileSourceOptions

FieldTypeRequiredDescription
caCertificatestringNoNot specified in OpenAPI
directoriesarray<object>NoNot specified in OpenAPI
resourcesarray<object>NoNot specified in OpenAPI
sshHostKeystringNoNot specified in OpenAPI

HTTPConnection

FieldTypeRequiredDescription
anonymousbooleanNoNot specified in OpenAPI
authenticationstringNoNot specified in OpenAPI
caCertificatestringNoNot specified in OpenAPI
headersobjectNoNot specified in OpenAPI
oauthobjectNoOAuthConfig. See the referenced schema in the Schemas section.
parametersobjectNoNot specified in OpenAPI
portintegerNoNot specified in OpenAPI

IndexSpec

index declaration. Unique is supported only for Record B-tree indexes; GIN takes one path. Unique values retain JSON types, exclude soft-deleted Records, allow missing paths, and treat explicit JSON null as a value. Constraints become effective only when indexStatus.state=ready.

FieldTypeRequiredDescription
kindstringNoNot specified in OpenAPI
pathstringNoBare business field path; _id and _meta.* cannot be declared as business indexes.
pathsarray<string>NoNot specified in OpenAPI
targetstringNoNot specified in OpenAPI
uniquebooleanNoNot specified in OpenAPI
expireAfterSecondsintegerNoTTL index: records are physically deleted after this field's timestamp plus the specified seconds; deletion is irreversible. Only a single path, btree, records, non-unique index is allowed; the field must be declared integer in recordSchema and contain Unix milliseconds. At most one per collection. ensure can only add or increase TTL; shortening/removal requires schema:replace. Unsupported for source-written collections.

IndexState

FieldTypeRequiredDescription
errorstringNoNot specified in OpenAPI
namestringYesNot specified in OpenAPI
specobjectYesIndexSpec. See the referenced schema in the Schemas section.
statestringYesNot specified in OpenAPI

MetadataBulkDeleteOne

FieldTypeRequiredDescription
filterobjectYesUnsV2DataFilter. See the referenced schema in the Schemas section.
sortarray<array<object>>NoUnsV2PipelineSort. See the referenced schema in the Schemas section.
expectedRevisionintegerNoOptional optimistic lock; management forms should send the revision read. Read again after a conflict.

MetadataBulkInsertOne

FieldTypeRequiredDescription
idstringNoNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI

MetadataBulkReplaceOne

FieldTypeRequiredDescription
filterobjectYesUnsV2DataFilter. See the referenced schema in the Schemas section.
sortarray<array<object>>NoUnsV2PipelineSort. See the referenced schema in the Schemas section.
expectedRevisionintegerNoOptional optimistic lock; management forms should send the revision read. Read again after a conflict.
replacementobjectYesNot specified in OpenAPI
upsertbooleanNoSupported only for single updates/replacements; filter must explicitly match _id and inserted configuration must be complete and valid. Deleted objects with the same ID are not restored automatically.

MetadataBulkRestoreOne

FieldTypeRequiredDescription
idstringYesNot specified in OpenAPI
expectedRevisionintegerNoOptional optimistic lock; management forms should send the revision read. Read again after a conflict.

MetadataBulkResult

FieldTypeRequiredDescription
indexintegerYesNot specified in OpenAPI
insertedIdstringNoNot specified in OpenAPI
matchedCountintegerNoNot specified in OpenAPI
modifiedCountintegerNoNot specified in OpenAPI
deletedCountintegerNoNot specified in OpenAPI
restoredCountintegerNoNot specified in OpenAPI
upsertedIdstringNoNot specified in OpenAPI
valueobjectNoMetadataNullableDocument. See the referenced schema in the Schemas section.
errorobjectNoFault. See the referenced schema in the Schemas section.

MetadataBulkUpdateOne

FieldTypeRequiredDescription
filterobjectYesUnsV2DataFilter. See the referenced schema in the Schemas section.
sortarray<array<object>>NoUnsV2PipelineSort. See the referenced schema in the Schemas section.
expectedRevisionintegerNoOptional optimistic lock; management forms should send the revision read. Read again after a conflict.
updateobjectYesSupports only $set/$unset/$setOnInsert. Configuration paths omit data.; system fields are read-only. Replace arrays as whole fields.
upsertbooleanNoSupported only for single updates/replacements; filter must explicitly match _id and inserted configuration must be complete and valid. Deleted objects with the same ID are not restored automatically.

MetadataCollectionInput

Writable configuration; schemaVersion defaults to 1 on the server and unknown fields are rejected.

FieldTypeRequiredDescription
descriptionstringNoNot specified in OpenAPI
indexesarray<object>NoUnified index declaration, for example [{"path":"orderNo","unique":true}] or [{"paths":["factoryId","externalId"],"unique":true}]. Omission preserves indexes; [] removes them. Paths omit data.; unique indexes are record B-trees only. Builds are asynchronous; check readiness through indexStatus.
namestringYesThe user-facing business name and the sole name shown in the interface. Use a concise, readable name that describes the business object or purpose. Follow the user's language preferences and existing terminology; Chinese is not required. Do not include surrounding whitespace, slashes, or NUL characters, or append IDs, timestamps, or random strings without business meaning. Report sibling name conflicts explicitly. Programs reference IDs; the App SDK uses a separate stable alias. Renaming does not change the ID or alias.
recordSchemaobjectYesSchema. See the referenced schema in the Schemas section.
sampleSchemaobjectNoSchema. See the referenced schema in the Schemas section.
schemaVersionintegerNoNot specified in OpenAPI
semanticsobjectNoCollectionSemantics. See the referenced schema in the Schemas section.
parentIdobjectNoContaining directory ID. Omitted on create or null means root; omitted on update preserves placement. Moving does not change collection identity or data.

MetadataDirectoryInput

Writable configuration; schemaVersion defaults to 1 on the server and unknown fields are rejected.

FieldTypeRequiredDescription
descriptionstringNoNot specified in OpenAPI
namestringYesThe user-facing business name and the sole name shown in the interface. Use a concise, readable name that describes the business object or purpose. Follow the user's language preferences and existing terminology; Chinese is not required. Do not include surrounding whitespace, slashes, or NUL characters, or append IDs, timestamps, or random strings without business meaning. Report sibling name conflicts explicitly. Programs reference IDs; the App SDK uses a separate stable alias. Renaming does not change the ID or alias.
parentIdobjectNoNot specified in OpenAPI
schemaVersionintegerNoNot specified in OpenAPI

MetadataDocument

FieldTypeRequiredDescription
kindstringYesOnly directory, topic and collection are generic metadata kinds. Source/Stream writes use their dedicated /uns/sources/documents/create, update, delete and /uns/streams/documents/create, update lifecycle routes. Generic metadata cannot provision credentials or bypass dependency confirmation.
idstringYesNot specified in OpenAPI
revisionintegerYesNot specified in OpenAPI
createdAtintegerYesNot specified in OpenAPI
updatedAtintegerYesNot specified in OpenAPI
deletedAtintegerYesNot specified in OpenAPI
dataobjectYesMetadata response configuration; projection may return only selected fields. ownerAppId / appAlias describe server-managed Collection ownership and cannot be assigned or changed by ordinary writes. App grants determine access separately.

MetadataNullableDocument

FieldTypeRequiredDescription
kindstringNoOnly directory, topic and collection are generic metadata kinds. Source/Stream writes use their dedicated /uns/sources/documents/create, update, delete and /uns/streams/documents/create, update lifecycle routes. Generic metadata cannot provision credentials or bypass dependency confirmation.
idstringNoNot specified in OpenAPI
revisionintegerNoNot specified in OpenAPI
createdAtintegerNoNot specified in OpenAPI
updatedAtintegerNoNot specified in OpenAPI
deletedAtintegerNoNot specified in OpenAPI
dataobjectNoMetadata response configuration; projection may return only selected fields. ownerAppId / appAlias describe server-managed Collection ownership and cannot be assigned or changed by ordinary writes. App grants determine access separately.

MetadataPage

FieldTypeRequiredDescription
itemsarray<object>YesNot specified in OpenAPI
pageInfoobjectYesCloudPageInfo. See the referenced schema in the Schemas section.

MetadataTopicInput

Writable configuration; schemaVersion defaults to 1 on the server and unknown fields are rejected.

FieldTypeRequiredDescription
collectionIdobjectNoUnsV2Identity. See the referenced schema in the Schemas section.
descriptionstringNoNot specified in OpenAPI
fieldsarray<object>NoNot specified in OpenAPI
namestringYesThe user-facing business name and the sole name shown in the interface. Use a concise, readable name that describes the business object or purpose. Follow the user's language preferences and existing terminology; Chinese is not required. Do not include surrounding whitespace, slashes, or NUL characters, or append IDs, timestamps, or random strings without business meaning. Report sibling name conflicts explicitly. Programs reference IDs; the App SDK uses a separate stable alias. Renaming does not change the ID or alias.
parentIdobjectNoNot specified in OpenAPI
schemaVersionintegerNoNot specified in OpenAPI
viewModestringYesNot specified in OpenAPI

MetadataTransactionOperation

FieldTypeRequiredDescription
opIdstringYesNot specified in OpenAPI
actionstringYesNot specified in OpenAPI
kindstringYesOnly directory, topic and collection are generic metadata kinds. Source/Stream writes use their dedicated /uns/sources/documents/create, update, delete and /uns/streams/documents/create, update lifecycle routes. Generic metadata cannot provision credentials or bypass dependency confirmation.
idstringNoNot specified in OpenAPI
filterobjectNoUnsV2DataFilter. See the referenced schema in the Schemas section.
sortarray<array<object>>NoUnsV2PipelineSort. See the referenced schema in the Schemas section.
dataobjectNoNot specified in OpenAPI
updateobjectNoSupports only $set/$unset/$setOnInsert. Configuration paths omit data.; system fields are read-only. Replace arrays as whole fields.
replacementobjectNoNot specified in OpenAPI
expectedRevisionintegerNoOptional optimistic lock; management forms should send the revision read. Read again after a conflict.
dependsOnarray<string>NoNot specified in OpenAPI

MetadataTransactionResult

FieldTypeRequiredDescription
opIdstringYesNot specified in OpenAPI
insertedIdstringNoNot specified in OpenAPI
matchedCountintegerNoNot specified in OpenAPI
modifiedCountintegerNoNot specified in OpenAPI
deletedCountintegerNoNot specified in OpenAPI
restoredCountintegerNoNot specified in OpenAPI
upsertedIdstringNoNot specified in OpenAPI
valueobjectNoMetadataNullableDocument. See the referenced schema in the Schemas section.

ModbusOptions

FieldTypeRequiredDescription
pollIntervalMsintegerNoNot specified in OpenAPI
rangesarray<object>NoNot specified in OpenAPI
unitIdintegerYesNot specified in OpenAPI

ModbusRange

FieldTypeRequiredDescription
addressintegerYesNot specified in OpenAPI
idstringYesObject ID as a string, obtained through discovery or read endpoints; do not use a name as an ID.
quantityintegerYesNot specified in OpenAPI
tablestringYesNot specified in OpenAPI
unitIdintegerNoNot specified in OpenAPI
writablebooleanNoNot specified in OpenAPI

MQTTOptions

FieldTypeRequiredDescription
caCertificatestringNoNot specified in OpenAPI
clientIdstringNoNot specified in OpenAPI
correlationFieldstringNoNot specified in OpenAPI
packetEnvelopebooleanNoNot specified in OpenAPI
qosintegerNoNot specified in OpenAPI
replyTopicstringNoNot specified in OpenAPI
replyTopicFieldstringNoNot specified in OpenAPI
requestTopicstringNoNot specified in OpenAPI
serverSubscribeTopicsarray<string>NoNot specified in OpenAPI
subscriptionsobjectNoNot specified in OpenAPI
topicFiltersarray<string>NoNot specified in OpenAPI
devicePublishTopicsarray<string>NoManaged server logical topic filters; availability and the combined topic budget are defined by the target protocol catalog.
deviceSubscribeTopicsarray<string>NoManaged server logical topic filters; availability and the combined topic budget are defined by the target protocol catalog.

OAuthConfig

FieldTypeRequiredDescription
authorizationUrlstringNoNot specified in OpenAPI
clientAuthenticationstringYesNot specified in OpenAPI
clientIdstringYesNot specified in OpenAPI
grantTypestringNoNot specified in OpenAPI
scopesstringNoNot specified in OpenAPI
tokenUrlstringYesNot specified in OpenAPI

OPCUAOptions

FieldTypeRequiredDescription
nodeIdsarray<string>NoNot specified in OpenAPI
samplingIntervalMsintegerNoNot specified in OpenAPI
securityModestringYesNot specified in OpenAPI
securityPolicystringYesNot specified in OpenAPI
serverCertificatestringNoNot specified in OpenAPI
serverNodesarray<object>NoNot specified in OpenAPI

OPCUAServerNode

FieldTypeRequiredDescription
dataTypestringYesNot specified in OpenAPI
directionstringYesNot specified in OpenAPI
idstringYesObject ID as a string, obtained through discovery or read endpoints; do not use a name as an ID.
namestringYesNot specified in OpenAPI
nodeClassstringYesNot specified in OpenAPI

OpenProtocolOptions

FieldTypeRequiredDescription
bufferLimitintegerNoNot specified in OpenAPI
cellIdintegerYesNot specified in OpenAPI
channelIdintegerYesNot specified in OpenAPI
controllerNamestringYesNot specified in OpenAPI
historyEndIdintegerNoNot specified in OpenAPI
historyStartIdintegerNoNot specified in OpenAPI

OutcomeSummary

FieldTypeRequiredDescription
failedintegerYesNot specified in OpenAPI
notExecutedintegerYesNot specified in OpenAPI
succeededintegerYesNot specified in OpenAPI
totalintegerYesNot specified in OpenAPI
unknownintegerYesNot specified in OpenAPI

PlatformAgentAnalysisDispatchReq

FieldTypeRequiredDescription
canvasIdstringNoNot specified in OpenAPI
cardIdstringNoNot specified in OpenAPI
kindstringYesNot specified in OpenAPI
operationIdstringYesNot specified in OpenAPI
resultIdstringNoNot specified in OpenAPI
taskobjectYesNot specified in OpenAPI

PlatformAgentAnalysisDispatchResp

FieldTypeRequiredDescription
dispatchStatestringYesNot specified in OpenAPI
errorCodestringYesNot specified in OpenAPI
errorMessagestringYesNot specified in OpenAPI
runIdstringYesNot specified in OpenAPI

PlatformAgentAnalysisGetReq

FieldTypeRequiredDescription
runIdstringYesNot specified in OpenAPI

PlatformAgentAnalysisGetResp

FieldTypeRequiredDescription
runobjectYesPlatformAgentJobRunRecord. See the referenced schema in the Schemas section.

PlatformAgentCanvasListReq

FieldTypeRequiredDescription
pageintegerYesNot specified in OpenAPI
sessionIdstringNoNot specified in OpenAPI
sizeintegerYesNot specified in OpenAPI

PlatformAgentCanvasListResp

FieldTypeRequiredDescription
listarray<object>YesNot specified in OpenAPI
pageintegerYesNot specified in OpenAPI
sizeintegerYesNot specified in OpenAPI
totalintegerYesNot specified in OpenAPI

PlatformAgentCanvasRecord

FieldTypeRequiredDescription
canvasIdstringYesNot specified in OpenAPI
createdAtintegerYesNot specified in OpenAPI
namestringYesNot specified in OpenAPI
sessionIdstringYesNot specified in OpenAPI
updatedAtintegerYesNot specified in OpenAPI

PlatformAgentCardDeleteReq

FieldTypeRequiredDescription
canvasIdstringYesNot specified in OpenAPI
cardIdstringYesNot specified in OpenAPI
expectedCardSpecobjectYesNot specified in OpenAPI

PlatformAgentCardDeleteResp

FieldTypeRequiredDescription
cardIdstringYesNot specified in OpenAPI

PlatformAgentCardGetReq

FieldTypeRequiredDescription
canvasIdstringYesNot specified in OpenAPI
cardIdstringYesNot specified in OpenAPI

PlatformAgentCardGetResp

FieldTypeRequiredDescription
canvasIdstringYesNot specified in OpenAPI
cardIdstringYesNot specified in OpenAPI
cardKeystringYesNot specified in OpenAPI
cardSpecobjectYesNot specified in OpenAPI
updatedAtintegerYesNot specified in OpenAPI

PlatformAgentCardListReq

FieldTypeRequiredDescription
canvasIdstringYesNot specified in OpenAPI
pageintegerYesNot specified in OpenAPI
sizeintegerYesNot specified in OpenAPI

PlatformAgentCardListResp

FieldTypeRequiredDescription
listarray<object>YesNot specified in OpenAPI
pageintegerYesNot specified in OpenAPI
sizeintegerYesNot specified in OpenAPI
totalintegerYesNot specified in OpenAPI

PlatformAgentCardUpdateReq

FieldTypeRequiredDescription
canvasIdstringNoNot specified in OpenAPI
cardIdstringYesNot specified in OpenAPI
cardSpecobjectYesNot specified in OpenAPI
expectedCardSpecobjectYesThe full previously read card. Changes produce HTTP 409.
ordintegerNoCanvas order: omit to leave unchanged (forwarded to unssvr as -1). Explicit values, including 0, are preserved.
positionobjectNoNot specified in OpenAPI

PlatformAgentCardUpdateResp

FieldTypeRequiredDescription
cardIdstringYesNot specified in OpenAPI

PlatformAgentJobCreateReq

FieldTypeRequiredDescription
cardIdstringNoNot specified in OpenAPI
cronExprstringNoNot specified in OpenAPI
expiresAtintegerNoNot specified in OpenAPI
intervalSecondsintegerNoNot specified in OpenAPI
namestringYesNot specified in OpenAPI
notifyobjectNoNot specified in OpenAPI
scheduleKindstringYesNot specified in OpenAPI
sessionIdstringYesNot specified in OpenAPI
sourceBlockIdstringNoNot specified in OpenAPI
sourceIdstringNoNot specified in OpenAPI
sourceNamestringNoNot specified in OpenAPI
sourceTypestringYesNot specified in OpenAPI
taskobjectYesNot specified in OpenAPI
typestringNoNot specified in OpenAPI

PlatformAgentJobGetResp

FieldTypeRequiredDescription
jobobjectYesPlatformAgentJobRecord. See the referenced schema in the Schemas section.

PlatformAgentJobIDReq

FieldTypeRequiredDescription
jobIdstringYesNot specified in OpenAPI

PlatformAgentJobListReq

FieldTypeRequiredDescription
cardIdstringNoNot specified in OpenAPI
pageintegerYesNot specified in OpenAPI
searchstringNoNot specified in OpenAPI
sizeintegerYesNot specified in OpenAPI
sourceIdstringNoNot specified in OpenAPI
sourceTypestringNoNot specified in OpenAPI
statusstringNoactive / paused / needs_attention / expired
typestringNoNot specified in OpenAPI

PlatformAgentJobListResp

FieldTypeRequiredDescription
listarray<object>YesNot specified in OpenAPI
pageintegerYesNot specified in OpenAPI
sizeintegerYesNot specified in OpenAPI
totalintegerYesNot specified in OpenAPI

PlatformAgentJobMutationResp

FieldTypeRequiredDescription
jobIdstringYesNot specified in OpenAPI

PlatformAgentJobRecord

FieldTypeRequiredDescription
attentionReasonstringYesNot specified in OpenAPI
cardIdstringYesNot specified in OpenAPI
createdAtintegerYesNot specified in OpenAPI
cronExprstringYesNot specified in OpenAPI
expiresAtintegerYesNot specified in OpenAPI
intervalSecondsintegerYesNot specified in OpenAPI
jobIdstringYesNot specified in OpenAPI
lastFiredAtintegerYesNot specified in OpenAPI
namestringYesNot specified in OpenAPI
nextRunAtintegerYesNot specified in OpenAPI
notifyobjectNoNot specified in OpenAPI
orphanedAtintegerYesNot specified in OpenAPI
scheduleKindstringYesNot specified in OpenAPI
sessionIdstringYesNot specified in OpenAPI
sourceBlockIdstringYesNot specified in OpenAPI
sourceIdstringYesNot specified in OpenAPI
sourceNamestringYesNot specified in OpenAPI
sourceTypestringYesNot specified in OpenAPI
statusstringYesNot specified in OpenAPI
taskobjectYesNot specified in OpenAPI
typestringYesNot specified in OpenAPI
updatedAtintegerYesNot specified in OpenAPI

PlatformAgentJobRunGetReq

FieldTypeRequiredDescription
jobIdstringYesNot specified in OpenAPI
jobRunIdstringYesNot specified in OpenAPI

PlatformAgentJobRunGetResp

FieldTypeRequiredDescription
runobjectYesPlatformAgentJobRunRecord. See the referenced schema in the Schemas section.

PlatformAgentJobRunListReq

FieldTypeRequiredDescription
jobIdstringYesNot specified in OpenAPI
pageintegerYesNot specified in OpenAPI
sizeintegerYesNot specified in OpenAPI
statusstringNoNot specified in OpenAPI

PlatformAgentJobRunListResp

FieldTypeRequiredDescription
listarray<object>YesNot specified in OpenAPI
pageintegerYesNot specified in OpenAPI
sizeintegerYesNot specified in OpenAPI
totalintegerYesNot specified in OpenAPI

PlatformAgentJobRunRecord

FieldTypeRequiredDescription
dispatchStatestringYesNot specified in OpenAPI
errorCodestringNoNot specified in OpenAPI
errorMessagestringNoNot specified in OpenAPI
finishedAtintegerNoNot specified in OpenAPI
firedAtintegerYesNot specified in OpenAPI
jobIdstringYesNot specified in OpenAPI
jobRunIdstringYesNot specified in OpenAPI
resultIdstringNoNot specified in OpenAPI
resultSummaryobjectNoNot specified in OpenAPI
severitystringNoNot specified in OpenAPI
statusstringYesNot specified in OpenAPI
triggerstringNoNot specified in OpenAPI

PlatformAgentJobTriggerResp

FieldTypeRequiredDescription
dispatchStatestringYesNot specified in OpenAPI
jobIdstringYesNot specified in OpenAPI
jobRunIdstringYesNot specified in OpenAPI

PlatformAgentJobUpdateReq

FieldTypeRequiredDescription
cardIdstringNoNot specified in OpenAPI
cronExprstringNoNot specified in OpenAPI
expiresAtintegerNoNot specified in OpenAPI
intervalSecondsintegerNoNot specified in OpenAPI
jobIdstringYesNot specified in OpenAPI
namestringNoNot specified in OpenAPI
notifyobjectNoNot specified in OpenAPI
notifyEnabledintegerNoOmit to preserve notification settings. 1 requires notify; 2 disables notifications and must omit notify.
scheduleKindstringNoNot specified in OpenAPI
sessionIdstringNoNot specified in OpenAPI
sourceBlockIdstringNoNot specified in OpenAPI
sourceIdstringNoNot specified in OpenAPI
sourceNamestringNoNot specified in OpenAPI
sourceTypestringNoNot specified in OpenAPI
taskobjectNoNot specified in OpenAPI
typestringNoNot specified in OpenAPI

PlatformAgentLibraryCreateReq

FieldTypeRequiredDescription
cardKeystringYesNot specified in OpenAPI
cardSpecobjectYesNot specified in OpenAPI
sourceSessionIdstringNoNot specified in OpenAPI
tagsarray<string>NoNot specified in OpenAPI

PlatformAgentLibraryGetReq

FieldTypeRequiredDescription
libraryItemIdstringYesNot specified in OpenAPI

PlatformAgentLibraryGetResp

FieldTypeRequiredDescription
itemobjectYesPlatformAgentLibraryItem. See the referenced schema in the Schemas section.

PlatformAgentLibraryItem

FieldTypeRequiredDescription
cardKeystringYesNot specified in OpenAPI
cardSpecobjectYesNot specified in OpenAPI
createdAtintegerYesNot specified in OpenAPI
libraryItemIdstringYesNot specified in OpenAPI
sourceSessionIdstringYesNot specified in OpenAPI
tagsarray<string>YesNot specified in OpenAPI
updatedAtintegerYesNot specified in OpenAPI

PlatformAgentLibraryListReq

FieldTypeRequiredDescription
pageintegerYesNot specified in OpenAPI
searchstringNoNot specified in OpenAPI
sizeintegerYesNot specified in OpenAPI
tagsarray<string>NoNot specified in OpenAPI

PlatformAgentLibraryListResp

FieldTypeRequiredDescription
listarray<object>YesNot specified in OpenAPI
pageintegerYesNot specified in OpenAPI
sizeintegerYesNot specified in OpenAPI
totalintegerYesNot specified in OpenAPI

PlatformAgentLibraryMutationResp

FieldTypeRequiredDescription
libraryItemIdstringYesNot specified in OpenAPI

PlatformAgentLibrarySnapshot

FieldTypeRequiredDescription
cardKeystringYesNot specified in OpenAPI
cardSpecobjectYesNot specified in OpenAPI
sourceSessionIdstringYesNot specified in OpenAPI
tagsarray<string>YesNot specified in OpenAPI

PlatformAgentLibraryUpdateReq

FieldTypeRequiredDescription
cardSpecobjectYesNot specified in OpenAPI
expectedItemobjectYesPlatformAgentLibrarySnapshot. See the referenced schema in the Schemas section.
libraryItemIdstringYesNot specified in OpenAPI
sourceSessionIdstringNoNot specified in OpenAPI
tagsarray<string>NoNot specified in OpenAPI

PlatformAgentResultCreateReq

FieldTypeRequiredDescription
cardSpecobjectNoNot specified in OpenAPI
dataScopeobjectNoNot specified in OpenAPI
imagesarrayNoNot specified in OpenAPI
missingDataobjectYesNot specified in OpenAPI
operationIdstringYesNot specified in OpenAPI
resultSchemaVersionintegerYesNot specified in OpenAPI
sourceobjectYesPlatformAgentResultSource. See the referenced schema in the Schemas section.
stepsarrayNoNot specified in OpenAPI
summarystringNoNot specified in OpenAPI
tablesarrayNoNot specified in OpenAPI
titlestringYesNot specified in OpenAPI
warningsarray<string>NoNot specified in OpenAPI

PlatformAgentResultCreateResp

FieldTypeRequiredDescription
jobRunIdstringYesNot specified in OpenAPI
resultIdstringYesNot specified in OpenAPI

PlatformAgentResultGetReq

FieldTypeRequiredDescription
operationIdstringNoProvide this or resultId, but not both. After a save timeout, retrieve by the original ID instead of saving again.
resultIdstringNoNot specified in OpenAPI

PlatformAgentResultGetResp

FieldTypeRequiredDescription
resultobjectYesPlatformAgentStoredResult. See the referenced schema in the Schemas section.

PlatformAgentResultListReq

FieldTypeRequiredDescription
pageintegerYesNot specified in OpenAPI
platformSessionIdstringNoNot specified in OpenAPI
sizeintegerYesNot specified in OpenAPI

PlatformAgentResultListResp

FieldTypeRequiredDescription
listarray<object>YesNot specified in OpenAPI
pageintegerYesNot specified in OpenAPI
sizeintegerYesNot specified in OpenAPI
totalintegerYesNot specified in OpenAPI

PlatformAgentResultPinReq

FieldTypeRequiredDescription
canvasIdstringYesNot specified in OpenAPI
positionobjectNoNot specified in OpenAPI
resultIdstringYesNot specified in OpenAPI

PlatformAgentResultPinResp

FieldTypeRequiredDescription
cardIdstringYesNot specified in OpenAPI

PlatformAgentResultSource

FieldTypeRequiredDescription
agentIdstringYesNot specified in OpenAPI
platformRunIdstringNoNot specified in OpenAPI
platformSessionIdstringYesNot specified in OpenAPI
platformUserIdstringNoNot specified in OpenAPI
skillVersionstringNoNot specified in OpenAPI

PlatformAgentStoredResult

FieldTypeRequiredDescription
agentIdstringYesNot specified in OpenAPI
byteSizeintegerYesNot specified in OpenAPI
cardSpecobjectNoNot specified in OpenAPI
createdAtintegerYesNot specified in OpenAPI
manifestobjectYesNot specified in OpenAPI
operationIdstringYesNot specified in OpenAPI
platformRunIdstringYesNot specified in OpenAPI
platformSessionIdstringYesNot specified in OpenAPI
resultIdstringYesNot specified in OpenAPI
skillVersionstringYesNot specified in OpenAPI
sourceKindstringYesNot specified in OpenAPI

PlatformAppAccessMemberResp

FieldTypeRequiredDescription
emailstringNoNot specified in OpenAPI
grantedAtintegerYesMilliseconds
rolesarray<object>YesNot specified in OpenAPI
userIdstringYesNot specified in OpenAPI
userNamestringNoNot specified in OpenAPI

PlatformAppAccessMemberRoleResp

FieldTypeRequiredDescription
roleIdstringYesNot specified in OpenAPI
roleKeystringYesNot specified in OpenAPI
roleNamestringYesNot specified in OpenAPI
sourcesarray<object>YesNot specified in OpenAPI

PlatformAppAccessMembersListReq

FieldTypeRequiredDescription
appIdstringYesNot specified in OpenAPI
grantedAtEndintegerNoMilliseconds; inclusive bounds with second precision.
grantedAtStartintegerNoMilliseconds; inclusive bounds with second precision.
pageintegerNoNot specified in OpenAPI
roleKeysarray<string>NoMatch any value, case insensitive.
scopestringNodraft: computed from draft roles; production or omitted: computed from the production version.
sizeintegerNoNot specified in OpenAPI

PlatformAppAccessMembersListResp

FieldTypeRequiredDescription
allActiveMembersintegerYes1: all active members have access; 2: access is granted by role.
appIdstringYesNot specified in OpenAPI
listarray<object>YesNot specified in OpenAPI
pageintegerYesNot specified in OpenAPI
productionVersionIdstringNoNot specified in OpenAPI
publishedintegerYes1: published; 2: unpublished.
rolesarray<object>YesNot specified in OpenAPI
sizeintegerYesNot specified in OpenAPI
totalintegerYesNot specified in OpenAPI

PlatformAppAccessRoleResp

FieldTypeRequiredDescription
descriptionstringNoNot specified in OpenAPI
memberCountintegerYesNot specified in OpenAPI
roleIdstringYesNot specified in OpenAPI
roleKeystringYesNot specified in OpenAPI
roleNamestringYesNot specified in OpenAPI
statusstringYesactive / retired

PlatformAppAccessRoleSourceResp

FieldTypeRequiredDescription
groupIdstringNoNot specified in OpenAPI
groupNamestringNoNot specified in OpenAPI
typestringYesdirect / group

PlatformAssetFileDeleteReq

FieldTypeRequiredDescription
filePathstringYesNot specified in OpenAPI

PlatformAssetFileDeleteResp

FieldTypeRequiredDescription
deletedbooleanYesNot specified in OpenAPI

PlatformAssetFileMultipartAbortReq

FieldTypeRequiredDescription
fileKeystringYesNot specified in OpenAPI
uploadIdstringYesNot specified in OpenAPI

PlatformAssetFileMultipartAbortResp

FieldTypeRequiredDescription
abortedintegerYesNot specified in OpenAPI

PlatformAssetFileMultipartCompleteReq

FieldTypeRequiredDescription
fileKeystringYesNot specified in OpenAPI
partsarray<object>YesNot specified in OpenAPI
uploadIdstringYesNot specified in OpenAPI

PlatformAssetFileMultipartCompleteResp

FieldTypeRequiredDescription
expiresAtintegerNoNot specified in OpenAPI
filePathstringYesNot specified in OpenAPI
fileUrlstringNoNot specified in OpenAPI
sizeBytesintegerYesNot specified in OpenAPI

PlatformAssetFileMultipartInitReq

FieldTypeRequiredDescription
appInstanceIdstringNoNot specified in OpenAPI
bizIdstringNoNot specified in OpenAPI
businessstringNoNot specified in OpenAPI
contentTypestringNoNot specified in OpenAPI
fileNamestringYesNot specified in OpenAPI
partSizeintegerNoNot specified in OpenAPI
sessionIdstringNoNot specified in OpenAPI
sizeintegerYesNot specified in OpenAPI
useBystringNoNot specified in OpenAPI
visibilitystringNoNot specified in OpenAPI

PlatformAssetFileMultipartInitResp

FieldTypeRequiredDescription
expiresAtintegerYesNot specified in OpenAPI
fileKeystringYesNot specified in OpenAPI
filePathstringYesNot specified in OpenAPI
partCountintegerYesNot specified in OpenAPI
partSizeintegerYesNot specified in OpenAPI
uploadIdstringYesNot specified in OpenAPI

PlatformAssetFileMultipartPart

FieldTypeRequiredDescription
etagstringYesNot specified in OpenAPI
partNumberintegerYesNot specified in OpenAPI

PlatformAssetFileMultipartPartUrl

FieldTypeRequiredDescription
expiresAtintegerYesNot specified in OpenAPI
partNumberintegerYesNot specified in OpenAPI
urlstringYesNot specified in OpenAPI

PlatformAssetFileMultipartPartUrlsReq

FieldTypeRequiredDescription
fileKeystringYesNot specified in OpenAPI
partNumbersarray<integer>YesNot specified in OpenAPI
uploadIdstringYesNot specified in OpenAPI

PlatformAssetFileMultipartPartUrlsResp

FieldTypeRequiredDescription
partUrlsarray<object>YesNot specified in OpenAPI

PlatformAssetFileUploadReq

FieldTypeRequiredDescription
appInstanceIdstringNoNot specified in OpenAPI
businessstringNoNot specified in OpenAPI
contentTypestringNoNot specified in OpenAPI
fileNamestringYesNot specified in OpenAPI
sessionIdstringNoNot specified in OpenAPI
sizeintegerYesNot specified in OpenAPI
useBystringNoNot specified in OpenAPI
visibilitystringNoNot specified in OpenAPI

PlatformAssetFileUploadResp

FieldTypeRequiredDescription
expiresAtintegerNoNot specified in OpenAPI
fileIdintegerNoNot specified in OpenAPI
filePathstringYesNot specified in OpenAPI
fileUrlstringNoNot specified in OpenAPI
postFieldsobjectYesSend all signed fields before the file field. The policy constrains the object key and size.
postUrlstringYesSigned POST URL for multipart/form-data upload.

PlatformAssetFileUrlResp

FieldTypeRequiredDescription
expiresAtintegerNoNot specified in OpenAPI
fileUrlstringYesNot specified in OpenAPI

PlatformAssetUploadReq

FieldTypeRequiredDescription
businessstringNoNot specified in OpenAPI
contentTypestringNoNot specified in OpenAPI
fileNamestringYesNot specified in OpenAPI
isPublicbooleanNoNot specified in OpenAPI
sha256stringNoNot specified in OpenAPI
sizeintegerNoNot specified in OpenAPI
sizeBytesintegerYesNot specified in OpenAPI
storageKeystringNoNot specified in OpenAPI
useBystringNoNot specified in OpenAPI

PlatformAssetUploadResp

FieldTypeRequiredDescription
filePathstringYesNot specified in OpenAPI
fileUrlstringNoNot specified in OpenAPI
postFieldsobjectYesSend all signed fields before the file field. The policy constrains the object key and size.
postUrlstringYesSigned POST URL for multipart/form-data upload.

PlatformAuthWhoamiResp

FieldTypeRequiredDescription
apiKeyNamestringYesNot specified in OpenAPI
emailstringYesNot specified in OpenAPI
keyPrefixstringYesNot specified in OpenAPI
keyTypestringYesNot specified in OpenAPI
permissionsarray<string>YesNot specified in OpenAPI
rolesarray<string>YesNot specified in OpenAPI
userIDintegerYesNot specified in OpenAPI
userNamestringYesNot specified in OpenAPI
workspaceIDintegerYesNot specified in OpenAPI
workspaceNamestringYesNot specified in OpenAPI

PlatformCapabilityDiscoverV2Resp

OpenAPI 3.0 wire schema. Array contains/cardinality annotations and cross-field proof ordering require the shared JSON Schema plus SDK semantic checks; this projection alone is not full contract acceptance.

FieldTypeRequiredDescription
productobjectYesNot specified in OpenAPI
productVersionstringNoNot specified in OpenAPI
contractVersionobjectYesNot specified in OpenAPI
apiContractVersionsarray<string>YesNot specified in OpenAPI
sdkContractVersionsarray<string>YesNot specified in OpenAPI
capabilitiesarray<object>YesNot specified in OpenAPI
deprecationsarray<object>YesNot specified in OpenAPI

PlatformCapabilityErrorResp

FieldTypeRequiredDescription
errorCodestringYesINVALID_CREDENTIAL / CAPABILITY_INVALID_REQUEST / CAPABILITY_FORBIDDEN / CAPABILITY_UNAVAILABLE / CAPABILITY_INTERNAL_ERROR
messagestringYesA fixed public message; internal exceptions are not exposed.

PlatformGetNotificationReq

FieldTypeRequiredDescription
messageIdstringYesNot specified in OpenAPI

PlatformGetNotificationResp

FieldTypeRequiredDescription
channelsarray<object>YesNot specified in OpenAPI
completedAtstringNoNot specified in OpenAPI
createdAtstringYesNot specified in OpenAPI
errorCodestringNoNot specified in OpenAPI
messagestringNoNot specified in OpenAPI
messageIdstringYesNot specified in OpenAPI
recipientNamestringNoRecipient display name (nickName, falling back to userName); an empty string when the recipient is not a member of this Workspace or the name cannot be looked up for now
recipientUserIdstringYesRecipient user ID of the request (a large integer carried as string), same as the recipientUserId given when sending
statusstringYesNot specified in OpenAPI
typestringYesNot specified in OpenAPI

PlatformInfoResp

FieldTypeRequiredDescription
capabilitiesarray<string>YesNot specified in OpenAPI
mqttBrokerstringYesNot specified in OpenAPI
namestringYesNot specified in OpenAPI
versionstringYesAPI version of the requested HTTP entry point

PlatformListNotificationsReq

FieldTypeRequiredDescription
messageIdstringNoFilter by message ID (a large integer carried as string, a positive integer); omitted or empty string means no filter
pageintegerNoPage number, 1-based; defaults to 1 when omitted, an explicit value must be >= 1
recipientUserIdstringNoFilter by recipient user ID (a large integer carried as string, a positive integer); omitted or empty string means no filter
sizeintegerNoItems per page; defaults to 20 when omitted, an explicit value must be between 1 and 100
statusstringNoFilter by status: accepted / sent / failed; omitted or empty string means no filter, any other value is rejected with 400

PlatformListNotificationsResp

FieldTypeRequiredDescription
listarray<object>YesNot specified in OpenAPI
pageintegerYesPage number actually used
sizeintegerYesItems per page actually used
totalintegerYesTotal number of records matching the filters

PlatformMqttAuthCreateReq

FieldTypeRequiredDescription
clientIDRandomSuffixEnabledbooleanNoNot specified in OpenAPI
descriptionstringNoNot specified in OpenAPI
namestringYesNot specified in OpenAPI

PlatformMqttAuthCreateResp

FieldTypeRequiredDescription
clientIDstringYesNot specified in OpenAPI
clientIDRandomSuffixEnabledbooleanYesNot specified in OpenAPI
idintegerYesNot specified in OpenAPI
namestringYesNot specified in OpenAPI
passwordstringYesNot specified in OpenAPI
usernamestringYesNot specified in OpenAPI

PlatformMqttAuthDeleteReq

FieldTypeRequiredDescription
idintegerYesNot specified in OpenAPI

PlatformMqttAuthDeleteResp

FieldTypeRequiredDescription
successbooleanYesNot specified in OpenAPI

PlatformNotificationChannelResult

FieldTypeRequiredDescription
channelstringYesNot specified in OpenAPI
errorCodestringNoNot specified in OpenAPI
messagestringNoNot specified in OpenAPI
platformstringYesNot specified in OpenAPI
statusstringYesOne of sent / failed / no_device / not_configured / accepted / pending. accepted applies to inbox only (the in-app message is accepted and still being processed); pending means the channel was requested but its push is still being processed and has no final result yet.
successCountintegerYesNot specified in OpenAPI
targetCountintegerYesNot specified in OpenAPI

PlatformNotificationError

FieldTypeRequiredDescription
errorCodestringYesNot specified in OpenAPI
messagestringYesNot specified in OpenAPI

PlatformNotificationListItem

FieldTypeRequiredDescription
channelsarray<string>YesRequested terminal reminder channels, elements are web / mobile; an empty array for a silent message
completedAtstringNoCompletion time, RFC 3339 UTC; empty while the request is not completed
createdAtstringYesCreation time, RFC 3339 UTC
errorCodestringNoOnly filled when status is failed
keyIdstringYesID of the API key that sent the message (a large integer carried as string); the string 0 for records dispatched from the admin console
messagestringNoOnly filled when status is failed
messageIdstringYesMessage ID (a large integer carried as string)
modestringYestest / live
recipientNamestringNoRecipient display name (nickName, falling back to userName); an empty string when the recipient is not a member of this Workspace or the name cannot be looked up for now
recipientUserIdstringYesRecipient user ID (a large integer carried as string)
senderIdstringNoMachine identifier of the sender, self-reported, for display only
senderNamestringNoDisplay name of the sender, self-reported, for display only
senderTypestringYesapp / other / system; self-reported by the sender, for display only
statusstringYesaccepted / sent / failed
titlestringYesNotification title; the content is never returned by this endpoint

PlatformNotificationSender

FieldTypeRequiredDescription
idstringNoFor app, requires the appId (agent-platform UUID); optional for other and system. Pattern: [0-9a-zA-Z-]{1,128}.
metaobjectNoType-specific metadata, at most 500 bytes when serialized.
namestringNoHuman-readable display name replacing the deprecated source field; at most 100 characters.
typestringNoOne of app, other or system; defaults to other. system is available only to internal platform senders (such as UNS Agent); app credentials cannot use system, and with sender.type=app the sender.id follows the app bound to the credential. Only type=app sent with an app-bound credential or a platform app credential is shown as an App; type=app self-declared by any other key is downgraded to other, and the API still returns success. Notifications are placed in the workspace System group. For the Agent in Builder (through Tier0 MCP): send a Builder-internal notification with type=app (sender.id is still required and is replaced by the App bound to the session); it appears only in that App's preview bell. Send a system notification with type=system and id=uns-agent; it goes to the regular message center.

PlatformPlatformGetMembersReq

FieldTypeRequiredDescription
keywordstringNoNot specified in OpenAPI
pageintegerNoNot specified in OpenAPI
roleKeystringNoNot specified in OpenAPI
rolesarray<string>NoNot specified in OpenAPI
sizeintegerNoNot specified in OpenAPI
statusesarray<string>NoNot specified in OpenAPI
updatedAtEndstringNoNot specified in OpenAPI
updatedAtStartstringNoNot specified in OpenAPI

PlatformPlatformMemberResp

FieldTypeRequiredDescription
emailstringNoNot specified in OpenAPI
nickNamestringNoNot specified in OpenAPI
rolesarray<object>YesNot specified in OpenAPI
statusstringYesNot specified in OpenAPI
updatedAtstringYesNot specified in OpenAPI
userIdstringYesNot specified in OpenAPI
userNamestringNoNot specified in OpenAPI

PlatformPlatformMemberRoleResp

FieldTypeRequiredDescription
descriptionstringNoNot specified in OpenAPI
roleIdstringYesNot specified in OpenAPI
roleKeystringYesNot specified in OpenAPI
roleNamestringNoNot specified in OpenAPI

PlatformPlatformMembersResp

FieldTypeRequiredDescription
listarray<object>YesNot specified in OpenAPI
pageintegerYesNot specified in OpenAPI
sizeintegerYesNot specified in OpenAPI
totalintegerYesNot specified in OpenAPI

PlatformPublicStreamRequest

FieldTypeRequiredDescription
codestringYesNot specified in OpenAPI
contractVersionstringYesNot specified in OpenAPI
descriptionstringYesNot specified in OpenAPI
idempotencystringYesNot specified in OpenAPI
inputSchemaobjectYesNot specified in OpenAPI
namestringYesNot specified in OpenAPI
outputSchemaobjectYesNot specified in OpenAPI
sideEffectstringYesNot specified in OpenAPI
statusstringYesNot specified in OpenAPI
timeoutMsintegerYesNot specified in OpenAPI

PlatformSendNotificationReq

FieldTypeRequiredDescription
channelsarray<string>NoNot specified in OpenAPI
contentstringYesPlain text only; a request containing HTML tags is rejected with 400.
idempotencyKeystringYesNot specified in OpenAPI
linkstringNoNot specified in OpenAPI
modestringNoDeprecated (2026-11-04): test/live is decided by the platform from the API key and sender.type, and the value sent here is ignored (except for existing app credentials that do not distinguish preview from deployment, during the transition). test messages appear only in that App's Building preview bell; they do not enter the message center and are not pushed to devices.
recipientUserIdstringYesNot specified in OpenAPI
senderobjectNoPlatformNotificationSender. See the referenced schema in the Schemas section.
sourcestringNoDeprecated transitional alias for sender.name. sender.name takes precedence; this field will be removed.
titlestringYesPlain text only; a request containing HTML tags is rejected with 400.
typestringYesNot specified in OpenAPI

PlatformSendNotificationResp

FieldTypeRequiredDescription
createdAtstringYesNot specified in OpenAPI
messageIdstringYesNot specified in OpenAPI
recipientNamestringNoRecipient display name (nickName, falling back to userName); an empty string when the recipient is not a member of this Workspace or the name cannot be looked up for now; never affects the send result
recipientUserIdstringYesRecipient user ID of the request (a large integer carried as string); on an idempotent hit it is the recipient of the existing request
statusstringYesNot specified in OpenAPI

PlatformStreamMessageGrantedTopic

FieldTypeRequiredDescription
publishSubjectstringYesNot specified in OpenAPI
subscribeSubjectstringYesNot specified in OpenAPI
topicstringYesNot specified in OpenAPI

PlatformStreamMessagesConnectReq

FieldTypeRequiredDescription
appIdstringYesNot specified in OpenAPI
clientPublicKeystringYesNot specified in OpenAPI
topicsarray<object>YesNot specified in OpenAPI

PlatformStreamMessagesConnectResp

FieldTypeRequiredDescription
contractVersionstringYesNot specified in OpenAPI
expiresAtstringYesNot specified in OpenAPI
maxPayloadBytesintegerYesNot specified in OpenAPI
permissionsarray<object>YesNot specified in OpenAPI
urlstringYesNot specified in OpenAPI
userJwtstringYesNot specified in OpenAPI

PlatformStreamMessageTopicPermission

FieldTypeRequiredDescription
publishbooleanYesNot specified in OpenAPI
subscribebooleanYesNot specified in OpenAPI
topicstringYesNot specified in OpenAPI

PlatformStreamRequestDiscoverReq

FieldTypeRequiredDescription
pageintegerNoDefaults to 1.
searchstringNoNot specified in OpenAPI
sizeintegerNoDefaults to 20.

PlatformStreamRequestDiscoverResp

FieldTypeRequiredDescription
listarray<object>YesNot specified in OpenAPI
totalintegerYesNot specified in OpenAPI

PlatformStreamRequestInvokeReq

FieldTypeRequiredDescription
idempotencyKeystringNoAt most 128 decoded UTF-8 bytes. The frozen contract determines whether this field is required.
inputobjectYesNot specified in OpenAPI

PlatformStreamRequestInvokeResp

FieldTypeRequiredDescription
codestringYesNot specified in OpenAPI
contractVersionstringYesThe frozen contract version used for execution.
replayedbooleanYestrue indicates an idempotent replay; false indicates the first execution.
resultobjectYesThe JSON result defined by the contract; null is allowed.
runIDstringYesThe execution identifier returned by the server, represented as an opaque string.
statusstringYesThe final status returned by the server; never accepted, queued, pending or running.

RecordDocument

Ordinary business record. Business fields are in data; system attributes are siblings. filter/projection use bare business names and _id/_meta.*, not response-object paths. lock describes only active leases and does not return tokens.

FieldTypeRequiredDescription
idstringYesNot specified in OpenAPI
collectionIdstringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI
revisionintegerYesNot specified in OpenAPI
createdAtintegerYesUnix milliseconds.
updatedAtintegerYesUnix milliseconds.
sourceIdstringYesNot specified in OpenAPI
sourceTimeintegerYesUnix milliseconds.
lockobjectNoCloudRecordLockView. See the referenced schema in the Schemas section.

RuntimeStreamDefinition

FieldTypeRequiredDescription
namestringYesNot specified in OpenAPI
descriptionstringNoNot specified in OpenAPI
scriptobjectYesStreamScript. See the referenced schema in the Schemas section.
sourcesarray<object>NoNot specified in OpenAPI
sourceBindingsarray<object>NoNot specified in OpenAPI
extensionsobjectNoNot specified in OpenAPI

SalesforceQueryDeclaration

FieldTypeRequiredDescription
cdcbooleanNoNot specified in OpenAPI
endstringYesNot specified in OpenAPI
fieldsarray<string>YesNot specified in OpenAPI
idstringYesObject ID as a string, obtained through discovery or read endpoints; do not use a name as an ID.
objectstringYesNot specified in OpenAPI
queryAllbooleanNoNot specified in OpenAPI
startstringYesNot specified in OpenAPI

SampleDocument

Ordinary sample object. Business fields are in data; time, quality, record identity and available provenance are siblings.

FieldTypeRequiredDescription
idstringYesNot specified in OpenAPI
collectionIdstringYesNot specified in OpenAPI
recordIdstringYesNot specified in OpenAPI
timeintegerYesSample timestamp supplied by the caller, in Unix milliseconds.
receivedAtintegerYesServer-generated sample receipt time in Unix milliseconds.
qualitystringYesNot specified in OpenAPI
dataobjectYesNot specified in OpenAPI
sourceIdstringYesNot specified in OpenAPI
streamIdstringNoNot specified in OpenAPI
bindingIdstringNoNot specified in OpenAPI

Schema

FieldTypeRequiredDescription
additionalPropertiesbooleanNoNot specified in OpenAPI
descriptionstringNoNot specified in OpenAPI
enumarray<object>NoNot specified in OpenAPI
itemsobjectNoSchema. See the referenced schema in the Schemas section.
maximumnumberNoNot specified in OpenAPI
minimumnumberNoNot specified in OpenAPI
propertiesobjectNoNot specified in OpenAPI
requiredarray<string>NoNot specified in OpenAPI
titlestringNoNot specified in OpenAPI
typestringYesNot specified in OpenAPI
unitstringNoNot specified in OpenAPI
formatstringNoType representation annotation: int32 for integer, float (float32) or double (float64) for number, and date-time (datetime) for string. Adds no numeric range, precision or date-format validation, rounding, date parsing or time-zone conversion. Omission preserves base-type semantics. The outer sample time field is unchanged.

SourceCredentials

FieldTypeRequiredDescription
kindstringYesNot specified in OpenAPI
usernamestringNoNot specified in OpenAPI
secretstringNoNot specified in OpenAPI
valuesobjectNoNot specified in OpenAPI
certificateFileIdstringNoNot specified in OpenAPI
privateKeyFileIdstringNoNot specified in OpenAPI
caFileIdstringNoNot specified in OpenAPI

SourceDefinition

Unified Source connection. Choose the matching protocol object; edge-sql uses one of sql.query (preset) or sql.queries (named). Query the target protocol catalog for installed execution, TLS and state capabilities.

FieldTypeRequiredDescription
credentialRefstringNoOpaque existing credential reference returned for authorized editing and accepted on input. It contains no secret. Provision secrets only through create.credentials or credentials/update; secret material is never returned in the document.
descriptionstringNoNot specified in OpenAPI
endpointstringYesProtocol connection address or a discovered native device key. Never include credentials in the address. Managed server roles use the target-defined managed endpoint.
extensionsobjectNoNot specified in OpenAPI
fileobjectNoFileSourceOptions. See the referenced schema in the Schemas section.
httpobjectNoHTTPConnection. See the referenced schema in the Schemas section.
modbusobjectNoModbusOptions. See the referenced schema in the Schemas section.
mqttobjectNoMQTTOptions. See the referenced schema in the Schemas section.
namestringNoNot specified in OpenAPI
opcuaobjectNoOPCUAOptions. See the referenced schema in the Schemas section.
openProtocolobjectNoOpenProtocolOptions. See the referenced schema in the Schemas section.
protocolstringYesNot specified in OpenAPI
rolestringNoNot specified in OpenAPI
runtimeLocationstringNoNot specified in OpenAPI
sourceTypestringNoNot specified in OpenAPI
sqlobjectNoSQLConnection. See the referenced schema in the Schemas section.

SourceDefinitionPatch

Unified Source connection. Choose the matching protocol object; edge-sql uses one of sql.query (preset) or sql.queries (named). Query the target protocol catalog for installed execution, TLS and state capabilities.

FieldTypeRequiredDescription
credentialRefstringNoOpaque existing credential reference returned for authorized editing and accepted on input. It contains no secret. Provision secrets only through create.credentials or credentials/update; secret material is never returned in the document.
descriptionstringNoNot specified in OpenAPI
endpointstringNoProtocol connection address or a discovered native device key. Never include credentials in the address. Managed server roles use the target-defined managed endpoint.
extensionsobjectNoNot specified in OpenAPI
fileobjectNoFileSourceOptions. See the referenced schema in the Schemas section.
httpobjectNoHTTPConnection. See the referenced schema in the Schemas section.
modbusobjectNoModbusOptions. See the referenced schema in the Schemas section.
mqttobjectNoMQTTOptions. See the referenced schema in the Schemas section.
namestringNoNot specified in OpenAPI
opcuaobjectNoOPCUAOptions. See the referenced schema in the Schemas section.
openProtocolobjectNoOpenProtocolOptions. See the referenced schema in the Schemas section.
protocolstringNoNot specified in OpenAPI
rolestringNoNot specified in OpenAPI
runtimeLocationstringNoNot specified in OpenAPI
sourceTypestringNoNot specified in OpenAPI
sqlobjectNoSQLConnection. See the referenced schema in the Schemas section.

SQLConnection

FieldTypeRequiredDescription
caCertificatestringNoNot specified in OpenAPI
querystringNoPreset approved business SELECT, supported on Cloud and Enterprise. Tool/WMS presets require PostgreSQL; quality-inspections requires SQL Server. Fixed reads support keyset scan; verify-full TLS is required. Query and queries are mutually exclusive.
wmsobjectNoWMSMapping. See the referenced schema in the Schemas section.
queriesobjectNoSource-owned named queries on Cloud and Enterprise; never override SQL in Stream acquisition. PostgreSQL/MySQL use read-only transactions and bounded read. SQL Server has no public preview or live-query dryRun; explicitly authorized Stream execution is potentially writing and uses effect journaling. No named-query scan. limit 1..100; timeoutMs 100..10000.
tlsModestringNoNot specified in OpenAPI

StreamScript

FieldTypeRequiredDescription
codestringYesNot specified in OpenAPI
timeoutMsintegerYesNot specified in OpenAPI

StreamSourceAlias

FieldTypeRequiredDescription
sourceIdstringNoNot specified in OpenAPI
configRevisionintegerNoOpaque execution snapshot version. It may conservatively advance even for a rename. Use the authoritative receipt; never derive configRevision from revision.
targetobjectNoStreamSourceTarget. See the referenced schema in the Schemas section.
acquisitionobjectNoProtocol acquisition only; cannot override connection or credentials.
aliasstringYesNot specified in OpenAPI
resourcesarray<string>NoNot specified in OpenAPI

StreamSourceBinding

FieldTypeRequiredDescription
sourceIdstringNoNot specified in OpenAPI
configRevisionintegerNoOpaque execution snapshot version. It may conservatively advance even for a rename. Use the authoritative receipt; never derive configRevision from revision.
targetobjectNoStreamSourceTarget. See the referenced schema in the Schemas section.
acquisitionobjectNoProtocol acquisition only; cannot override connection or credentials.
aliasstringNoNot specified in OpenAPI
resourcesarray<string>NoNot specified in OpenAPI

StreamSourceTarget

FieldTypeRequiredDescription
fleetNodeIdstringYesNot specified in OpenAPI
sourceIdstringYesNot specified in OpenAPI
configRevisionintegerYesOpaque execution snapshot version. It may conservatively advance even for a rename. Use the authoritative receipt; never derive configRevision from revision.

TeamcenterFileSelection

FieldTypeRequiredDescription
datasetUidstringYesNot specified in OpenAPI
fileUidstringYesNot specified in OpenAPI
idstringYesObject ID as a string, obtained through discovery or read endpoints; do not use a name as an ID.
itemIdstringYesNot specified in OpenAPI
itemUidstringYesNot specified in OpenAPI
queryUidstringYesNot specified in OpenAPI
revisionUidstringYesNot specified in OpenAPI

TransactionQueryResult

FieldTypeRequiredDescription
hasMorebooleanYesNot specified in OpenAPI
recordsarray<object>YesNot specified in OpenAPI
totalintegerYesNot specified in OpenAPI

UnsV2ArrayElementFilter

Scalar elements use comparison operators; object elements use relative field conditions, optionally with nested logical composition. pull rejects $expr.

{
  "type": "object",
  "minProperties": 1,
  "additionalProperties": true,
  "description": "Scalar elements use comparison operators; object elements use relative field conditions, optionally with nested logical composition. pull rejects $expr."
}

UnsV2DataFilter

Unified predicates: business paths use field or customer.name; system paths use _id and _meta.revision/createdAt/updatedAt/sourceId/sourceTime/locked. Samples use _meta.recordId/time/receivedAt/quality/streamId/bindingId. Direct values equal $eq. Supports scalar comparisons, string $contains (ASCII case-insensitive substring), array $elemMatch/$all/$size, logical composition and restricted $expr. Dot-separated paths: escape literal dots as \. and backslashes as \\, escaping again in JSON. At most 512 bytes/10 segments; arrays use explicit indices, without implicit traversal. Field types are schema-validated; SQL and scripts are rejected. Record writes must match exactly one record by default. $eq:null matches null or missing; $ne:null matches present non-null fields; $ne:non-null also includes missing fields. $exists distinguishes presence from absence; explicit null counts as present.

FieldTypeRequiredDescription
$andarray<object>NoNot specified in OpenAPI
$orarray<object>NoNot specified in OpenAPI
$norarray<object>NoNot specified in OpenAPI
$notobjectNoUnsV2DataFilter. See the referenced schema in the Schemas section.
$exprobjectNoUnsV2PipelineExpression. See the referenced schema in the Schemas section.

UnsV2Distinct

Deduplicate by the field combination in by and output the alias fields. Uses ordinary offset pagination. Count unique values with $distinct followed by $count; there is no countDistinct stage.

FieldTypeRequiredDescription
byobjectYesUnsV2DistinctBy. See the referenced schema in the Schemas section.

UnsV2DistinctBy

Map output aliases to input field references. Aliases must be valid top-level field paths using the same escaping rules; empty names, $ prefixes, control characters and reserved prototype names are prohibited. An input row is discarded if any referenced field is missing; explicit null is preserved. Arrays compare as whole values; use $unwind first for element-level distinct values.

{
  "type": "object",
  "minProperties": 1,
  "maxProperties": 16,
  "additionalProperties": {
    "type": "string",
    "minLength": 2,
    "maxLength": 513,
    "pattern": "^\\$[^$].*$",
    "description": "Declared field path with one $ prefix, such as $status; expressions and $$ variables are rejected."
  },
  "description": "Map output aliases to input field references. Aliases must be valid top-level field paths using the same escaping rules; empty names, $ prefixes, control characters and reserved prototype names are prohibited. An input row is discarded if any referenced field is missing; explicit null is preserved. Arrays compare as whole values; use $unwind first for element-level distinct values."
}

UnsV2FieldComparisons

FieldTypeRequiredDescription
$eqobjectNoUnsV2FilterScalar. See the referenced schema in the Schemas section.
$neobjectNoUnsV2FilterScalar. See the referenced schema in the Schemas section.
$gtobjectNoUnsV2FilterScalar. See the referenced schema in the Schemas section.
$gteobjectNoUnsV2FilterScalar. See the referenced schema in the Schemas section.
$ltobjectNoUnsV2FilterScalar. See the referenced schema in the Schemas section.
$lteobjectNoUnsV2FilterScalar. See the referenced schema in the Schemas section.
$inarray<object>NoNot specified in OpenAPI
$ninarray<object>NoNot specified in OpenAPI
$existsbooleanNoNot specified in OpenAPI
$allarray<object>NoEach item matches by complete JSON-element equality.
$sizeintegerNoNot specified in OpenAPI
$elemMatchobjectNoUnsV2ArrayElementFilter. See the referenced schema in the Schemas section.
$containsstringNoSubstring matching for string fields only; ASCII letters are case-insensitive and other characters compare literally. Arrays and other types are errors. Wildcards and regex are unsupported. Cannot use indexes; large collections may time out.

UnsV2FieldOperation

FieldTypeRequiredDescription
opstringYesNot specified in OpenAPI
pathstringYesDeclared data.* path. Escape literal dot with \. and backslash with \\. Explicit array indexes are allowed; no implicit traversal or positional operators. Identity/revision fields cannot be modified.
valueobjectNoRequired except unset, directly or through an explicit result binding. append/addToSet: array of 1..200 elements; pull: nonempty scalar-operator or object-field predicate evaluated on each element.

UnsV2FieldPredicate

FieldTypeRequiredDescription
$eqobjectNoUnsV2FilterScalar. See the referenced schema in the Schemas section.
$neobjectNoUnsV2FilterScalar. See the referenced schema in the Schemas section.
$gtobjectNoUnsV2FilterScalar. See the referenced schema in the Schemas section.
$gteobjectNoUnsV2FilterScalar. See the referenced schema in the Schemas section.
$ltobjectNoUnsV2FilterScalar. See the referenced schema in the Schemas section.
$lteobjectNoUnsV2FilterScalar. See the referenced schema in the Schemas section.
$inarray<object>NoNot specified in OpenAPI
$ninarray<object>NoNot specified in OpenAPI
$existsbooleanNoNot specified in OpenAPI
$allarray<object>NoEach item matches by complete JSON-element equality.
$sizeintegerNoNot specified in OpenAPI
$elemMatchobjectNoUnsV2ArrayElementFilter. See the referenced schema in the Schemas section.
$notobjectNoUnsV2FieldComparisons. See the referenced schema in the Schemas section.
$containsstringNoSubstring matching for string fields only; ASCII letters are case-insensitive and other characters compare literally. Arrays and other types are errors. Wildcards and regex are unsupported. Cannot use indexes; large collections may time out.

UnsV2FilterScalar

{
  "oneOf": [
    {
      "type": "string",
      "nullable": true
    },
    {
      "type": "number"
    },
    {
      "type": "boolean"
    }
  ]
}

UnsV2Frequencies

Count frequencies by the fields in by, returning aliases and a fixed count field. Counts the current stage's input; results may be sorted or filtered further.

FieldTypeRequiredDescription
byobjectYesUses distinct field-combination and missing/null rules; aliases cannot be count.

UnsV2Identity

{
  "oneOf": [
    {
      "type": "string",
      "maxLength": 128
    },
    {
      "type": "object",
      "required": [
        "ref"
      ],
      "additionalProperties": false,
      "properties": {
        "ref": {
          "type": "string"
        }
      }
    }
  ]
}

UnsV2JobsQuery

FieldTypeRequiredDescription
queryIdstringYesUnique identifier within this query batch, used to correlate results.
jobIdsarray<string>NoNot specified in OpenAPI

UnsV2PipelineAccumulator

{
  "oneOf": [
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "$sum": {
          "$ref": "#/components/schemas/UnsV2PipelineExpression"
        }
      },
      "required": [
        "$sum"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "$avg": {
          "$ref": "#/components/schemas/UnsV2PipelineExpression"
        }
      },
      "required": [
        "$avg"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "$min": {
          "$ref": "#/components/schemas/UnsV2PipelineExpression"
        }
      },
      "required": [
        "$min"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "$max": {
          "$ref": "#/components/schemas/UnsV2PipelineExpression"
        }
      },
      "required": [
        "$max"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "$count": {
          "type": "object",
          "maxProperties": 0
        }
      },
      "required": [
        "$count"
      ]
    }
  ]
}

UnsV2PipelineExpression

$field path reference or scalar constant; $literal forces a constant. Arithmetic accepts numbers only. $divide returns null for zero denominators; $ifNull explicitly supplies a missing/null default. $expr must return boolean. $cond requires a boolean condition and compatible branch types. Conversion failures are errors; missing/null propagate. $trim input/chars are string expressions; omitting chars trims whitespace. $dateTrunc input/output use Unix milliseconds, timezone is IANA, and startOfWeek applies only to week. Expression depth is at most 8, with at most 512 nodes. Each intermediate $concat result is limited to 1 MiB of UTF-8, otherwise EXPRESSION_BUDGET_EXCEEDED. Arbitrary functions are unsupported.

{
  "oneOf": [
    {
      "$ref": "#/components/schemas/UnsV2FilterScalar"
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "$ifNull": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/UnsV2PipelineExpression"
          },
          "minItems": 2,
          "maxItems": 2
        }
      },
      "required": [
        "$ifNull"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "$add": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/UnsV2PipelineExpression"
          },
          "minItems": 2,
          "maxItems": 2
        }
      },
      "required": [
        "$add"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "$subtract": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/UnsV2PipelineExpression"
          },
          "minItems": 2,
          "maxItems": 2
        }
      },
      "required": [
        "$subtract"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "$multiply": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/UnsV2PipelineExpression"
          },
          "minItems": 2,
          "maxItems": 2
        }
      },
      "required": [
        "$multiply"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "$divide": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/UnsV2PipelineExpression"
          },
          "minItems": 2,
          "maxItems": 2
        }
      },
      "required": [
        "$divide"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "$literal": {
          "$ref": "#/components/schemas/UnsV2FilterScalar"
        }
      },
      "required": [
        "$literal"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "$eq": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/UnsV2PipelineExpression"
          },
          "minItems": 2,
          "maxItems": 2
        }
      },
      "required": [
        "$eq"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "$ne": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/UnsV2PipelineExpression"
          },
          "minItems": 2,
          "maxItems": 2
        }
      },
      "required": [
        "$ne"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "$gt": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/UnsV2PipelineExpression"
          },
          "minItems": 2,
          "maxItems": 2
        }
      },
      "required": [
        "$gt"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "$gte": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/UnsV2PipelineExpression"
          },
          "minItems": 2,
          "maxItems": 2
        }
      },
      "required": [
        "$gte"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "$lt": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/UnsV2PipelineExpression"
          },
          "minItems": 2,
          "maxItems": 2
        }
      },
      "required": [
        "$lt"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "$lte": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/UnsV2PipelineExpression"
          },
          "minItems": 2,
          "maxItems": 2
        }
      },
      "required": [
        "$lte"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "$and": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/UnsV2PipelineExpression"
          },
          "minItems": 1,
          "maxItems": 64
        }
      },
      "required": [
        "$and"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "$or": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/UnsV2PipelineExpression"
          },
          "minItems": 1,
          "maxItems": 64
        }
      },
      "required": [
        "$or"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "$not": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/UnsV2PipelineExpression"
          },
          "minItems": 1,
          "maxItems": 1
        }
      },
      "required": [
        "$not"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "$cond": {
          "oneOf": [
            {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/UnsV2PipelineExpression"
              },
              "minItems": 3,
              "maxItems": 3
            },
            {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "if": {
                  "$ref": "#/components/schemas/UnsV2PipelineExpression"
                },
                "then": {
                  "$ref": "#/components/schemas/UnsV2PipelineExpression"
                },
                "else": {
                  "$ref": "#/components/schemas/UnsV2PipelineExpression"
                }
              },
              "required": [
                "if",
                "then",
                "else"
              ]
            }
          ]
        }
      },
      "required": [
        "$cond"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "$concat": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/UnsV2PipelineExpression"
          },
          "minItems": 1,
          "maxItems": 64
        }
      },
      "required": [
        "$concat"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "$toLower": {
          "$ref": "#/components/schemas/UnsV2PipelineExpression"
        }
      },
      "required": [
        "$toLower"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "$toUpper": {
          "$ref": "#/components/schemas/UnsV2PipelineExpression"
        }
      },
      "required": [
        "$toUpper"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "$strLenCP": {
          "$ref": "#/components/schemas/UnsV2PipelineExpression"
        }
      },
      "required": [
        "$strLenCP"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "$toString": {
          "$ref": "#/components/schemas/UnsV2PipelineExpression"
        }
      },
      "required": [
        "$toString"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "$toDecimal": {
          "$ref": "#/components/schemas/UnsV2PipelineExpression"
        }
      },
      "required": [
        "$toDecimal"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "$toLong": {
          "$ref": "#/components/schemas/UnsV2PipelineExpression"
        }
      },
      "required": [
        "$toLong"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "$toBool": {
          "$ref": "#/components/schemas/UnsV2PipelineExpression"
        }
      },
      "required": [
        "$toBool"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "$trim": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "input": {
              "$ref": "#/components/schemas/UnsV2PipelineExpression"
            },
            "chars": {
              "$ref": "#/components/schemas/UnsV2PipelineExpression"
            }
          },
          "required": [
            "input"
          ]
        }
      },
      "required": [
        "$trim"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "$convert": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "input": {
              "$ref": "#/components/schemas/UnsV2PipelineExpression"
            },
            "to": {
              "type": "string",
              "enum": [
                "string",
                "decimal",
                "long",
                "bool"
              ]
            }
          },
          "required": [
            "input",
            "to"
          ]
        }
      },
      "required": [
        "$convert"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "$dateTrunc": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "date": {
              "$ref": "#/components/schemas/UnsV2PipelineExpression"
            },
            "unit": {
              "type": "string",
              "enum": [
                "millisecond",
                "second",
                "minute",
                "hour",
                "day",
                "week",
                "month",
                "quarter",
                "year"
              ]
            },
            "timezone": {
              "type": "string",
              "default": "UTC"
            },
            "binSize": {
              "type": "integer",
              "minimum": 1,
              "maximum": 1000000,
              "default": 1,
              "description": "Above 1, only fixed UTC millisecond/second/minute/hour/day buckets aligned to the Unix epoch are supported. 1 supports calendar units and time zones."
            },
            "startOfWeek": {
              "type": "string",
              "enum": [
                "sunday",
                "monday",
                "tuesday",
                "wednesday",
                "thursday",
                "friday",
                "saturday"
              ],
              "default": "sunday"
            }
          },
          "required": [
            "date",
            "unit"
          ]
        }
      },
      "required": [
        "$dateTrunc"
      ]
    }
  ],
  "description": "$field path reference or scalar constant; $literal forces a constant. Arithmetic accepts numbers only. $divide returns null for zero denominators; $ifNull explicitly supplies a missing/null default.  $expr must return boolean. $cond requires a boolean condition and compatible branch types. Conversion failures are errors; missing/null propagate. $trim input/chars are string expressions; omitting chars trims whitespace. $dateTrunc input/output use Unix milliseconds, timezone is IANA, and startOfWeek applies only to week. Expression depth is at most 8, with at most 512 nodes. Each intermediate $concat result is limited to 1 MiB of UTF-8, otherwise EXPRESSION_BUDGET_EXCEEDED. Arbitrary functions are unsupported."
}

UnsV2PipelinePage

FieldTypeRequiredDescription
sizeintegerNoPage size; see this endpoint's maximum or the capability catalog.
modestringNoPipelines containing only $match/$sort default to cursor (keyset); other pipelines default to offset and do not support cursor.
pageintegerNoPage number, starting at 1.
cursorstringNoSigned keyset token containing complete sort values and unique identity, bound to query, collection, schema/revision and caller identity, valid for 7 days. Restart after identity, schema or signing-key changes. Does not freeze snapshots across requests.

UnsV2PipelineSort

ordered sort pairs: [[field, 1|-1], ...]. Server appends _id as a stable tie breaker.

{
  "type": "array",
  "items": {
    "type": "array",
    "items": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1
        },
        {
          "type": "integer",
          "enum": [
            1,
            -1
          ]
        }
      ]
    },
    "minItems": 2,
    "maxItems": 2
  },
  "minItems": 1,
  "maxItems": 4,
  "description": "ordered sort pairs: [[field, 1|-1], ...]. Server appends _id as a stable tie breaker."
}

UnsV2PipelineStage

Exactly one operator per stage; stages execute in order. $lookup performs equality matching before its pipeline, producing an array; each target collection is authorized independently.

{
  "oneOf": [
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "$match": {
          "$ref": "#/components/schemas/UnsV2DataFilter"
        }
      },
      "required": [
        "$match"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "$project": {
          "type": "object",
          "minProperties": 1,
          "maxProperties": 64,
          "additionalProperties": {
            "$ref": "#/components/schemas/UnsV2PipelineExpression"
          },
          "description": "Field inclusion/exclusion (1/0) or expressions. Supports nested output paths and $field references. Cannot mix inclusion and exclusion except for _id."
        }
      },
      "required": [
        "$project"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "$set": {
          "type": "object",
          "minProperties": 1,
          "maxProperties": 64,
          "additionalProperties": {
            "$ref": "#/components/schemas/UnsV2PipelineExpression"
          },
          "description": "Add or replace computed fields, including nested paths, using only allowed expressions."
        }
      },
      "required": [
        "$set"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "$sort": {
          "$ref": "#/components/schemas/UnsV2PipelineSort"
        }
      },
      "required": [
        "$sort"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "$group": {
          "type": "object",
          "required": [
            "_id"
          ],
          "properties": {
            "_id": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/UnsV2PipelineExpression"
                },
                {
                  "type": "object",
                  "additionalProperties": {
                    "$ref": "#/components/schemas/UnsV2PipelineExpression"
                  }
                }
              ]
            }
          },
          "additionalProperties": {
            "$ref": "#/components/schemas/UnsV2PipelineAccumulator"
          },
          "description": "_id defines a scalar, null or object grouping key; other fields support $sum/$avg/$min/$max. Count with {$sum:1}."
        }
      },
      "required": [
        "$group"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "$distinct": {
          "$ref": "#/components/schemas/UnsV2Distinct"
        }
      },
      "required": [
        "$distinct"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "$frequencies": {
          "$ref": "#/components/schemas/UnsV2Frequencies"
        }
      },
      "required": [
        "$frequencies"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "$lookup": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "collectionId": {
              "type": "string"
            },
            "recordId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            "kind": {
              "type": "string",
              "enum": [
                "records",
                "samples"
              ],
              "default": "records"
            },
            "localField": {
              "type": "string"
            },
            "foreignField": {
              "type": "string"
            },
            "as": {
              "type": "string"
            },
            "pipeline": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/UnsV2PipelineStage"
              }
            }
          },
          "required": [
            "collectionId",
            "localField",
            "foreignField",
            "as"
          ],
          "oneOf": [
            {
              "properties": {
                "kind": {
                  "enum": [
                    "samples"
                  ]
                }
              },
              "required": [
                "kind",
                "recordId"
              ]
            },
            {
              "properties": {
                "kind": {
                  "enum": [
                    "records"
                  ]
                }
              },
              "not": {
                "required": [
                  "recordId"
                ]
              }
            }
          ],
          "description": "kind=samples requires a fixed recordId and joins only within that record; records prohibits recordId. foreignField requires a ready B-tree index with that leading field, or an applicable built-in identity index. At most 1000 primary rows, 10000 raw joined rows per input, 8 MiB intermediate results and 200 final joined items per input. Overflow fails explicitly instead of truncating; a child pipeline may filter or aggregate."
        }
      },
      "required": [
        "$lookup"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "$unwind": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "path": {
                  "type": "string"
                },
                "preserveNullAndEmptyArrays": {
                  "type": "boolean"
                }
              },
              "required": [
                "path"
              ]
            }
          ]
        }
      },
      "required": [
        "$unwind"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "$skip": {
          "type": "integer",
          "minimum": 0,
          "maximum": 1000000
        }
      },
      "required": [
        "$skip"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "$limit": {
          "type": "integer",
          "minimum": 1,
          "maximum": 1000000
        }
      },
      "required": [
        "$limit"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "$count": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "description": "Valid top-level output field name following common path escaping and reserved-name rules.  Output one count row; empty input returns 0. As the final stage, explicit page is prohibited. With later stages, paginate the final output normally."
        }
      },
      "required": [
        "$count"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "$exists": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "description": "Valid top-level output field name following common path escaping and reserved-name rules.  Output one boolean indicating whether the current stage has any input; empty input returns false. As the final stage, explicit page is prohibited. With later stages, paginate the final output normally."
        }
      },
      "required": [
        "$exists"
      ]
    }
  ],
  "description": "Exactly one operator per stage; stages execute in order. $lookup performs equality matching before its pipeline, producing an array; each target collection is authorized independently."
}

UnsV2QueryCountExpectation

FieldTypeRequiredDescription
minintegerNoNot specified in OpenAPI
maxintegerNoNot specified in OpenAPI

UnsV2RecordChange

FieldTypeRequiredDescription
updateobjectNoUpdate-operator document for record.update; mutually exclusive with operations.
arrayFiltersarray<object>NoNot specified in OpenAPI
upsertbooleanNoWhen true, filter requires _id equality or equality covering every field of a ready unique index; otherwise UPSERT_REQUIRES_UNIQUE_INDEX. Insert when unmatched; unique conflicts return 409 DUPLICATE_KEY.
opIdstringYesUnique operation identifier within the transaction, used by dependencies and result references.
actionstringYesNot specified in OpenAPI
idobjectNoRecord ID or a reference to an earlier create operation. Creation may omit it for automatic allocation. Existing-record operations may select by id, filter or target-result binding. record.query does not accept id.
collectionIdobjectYesUnsV2Identity. See the referenced schema in the Schemas section.
expectedRevisionintegerNoOptional revision check. For creation, reads, collection queries or exists=false checks, omit or use 0 only.
dataobjectNoBusiness data for record.create/replace.
dependsOnarray<string>NoPrerequisite opIds; the server checks dependency cycles.
existsbooleanNoNot specified in OpenAPI
filterobjectNoUnsV2DataFilter. See the referenced schema in the Schemas section.
selectionstringNoSelection mode for record.read/update/modify/replace/delete. first requires filter and optionally sort. Defaults to exactOne; multiple matches are an error.
sortobjectNoUsed only with selection=first; ID sorting is appended to stabilize ties.
returnDocumentstringNobefore/after snapshot option for record.read/update/modify/replace/delete. Writes return no extra snapshot when omitted.
operationsarray<object>NoNot specified in OpenAPI
bindingsarray<object>NoBind prior operation results to specified fields in this operation; no string templates or arbitrary code.
queryobjectNoUnsV2TransactionQuery. See the referenced schema in the Schemas section.
lockTokenstringNoNot specified in OpenAPI
releasebooleanNoNot specified in OpenAPI
lockTokensobjectNoNot specified in OpenAPI
conditionsarray<object>NoConditions for record.check/update/modify; mutually exclusive with filter.

UnsV2RecordFilter

FieldTypeRequiredDescription
fieldstringYesNot specified in OpenAPI
opstringYesNot specified in OpenAPI
valueobjectYesNot specified in OpenAPI

UnsV2ReferenceTarget

FieldTypeRequiredDescription
kindstringYesNot specified in OpenAPI
idstringYesObject ID as a string, obtained through discovery or read endpoints; do not use a name as an ID.

UnsV2ResultBinding

FieldTypeRequiredDescription
pathstringYesdata.field DTO paths, operations.N.value, or JSON Pointers beginning with filter/ such as filter/available/$gte and filter/_id/$eq. Filter pointers may replace only existing scalar/null placeholders, not predicate structure. id may bind a record identity from a query result in the same collection.
refstringYesNot specified in OpenAPI
resultPathstringYesid/revision/collectionId/data.field; queries additionally expose query.total and query.records.N.id/revision/collectionId/data.field. Missing rows or fields fail the transaction.

UnsV2TransactionQuery

FieldTypeRequiredDescription
filterobjectNoUnsV2DataFilter. See the referenced schema in the Schemas section.
sortarray<array<object>>NoUnsV2PipelineSort. See the referenced schema in the Schemas section.
limitintegerNoReturned row limit; omitted or 0 means 20. Count assertions apply before this limit.
expectCountobjectNoUnsV2QueryCountExpectation. See the referenced schema in the Schemas section.

WMSMapping

FieldTypeRequiredDescription
fieldsarray<string>YesNot specified in OpenAPI
keyColumnstringYesNot specified in OpenAPI
tablestringYesNot specified in OpenAPI
updatedAtstringNoNot specified in OpenAPI