Public M2M API — ai
Review the operation, its input and access requirements. Parameter names and enum values are protocol identifiers and must retain the exact spelling shown. Optional/defaulted input is marked as such; required fields nested beneath an optional object apply when that object is supplied. Only statically recognized literal constraints are shown; additional validation, conditional requirements and provider rules may apply.
Authentication and permissions · Requests, results and recovery
/api/v1/ai
Exported methods: GET, POST
GET
- Resource scopes:
ai:read - Query parameters:
contextId,feature,id,jobId - Explicit response statuses:
404 - Explicit error codes:
not_found - Response keys observed across outcomes:
availableFeatures,data,meta,tenantId
POST
- Resource scopes:
ai:write - Explicit response statuses:
202,400,409,422 - Explicit error codes:
ai_operation_failed,invalid_request,onboarding_incomplete - Response keys observed across outcomes:
action,anomalies,data,tenantId
Send a JSON object. Observed branch requirements: When action=acknowledge, provide jobId or id; When action other than acknowledge or anomaly_scan, provide feature. Other fields and downstream service validation depend on the branch; verify the result.
JSON properties observed: action, contextId, feature, id, input, jobId.
These names are read by the handler; they are not a complete schema or a promise that every property applies to every branch. Check the validation messages and operation result.