{"openapi":"3.1.0","info":{"title":"NeoOps Incident Routing API","version":"0.1.0-draft","description":"Incident routing API. Learns from your resolved tickets and predicts the assignment group, RCA agent or any field you define for new incidents in under a second, with a confidence score. No model training. Pay per call."},"servers":[{"url":"https://api.neoops.ai"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer"}},"schemas":{"Incident":{"type":"object","required":["incident_id"],"properties":{"incident_id":{"type":"string"},"summary":{"type":"string"},"asset":{"type":"string"},"location":{"type":"string"}},"additionalProperties":{"type":"string"}},"Route":{"type":"object","properties":{"value":{"type":"string"},"confidence":{"type":"number","minimum":0,"maximum":1}}},"RoutingResult":{"type":"object","properties":{"incident_id":{"type":"string"},"routes":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/Route"}}}}}},"paths":{"/v1/routing":{"post":{"summary":"Predict fields for 1 to 5 new incidents","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["fields","incidents"],"properties":{"fields":{"type":"array","items":{"type":"string"}},"incidents":{"type":"array","minItems":1,"maxItems":5,"items":{"$ref":"#/components/schemas/Incident"}}}}}}},"responses":{"200":{"description":"Routes keyed by field, with value and confidence","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"$ref":"#/components/schemas/RoutingResult"}}}}}}}}}},"/v1/cache/incidents":{"post":{"summary":"Add or replace historical incidents","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"incidents":{"type":"array","items":{"$ref":"#/components/schemas/Incident"}}}}}}},"responses":{"200":{"description":"Incidents stored"}}}},"/v1/routing/settings":{"get":{"summary":"Read routing field settings","responses":{"200":{"description":"Current settings"}}},"put":{"summary":"Replace routing field settings","responses":{"200":{"description":"Settings updated"}}}}}}