MatrixOrigin MatrixOrigin Docs
Product docs
MatrixOne Intelligence Current product MatrixOne
Get Started Overview GenAI Workspace Database Instance Help Release Notes
/
Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
MatrixOne Intelligence Docs
MatrixOne Intelligence Docs

MatrixOne Intelligence

  • Home
  • Get Started
    • Quickstart: Create a MatrixOne Intelligence Instance
    • Quickstart: GenAI Workspace
  • Overview
    • MatrixOne Intelligence: an AI-Native Multi-Modal Data Platform
  • GenAI Workspace
    • Overview
    • Workspace Management
    • Data Integration
      • Connectors
      • Data Loading
      • Data Export
    • Data Processing
      • Workflow Templates
        • Workflow Template Overview
        • Multimodal Document RAG Data Preparation
        • Resume Information Extraction
        • Legal Knowledge Fine-Tuning Data Generation
      • Workflow
      • Operation
    • Data Exploration
      • Data Center
      • Data Exploration
    • Alerts
    • User Permissions
      • User Management
      • Role Management
    • Application Development
      • MCP Usage Instructions
      • Deerflow Integration with MOI RAG Service Usage Instructions
    • API
      • Workflow API Documentation
        • API Key
        • Data Integration
        • Data Processing
        • Data Exploration
        • Metrics
      • Quick Start API Documentation
        • Structured Extraction
  • Database Instance
    • MySQL Compatibility
    • Instance Management
      • Create an Instance
        • Create an Instance
        • Create an instance
      • Connect to MatrixOne instance
      • Log in to the database management platform for instance
      • Terminate and restore instances
    • Data Sharing
    • Data Migration and Import
      • Import TPC-H sample data
      • Import object storage data
      • Import local data
      • Write MySQL data to MatrixOne Intelligence using NineData
    • Export data using modump
    • Data Exploration
      • SQL Editor
      • Workbook management
      • Query Analysis
        • SQL Query History
        • Query Analysis
    • Application Development
      • Connect to a Database Instance
        • Client Tools Connection
        • Connect to a MatrixOne instance using a web page
        • Connect using JDBC
        • Connect using Java ORMs
        • Connect with Python
        • Connect using Golang
        • C# Connection
      • Database Schema Design
        • Database Pattern Design Overview
        • Create a database
        • Create a table
        • Create a view
        • Create a temporary table
        • Create secondary index
        • Constraints
          • Constraint Overview
          • NOT NULL Non-empty constraints
          • UNIQUE KEY Unique constraint
          • PRIMARY KEY Primary Key Constraint
          • FOREIGN KEY Constraint
          • AUTO INCREMENT Self-increasing constraint
      • Data Writing
        • INSERT Insert
        • Streaming import
        • Bulk Insert
          • Batch import overview
          • Insert csv file
          • Insert jsonlines file
          • Importing Files from Object Storage
          • Source Insert
        • Update data
        • Delete data
        • Preprocessing
      • Data Reading
        • Single table query
        • Multi-table join query
        • Subquery
        • View
        • Public table expression (CTE)
      • Application Development Examples
        • Java Basic Example
        • Python Basic Example
        • SpringBoot and JPA basic examples
        • SpringBoot and MyBatis basic examples
        • SQLAlchemy Basic Example
        • Django Basic Example
        • Golang Basic Example
        • gorm basic example
        • C# Basic Example
      • Transactions
        • Transaction General Concepts
        • MatrixOne Intelligence Transactions
          • MatrixOne Intelligence transaction overview
          • Explicit transactions
          • Implicit transactions
          • Pessimistic affairs
          • Optimistic Affairs
          • Isolation level
          • MVCC
          • Transaction usage guide
          • Application scenarios
    • Snapshot backup recovery
    • Security
      • Security and Permissions Overview
      • Set IP whitelist
      • Data transmission encryption
      • PrivateLink
      • Role-Based Access Control (RBAC)
    • Monitoring
      • Monitoring indicators
      • Monitor data
    • Alerts
      • Alert
      • Alarm
    • event
    • Reference Manual
      • System Variables
        • System Variables Overview
        • System Variable Parameters
          • SQL Mode
          • Query Result Saving Support
          • Timezone Support
          • Case Sensitivity Support
          • Foreign Key Check Support
          • Query Result Column Name Consistency
          • Illegal Login Restrictions
          • Password Complexity Check
          • Connection Whitelist
        • Custom Variables
      • SQL Structure and Syntax
        • Keywords
        • Comments
      • Data Types
        • Data Types Overview
        • Data Type Conversion
        • Date and Time Types
          • TIMESTAMP and DATETIME Auto-Initialization and Update
          • YEAR Type
        • JSON Data Type
        • BLOB and TEXT Data Types
        • DATALINK Data Type
        • ENUM Type
        • UUID Data Type
        • Fixed-Point Numeric Types (DECIMAL)
        • Vector Data Type
      • SQL Catalog
        • SQL Statement Categories
        • Data Definition Language (DDL)
          • CREATE DATABASE
          • CREATE INDEX
          • CREATE INDEX...USING IVFFLAT
          • CREATE TABLE
          • CREATE TABLE AS SELECT
          • CREATE EXTERNAL TABLE
          • CREATE PITR
          • CREATE PUBLICATION
          • CREATE SEQUENCE
          • CREATE STAGE
          • CREATE...FROM...PUBLICATION...
          • CREATE VIEW
          • CREATE FUNCTION...LANGUAGE SQL AS
          • CREATE SOURCE
          • CREATE DYNAMIC TABLE
          • CREATE SNAPSHOT
          • ALTER TABLE
          • ALTER TABLE ... ALTER REINDEX
          • ALTER PITR
          • ALTER PUBLICATION
          • ALTER SEQUENCE
          • ALTER STAGE
          • ALTER VIEW
          • DROP DATABASE
          • DROP INDEX
          • DROP TABLE
          • DROP PITR
          • DROP PUBLICATION
          • DROP SEQUENCE
          • DROP STAGE
          • DROP SNAPSHOT
          • DROP VIEW
          • DROP FUNCTION
          • TRUNCATE TABLE
          • RENAME TABLE
          • RESTORE PITR
          • RESTORE ACCOUNT
          • RESTORE SNAPSHOT
          • PARTITION
        • Data Manipulation Language (DML)
          • INSERT
          • INSERT INTO SELECT
          • DELETE
          • UPDATE
          • LOAD DATA INFILE
          • LOAD DATA INLINE
          • UPSERT
            • UPSERT Overview
            • INSERT ON DUPLICATE KEY UPDATE
            • INSERT IGNORE
            • REPLACE
          • Information Functions
            • LAST_QUERY_ID()
            • LAST_INSERT_ID()
        • Data Query Language (DQL)
          • SELECT
          • SUBQUERY
            • SUBQUERY Overview
            • Derived Tables
            • Subqueries with Comparison Operators
            • SUBQUERY with ANY or SOME
            • SUBQUERY with ALL
            • SUBQUERY with EXISTS
            • SUBQUERY with IN
          • JOIN
            • JOIN Overview
            • INNER JOIN
            • LEFT JOIN
            • RIGHT JOIN
            • FULL JOIN
            • OUTER JOIN
            • NATURAL JOIN
          • With CTE
          • Union Queries
            • UNION
            • INTERSECT
            • MINUS
            • UNION / INTERSECT / MINUS Overview
        • Data Control Language (DCL)
          • CREATE ROLE
          • CREATE USER
          • ALTER USER
          • DROP USER
          • DROP ROLE
          • GRANT
          • REVOKE
        • Others
          • SHOW
            • SHOW ACCOUNTS
            • SHOW DATABASES
            • SHOW CREATE TABLE
            • SHOW CREATE VIEW
            • SHOW CREATE PUBLICATION
            • SHOW TABLES
            • SHOW INDEX
            • SHOW COLLATION
            • SHOW COLUMNS
            • SHOW FUNCTION STATUS
            • SHOW GRANT
            • SHOW PROCESSLIST
            • SHOW PUBLICATIONS
            • SHOW PITR
            • SHOW ROLES
            • SHOW SEQUENCES
            • SHOW SNAPSHOTS
            • SHOW STAGES
            • SHOW SUBSCRIPTIONS
            • SHOW VARIABLES
          • SET
            • SET ROLE
          • USE
            • USE DATABASE
          • KILL
          • Prepared
            • PREPARE
            • EXECUTE
            • DEALLOCATE
          • Explain
            • Explain
            • Explain 输出格式
            • Explain Analyze
          • Partition
            • MO Partition Support
      • Operators
        • INTERVAL
        • Operators
          • Operators Overview
          • Operator Precedence
          • Arithmetic Operators
            • Arithmetic Operators Overview
            • %,MOD
            • *
            • +
            • -
            • -
            • /
            • DIV
          • Assignment Operators
            • Assignment Operators Overview
            • =
          • Bitwise Operators
            • Bitwise Operators Overview
            • &
            • >>
            • <<
            • ^
            • |
            • ~
          • Cast Functions and Operators
            • Cast Functions and Operators Overview
            • BINARY
            • CAST
            • CONVERT
            • DECODE
            • ENCODE
            • SERIAL
            • SERIAL_FULL
          • Comparison Functions and Operators
            • Comparison Functions and Operators Overview
            • >
            • >=
            • <
            • <>,!=
            • <=
            • =
            • BETWEEN ... AND ...
            • IN
            • IS
            • IS NOT
            • IS NOT NULL
            • IS NULL
            • ISNULL
            • ILIKE
            • LIKE
            • NOT BETWEEN ... AND ...
            • NOT IN
            • NOT LIKE
            • COALESCE
          • Control Flow Functions
            • Control Flow Functions Overview
            • CASE WHEN
            • IF
            • IFNULL
            • NULLIF
          • Logical Operators
            • Logical Operators Overview
            • AND,&&
            • NOT,!
            • OR
            • XOR
      • Functions
        • Function List
        • Aggregate Functions
          • ANY_VALUE
          • AVG
          • BITMAP
          • BIT_AND
          • BIT_OR
          • BIT_XOR
          • COUNT
          • GROUP_CONCAT
          • MAX
          • MEDIAN
          • MIN
          • STDDEV_POP
          • SUM
          • VARIANCE
          • VAR_POP
        • Date and Time Functions
          • CONVERT_TZ()
          • CURDATE()
          • CURRENT_TIMESTAMP()
          • DATE()
          • DATE_ADD()
          • DATE_FORMAT()
          • DATE_SUB()
          • DATEDIFF()
          • DAY()
          • DAYOFYEAR()
          • EXTRACT()
          • HOUR()
          • FROM_UNIXTIME
          • MINUTE()
          • MONTH()
          • NOW()
          • SECOND()
          • STR_TO_DATE()
          • SYSDATE()
          • TIME()
          • TIMEDIFF()
          • TIMESTAMP()
          • TIMESTAMPDIFF()
          • TO_DATE()
          • TO_DAYS()
          • TO_SECONDS()
          • UNIX_TIMESTAMP
          • UTC_TIMESTAMP()
          • WEEK()
          • WEEKDAY()
          • YEAR()
        • Mathematical Functions
          • ABS()
          • ACOS()
          • ATAN()
          • CEIL()
          • CEILING()
          • COS()
          • COT()
          • EXP()
          • FLOOR()
          • LN()
          • LOG()
          • LOG2()
          • LOG10()
          • PI()
          • POWER()
          • ROUND()
          • RAND()
          • SIN()
          • SINH()
          • TAN()
        • String Functions
          • BIN()
          • BIT_LENGTH()
          • CHAR_LENGTH()
          • CONCAT()
          • CONCAT_WS()
          • EMPTY()
          • ENDSWITH()
          • FIELD()
          • FIND_IN_SET()
          • FORMAT()
          • FROM_BASE64()
          • HEX()
          • INSTR()
          • LCASE()
          • LEFT()
          • LENGTH()
          • LOCATE()
          • LOWER()
          • LPAD()
          • LTRIM()
          • MD5()
          • OCT()
          • REPEAT()
          • REVERSE()
          • RPAD()
          • RTRIM()
          • SHA1()/SHA()
          • SHA2()
          • SPACE()
          • SPLIT_PART()
          • STARTSWITH()
          • SUBSTRING()
          • SUBSTRING_INDEX()
          • TO_BASE64()
          • TRIM()
          • UCASE()
          • UNHEX()
          • UPPER()
          • Regular Expression Overview
            • 正则表达式概述
            • NOT REGEXP
            • REGEXP_INSTR()
            • REGEXP_LIKE()
            • REGEXP_REPLACE()
            • REGEXP_SUBSTR()
        • Vector Functions
          • Basic Operators
          • Mathematical Calculations
          • CLUSTER_CENTERS()
          • COSINE_SIMILARITY()
          • COSINE_DISTANCE()
          • INNER_PRODUCT()
          • L1_NORM()
          • L2_NORM()
          • L2_DISTANCE()
          • NORMALIZE_L2()
          • SUBVECTOR()
          • VECTOR_DIMS()
        • Table Functions
          • GENERATE_SERIES()
          • UNNEST()
        • Window Functions
          • DENSE_RANK()
          • RANK()
          • ROW_NUMBER()
        • JSON Functions
          • JQ()
          • JSON_EXTRACT()
          • JSON_EXTRACT_FLOAT64()
          • JSON_EXTRACT_STRING()
          • JSON_QUOTE()
          • JSON_ROW()
          • JSON_UNQUOTE()
          • TRY_JQ()
        • Other Functions
          • LOAD_FILE
          • SAVE_FILE
          • SAMPLE
          • SERIAL_EXTRACT
          • SLEEP
          • STAGE_LIST
          • UUID()
        • System Operations Functions
          • CURRENT_ROLE_NAME()
          • CURRENT_ROLE()
          • CURRENT_USER_NAME()
          • CURRENT_USER()
          • VERSION()
          • PURGE_LOG()
      • System Tables Catalog
      • Permission Categories List
      • Usage Limitations
        • MatrixOne JDBC Feature Support List
        • MatrixOne DDL Statement Partition Support
        • MatrixOne Load Data Support
    • Glossary
    • Billing
      • Top up
      • Account Overview
      • Coupons Management
      • Revenue and expenditure details
      • Bill details
      • Price Details
        • Pricing: Serverless production instances
        • Pricing: Standard instances
      • Renewing an instance
      • Cash overdraft
      • Configuration change
      • Cancellation policy
  • Help
    • FAQs
      • MatrixOne Intelligence FAQs
      • SQL FAQs
    • Related Agreements
      • Privacy Policy
      • Terms of Service
      • Service Level Agreement
    • Technical Support
  • Release Notes
    • 2026
    • 2025
    • 2024
    • 2023
