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"
},
"requireReadKey": {
"type": "boolean",
"description": "Defaults false. Require x-miniup-write-key for public REST GET and schema reads."
},
"schema": {
"type": "object"
}
},
"required": [
"name",
"schema"
]
},
"exampleInput": {
"name": "Leads",
"requireReadKey": false,
"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"
}
}
}
}
}
GET/api/x402/apps/:siteId$0.001
x402.capability.get_site_details
Inspect a Site for resources owned by the authenticated identity.
Usage and schema
{
"method": "GET",
"path": "/api/x402/apps/:siteId",
"bodyType": null,
"inputSchema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"siteId": {
"type": "string",
"minLength": 1,
"maxLength": 128
}
},
"required": [
"siteId"
],
"additionalProperties": false
},
"exampleInput": {},
"exampleOutput": {
"action": "get_site_details",
"message": "Completed.",
"result": {}
}
}
GET/api/x402/apps/:siteId/files$0.001
x402.capability.get_site_content
Read Site files for resources owned by the authenticated identity.
Usage and schema
{
"method": "GET",
"path": "/api/x402/apps/:siteId/files",
"bodyType": null,
"inputSchema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"siteId": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"paths": {
"maxItems": 100,
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"siteId"
],
"additionalProperties": false
},
"exampleInput": {},
"exampleOutput": {
"action": "get_site_content",
"message": "Completed.",
"result": {}
}
}
PATCH/api/x402/apps/:siteId/files$0.001
x402.capability.update_site_text_files
Update multiple Site files for resources owned by the authenticated identity.
Usage and schema
{
"method": "PATCH",
"path": "/api/x402/apps/:siteId/files",
"bodyType": "json",
"inputSchema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"siteId": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"files": {
"minItems": 1,
"maxItems": 100,
"type": "array",
"items": {
"type": "object",
"properties": {
"path": {
"type": "string",
"minLength": 1,
"maxLength": 500
},
"content": {
"type": "string",
"maxLength": 5242880
},
"contentType": {
"type": "string"
}
},
"required": [
"path",
"content"
],
"additionalProperties": false
}
}
},
"required": [
"siteId",
"files"
],
"additionalProperties": false
},
"exampleInput": {},
"exampleOutput": {
"action": "update_site_text_files",
"message": "Completed.",
"result": {}
}
}
GET/api/x402/apps/:siteId/tables$0.001
x402.capability.list_site_tables
List Site Tables for resources owned by the authenticated identity.
Usage and schema
{
"method": "GET",
"path": "/api/x402/apps/:siteId/tables",
"bodyType": null,
"inputSchema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"siteId": {
"type": "string",
"minLength": 1,
"maxLength": 128
}
},
"required": [
"siteId"
],
"additionalProperties": false
},
"exampleInput": {},
"exampleOutput": {
"action": "list_site_tables",
"message": "Completed.",
"result": {}
}
}
GET/api/x402/tables/:tableId/records$0.001
x402.capability.list_table_records
Read Table records and schema for resources owned by the authenticated identity.
Usage and schema
{
"method": "GET",
"path": "/api/x402/tables/:tableId/records",
"bodyType": null,
"inputSchema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"tableId": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 200
},
"offset": {
"type": "integer",
"minimum": 0,
"maximum": 100000
}
},
"required": [
"tableId"
],
"additionalProperties": false
},
"exampleInput": {},
"exampleOutput": {
"action": "list_table_records",
"message": "Completed.",
"result": {}
}
}
PATCH/api/x402/tables/:tableId/records/:recordId$0.001
x402.capability.update_table_record
Update a Table record for resources owned by the authenticated identity.
Usage and schema
{
"method": "PATCH",
"path": "/api/x402/tables/:tableId/records/:recordId",
"bodyType": "json",
"inputSchema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"tableId": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"recordId": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"fields": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
}
]
}
}
},
"required": [
"tableId",
"recordId",
"fields"
],
"additionalProperties": false
},
"exampleInput": {},
"exampleOutput": {
"action": "update_table_record",
"message": "Completed.",
"result": {}
}
}
DELETE/api/x402/tables/:tableId/records/:recordId$0.001
x402.capability.delete_table_record
Delete a Table record for resources owned by the authenticated identity.
Usage and schema
{
"method": "DELETE",
"path": "/api/x402/tables/:tableId/records/:recordId",
"bodyType": null,
"inputSchema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"tableId": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"recordId": {
"type": "string",
"minLength": 1,
"maxLength": 128
}
},
"required": [
"tableId",
"recordId"
],
"additionalProperties": false
},
"exampleInput": {},
"exampleOutput": {
"action": "delete_table_record",
"message": "Completed.",
"result": {}
}
}
PATCH/api/x402/tables/:tableId/access$0.001
x402.capability.update_site_table_access
Set Table API permissions for resources owned by the authenticated identity.
Usage and schema
{
"method": "PATCH",
"path": "/api/x402/tables/:tableId/access",
"bodyType": "json",
"inputSchema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"tableId": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"apiScopes": {
"minItems": 1,
"type": "array",
"items": {
"type": "string",
"enum": [
"GET",
"POST",
"PATCH",
"DELETE"
]
}
},
"requireReadKey": {
"type": "boolean"
}
},
"required": [
"tableId",
"apiScopes"
],
"additionalProperties": false
},
"exampleInput": {},
"exampleOutput": {
"action": "update_site_table_access",
"message": "Completed.",
"result": {}
}
}
DELETE/api/x402/tables/:tableId$0.001
x402.capability.delete_site_table
Delete a Table for resources owned by the authenticated identity.
Usage and schema
{
"method": "DELETE",
"path": "/api/x402/tables/:tableId",
"bodyType": null,
"inputSchema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"tableId": {
"type": "string",
"minLength": 1,
"maxLength": 128
}
},
"required": [
"tableId"
],
"additionalProperties": false
},
"exampleInput": {},
"exampleOutput": {
"action": "delete_site_table",
"message": "Completed.",
"result": {}
}
}
GET/api/x402/apps/:siteId/data-files$0.001
x402.capability.list_site_data_files
List Site datasets for resources owned by the authenticated identity.
Usage and schema
{
"method": "GET",
"path": "/api/x402/apps/:siteId/data-files",
"bodyType": null,
"inputSchema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"siteId": {
"type": "string",
"minLength": 1,
"maxLength": 128
}
},
"required": [
"siteId"
],
"additionalProperties": false
},
"exampleInput": {},
"exampleOutput": {
"action": "list_site_data_files",
"message": "Completed.",
"result": {}
}
}
PATCH/api/x402/data-files/:assetId$0.001
x402.capability.update_data_file
Set dataset availability for resources owned by the authenticated identity.
Usage and schema
{
"method": "PATCH",
"path": "/api/x402/data-files/:assetId",
"bodyType": "json",
"inputSchema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"assetId": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"disabled": {
"type": "boolean"
}
},
"required": [
"assetId",
"disabled"
],
"additionalProperties": false
},
"exampleInput": {},
"exampleOutput": {
"action": "update_data_file",
"message": "Completed.",
"result": {}
}
}
DELETE/api/x402/data-files/:assetId$0.001
x402.capability.delete_data_file
Delete a dataset for resources owned by the authenticated identity.
Usage and schema
{
"method": "DELETE",
"path": "/api/x402/data-files/:assetId",
"bodyType": null,
"inputSchema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"assetId": {
"type": "string",
"minLength": 1,
"maxLength": 128
}
},
"required": [
"assetId"
],
"additionalProperties": false
},
"exampleInput": {},
"exampleOutput": {
"action": "delete_data_file",
"message": "Completed.",
"result": {}
}
}
POST/api/x402/data-files/:assetId/arcgis$0.001
x402.capability.publish_data_file_as_arcgis
Publish a spatial dataset as ArcGIS for resources owned by the authenticated identity.
Usage and schema
{
"method": "POST",
"path": "/api/x402/data-files/:assetId/arcgis",
"bodyType": "json",
"inputSchema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"assetId": {
"type": "string",
"minLength": 1,
"maxLength": 128
}
},
"required": [
"assetId"
],
"additionalProperties": false
},
"exampleInput": {},
"exampleOutput": {
"action": "publish_data_file_as_arcgis",
"message": "Completed.",
"result": {}
}
}
GET/api/x402/datasets$0.001
x402.capability.list_available_datasets
Find eligible datasets for resources owned by the authenticated identity.
Usage and schema
{
"method": "GET",
"path": "/api/x402/datasets",
"bodyType": null,
"inputSchema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"search": {
"type": "string",
"maxLength": 200
},
"siteId": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100
},
"cursor": {
"type": "string",
"pattern": "^\\d{1,6}$"
}
},
"additionalProperties": false
},
"exampleInput": {},
"exampleOutput": {
"action": "list_available_datasets",
"message": "Completed.",
"result": {}
}
}
GET/api/x402/datasets/:datasetId$0.001
x402.capability.inspect_dataset
Inspect dataset schema and sample for resources owned by the authenticated identity.
Usage and schema
{
"method": "GET",
"path": "/api/x402/datasets/:datasetId",
"bodyType": null,
"inputSchema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"datasetId": {
"type": "string",
"minLength": 1,
"maxLength": 128
}
},
"required": [
"datasetId"
],
"additionalProperties": false
},
"exampleInput": {},
"exampleOutput": {
"action": "inspect_dataset",
"message": "Completed.",
"result": {}
}
}
GET/api/x402/bundles$0.001
x402.capability.list_dataset_bundles
List Dataset Bundles for resources owned by the authenticated identity.
Usage and schema
{
"method": "GET",
"path": "/api/x402/bundles",
"bodyType": null,
"inputSchema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {},
"additionalProperties": false
},
"exampleInput": {},
"exampleOutput": {
"action": "list_dataset_bundles",
"message": "Completed.",
"result": {}
}
}
GET/api/x402/bundles/:bundleId$0.001
x402.capability.inspect_dataset_bundle
Read a Dataset Bundle for resources owned by the authenticated identity.
Usage and schema
{
"method": "GET",
"path": "/api/x402/bundles/:bundleId",
"bodyType": null,
"inputSchema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"bundleId": {
"type": "string",
"minLength": 1,
"maxLength": 128
}
},
"required": [
"bundleId"
],
"additionalProperties": false
},
"exampleInput": {},
"exampleOutput": {
"action": "inspect_dataset_bundle",
"message": "Completed.",
"result": {}
}
}
POST/api/x402/bundles$0.001
x402.capability.create_dataset_bundle
Create an approved Dataset Bundle for resources owned by the authenticated identity.
Usage and schema
{
"method": "POST",
"path": "/api/x402/bundles",
"bodyType": "json",
"inputSchema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 120
},
"description": {
"type": "string",
"maxLength": 1000
},
"targetSiteId": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"items": {
"minItems": 1,
"maxItems": 20,
"type": "array",
"items": {
"type": "object",
"properties": {
"datasetId": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"role": {
"type": "string",
"enum": [
"primary_records",
"map_layer",
"lookup_table",
"boundaries",
"events",
"metrics",
"reference"
]
}
},
"required": [
"datasetId"
],
"additionalProperties": false
}
}
},
"required": [
"name",
"items"
],
"additionalProperties": false
},
"exampleInput": {},
"exampleOutput": {
"action": "create_dataset_bundle",
"message": "Completed.",
"result": {}
}
}
POST/api/x402/bundles/:bundleId/apps$0.001
x402.capability.create_app_from_dataset_bundle
Create an app from approved wallet-owned eligible datasets. Protected data remains protected.
Usage and schema
{
"method": "POST",
"path": "/api/x402/bundles/:bundleId/apps",
"bodyType": "json",
"inputSchema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"bundleId": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"requestId": {
"type": "string",
"minLength": 8,
"maxLength": 128
},
"appGoal": {
"type": "string",
"minLength": 1,
"maxLength": 10000
},
"appName": {
"type": "string",
"maxLength": 120
},
"siteSlug": {
"type": "string",
"maxLength": 64
}
},
"required": [
"bundleId",
"requestId",
"appGoal"
],
"additionalProperties": false
},
"exampleInput": {},
"exampleOutput": {
"action": "create_app_from_dataset_bundle",
"message": "Completed.",
"result": {}
}
}
GET/api/x402/usage$0.001
x402.capability.get_account_usage
Read wallet usage and limits for resources owned by the authenticated identity.
Usage and schema
{
"method": "GET",
"path": "/api/x402/usage",
"bodyType": null,
"inputSchema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {},
"additionalProperties": false
},
"exampleInput": {},
"exampleOutput": {
"action": "get_account_usage",
"message": "Completed.",
"result": {}
}
}