Complete reference for Monlyns's public API. Create AI agents, execute webhooks with multimodal file processing, and manage feedback without authentication.
Upload and process documents (DOC/DOCX/PDF), spreadsheets (XLS/XLSX/CSV), and images (JPG/PNG/GIF/WebP) directly through webhook endpoints. Files are automatically converted to text or analyzed for AI processing.
https://monlyns.comJSON/api/public/ai-actionCreate a new AI action with optional auto-enhancement capabilities.
titlerequiredstringTitle of the AI action
descriptionrequiredstringDescription of what the AI action does
promptrequiredstringAI prompt that defines the behavior
inputsrequiredarrayArray of input definitions with name, type, and description
outputsrequiredarrayArray of output definitions with name, type, and description
autoEnhanceoptionalbooleanEnable auto-enhancement (default: false)
enhancementIntervaloptionalnumberNumber of executions between enhancements (default: 10, min: 1)
{
"success": true,
"aiAction": {
"_id": "60f7b3b3b3b3b3b3b3b3b3b3",
"title": "Smart Email Classifier",
"description": "Classify emails by priority and urgency",
"webhookUrl": "https://monlyns.com/webhook/60f7b3b3b3b3b3b3b3b3b3b3",
"isActive": true,
"autoTraining": {
"enabled": true,
"interval": 25
}
}
}{
"success": false,
"message": "Validation error: Title is required"
}curl -X POST https://monlyns.com/api/public/ai-action \
-H "Content-Type: application/json" \
-d '{
"title": "Smart Email Classifier",
"description": "Classify emails by priority and urgency",
"prompt": "Analyze the email content and classify it based on priority (high, medium, low) and urgency (urgent, normal, low). Consider factors like sender importance, keywords, and content tone.",
"inputs": [
{
"name": "email_content",
"type": "string",
"description": "The email content to analyze"
},
{
"name": "sender_email",
"type": "string",
"description": "Email address of the sender"
}
],
"outputs": [
{
"name": "priority",
"type": "string",
"description": "Priority level: high, medium, or low"
},
{
"name": "urgency",
"type": "string",
"description": "Urgency level: urgent, normal, or low"
}
],
"autoEnhance": true,
"enhancementInterval": 25
}'/webhook/:webhookIdExecute an AI action via its webhook URL.
webhookIdrequiredstringThe webhook ID from the AI action creation response
Dynamic inputsrequiredobjectInput data based on the AI action's input definitions
{
"success": true,
"executionId": "60f7b3b3b3b3b3b3b3b3b3b4",
"result": {
"priority": "high",
"urgency": "urgent"
},
"processingTime": 1250
}{
"success": false,
"message": "AI Action not found or inactive"
}curl -X POST https://monlyns.com/webhook/60f7b3b3b3b3b3b3b3b3b3b3 \
-H "Content-Type: application/json" \
-d '{
"email_content": "Hi team, we have an urgent client issue that needs immediate attention. The production server is down and affecting all users.",
"sender_email": "ceo@company.com"
}'/webhook/:webhookIdExecute an AI action with file uploads. Supports documents (DOC/DOCX/PDF), spreadsheets (XLS/XLSX/CSV), and images.
webhookIdrequiredstringThe webhook ID from the AI action creation response
File inputsoptionalfileUpload files using multipart/form-data. Supported formats: DOC, DOCX, PDF, XLS, XLSX, CSV, JPG, PNG, GIF, WebP
Text inputsoptionalstringAdditional text inputs as form fields
{
"success": true,
"executionId": "60f7b3b3b3b3b3b3b3b3b3b5",
"result": {
"document_summary": "The PDF contains quarterly financial data showing 15% revenue growth...",
"spreadsheet_insights": "Excel file shows sales data across 5 regions with North America leading...",
"image_analysis": "Image contains a bar chart showing monthly trends..."
},
"processingTime": 2850,
"filesProcessed": [
{
"fieldname": "document",
"filename": "document.pdf",
"size": 245760,
"type": "application/pdf",
"processed": true
},
{
"fieldname": "spreadsheet",
"filename": "data.xlsx",
"size": 89432,
"type": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
"processed": true
}
]
}{
"success": false,
"message": "File size exceeds 10MB limit"
}curl -X POST https://monlyns.com/webhook/60f7b3b3b3b3b3b3b3b3b3b3 \ -F "document=@/path/to/document.pdf" \ -F "spreadsheet=@/path/to/data.xlsx" \ -F "image=@/path/to/image.jpg" \ -F "additional_context=Please analyze the uploaded files and extract key insights"
/api/public/feedback/:executionIdSubmit feedback for an execution to improve AI performance.
executionIdrequiredstringThe execution ID from the webhook response
ratingrequirednumberRating from 1-5 (1=poor, 5=excellent)
feedbackoptionalstringOptional feedback text
expectedOutputoptionalobjectExpected output for training purposes
{
"success": true,
"message": "Feedback submitted successfully"
}{
"success": false,
"message": "Execution not found"
}curl -X POST https://monlyns.com/api/public/feedback/60f7b3b3b3b3b3b3b3b3b3b4 \
-H "Content-Type: application/json" \
-d '{
"rating": 5,
"feedback": "Perfect classification! The AI correctly identified this as high priority and urgent.",
"expectedOutput": {
"priority": "high",
"urgency": "urgent"
}
}'/api/public/execution/:executionIdRetrieve details of a specific execution.
executionIdrequiredstringThe execution ID to retrieve
{
"success": true,
"execution": {
"_id": "60f7b3b3b3b3b3b3b3b3b3b4",
"aiActionId": "60f7b3b3b3b3b3b3b3b3b3b3",
"input": {
"email_content": "Hi team, urgent issue...",
"sender_email": "ceo@company.com"
},
"output": {
"priority": "high",
"urgency": "urgent"
},
"success": true,
"processingTime": 1250,
"createdAt": "2023-07-20T10:30:00.000Z"
}
}{
"success": false,
"message": "Execution not found"
}curl -X GET https://monlyns.com/api/public/execution/60f7b3b3b3b3b3b3b3b3b3b4
/webhook/:webhookId/infoGet information about a webhook including its inputs, outputs, and usage.
webhookIdrequiredstringThe webhook ID to get information about
{
"success": true,
"webhook": {
"title": "Smart Email Classifier",
"description": "Classify emails by priority and urgency",
"inputs": [
{
"name": "email_content",
"type": "string",
"description": "The email content to analyze"
}
],
"outputs": [
{
"name": "priority",
"type": "string",
"description": "Priority level"
}
],
"isActive": true,
"executionCount": 42,
"lastExecutedAt": "2023-07-20T10:30:00.000Z",
"usageExample": {
"email_content": "Sample email content"
}
}
}{
"success": false,
"message": "Webhook not found"
}curl -X GET https://monlyns.com/webhook/60f7b3b3b3b3b3b3b3b3b3b3/info
/healthCheck the API health status.
No parameters required
{
"status": "healthy",
"timestamp": "2023-07-20T10:30:00.000Z",
"uptime": 86400
}{
"status": "error",
"message": "Database connection failed"
}curl -X GET https://monlyns.com/health
Upload and process various file types directly through webhook endpoints. Files are automatically converted and analyzed for AI processing.
const formData = new FormData();
formData.append('document', fileInput.files[0]);
formData.append('context', 'Analyze this document for key insights');
fetch('https://monlyns.com/webhook/your-webhook-id', {
method: 'POST',
body: formData
})
.then(response => response.json())
.then(data => {
console.log('AI Analysis:', data.result);
console.log('Files Processed:', data.filesProcessed);
});Create your first AI action and start integrating intelligent processing into your applications.