Back to top

Data Exploration Related APIs¶

Raw data volume¶

Create original data volumes¶

POST /CreateOriginVolume

Input parameters:

Parameters

Required

Meaning

name

Yes

Original data volume name

Example:

url = "https://freetier-01.cn-hangzhou.cluster.cn-dev.matrixone.tech/CreateOriginVolume"

headers = {
    "user-id":"0194dfaa-3eda-7ea5-b47c-b4f4f5940e97",
    "Access-Token": "",
    "uid": "2de56399-0fda-4982-a26e-580fd666914d-0194dfaa-3eda-7ea5-b47c-b4f4f5940e97:admin:accountadmin"
}

body = {
    "name": "b_vol3"

}
response = requests.post(url, json=body, headers=headers)
# Check the response status
print(response.json()) # Print the returned JSON data

return:

{'code': 'OK', 'msg': 'OK'}

View original data volume list¶

POST /DescribeOriginVolumes

Output parameters:

Parameters

Meaning

id

volume id

name

volume name

size

volume size

file_num

Number of files

Example:

import requests
import json

url = "https://freetier-01.cn-hangzhou.cluster.cn-dev.matrixone.tech/DescribeOriginVolumes"
headers = {
    "user-id":"0194dfaa-3eda-7ea5-b47c-b4f4f5940e97",
    "Access-Token": "xxxx",
    "uid": "ac8fd715-b39c-4edb-837b-e1ea1dae5f80-0194dfaa-3eda-7ea5-b47c-b4f4f5940e97:admin:accountadmin"
}

