API Documentation
Inbound connector platform (pull and webhook) for external data ingestion, key mapping, caching, and prompt-template variable resolution.
Overview
Integrations are inbound connectors (pull and/or webhook) that map external payloads into named output keys. Those keys can be consumed by prompt templates using {{var_name}} tokens.
modepull, webhook, or both.output_mapcurrent.temperature_2m) to prompt-friendly keys.allow_live_fetchcache_ttl_seconds/api/v1/integrationsList integrations for the active project.
integrations:readinclude_inactivecurl -G "https://www.mnexium.com/api/v1/integrations" \
-H "x-mnexium-key: $MNX_KEY" \
--data-urlencode "include_inactive=false"{
"data": [
{
"integration_id": "int_weather_forecast",
"name": "weather forecast",
"mode": "pull",
"scope": "project",
"allow_live_fetch": true,
"is_active": true,
"output_map": [
{ "key": "weather_temp", "path": "current.temperature_2m" },
{ "key": "weather_wind", "path": "current.wind_speed_10m" }
]
}
]
}/api/v1/integrationsCreate a pull/webhook integration and define output key mappings.
integrations:writenamerequiredmoderequiredscopeendpoint_urloutput_maprequired{ key, path, default? } mappings.auth_secretwebhook_secretcurl -X POST "https://www.mnexium.com/api/v1/integrations" \
-H "x-mnexium-key: $MNX_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "weather forecast",
"description": "Open-Meteo pull example",
"mode": "pull",
"scope": "project",
"endpoint_url": "https://api.open-meteo.com/v1/forecast",
"method": "GET",
"cache_ttl_seconds": 300,
"allow_live_fetch": true,
"query_template": {
"latitude": "40.7128",
"longitude": "-74.0060",
"current": "temperature_2m,wind_speed_10m"
},
"output_map": [
{ "key": "weather_temp", "path": "current.temperature_2m" },
{ "key": "weather_wind", "path": "current.wind_speed_10m" }
]
}'/api/v1/integrations/:id/testRun a one-off integration fetch and preview mapped values. Use /sync to refresh cache.
integrations:writeidrequiredsubject_idchat_idcurl -X POST "https://www.mnexium.com/api/v1/integrations/int_weather_forecast/test" \
-H "x-mnexium-key: $MNX_KEY" \
-H "Content-Type: application/json" \
-d '{}'{
"ok": true,
"values": {
"weather_temp": 14.1,
"weather_wind": 13.8
}
}/api/v1/integrations/:id/webhookIngest external webhook data into integration cache using signed requests.
signature-only (no Mnexium key)x-mnx-webhook-timestamprequiredx-mnx-webhook-signaturerequiredcurl -X POST "https://www.mnexium.com/api/v1/integrations/int_weather_forecast/webhook" \
-H "x-mnx-webhook-timestamp: 1733852431" \
-H "x-mnx-webhook-signature: sha256=..." \
-H "Content-Type: application/json" \
-d '{"current":{"temperature_2m":14.1,"wind_speed_10m":13.8}}'Prompt Template Binding + Request Trace
Bind integration outputs to system prompt templates using template.variables. Request Trace then exposes both the integration IDs used and each resolved variable source/value.
{
"prompt_text": "Temp: {{temp}} Wind: {{wind}}",
"template": {
"enabled": true,
"variables": {
"temp": {
"source": "integration",
"integration_id": "int_weather_forecast",
"key": "weather_temp",
"live_fetch": true
},
"wind": {
"source": "integration",
"integration_id": "int_weather_forecast",
"key": "weather_wind",
"live_fetch": true
}
}
}
}{
"system_prompt_ids": ["sp_demo_assistant"],
"integration_ids": ["int_7bb01c4e-7ea6-48b1-892c-edc5ed7382f5"],
"integration_cache_hit_count": 1,
"integration_live_fetch_count": 1,
"integration_failure_count": 0
}
// Integrations tab rows:
// token | integration_id | output_key | source(cached/live/default/empty) | resolved_value