[{"data":1,"prerenderedAt":71},["ShallowReactive",2],{"doc-\u002Fapi":3},{"id":4,"title":5,"body":6,"description":61,"edit":62,"extension":63,"meta":64,"navigation":65,"path":66,"seo":67,"stem":68,"vertical":62,"weight":69,"__hash__":70},"content\u002Fapi\u002Findex.md","API reference",{"type":7,"value":8,"toc":57},"minimark",[9,13,22],[10,11,12],"p",{},"OpenSense exposes one general-purpose ingest endpoint, a handful of\ntransport-specific adapters (Shelly GET, MQTT bridge, TTN webhook), and a\nsmall REST surface for managing devices, sensors, alerts and reports.",[10,14,15,16,21],{},"Start with the ",[17,18,20],"a",{"href":19},"\u002Fapi\u002Foverview","overview"," for base URL, auth, errors and\nrate limits.",[23,24,25,33,41,49],"cards",{},[26,27,30],"card",{"icon":28,"title":29,"to":19},"00 · auth+errors","Overview",[10,31,32],{},"Base URL, token types, error shape, idempotency, rate limits, pagination.",[26,34,38],{"icon":35,"title":36,"to":37},"01 · push data","POST \u002Fv1\u002Fingest","\u002Fapi\u002Fingest",[10,39,40],{},"The endpoint every device hits. cURL \u002F Python \u002F ESPHome \u002F Arduino.",[26,42,46],{"icon":43,"title":44,"to":45},"02 · pull data","Read measurements","\u002Fapi\u002Fmeasurements",[10,47,48],{},"Time-bucketed queries with raw \u002F 5 min \u002F 1 h \u002F 1 d aggregation.",[26,50,54],{"icon":51,"title":52,"to":53},"03 · rules + events","Alerts","\u002Fapi\u002Falerts",[10,55,56],{},"Channel rules, severity, escalation, the events stream.",{"title":58,"searchDepth":59,"depth":59,"links":60},"",3,[],"HTTP, MQTT and webhook surface",null,"md",{},true,"\u002Fapi",{"title":5,"description":61},"api\u002Findex",200,"bLyFe_I4Bnp7Y7jRpdVnp2iWbHl4mgjaiwExskwQ3O4",1779022957347]