response = requests.post(url, headers=headers)
print("Response Body:", json.dumps(response.json(), indent=4, ensure_ascii=False))

return:

Response Body: {
    "code": "OK",
    "msg": "OK",
    "data": {
        "total": 5,
        "volumes": [
            {
                "id": "1889223879880048640",
                "name": "b-vol1",
                "size": 6787457,
                "file_num": 1,
                "owner": "admin",
                "created_at": 1739261047,
                "updated_at": 1739261047
            },
            {
                "id": "1889578498228068352",
                "name": "b-vol2",
                "size": 40724742,
                "file_num": 6,
                "owner": "admin",
                "created_at": 1739345595,
                "updated_at": 1739345595
            },
            {
                "id": "1889868565396619264",
                "name": "b_vol3",
                "size": 0,
                "file_num": 0,
                "owner": "admin",
                "created_at": 1739414752,
                "updated_at": 1739414752
            },
            {
                "id": "1889881472272465920",
                "name": "b_vol6",
                "size": 0,
                "file_num": 0,
                "owner": "admin",
                "created_at": 1739417829,
                "updated_at": 1739417829
            }
        ]
    }
}

View a raw data volume (file list)¶

POST /DescribeOriginVolume

Output parameters:

Parameters

Meaning

id

file id

name

file name

