API Reference
Base Endpoint
/services/apexrest/ai/agent
Common Endpoints
POST /processfor chat turn processingPOST /approvefor HITL action approvalsPOST /rejectfor HITL action rejection
Authentication
Use Salesforce authentication (session token or OAuth) and include:
Authorization: Bearer YOUR_ACCESS_TOKENContent-Type: application/jsoncurl -X POST "https://YOUR-INSTANCE.salesforce.com/services/apexrest/ai/agent/process" \ -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \ -H "Content-Type: application/json" \ -d '{"sessionId":"...","agentDefinitionId":"...","turnIdentifier":"...","userMessage":"hello"}'