API-Referenz
Vollständige Dokumentation für alle 100+ Adverant Nexus API-Endpunkte
Authentifizierung
API-Key-Authentifizierung
Alle API-Anfragen erfordern eine Authentifizierung mit einem API-Key. Fügen Sie Ihren API-Key im Request-Header hinzu:
# Using curl
curl -X POST http://localhost:9100/api/brain/memory/store \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"content": "Example memory"}'
# Using JavaScript fetch
fetch('http://localhost:9100/api/brain/memory/store', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
content: 'Example memory'
})
})Hinweis: Für die lokale Entwicklung ist die API-Key-Authentifizierung optional. In der Produktion verwenden Sie immer API-Keys und HTTPS.
Rate Limiting
API-Anfragen sind zum Schutz der fairen Nutzung begrenzt:
- Free-Stufe: 100 Anfragen pro Minute
- Pro-Stufe: 1.000 Anfragen pro Minute
- Enterprise: Individuelle Limits
Rate-Limit-Header sind in jeder Antwort enthalten:
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 95
X-RateLimit-Reset: 1704153600Memory API
Speichern, Abrufen und Durchsuchen semantischer Erinnerungen mit VoyageAI-Embeddings
Base URL: http://localhost:9100/api/brain/memory/api/brain/memory/storeStore a new memory with embeddings
Parameter:
contentstringerforderlichMemory content to storetagsstring[]Tags for categorizationmetadataobjectAdditional metadata/api/brain/memory/recallRecall memories using semantic search
Parameter:
querystringerforderlichSearch querylimitnumberMax results (default: 10)scoreThresholdnumberMin similarity score (0-1)/api/brain/memory/searchUnified search across all memory types
Parameter:
querystringerforderlichSearch queryfiltersobjectFilter by type, tags, date rangelimitnumberMax results (default: 20)/api/brain/memory/listList all stored memories with pagination
Parameter:
limitnumberResults per page (default: 20)offsetnumberPagination offsetVision API
Videoverarbeitung, Frame-Extraktion und Szenenerkennung
Base URL: http://localhost:9100/api/brain/videoagent/api/brain/videoagent/submit-jobSubmit video for processing
Parameter:
filenamestringerforderlichVideo filenamevideoUrlstringURL to video fileoptionsobjectProcessing optionsuserIdstringUser ID for tracking/api/brain/videoagent/statusCheck video processing status
Parameter:
jobIdstringerforderlichJob ID from submit-job/api/brain/videoagent/resultGet completed video processing results
Parameter:
jobIdstringerforderlichJob ID from submit-job/api/brain/videoagent/cancelCancel a running video processing job
Parameter:
jobIdstringerforderlichJob ID to cancelOrchestrator API
Multi-Agenten-Aufgabenkoordination und -ausführung
Base URL: http://localhost:9100/api/brain/orchestrate/api/brain/orchestrate/submitSubmit task for multi-agent orchestration
Parameter:
taskstringerforderlichTask descriptionmaxAgentsnumberMax agents (default: 3)timeoutnumberTimeout in ms (default: 180000)contextobjectAdditional context/api/brain/orchestrate/statusCheck orchestration task status
Parameter:
jobIdstringerforderlichJob ID from submit/api/brain/orchestrate/resultGet completed orchestration results
Parameter:
jobIdstringerforderlichJob ID from submit/api/brain/orchestrate/agent/collaborateMulti-agent collaboration on complex tasks
Parameter:
objectivestringerforderlichCollaboration objectiveagentsarrayAgent configurationiterationsnumberIterations (default: 2)Documents API
Dokumentenverarbeitung, Chunking und Abruf
Base URL: http://localhost:9100/api/brain/fileprocess/api/brain/fileprocess/submit-urlSubmit document URL for processing
Parameter:
fileUrlstringerforderlichDocument URLfilenamestringerforderlichDocument filenamemetadataobjectDocument metadatauserIdstringUser ID for tracking/api/brain/fileprocess/submit-fileSubmit document file for processing
Parameter:
filenamestringerforderlichDocument filenamefileSizenumberFile size in bytesmimeTypestringMIME typemetadataobjectDocument metadata/api/brain/fileprocess/statusCheck document processing status
Parameter:
jobIdstringerforderlichJob ID from submit/api/brain/fileprocess/store-documentStore document with intelligent chunking
Parameter:
contentstringerforderlichDocument contenttitlestringDocument titlemetadataobjectDocument metadataGeospatial API
Geocodierung, Koordinatentransformation und räumliche Analyse
Base URL: http://localhost:9100/api/brain/geospatial/api/brain/geospatial/geocodeConvert address to coordinates
Parameter:
addressstringerforderlichAddress to geocode/api/brain/geospatial/reverse-geocodeConvert coordinates to address
Parameter:
latitudenumbererforderlichLatitudelongitudenumbererforderlichLongitude/api/brain/geospatial/distanceCalculate distance between coordinates
Parameter:
fromobjecterforderlichStart coordinatestoobjecterforderlichEnd coordinatesunitstringkm or miles (default: km)/api/brain/geospatial/proximityFind points within radius
Parameter:
centerobjecterforderlichCenter coordinatesradiusnumbererforderlichRadius in kmpointsarrayerforderlichPoints to checkLearning API
Progressiver Wissensaufbau und -abruf
Base URL: http://localhost:9100/api/brain/learning/api/brain/learning/triggerTrigger progressive learning on a topic
Parameter:
topicstringerforderlichLearning topicprioritynumbererforderlichPriority 1-10triggerstringerforderlichTrigger reasoncontextobjectAdditional context/api/brain/learning/recallRecall learned knowledge on a topic
Parameter:
topicstringerforderlichTopic to recalllayerstringOVERVIEW|PROCEDURES|TECHNIQUES|EXPERT|allmaxResultsnumberMax results (default: 10)Connect API
MCP-Tool-Ausführung und Serververwaltung
Base URL: http://localhost:9100/api/brain/connect/api/brain/connect/executeExecute an MCP tool
Parameter:
toolstringerforderlichTool nameparametersobjecterforderlichTool parameters/api/brain/connect/toolsList all available MCP tools
/api/brain/connect/serversList all MCP servers
/api/brain/connect/server/addAdd a new MCP server
Parameter:
namestringerforderlichServer nameconfigobjecterforderlichServer configurationAntwortformate
Standard-JSON-Antwort
Alle API-Endpunkte geben JSON-Antworten mit folgender Struktur zurück:
{
"success": true,
"data": {
// Response data
},
"metadata": {
"requestId": "req_abc123",
"timestamp": "2025-11-07T10:00:00Z",
"processingTime": 123
}
}
// Error response
{
"success": false,
"error": {
"code": "INVALID_PARAMETER",
"message": "The 'query' parameter is required",
"details": {}
},
"metadata": {
"requestId": "req_abc123",
"timestamp": "2025-11-07T10:00:00Z"
}
}Server-Sent Events (SSE) Streaming
Lang laufende Operationen unterstützen Echtzeit-Fortschrittsupdates über SSE:
// Connect to SSE stream
const eventSource = new EventSource(
'http://localhost:9100/api/brain/orchestrate/stream?jobId=job_abc123'
);
eventSource.onmessage = (event) => {
const data = JSON.parse(event.data);
console.log('Progress:', data);
};
// SSE event format
{
"type": "progress",
"jobId": "job_abc123",
"state": "in_progress",
"progress": 45,
"message": "Agent 2/5 completed research phase",
"metadata": {
"agentId": "agent_xyz",
"phase": "research"
}
}Fehlercodes
400 Bad RequestUngültige Parameter oder fehlerhafte Anfrage
401 UnauthorizedFehlender oder ungültiger API-Key
403 ForbiddenUnzureichende Berechtigungen für diese Operation
404 Not FoundRessource nicht gefunden
429 Too Many RequestsRate-Limit überschritten
500 Internal Server ErrorServerfehler — bitte kontaktieren Sie den Support
503 Service UnavailableDienst vorübergehend nicht verfügbar