type

File type

status

File parsing status

path

file path

Example:

import requests
import json

url = "https://freetier-01.cn-hangzhou.cluster.cn-dev.matrixone.tech/DescribeOriginVolume"
headers = {
    "user-id":"0194dfaa-3eda-7ea5-b47c-b4f4f5940e97",
    "Access-Token": "xxxx",
    "uid": "badb5c26-e335-453d-85ad-7e996bcebff4-0194dfaa-3eda-7ea5-b47c-b4f4f5940e97:admin:accountadmin",
}

body={
        "id": "1889223879880048640"
}

response = requests.post(url, headers=headers,json=body)
print("Response Body:", json.dumps(response.json(), indent=4, ensure_ascii=False))

return:

Response Body: {
    "code": "OK",
    "msg": "OK",
    "data": {
        "total": 1,
        "items": [
            {
                "id": "1889223944229060608",
                "name": "Dream of the Red Chamber (Public Book) Simplified Chinese horizontal row.pdf",
                "type": 2,
                "status": 5,
                "size": 6787457,
                "update_time": 1739261640,
                "other_metadata": "",
                "reason": "",
                "user": "admin",
                "start_time": 1739261063,
                "end_time": 1739261640,
                "path": "/b-vol1/Dream of the Red Chamber (Public Book) Simplified Chinese horizontal row.pdf"
            }
        ]
    }
}

