{"openapi":"3.1.0","info":{"title":"Tickhound API","version":"1.0.0","description":"Read your Minecraft server data and start scans from your own bot or script. Authenticate with a key from Settings → API."},"servers":[{"url":"https://tickhound.eu/api"}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"A key that starts with thkapi_"}}},"paths":{"/v1/me":{"get":{"operationId":"me","summary":"Who am I","description":"Shows the plan behind the key, its scopes and its rate limit. A good first call to test a key.\n\nPlan: Pro.","security":[{"bearerAuth":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"},"example":{"data":{"plan":"Pro","scopes":["read","scan"],"rateLimitPerMinute":60}}}}},"401":{"description":"Missing, invalid, revoked or expired key"},"402":{"description":"The plan does not include this"},"403":{"description":"The key lacks the scope or the IP is not allowed"},"404":{"description":"Not found"},"429":{"description":"Rate limit reached. See Retry-After."}}}},"/v1/servers":{"get":{"operationId":"servers","summary":"List servers","description":"All servers of the account with their latest status.\n\nPlan: Pro. Scope: `read`.","security":[{"bearerAuth":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"},"example":{"data":[{"id":"cm0abc123","name":"survival","status":"ONLINE","software":"PAPER","minecraftVersion":"1.21.4","healthScore":86,"players":18,"tps":19.92,"mspt":31.4}]}}}},"401":{"description":"Missing, invalid, revoked or expired key"},"402":{"description":"The plan does not include this"},"403":{"description":"The key lacks the scope or the IP is not allowed"},"404":{"description":"Not found"},"429":{"description":"Rate limit reached. See Retry-After."}}}},"/v1/servers/{id}":{"get":{"operationId":"server","summary":"Get a server","description":"Status, latest numbers, plugin version and the newest scan score.\n\nPlan: Pro. Scope: `read`.","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Server id from the list.","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"},"example":{"data":{"id":"cm0abc123","name":"survival","status":"ONLINE","software":"PAPER","minecraftVersion":"1.21.4","healthScore":86,"players":18,"tps":19.92,"mspt":31.4,"plugin":{"connected":true,"version":"1.4.0"},"lastSampleAt":"2026-10-12T08:14:30.000Z"}}}}},"401":{"description":"Missing, invalid, revoked or expired key"},"402":{"description":"The plan does not include this"},"403":{"description":"The key lacks the scope or the IP is not allowed"},"404":{"description":"Not found"},"429":{"description":"Rate limit reached. See Retry-After."}}}},"/v1/servers/{id}/metrics":{"get":{"operationId":"metrics","summary":"Metric history","description":"TPS, tick time, CPU, memory and players over time, averaged into buckets. The range is limited by your plan's history.\n\nPlan: Pro. Scope: `read`.","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Server id.","schema":{"type":"string"}},{"name":"range","in":"query","required":false,"description":"One of 1h, 6h, 24h, 7d, 30d. Default 24h.","schema":{"type":"string"},"example":"24h"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"},"example":{"data":{"range":"24h","points":[{"t":"2026-10-12T08:00:00.000Z","tps":19.9,"mspt":30.2,"cpu":41.5,"heapPct":62.1,"players":17}]}}}}},"401":{"description":"Missing, invalid, revoked or expired key"},"402":{"description":"The plan does not include this"},"403":{"description":"The key lacks the scope or the IP is not allowed"},"404":{"description":"Not found"},"429":{"description":"Rate limit reached. See Retry-After."}}}},"/v1/servers/{id}/findings":{"get":{"operationId":"findings","summary":"Findings of the latest scan","description":"What the newest completed scan found, with severity and what to change.\n\nPlan: Pro. Scope: `read`.","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Server id.","schema":{"type":"string"}},{"name":"severity","in":"query","required":false,"description":"Only this severity: CRITICAL, ERROR, WARNING, INFO or GOOD.","schema":{"type":"string"},"example":"CRITICAL"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"},"example":{"data":{"scanId":"cm0scan1","score":86,"scannedAt":"2026-10-12T07:00:00.000Z","findings":[{"ruleId":"perf.view-distance","severity":"WARNING","category":"PERFORMANCE","title":"View distance is high","detected":"view-distance=16","expected":"10 or lower","recommendation":"Lower view-distance to 10."}]}}}}},"401":{"description":"Missing, invalid, revoked or expired key"},"402":{"description":"The plan does not include this"},"403":{"description":"The key lacks the scope or the IP is not allowed"},"404":{"description":"Not found"},"429":{"description":"Rate limit reached. See Retry-After."}}}},"/v1/servers/{id}/timeline":{"get":{"operationId":"timeline","summary":"Timeline events","description":"Freezes, restarts, config changes, scans, alerts and actions in time order.\n\nPlan: Pro. Scope: `read`.","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Server id.","schema":{"type":"string"}},{"name":"from","in":"query","required":false,"description":"ISO time. Default 24 hours ago.","schema":{"type":"string"},"example":"2026-10-11T00:00:00Z"},{"name":"to","in":"query","required":false,"description":"ISO time. Default now.","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Maximum events, 1-500. Default 100.","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"},"example":{"data":[{"at":"2026-10-12T03:12:00.000Z","kind":"LAG_SPIKE","severity":"warning","title":"Freeze of 3.4 s (ShopGUI+)"}]}}}},"401":{"description":"Missing, invalid, revoked or expired key"},"402":{"description":"The plan does not include this"},"403":{"description":"The key lacks the scope or the IP is not allowed"},"404":{"description":"Not found"},"429":{"description":"Rate limit reached. See Retry-After."}}}},"/v1/servers/{id}/incidents":{"get":{"operationId":"incidents","summary":"Incidents","description":"Stretches of low TPS, freezes, restarts and outages that Tickhound detected, newest first.\n\nPlan: Pro. Scope: `read`.","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Server id.","schema":{"type":"string"}},{"name":"from","in":"query","required":false,"description":"ISO time. Default 7 days ago.","schema":{"type":"string"}},{"name":"to","in":"query","required":false,"description":"ISO time. Default now.","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"},"example":{"data":[{"id":"inc-1791800000000","title":"TPS dropped to 11.3 (ShopGUI+)","kind":"lag","severity":"critical","start":"2026-10-12T03:10:00.000Z","end":"2026-10-12T03:31:00.000Z","durationMin":21,"ongoing":false}]}}}},"401":{"description":"Missing, invalid, revoked or expired key"},"402":{"description":"The plan does not include this"},"403":{"description":"The key lacks the scope or the IP is not allowed"},"404":{"description":"Not found"},"429":{"description":"Rate limit reached. See Retry-After."}}}},"/v1/servers/{id}/profile":{"get":{"operationId":"profile","summary":"Latest profiler run","description":"Per-plugin tick time, kinds of work and hot methods of the newest completed profiler run. Add flame=1 for the flame graph tree.\n\nPlan: Pro. Scope: `read`.","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Server id.","schema":{"type":"string"}},{"name":"flame","in":"query","required":false,"description":"Set to 1 to include the flame graph.","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"},"example":{"data":{"finishedAt":"2026-10-12T02:00:00.000Z","advanced":true,"tickBudgetMs":50,"plugins":[{"name":"ShopGUI+","msPerTick":6.2,"sharePct":41}]}}}}},"401":{"description":"Missing, invalid, revoked or expired key"},"402":{"description":"The plan does not include this"},"403":{"description":"The key lacks the scope or the IP is not allowed"},"404":{"description":"Not found"},"429":{"description":"Rate limit reached. See Retry-After."}}}},"/v1/servers/{id}/profile/start":{"post":{"operationId":"profile-start","summary":"Start a profiler run","description":"Starts an advanced profiler run on the server (the plugin must be connected). Use it in a build pipeline: run, wait, then compare with the run of the previous build.\n\nPlan: Pro. Scope: `actions`.","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Server id.","schema":{"type":"string"}}],"requestBody":{"required":true,"description":"How long to measure, in seconds (10-900, default 120).","content":{"application/json":{"schema":{"type":"object"},"example":{"durationSec":120}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"},"example":{"data":{"runId":"cm0run1","status":"PENDING"}}}}},"401":{"description":"Missing, invalid, revoked or expired key"},"402":{"description":"The plan does not include this"},"403":{"description":"The key lacks the scope or the IP is not allowed"},"404":{"description":"Not found"},"429":{"description":"Rate limit reached. See Retry-After."}}}},"/v1/servers/{id}/profile/compare":{"get":{"operationId":"profile-compare","summary":"Compare two profiler runs","description":"Per-plugin tick time and kinds of work of two runs, with a verdict (better, worse, same) and a one-line summary. For performance checks in CI.\n\nPlan: Pro. Scope: `read`.","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Server id.","schema":{"type":"string"}},{"name":"a","in":"query","required":true,"description":"Run id before.","schema":{"type":"string"}},{"name":"b","in":"query","required":true,"description":"Run id after.","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"},"example":{"data":{"verdict":"worse","headline":"Busy time per tick went up by 3.4 ms, mostly because of MyPlugin (+3.1 ms)."}}}}},"401":{"description":"Missing, invalid, revoked or expired key"},"402":{"description":"The plan does not include this"},"403":{"description":"The key lacks the scope or the IP is not allowed"},"404":{"description":"Not found"},"429":{"description":"Rate limit reached. See Retry-After."}}}},"/v1/servers/{id}/scan":{"post":{"operationId":"scan","summary":"Start a scan","description":"Runs a diagnostic scan and returns its id and score. Counts towards your daily scan limit.\n\nPlan: Pro. Scope: `scan`.","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Server id.","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"},"example":{"data":{"scanId":"cm0scan2"}}}}},"401":{"description":"Missing, invalid, revoked or expired key"},"402":{"description":"The plan does not include this"},"403":{"description":"The key lacks the scope or the IP is not allowed"},"404":{"description":"Not found"},"429":{"description":"Rate limit reached. See Retry-After."}}}},"/v1/servers/{id}/actions":{"post":{"operationId":"actions","summary":"Run a plugin action","description":"Asks the Tickhound plugin to do something on the running server. Allowed: clear-items, clean-chunk, unload-chunks, save-world, run-gc.\n\nPlan: Pro. Scope: `actions`.","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Server id.","schema":{"type":"string"}}],"requestBody":{"required":true,"description":"The action name and its settings.","content":{"application/json":{"schema":{"type":"object"},"example":{"action":"clear-items","params":{"world":"world"}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"},"example":{"data":{"actionId":"cm0act1","alreadyRunning":false}}}}},"401":{"description":"Missing, invalid, revoked or expired key"},"402":{"description":"The plan does not include this"},"403":{"description":"The key lacks the scope or the IP is not allowed"},"404":{"description":"Not found"},"429":{"description":"Rate limit reached. See Retry-After."}}}},"/v1/alerts":{"get":{"operationId":"alerts","summary":"Alert history","description":"What the alert system sent, held back or resolved.\n\nPlan: Pro. Scope: `read`.","security":[{"bearerAuth":[]}],"parameters":[{"name":"limit","in":"query","required":false,"description":"1-200. Default 50.","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"},"example":{"data":[{"at":"2026-10-12T03:11:00.000Z","kind":"FIRED","severity":"warning","server":"survival","title":"TPS is low: survival"}]}}}},"401":{"description":"Missing, invalid, revoked or expired key"},"402":{"description":"The plan does not include this"},"403":{"description":"The key lacks the scope or the IP is not allowed"},"404":{"description":"Not found"},"429":{"description":"Rate limit reached. See Retry-After."}}}},"/v1/network":{"get":{"operationId":"network","summary":"Network overview","description":"All servers with status, players, TPS and the proxy they sit behind, plus fleet totals.\n\nPlan: Network. Scope: `read`.","security":[{"bearerAuth":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"},"example":{"data":{"totals":{"servers":6,"online":5,"players":143,"averageScore":82},"servers":[{"id":"cm0abc123","name":"lobby","proxyId":"cm0proxy","status":"ONLINE","players":41,"tps":20}]}}}}},"401":{"description":"Missing, invalid, revoked or expired key"},"402":{"description":"The plan does not include this"},"403":{"description":"The key lacks the scope or the IP is not allowed"},"404":{"description":"Not found"},"429":{"description":"Rate limit reached. See Retry-After."}}}},"/v1/investigations":{"post":{"operationId":"investigations-create","summary":"Create an investigation","description":"Builds a case file for a time window: ranked causes with evidence and next steps.\n\nPlan: Pro. Scope: `investigate`.","security":[{"bearerAuth":[]}],"parameters":[],"requestBody":{"required":true,"description":"Server, symptom (lag, crash, memory, players, join, unknown) and the period.","content":{"application/json":{"schema":{"type":"object"},"example":{"serverId":"cm0abc123","symptom":"lag","from":"2026-10-12T02:00:00Z","to":"2026-10-12T04:00:00Z"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"},"example":{"data":{"id":"cm0inv1"}}}}},"401":{"description":"Missing, invalid, revoked or expired key"},"402":{"description":"The plan does not include this"},"403":{"description":"The key lacks the scope or the IP is not allowed"},"404":{"description":"Not found"},"429":{"description":"Rate limit reached. See Retry-After."}}},"get":{"operationId":"investigations-list","summary":"List investigations","description":"Your saved case files, newest first.\n\nPlan: Pro. Scope: `read`.","security":[{"bearerAuth":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"},"example":{"data":[{"id":"cm0inv1","title":"Lag on survival","verdict":"degraded","topCause":"ShopGUI+ is behind 4 of 5 freezes","confidence":83}]}}}},"401":{"description":"Missing, invalid, revoked or expired key"},"402":{"description":"The plan does not include this"},"403":{"description":"The key lacks the scope or the IP is not allowed"},"404":{"description":"Not found"},"429":{"description":"Rate limit reached. See Retry-After."}}}},"/v1/investigations/{id}":{"get":{"operationId":"investigations-get","summary":"Get an investigation","description":"The full case file: headline, ranked hypotheses with evidence, incidents, timeline and next steps.\n\nPlan: Pro. Scope: `read`.","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Investigation id.","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"},"example":{"data":{"id":"cm0inv1","result":{"verdict":"degraded","headline":"Between … TPS dropped to 11.3. Most likely cause: …","hypotheses":[]}}}}}},"401":{"description":"Missing, invalid, revoked or expired key"},"402":{"description":"The plan does not include this"},"403":{"description":"The key lacks the scope or the IP is not allowed"},"404":{"description":"Not found"},"429":{"description":"Rate limit reached. See Retry-After."}}}}}}