Find answers to common questions about MPS-Agentic
POST https://mpsagenticmcp-production.up.railway.app/v1/scanContent-Type: multipart/form-data Authorization: Bearer mps_xxxxxxxx_yyyyyyyyyyyyyyyyyyyyRequest Body:
Multipart file upload with field name: file Supported types: TXT, PDF, DOC, DOCX, XLS, XLSX, EXE, DLL, JS, PS1, ZIP, and more Maximum file size: 20MB
{
"success": true,
"scan_id": "MPS-20260207-001",
"file_name": "document.txt",
"file_size": 1024,
"risk_level": "GREEN",
"risk_score": 0,
"findings_count": 0,
"scan_duration_ms": 150
}
Response with Threat Detected:
{
"success": true,
"scan_id": "MPS-20260207-002",
"file_name": "suspicious.txt",
"file_size": 2048,
"risk_level": "RED",
"risk_score": 85,
"findings_count": 2,
"findings": [
{
"pattern_type": "PROMPT_INJECTION",
"description": "Prompt injection attempt detected",
"severity": "HIGH"
}
],
"scan_duration_ms": 200
}
| Risk Level | Score Range | Meaning | Recommended Action |
|---|---|---|---|
| 🟢 GREEN | 0-29 | No threats detected | Probably safe to proceed |
| 🟠 ORANGE | 30-69 | Suspicious content detected | Review findings before proceeding |
| 🔴 RED | 70-100 | Malicious content detected | Block or quarantine content |
| Code | Meaning | Solution |
|---|---|---|
| 400 | Bad Request | Check request format and required fields |
| 401 | Unauthorized | Verify your API key is correct |
| 403 | Forbidden | Check your subscription status |
| 429 | Rate Limited | Wait before retrying; consider upgrading plan |
| 500 | Server Error | Retry request; contact support if persistent |
curl -X POST https://mpsagenticmcp-production.up.railway.app/v1/scan \ -H "Authorization: Bearer mps_xxxxxxxx_yyyyyyyyyyyyyyyyyyyy" \ -F "file=@document.txt"
Windows CMD users: If you get SSL errors (exit code 35), add --ssl-no-revoke after curl.
$response = Invoke-RestMethod -Uri "https://mpsagenticmcp-production.up.railway.app/v1/scan" `
-Method Post `
-Headers @{ "Authorization" = "Bearer mps_xxxxxxxx_yyyyyyyyyyyyyyyyyyyy" } `
-Form @{ file = Get-Item "document.txt" }
$response | ConvertTo-Json
Python:
import requests
with open("document.txt", "rb") as f:
response = requests.post(
"https://mpsagenticmcp-production.up.railway.app/v1/scan",
headers={
"Authorization": "Bearer mps_xxxxxxxx_yyyyyyyyyyyyyyyyyyyy"
},
files={"file": ("document.txt", f)}
)
result = response.json()
if result["risk_level"] == "GREEN":
print("Content is safe")
else:
print(f"Threat detected: {result['findings']}")
JavaScript (Node.js 18+):
const fs = require("fs");
const fileBuffer = fs.readFileSync("document.txt");
const form = new FormData();
form.append("file", new Blob([fileBuffer]), "document.txt");
const response = await fetch(
"https://mpsagenticmcp-production.up.railway.app/v1/scan",
{
method: "POST",
headers: {
"Authorization": "Bearer mps_xxxxxxxx_yyyyyyyyyyyyyyyyyyyy"
},
body: form
}
);
const result = await response.json();
console.log(result.risk_level, result.findings_count);
503 Service Unavailable with a Retry-After header. Your integration should:
Retry-After header value to determine when to retry