Download the file in a raw data volume¶

POST /GetOriginVolumeFileLink

Input parameters:

Parameters

Required

Meaning

volume_id

Yes

Raw data volume id

file_id

Yes

File id

Example:

import requests
import json

url = "https://freetier-01.cn-hangzhou.cluster.cn-dev.matrixone.tech/GetOriginVolumeFileLink"
headers = {
    "user-id":"0194dfaa-3eda-7ea5-b47c-b4f4f5940e97",
    "Access-Token": "xxxx",
    "uid": "ac8fd715-b39c-4edb-837b-e1ea1dae5f80-0194dfaa-3eda-7ea5-b47c-b4f4f5940e97:admin:accountadmin"
}

body = {
    "volume_id": 1889223879880048640,
    "file_id": "1889578498228068352"

}response = requests.post(url, headers=headers,json=body)
print("Response Body:", json.dumps(response.json(), indent=4, ensure_ascii=False))

return:

Response Body: {
    "code": "OK",
    "msg": "OK",
    "data": {
        "link": "https://moi-dev-test.oss-cn-hangzhou.aliyuncs.com/connector_path%2F0194dfaa-3eda-7ea5-b47c-b4f4f594xxxx%2Fb-vol2?Expires=173944xxxx&OSSAccessKeyId=LTAI5t6RX4TpSC8Z2v4nGG4Y&Signature=bCy60Or%2B%2Fr8Na1OcfMn%2Fy2jso6Y%3D"
    }
}

Delete a file in a raw data volume¶

POST /DeleteOriginVolumeFiles

Input parameters:

Parameters

Required

Meaning

volume_id

Yes

Raw data volume id

file_ids

Yes

File id

Example:

import requests
import json

url = "https://freetier-01.cn-hangzhou.cluster.cn-dev.matrixone.tech/DeleteOriginVolumeFiles"

headers = {
    "user-id":"0194dfaa-3eda-7ea5-b47c-b4f4f5940e97",
    "Access-Token": "xxxx",
    "uid": "badb5c26-e335-453d-85ad-7e996bcebff4-0194dfaa-3eda-7ea5-b47c-b4f4f5940e97:admin:accountadmin",
}


body={
    "volume_id": "1889578498228068352",
    "file_ids": ["1889698920437940224"]
}


response = requests.post(url, headers=headers,json=body)

if response.status_code == 200:
    print(response.json())
else:
    print(f"Request failed, status code: {response.status_code}, error message: {response.text}")

return:

{'code': 'OK', 'msg': 'OK', 'data': {}}

Processing data volumes¶

Create processing data volumes¶

POST /byoa/api/v1/explore/volumes

Input parameters:

Parameters

Required

Meaning

name

Yes

Processing data volume name

Example:

import requests
import json

url = "https://freetier-01.cn-hangzhou.cluster.cn-dev.matrixone.tech/byoa/api/v1/explore/volumes"

headers = {
    "user-id":"0194dfaa-3eda-7ea5-b47c-b4f4f5940e97",
    "Access-Token": "xxxx",
    "uid": "ac8fd715-b39c-4edb-837b-e1ea1dae5f80-0194dfaa-3eda-7ea5-b47c-b4f4f5940e97:admin:accountadmin"
}

body = {
    "name": "a_vol4"

}
response = requests.post(url, json=body, headers=headers)
print(response.json())

return:

{'code': 'ok', 'msg': 'ok', 'data': {'id': 'fb93a6c1-6d1e-4d68-bb7c-4d84facda670', 'name': 'a_vol4', 'created_at': '2025-02-13T11:44:36', 'updated_at': '2025-02-13T11:44:36'}}

View the list of processed data volumes¶

GET /byoa/api/v1/explore/volumes

Output parameters:

Parameters

Meaning

name

volume name

id

volume id

Example:

import requests
import json

