Skip to main content

Upload Trace

POST 

/api/v0/upload/trace-import

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.

Request

Responses

Accepted

Response Headers