Upload

Upload Trace

Import a new Trace for a given Project.

Requires Memfault-Project-Key header authentication.

The request body is a JSON object describing the trace. Key fields include:

FieldTypeDescription
device_serialStringRequired. The device serial number.
hardware_versionStringRequired. Hardware version of the device.
software_versionStringRequired. Software version running on the device.
software_typeStringRequired. Software type.
reasonStringReason for the trace (e.g. Assert, HardFault).
captured_dateStringISO 8601 timestamp when the trace was captured.
processesArrayList of process objects (each with pid, name, threads).
threadsArrayList of thread objects with registers and stackframes.

Each stackframe may include frame_type, map_build_id, map_name, relative_address, abs_address, function, file, lineno.


Return Value

Returns 202 - Accepted. The trace is processed asynchronously.

post/api/v0/upload/trace-import

Request

  • Base URL
    https://api.memfault.com
  • Auth
    • HTTP basic
    • or HTTP bearer

Headers

Memfault-Project-Keystring required

Response

Accepted

Changes

No recorded changes to this operation across all 1 revision of this API.