url = "https://freetier-01.cn-hangzhou.cluster.cn-dev.matrixone.tech/byoa/api/v1/explore/volumes"
headers = {
    "user-id":"0194dfaa-3eda-7ea5-b47c-b4f4f5940e97",
    "Access-Token": "xxxx",
    "uid": "badb5c26-e335-453d-85ad-7e996bcebff4-0194dfaa-3eda-7ea5-b47c-b4f4f5940e97:admin:accountadmin",
}

response = requests.get(url, headers=headers)
print("Response Body:", json.dumps(response.json(), indent=4, ensure_ascii=False))

return:

Response Body: {
    "code": "ok",
    "msg": "ok",
    "data": {
        "total": 4,
        "volumes": [
            {
                "name": "a-vol1",
                "created_at": "2025-02-11T16:06:55",
                "updated_at": "2025-02-11T16:06:55",
                "user_id": "0194dfaa-3eda-7ea5-b47c-b4f4f5940e97",
                "id": "eb42f0a1-ab18-4010-b95c-cd1716dd5e95"
            },
            {
                "name": "a_vol4",
                "created_at": "2025-02-13T11:44:36",
                "updated_at": "2025-02-13T11:44:36",
                "user_id": "0194dfaa-3eda-7ea5-b47c-b4f4f5940e97",
                "id": "fb93a6c1-6d1e-4d68-bb7c-4d84facda670"
            }
        ]
    }
}

View a processing data volume (file list)¶

POST /byoa/api/v1/explore/volumes/{volume_id}/files
import requests
import json

url = "https://freetier-01.cn-hangzhou.cluster.cn-dev.matrixone.tech/byoa/api/v1/explore/volumes/dbcc0d71-31f9-4799-b404-096f9e8e57f9/files"
headers = {
    "user-id":"0194dfaa-3eda-7ea5-b47c-b4f4f594xxxx",
    "Access-Token": "xxxx",
    "uid": "2868847d-660d-4ace-a7ca-b75c3be575ce-0194dfaa-3eda-7ea5-b47c-b4f4f594xxxx:admin:accountadmin",
}

response = requests.post(url, headers=headers)
print("Response Body:", json.dumps(response.json(), indent=4, ensure_ascii=False))

return:

Response Body: {
    "code": "ok",
    "msg": "ok",
    "data": {
        "total": 3,
        "items": [
            {
                "id": "0194fb44-c44b-7713-b064-bff178ba30c3",
                "created_at": "2025-02-12T17:46:16.000000+0000",
                "updated_at": "2025-02-12T17:51:21.000000+0000",
                "user_id": "0194dfaa-3eda-7ea5-b47c-b4f4f5940e97",
                "source_volume_id": "1889223879880048640",
                "source_file_id": "1889223944229060608","target_volume_id": "dbcc0d71-31f9-4799-b404-096f9e8e57f9",
                "file_name": "Dream of the Red Chamber (Public Book) Simplified Chinese horizontal row.pdf",
                "file_type": 2,
                "file_size": 6787457,
                "file_path": "0194dfaa-3eda-7ea5-b47c-b4f4f5940e97/b-vol1/1889223922712281088/Dream of the Red Chamber (Public Book) Simplified Chinese horizontal row.pdf",
                "file_status": 2,
                "workflow_id": "5775ecd6-5918-42a1-a92f-7245fe96b2bf",
                "job_id": "0194fb44-c44b-7708-aab6-c67e094d0352",
                "error_message": "",
                "duration": 300,
                "start_time": "2025-02-12T17:46:20.000000+0000",
                "end_time": "2025-02-12T17:51:21.000000+0000"
            },
            {
                "id": "0194fb23-cd65-7688-9f0e-b24de1947f9c",
                "created_at": "2025-02-12T17:10:15.000000+0000",
                "updated_at": "2025-02-12T17:15:21.000000+0000",
                "user_id": "0194dfaa-3eda-7ea5-b47c-b4f4f5940e97",
                "source_volume_id": "1889223879880048640",
                "source_file_id": "1889223944229060608",
                "target_volume_id": "dbcc0d71-31f9-4799-b404-096f9e8e57f9",
                "file_name": "Dream of the Red Chamber (Public Book) Simplified Chinese horizontal row.pdf",
                "file_type": 2,
                "file_size": 6787457,
                "file_path": "0194dfaa-3eda-7ea5-b47c-b4f4f5940e97/b-vol1/1889223922712281088/Dream of the Red Chamber (Public Book) Simplified Chinese horizontal row.pdf",
                "file_status": 2,
                "workflow_id": "729e7a03-652d-46e0-bdad-b05ec5b80cea",
                "job_id": "0194fb23-cd65-767c-b58f-db7c4456b896",
                "error_message": "",
                "duration": 300,
                "start_time": "2025-02-12T17:10:20.000000+0000",
                "end_time": "2025-02-12T17:15:21.000000+0000"
            },
            {
                "id": "0194fb28-61ae-7ab3-8446-a50669b8df87",
                "created_at": "2025-02-12T17:15:15.000000+0000",
                "updated_at": "2025-02-12T17:20:21.000000+0000",
                "user_id": "0194dfaa-3eda-7ea5-b47c-b4f4f5940e97",
                "source_volume_id": "1889223879880048640",
                "source_file_id": "1889223944229060608",
                "target_volume_id": "dbcc0d71-31f9-4799-b404-096f9e8e57f9",
                "file_name": "Dream of the Red Chamber (Public Book) Simplified Chinese horizontal row.pdf",
                "file_type": 2,
                "file_size": 6787457,
                "file_path": "0194dfaa-3eda-7ea5-b47c-b4f4f5940e97/b-vol1/1889223922712281088/Dream of the Red Chamber (Public Book) Simplified Chinese horizontal row.pdf",
                "file_status": 2,
                "workflow_id": "c6dcbad5-f85d-42b7-942c-2e8d3445a4e6",
                "job_id": "0194fb28-61ae-7aac-8500-a4c924a68211",
                "error_message": "",
                "duration": 300,
                "start_time": "2025-02-12T17:15:20.000000+0000",
                "end_time": "2025-02-12T17:20:21.000000+0000"
            }
        ]
    }
}

