[Verification only] Deliberately leak `count` objects to test the profiling report
Requires ENABLE_PROFILING=true (404 otherwise). Appends throwaway objects to a module-level list that is never cleared, so the growth is visible in /admin/debug/memory and the periodic log. Use this to confirm the profiling pipeline actually surfaces a leak before relying on it in production. Requires Basic Auth.
/api/v1/admin/debug/leakAuthorization
HTTPBasic In: header
Query Parameters
0 < value <= 10000001000Response Body
application/json
application/json
curl -X POST "https://example.com/api/v1/admin/debug/leak"nullForce a full gc.collect() + allocator trim and report the RSS delta POST
Requires ENABLE_PROFILING=true (404 otherwise). Answers the 'code vs. docker lib' question cheaply: if RSS drops materially after this call, the memory was allocator-retained-but-freed (not a real leak); if it doesn't move, the growth is genuine (Python-level if `collected` is nonzero and climbing across repeated calls, otherwise native). Tries tcmalloc's MallocExtension_ReleaseFreeMemory() first, since Dockerfile.aws LD_PRELOADs libtcmalloc and glibc's malloc_trim is a no-op against tcmalloc's own pools; falls back to glibc malloc_trim(0) when tcmalloc isn't loaded (e.g. local dev). `trim_method` in the response says which one actually ran - a `trim_method` of "none" means neither symbol was found and the rss_delta_mb below tested nothing. Requires Basic Auth.
List Event Types GET
List all supported webhook event types, optionally filtered by scope (agent, phone_number, batch).