Skip to content

API Reference

EnvironmentURL
Localhttp://localhost:9200
Productionhttps://analyticsapi.logrite.ai
Dashboardshttp://localhost:5601
EndpointMethodPurpose
/_cluster/healthGETCluster health status (green/yellow/red)
/_cluster/statsGETCluster-wide statistics
/_cat/pluginsGETList installed plugins
/_cat/indicesGETList all indexes
/_cat/nodesGETList cluster nodes
/_nodes/statsGETNode statistics
EndpointMethodPurpose
/{index}PUTCreate index with mappings
/{index}DELETEDelete index
/{index}/_settingsGET/PUTGet/update index settings
/{index}/_mappingGET/PUTGet/update mappings
/{index}/_countGETDocument count
/{index}/_refreshPOSTForce refresh for immediate search
EndpointMethodPurpose
/{index}/_searchGET/POSTSearch (supports neural, hybrid, knn)
/_searchGET/POSTSearch across all indexes
/_msearchPOSTMulti-search in one request
EndpointMethodPurpose
/{index}/_doc/{id}PUT/POSTIndex a document
/{index}/_doc/{id}GETRetrieve document
/{index}/_doc/{id}DELETEDelete document
/_bulkPOSTBulk index/update/delete
EndpointMethodPurpose
/_plugins/_anomaly_detection/detectorsPOSTCreate detector
/_plugins/_anomaly_detection/detectors/_searchPOSTList detectors
/_plugins/_anomaly_detection/detectors/{id}GET/PUT/DELETEManage detector
/_plugins/_anomaly_detection/detectors/{id}/_startPOSTStart real-time detection
/_plugins/_anomaly_detection/detectors/{id}/_stopPOSTStop detection
/_plugins/_anomaly_detection/detectors/{id}/_profileGETDetector state/memory
/_plugins/_anomaly_detection/detectors/results/_searchPOSTSearch anomaly results
POST /_plugins/_anomaly_detection/detectors/results/_search
{
"query": {
"bool": {
"filter": [
{ "range": { "anomaly_grade": { "gte": 0.4 } } },
{ "range": { "execution_end_time": { "gte": "now-1h" } } }
]
}
},
"sort": [{ "execution_end_time": "desc" }],
"size": 50
}
EndpointMethodPurpose
/_plugins/_ml/models/_registerPOSTRegister a model
/_plugins/_ml/models/{id}/_deployPOSTDeploy model
/_plugins/_ml/models/{id}/_predictPOSTGenerate embeddings
/_plugins/_ml/models/_searchGET/POSTList models
/_plugins/_ml/model_groups/_registerPOSTRegister model group
POST /_plugins/_ml/models/{model_id}/_predict
{
"text_docs": ["payment timeout error in Stripe webhook"],
"return_number": true,
"target_response": ["sentence_embedding"]
}
EndpointMethodPurpose
/_plugins/_neural/statsGETNeural search statistics
/_plugins/_neural/warmup/{indexes}POSTLoad indexes into memory
POST /payment_queries_semantic/_search
{
"query": {
"neural": {
"text_embedding": {
"query_text": "payment timeout errors",
"model_id": "vZ_rRJsB11WWRaeQeT1C",
"k": 10
}
}
}
}
EndpointMethodPurpose
/_plugins/_alerting/monitorsPOSTCreate monitor
/_plugins/_alerting/monitors/_searchPOSTList monitors
/_plugins/_alerting/monitors/{id}GET/PUT/DELETEManage monitor
/_plugins/_alerting/monitors/{id}/_executePOSTExecute manually
/.opendistro-alerting-alerts/_searchPOSTAlert history
EndpointMethodPurpose
/_plugins/_notifications/configsPOSTCreate notification channel
/_plugins/_notifications/configsGETList channels
/_plugins/_notifications/sendPOSTSend notification
EndpointMethodPurpose
/api/saved_objects/{type}/{id}GET/POST/PUT/DELETEManage saved objects
/api/saved_objects/_findGETSearch saved objects
/api/saved_objects/_exportPOSTExport objects (NDJSON)
/api/saved_objects/_importPOSTImport objects
/api/statusGETDashboards server status

Saved Object Types: dashboard, visualization, index-pattern, search, lens

CategoryBase PathTotal APIs
Core OpenSearch/~40+
Anomaly Detection/_plugins/_anomaly_detection/~15
ML Commons/_plugins/_ml/~45+
Neural Search/_plugins/_neural/~6
k-NN/_plugins/_knn/~8
Alerting/_plugins/_alerting/~12
Notifications/_plugins/_notifications/~8
Dashboards/api/ (port 5601)~15+

Total: 150+ REST APIs