Download a file in a processing data volume¶

GET /byoa/api/v1/explore/volumes/{volume_id}/files/{file_id}/raws
import requests
import json

url = "https://freetier-01.cn-hangzhou.cluster.cn-dev.matrixone.tech/byoa/api/v1/explore/volumes/eb42f0a1-ab18-4010-b95c-cd1716dd5e95/files/0194f41d-59d3-78ae-953d-7db134c83cab/raws"
headers = {
    "user-id":"0194dfaa-3eda-7ea5-b47c-b4f4f594xxxx",
    "Access-Token": "xxxx",
    "uid": "a8b83860-da1a-46cb-96a7-dd668fadc163-0194dfaa-3eda-7ea5-b47c-b4f4f594xxxx:admin:accountadmin"
}

response = requests.get(url, headers=headers)
print("Response Body:", json.dumps(response.json(), indent=4, ensure_ascii=False))

return:

Response Body: {
    "total": 0,
    "items": []
}

View the parsing content of a file in a processing data volume¶

POST /byoa/api/v1/explore/volumes/{volume_id}/files/{filed_id}/blocks

Example:

import requests
import json

url = "https://freetier-01.cn-hangzhou.cluster.cn-dev.matrixone.tech/byoa/api/v1/explore/volumes/7399732a-3e43-4469-8abb-7a53b99efc22/files/0194fd65-e671-7e67-ba34-66967ba0fbf0/blocks"
headers = {
    "user-id":"0194e0c2-7e81-7040-ba44-f1d4f51axxxx",
    "Access-Token": "xxxx",
    "uid": "0401ffeb-592c-4472-bed4-fb4631c72688-0194e0c2-7e81-7040-ba44-f1d4f51axxxx:admin:accountadmin"
}

body = {
    "limit": 2
}

response = requests.post(url, headers=headers,json=body)
print("Response Body:", json.dumps(response.json(), indent=4, ensure_ascii=False))

return:

