Provision and manage devices in Memfault using the REST API: create devices, assign cohorts, and query fleet metrics

domain: docs.memfault.com · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Generate a Memfault organization API key or user API key from the console under Settings > API Keys; include it as the Memfault-Email and Memfault-Password headers or use the bearer token scheme as documented for your authentication method
  2. Create a device via the Memfault REST API: POST /api/v0/organizations/<org>/projects/<project>/devices with a JSON body containing device_serial, hardware_version, and optionally nickname and notes
  3. Assign the device to a cohort: PATCH /api/v0/organizations/<org>/projects/<project>/devices/<device_serial> with {"cohort": {"slug": "<cohort_slug>"}}
  4. List devices in a cohort: GET /api/v0/organizations/<org>/projects/<project>/devices?cohort=<cohort_slug> and paginate through results using the cursor parameter
  5. Retrieve fleet metric aggregates: GET /api/v0/organizations/<org>/projects/<project>/metrics with filters for metric key, time range, and cohort; the response provides aggregate statistics (mean, p50, p95) across the queried devices
  6. Use the metrics endpoint to build a health dashboard: track crash-free hours, OTA success rate, and custom heartbeat metrics defined in device firmware

Known gotchas

Related routes

Set up Memfault OTA releases with MCUboot on a Zephyr device and monitor fleet update progress
docs.memfault.com · 6 steps · unrated
Implement device observability with Memfault metrics heartbeats and remote coredump capture
memfault · 6 steps · unrated
Provision and manage a device using the ClearBlade IoT Core Device Manager API
iot · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans