Skip to main content

Prepare Upload (using Project Key)

POST 

/api/v0/upload

Prepare a file upload to files.memfault.com. This is step 1 of a two-step upload flow.

Returns a signed upload_url and an opaque token. Use the upload_url to PUT the file directly, then use the token in the corresponding Commit endpoint.


Request Body

FieldTypeDescription
kindStringRequired. One of: COREDUMP, ANDROID_BUG_REPORT, MAR
deviceObjectRequired. DeviceTraits object (see below)
sizeIntegerRequired. File size in bytes

DeviceTraits:

FieldTypeDescription
device_serialStringRequired. Device serial number
hardware_versionStringRequired. Hardware version
software_versionStringRequired. Software version
software_typeStringSoftware type

Return Value

Returns { "data": { "upload_url": "...", "token": "..." } }

Request

Responses

Response Headers