Response Body: {
    "code": "ok",
    "msg": "ok",
    "data": {
        "total": 318,
        "items": [
            {
                "id": "000a9605-733f-4335-bc72-ac9aa8351e66","content": "1. Data access and integration a. Matrix Search connects product images and inventory data from the backend management system, and realizes data synchronization and real-time update through automatic updates and API interfaces. b. Image data is managed uniformly according to single-sided type, without model words to ensure the clear and accurate search results. 2. Search index construction and optimization a. Matrix Search uses the Efficient Net model to extract features of uploaded images, generate high-precision image embedding vectors, and build image search indexes. b. Supports mixed search, and improves search accuracy and relevance of results by combining semantic search (search pictures with text) and vector search (search pictures with pictures). 3. Implementation of intelligent search functions a. Users upload pictures or enter text through the applet portal for product search. b. System call Matrix Search The search API quickly returns matching product results, and supports category filtering and series of queries to help users quickly find target products. 4. Inventory query and display a. After the search results are filtered and classified, the applet displays matching product information, including name, specification, picture, inventory, etc. b. Users can directly query product inventory status and further view other products in the same series to optimize the search experience. # Customer income  Through the intelligent search platform based on Matrix Search, Jinyitao has achieved significant improvements in product search and customer experience: search efficiency is improved by $90\\%$, and sales can quickly find tiled products that meet the needs. $\\bullet$ The systematic inventory query function helps the sales team optimize inventory management and reduce manual operation time. $\\bullet$ The intelligent search function based on image features has significantly improved user satisfaction with product selection and enhanced brand stickiness. $\\bullet$ The flexible mini-program portal simplifies the user interaction process and provides customers with efficient services anytime, anywhere. #Suwen TechAgent #Customer Background",
                "content_type": "text",
                "file_id": "0194fd65-e671-7e67-ba34-66967ba0fbf0",
                "created_at": "2025-02-13T03:45:02",
                "updated_at": "2025-02-13T03:45:02"
            },
            {
                "id": "08aaf135-f8ad-446c-9951-03e94777f608",
                "content": "![](/aaf889600825973f8e7e118d8b5e0c805d774aac8e2d96c2f005e0b9ee77bbad.jpg) Next, we will analyze the scenarios of each key link, the technical requirements of data processing, and how the product capabilities in the MatrixOne Intelligence solution match the needs of this link. # Data Access and Integration # Section Overview The previous article has described in detail that when corporate customers are facing GenAI application scenarios, corporate customers generally face a new round of data silos. Various data sources may be distributed in different databases (such as relational databases, NoSQL databases), file systems (local or cloud storage), third-party SaaS applications (such as network disks, IM In environments such as tools) and edge devices. These data are not only physically scattered, but also highly heterogeneous in formats, covering structured data (such as database tables), semi-structured data (such as JSON, XML) and unstructured data (such as PDF documents, images, videos, audio, etc.). This dispersed and diverse data form brings the following key problems and needs: 1. Complex data acquisition and integration: data is distributed in multiple systems and locations, and lacks a unified access and management method, resulting in large and inefficient data integration. 2. Unstructured data processing pressure: The unstructured data volume is huge (such as videos and audio files), and the use of a centralized access method will bring bandwidth bottlenecks, high latency and high cost problems. 3. Multimodal data standardization: the data format is inconsistent, the parsing and standardization process is cumbersome, making it difficult to directly support AI modeling and applications. 4. Security and permission management: Data access across departments or across systems requires refined permission control to ensure the security and compliance of data during the access and management process. Therefore, the core goal of this link is to solve the problem of data dispersion and heterogeneity, and build an architecture that supports unified access to multiple data sources, cloud-edge collaborative processing and distributed management. By efficiently integrating structured, semi-structured and unstructured data, and providing flexible permission control and standardized processing capabilities, a solid data foundation is laid for subsequent AI modeling and intelligent applications. ",
                "content_type": "text",
                "file_id": "0194fd65-e671-7e67-ba34-66967ba0fbf0",
                "created_at": "2025-02-13T03:45:02",
                "updated_at": "2025-02-13T03:45:02"
            }
        ]
    }
}

Delete segments of a file in a processing data volume¶

DELETE /explore/volumes/{volume_id}/files/{filed_id}/blocks

NOTE: The status code for successful request of this interface is 204.

Output parameters:

Parameters

Meaning

ids

block’s id

Example:

import requests
import json

url = "https://freetier-01.cn-hangzhou.cluster.cn-dev.matrixone.tech/byoa/api/v1/explore/volumes/7399732a-3e43-4469-8abb-7a53b99efc22/files/0194fd65-e671-7e67-ba34-66967ba0fbf0/blocks"
headers = {
    "user-id": "0194e0c2-7e81-7040-ba44-f1d4f51axxxx",
    "Access-Token": "xxxx",
    "uid": "8fe335b4-2883-41b4-82eb-a17362504243-0194e0c2-7e81-7040-ba44-f1d4f51axxxx:admin:accountadmin",
}

body = {
    "ids": ["03e927d3-edbe-426c-835a-0f1e4fcc39b6"]
}

response = requests.delete(url, headers=headers, json=body)

if response.status_code == 204:
    print("Request succeeded, resource deleted")
else:
    print(f"Request failed, status code: {response.status_code}, error message: {response.text}")

return:

Request successful, resource deleted
Next
Metrics-related API
Previous
Data processing related API
Copyright © 2026, MatrixOrigin
Made with Sphinx and @pradyunsg's Furo
On this page
  • Data Exploration Related APIs
    • Raw data volume
      • Create original data volumes
      • View original data volume list
      • View a raw data volume (file list)
      • Download the file in a raw data volume
      • Delete a file in a raw data volume
    • Processing data volumes
      • Create processing data volumes
      • View the list of processed data volumes
      • View a processing data volume (file list)
      • Download a file in a processing data volume
      • View the parsing content of a file in a processing data volume
      • Delete segments of a file in a processing data volume