POST/api/x402/apps$0.007
x402.create_app_from_html
Create a MiniUp app from complete HTML supplied by an agent.
Usage and schema
{
"method": "POST",
"path": "/api/x402/apps",
"bodyType": "json",
"inputSchema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Desired MiniUp app slug."
},
"html": {
"type": "string",
"description": "Complete HTML document for index.html."
},
"password": {
"type": "string",
"description": "Optional password. Providing it makes the app private."
},
"visibility": {
"type": "string",
"enum": [
"private",
"public"
]
}
},
"required": [
"name",
"html"
]
},
"exampleInput": {
"name": "agent-demo",
"html": "<!doctype html><html></html>",
"visibility": "private"
},
"exampleOutput": {
"app": {
"appId": "agent-demo",
"status": "created"
},
"receipt": {
"type": "object",
"properties": {
"receiptId": {
"type": "string"
},
"action": {
"type": "string"
},
"wallet": {
"type": "string"
},
"network": {
"type": "string"
},
"txHash": {
"type": "string"
},
"recipient": {
"type": "string"
},
"price": {
"type": "string"
},
"currency": {
"type": "string"
},
"appId": {
"type": "string"
},
"appName": {
"type": "string"
},
"visibility": {
"type": "string",
"enum": [
"private",
"public"
]
},
"status": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"receiptHash": {
"type": "string"
}
}
}
}
}
POST/api/x402/apps/:siteId/files$0.003
x402.update_app_file
Create or replace a file in an app owned by the paying wallet.
Usage and schema
{
"method": "POST",
"path": "/api/x402/apps/:siteId/files",
"bodyType": "json",
"inputSchema": {
"type": "object",
"properties": {
"path": {
"type": "string",
"description": "Relative file path inside the app."
},
"content": {
"type": "string",
"description": "File contents as UTF-8 text."
},
"contentType": {
"type": "string"
}
},
"required": [
"path",
"content"
]
},
"exampleInput": {
"path": "index.html",
"content": "<!doctype html><html></html>"
},
"exampleOutput": {
"app": {
"appId": "agent-demo",
"status": "updated"
},
"receipt": {
"type": "object",
"properties": {
"receiptId": {
"type": "string"
},
"action": {
"type": "string"
},
"wallet": {
"type": "string"
},
"network": {
"type": "string"
},
"txHash": {
"type": "string"
},
"recipient": {
"type": "string"
},
"price": {
"type": "string"
},
"currency": {
"type": "string"
},
"appId": {
"type": "string"
},
"appName": {
"type": "string"
},
"visibility": {
"type": "string",
"enum": [
"private",
"public"
]
},
"status": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"receiptHash": {
"type": "string"
}
}
}
}
}
PATCH/api/x402/apps/:siteId$0.001
x402.update_app_meta
Update app privacy/password metadata for an app owned by the paying wallet.
Usage and schema
{
"method": "PATCH",
"path": "/api/x402/apps/:siteId",
"bodyType": "json",
"inputSchema": {
"type": "object",
"properties": {
"visibility": {
"type": "string",
"enum": [
"private",
"public"
]
},
"password": {
"type": "string",
"description": "Optional password when visibility is private."
}
}
},
"exampleInput": {
"visibility": "private",
"password": "new-password"
},
"exampleOutput": {
"app": {
"appId": "agent-demo",
"status": "updated"
},
"receipt": {
"type": "object",
"properties": {
"receiptId": {
"type": "string"
},
"action": {
"type": "string"
},
"wallet": {
"type": "string"
},
"network": {
"type": "string"
},
"txHash": {
"type": "string"
},
"recipient": {
"type": "string"
},
"price": {
"type": "string"
},
"currency": {
"type": "string"
},
"appId": {
"type": "string"
},
"appName": {
"type": "string"
},
"visibility": {
"type": "string",
"enum": [
"private",
"public"
]
},
"status": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"receiptHash": {
"type": "string"
}
}
}
}
}
POST/api/x402/apps/:siteId/publish$0.002
x402.publish_app
Publish or re-enable an app owned by the paying wallet.
Usage and schema
{
"method": "POST",
"path": "/api/x402/apps/:siteId/publish",
"bodyType": "json",
"inputSchema": {
"type": "object",
"properties": {}
},
"exampleInput": {},
"exampleOutput": {
"app": {
"appId": "agent-demo",
"status": "published"
},
"receipt": {
"type": "object",
"properties": {
"receiptId": {
"type": "string"
},
"action": {
"type": "string"
},
"wallet": {
"type": "string"
},
"network": {
"type": "string"
},
"txHash": {
"type": "string"
},
"recipient": {
"type": "string"
},
"price": {
"type": "string"
},
"currency": {
"type": "string"
},
"appId": {
"type": "string"
},
"appName": {
"type": "string"
},
"visibility": {
"type": "string",
"enum": [
"private",
"public"
]
},
"status": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"receiptHash": {
"type": "string"
}
}
}
}
}
POST/api/x402/apps/:siteId/unpublish$0.001
x402.unpublish_app
Disable public serving for an app owned by the paying wallet.
Usage and schema
{
"method": "POST",
"path": "/api/x402/apps/:siteId/unpublish",
"bodyType": "json",
"inputSchema": {
"type": "object",
"properties": {}
},
"exampleInput": {},
"exampleOutput": {
"app": {
"appId": "agent-demo",
"status": "updated"
},
"receipt": {
"type": "object",
"properties": {
"receiptId": {
"type": "string"
},
"action": {
"type": "string"
},
"wallet": {
"type": "string"
},
"network": {
"type": "string"
},
"txHash": {
"type": "string"
},
"recipient": {
"type": "string"
},
"price": {
"type": "string"
},
"currency": {
"type": "string"
},
"appId": {
"type": "string"
},
"appName": {
"type": "string"
},
"visibility": {
"type": "string",
"enum": [
"private",
"public"
]
},
"status": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"receiptHash": {
"type": "string"
}
}
}
}
}
DELETE/api/x402/apps/:siteId$0.001
x402.delete_app
Delete an app and its MiniUp data assets owned by the paying wallet.
Usage and schema
{
"method": "DELETE",
"path": "/api/x402/apps/:siteId",
"bodyType": null,
"inputSchema": {
"type": "object",
"properties": {}
},
"exampleInput": {},
"exampleOutput": {
"app": {
"appId": "agent-demo",
"status": "deleted"
},
"receipt": {
"type": "object",
"properties": {
"receiptId": {
"type": "string"
},
"action": {
"type": "string"
},
"wallet": {
"type": "string"
},
"network": {
"type": "string"
},
"txHash": {
"type": "string"
},
"recipient": {
"type": "string"
},
"price": {
"type": "string"
},
"currency": {
"type": "string"
},
"appId": {
"type": "string"
},
"appName": {
"type": "string"
},
"visibility": {
"type": "string",
"enum": [
"private",
"public"
]
},
"status": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"receiptHash": {
"type": "string"
}
}
}
}
}
POST/api/x402/apps/:siteId/upload-urls$0.001
x402.create_site_upload_urls
Create presigned upload URLs for app assets such as images, PDFs, CSS, and JS.
Usage and schema
{
"method": "POST",
"path": "/api/x402/apps/:siteId/upload-urls",
"bodyType": "json",
"inputSchema": {
"type": "object",
"properties": {
"files": {
"type": "array",
"items": {
"type": "object"
}
}
},
"required": [
"files"
]
},
"exampleInput": {
"files": [
{
"path": "assets/logo.png",
"size": 12000,
"type": "image/png"
}
]
},
"exampleOutput": {
"uploadToken": "string",
"files": [],
"receipt": {
"type": "object",
"properties": {
"receiptId": {
"type": "string"
},
"action": {
"type": "string"
},
"wallet": {
"type": "string"
},
"network": {
"type": "string"
},
"txHash": {
"type": "string"
},
"recipient": {
"type": "string"
},
"price": {
"type": "string"
},
"currency": {
"type": "string"
},
"appId": {
"type": "string"
},
"appName": {
"type": "string"
},
"visibility": {
"type": "string",
"enum": [
"private",
"public"
]
},
"status": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"receiptHash": {
"type": "string"
}
}
}
}
}
POST/api/x402/apps/:siteId/upload-urls/finalize$0.001
x402.finalize_site_upload
Finalize previously uploaded app assets and update the app manifest.
Usage and schema
{
"method": "POST",
"path": "/api/x402/apps/:siteId/upload-urls/finalize",
"bodyType": "json",
"inputSchema": {
"type": "object",
"properties": {
"uploadToken": {
"type": "string"
},
"entryPoint": {
"type": "string"
},
"files": {
"type": "array",
"items": {
"type": "object"
}
}
},
"required": [
"uploadToken",
"entryPoint",
"files"
]
},
"exampleInput": {
"uploadToken": "token",
"entryPoint": "index.html",
"files": [
{
"path": "index.html",
"size": 1000
}
]
},
"exampleOutput": {
"app": {
"appId": "agent-demo",
"status": "updated"
},
"receipt": {
"type": "object",
"properties": {
"receiptId": {
"type": "string"
},
"action": {
"type": "string"
},
"wallet": {
"type": "string"
},
"network": {
"type": "string"
},
"txHash": {
"type": "string"
},
"recipient": {
"type": "string"
},
"price": {
"type": "string"
},
"currency": {
"type": "string"
},
"appId": {
"type": "string"
},
"appName": {
"type": "string"
},
"visibility": {
"type": "string",
"enum": [
"private",
"public"
]
},
"status": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"receiptHash": {
"type": "string"
}
}
}
}
}
POST/api/x402/apps/:siteId/tables$0.008
x402.create_table_api
Create a structured table-backed API for an app owned by the paying wallet.
Usage and schema
{
"method": "POST",
"path": "/api/x402/apps/:siteId/tables",
"bodyType": "json",
"inputSchema": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"slug": {
"type": "string"
},
"schema": {
"type": "object"
}
},
"required": [
"name",
"schema"
]
},
"exampleInput": {
"name": "Leads",
"schema": {
"fields": [
{
"name": "email",
"label": "Email",
"type": "string"
}
]
}
},
"exampleOutput": {
"table": {
"id": "string",
"slug": "leads"
},
"receipt": {
"type": "object",
"properties": {
"receiptId": {
"type": "string"
},
"action": {
"type": "string"
},
"wallet": {
"type": "string"
},
"network": {
"type": "string"
},
"txHash": {
"type": "string"
},
"recipient": {
"type": "string"
},
"price": {
"type": "string"
},
"currency": {
"type": "string"
},
"appId": {
"type": "string"
},
"appName": {
"type": "string"
},
"visibility": {
"type": "string",
"enum": [
"private",
"public"
]
},
"status": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"receiptHash": {
"type": "string"
}
}
}
}
}
POST/api/x402/tables/:tableId/records$0.001
x402.insert_table_records
Insert records into a table owned by the paying wallet.
Usage and schema
{
"method": "POST",
"path": "/api/x402/tables/:tableId/records",
"bodyType": "json",
"inputSchema": {
"type": "object",
"properties": {
"records": {
"type": "array",
"items": {
"type": "object"
}
}
},
"required": [
"records"
]
},
"exampleInput": {
"records": [
{
"email": "agent@example.com"
}
]
},
"exampleOutput": {
"inserted": 1,
"receipt": {
"type": "object",
"properties": {
"receiptId": {
"type": "string"
},
"action": {
"type": "string"
},
"wallet": {
"type": "string"
},
"network": {
"type": "string"
},
"txHash": {
"type": "string"
},
"recipient": {
"type": "string"
},
"price": {
"type": "string"
},
"currency": {
"type": "string"
},
"appId": {
"type": "string"
},
"appName": {
"type": "string"
},
"visibility": {
"type": "string",
"enum": [
"private",
"public"
]
},
"status": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"receiptHash": {
"type": "string"
}
}
}
}
}
POST/api/x402/apps/:siteId/data-files/upload-url$0.001
x402.create_data_file_upload_url
Create a presigned upload URL for CSV, XLSX, JSON, GeoJSON, Shapefile ZIP, Parquet, or GeoParquet.
Usage and schema
{
"method": "POST",
"path": "/api/x402/apps/:siteId/data-files/upload-url",
"bodyType": "json",
"inputSchema": {
"type": "object",
"properties": {
"fileName": {
"type": "string"
},
"fileSize": {
"type": "number"
},
"fileType": {
"type": "string"
}
},
"required": [
"fileName",
"fileSize"
]
},
"exampleInput": {
"fileName": "data.csv",
"fileSize": 12000,
"fileType": "text/csv"
},
"exampleOutput": {
"strategy": "simple",
"uploadToken": "string",
"receipt": {
"type": "object",
"properties": {
"receiptId": {
"type": "string"
},
"action": {
"type": "string"
},
"wallet": {
"type": "string"
},
"network": {
"type": "string"
},
"txHash": {
"type": "string"
},
"recipient": {
"type": "string"
},
"price": {
"type": "string"
},
"currency": {
"type": "string"
},
"appId": {
"type": "string"
},
"appName": {
"type": "string"
},
"visibility": {
"type": "string",
"enum": [
"private",
"public"
]
},
"status": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"receiptHash": {
"type": "string"
}
}
}
}
}
POST/api/x402/apps/:siteId/data-files/complete-upload$0.001
x402.complete_data_file_multipart_upload
Complete a multipart data-file upload before conversion.
Usage and schema
{
"method": "POST",
"path": "/api/x402/apps/:siteId/data-files/complete-upload",
"bodyType": "json",
"inputSchema": {
"type": "object",
"properties": {
"uploadId": {
"type": "string"
},
"key": {
"type": "string"
},
"parts": {
"type": "array",
"items": {
"type": "object"
}
}
},
"required": [
"uploadId",
"key",
"parts"
]
},
"exampleInput": {
"uploadId": "string",
"key": "string",
"parts": [
{
"ETag": "etag",
"PartNumber": 1
}
]
},
"exampleOutput": {
"success": true,
"receipt": {
"type": "object",
"properties": {
"receiptId": {
"type": "string"
},
"action": {
"type": "string"
},
"wallet": {
"type": "string"
},
"network": {
"type": "string"
},
"txHash": {
"type": "string"
},
"recipient": {
"type": "string"
},
"price": {
"type": "string"
},
"currency": {
"type": "string"
},
"appId": {
"type": "string"
},
"appName": {
"type": "string"
},
"visibility": {
"type": "string",
"enum": [
"private",
"public"
]
},
"status": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"receiptHash": {
"type": "string"
}
}
}
}
}
POST/api/x402/apps/:siteId/data-files/convert$0.01
x402.convert_data_file_to_api
Convert an uploaded data file to a MiniUp parquet-backed API dataset.
Usage and schema
{
"method": "POST",
"path": "/api/x402/apps/:siteId/data-files/convert",
"bodyType": "json",
"inputSchema": {
"type": "object",
"properties": {
"key": {
"type": "string"
},
"fileName": {
"type": "string"
},
"name": {
"type": "string"
},
"slug": {
"type": "string"
},
"replaceExisting": {
"type": "boolean"
}
},
"required": [
"key",
"fileName"
]
},
"exampleInput": {
"key": "staging/data-files/app/token/source.csv",
"fileName": "data.csv",
"name": "Data"
},
"exampleOutput": {
"asset": {
"id": "string",
"slug": "data"
},
"receipt": {
"type": "object",
"properties": {
"receiptId": {
"type": "string"
},
"action": {
"type": "string"
},
"wallet": {
"type": "string"
},
"network": {
"type": "string"
},
"txHash": {
"type": "string"
},
"recipient": {
"type": "string"
},
"price": {
"type": "string"
},
"currency": {
"type": "string"
},
"appId": {
"type": "string"
},
"appName": {
"type": "string"
},
"visibility": {
"type": "string",
"enum": [
"private",
"public"
]
},
"status": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"receiptHash": {
"type": "string"
}
}
}
}
}