Endpoints
Analytics Endpoints
File Location: inc/Api/Analytics.php @since: 0.31.0 Unified REST API for all analytics integrations. Each endpoint delegates to its respective WordPress ability...
Tools Endpoint
Implementation: inc/Api/Tools.php Base URL: /wp-json/datamachine/v1/tools Overview The Tools endpoint provides information about registered AI tools and their configuration status. Authentication...
Flows Endpoints
Implementation: /inc/Api/Flows/ directory structure Flows.php - Main flow CRUD operations FlowSteps.php - Flow step configuration (/flows/{id}/config, /flows/steps/{flow_step_id}/config) Base URL: /wp-json/datamachine/v1/flows...
Handlers Endpoint
Implementation: inc/Api/Handlers.php Base URL: /wp-json/datamachine/v1/handlers Overview The Handlers endpoint provides information about registered fetch, publish, and update handlers available in...
Auth Endpoints
Implementation: inc/Api/Auth.php Base URL: /wp-json/datamachine/v1/auth Overview Auth endpoints manage OAuth accounts and handler authentication for external services. Authentication Requires manage_options...
Chat Endpoint
Implementation: inc/Api/Chat/Chat.php Base URL: /wp-json/datamachine/v1/chat Overview The Chat endpoint provides a conversational AI interface for building and executing Data Machine...
Files Endpoint
Implementation: inc/Api/Files.php Base URL: /wp-json/datamachine/v1/files Overview The Files endpoint handles file uploads for pipeline processing with flow-isolated storage, security validation,...
Logs API
Centralized system logging via the LogsManager service. Overview Data Machine uses a centralized file-based logging system managed by Monolog for...
Authentication
Data Machine REST API supports two authentication methods for secure access. Authentication Methods This page describes authentication options, but it...
Chat Sessions Endpoints
Implementation: inc/Api/Chat/Chat.php Overview Data Machine persists chat conversations as sessions. Sessions are user-scoped and stored in wp_datamachine_chat_sessions. Authentication Requires WordPress...
Error Handling
Complete error reference for Data Machine REST API. Standard Error Format All errors follow WordPress REST API error format: {...
Execute Endpoint
Implementation: inc/Api/Execute.php Base URL: /wp-json/datamachine/v1/execute Overview The Execute endpoint provides workflow execution capabilities for both database flows and ephemeral workflows....