{
  "opencollection": "1.0.0",
  "info": {
    "name": "Memfault Cloud REST API",
    "version": "v0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Auth",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get authenticated user",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.memfault.com/auth/me"
          },
          "docs": "Get authenticated user"
        },
        {
          "info": {
            "name": "Get user API key",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.memfault.com/auth/api_key"
          },
          "docs": "Get user API key"
        },
        {
          "info": {
            "name": "Generate user API key",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.memfault.com/auth/api_key"
          },
          "docs": "Generate user API key"
        },
        {
          "info": {
            "name": "Revoke user API key",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.memfault.com/auth/api_key"
          },
          "docs": "Revoke user API key"
        }
      ]
    },
    {
      "info": {
        "name": "Organizations",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List organizations",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.memfault.com/api/v0/organizations"
          },
          "docs": "List organizations"
        }
      ]
    },
    {
      "info": {
        "name": "Projects",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List projects in an organization",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.memfault.com/api/v0/organizations/:organization_slug/projects",
            "params": [
              {
                "name": "organization_slug",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "List projects in an organization"
        },
        {
          "info": {
            "name": "Get a project",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.memfault.com/api/v0/organizations/:organization_slug/projects/:project_slug",
            "params": [
              {
                "name": "organization_slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "project_slug",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get a project"
        },
        {
          "info": {
            "name": "Get the project key",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.memfault.com/api/v0/organizations/:organization_slug/projects/:project_slug/api_key",
            "params": [
              {
                "name": "organization_slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "project_slug",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get the project key"
        }
      ]
    },
    {
      "info": {
        "name": "Cohorts",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List cohorts",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.memfault.com/api/v0/organizations/:organization_slug/projects/:project_slug/cohorts",
            "params": [
              {
                "name": "organization_slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "project_slug",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "List cohorts"
        },
        {
          "info": {
            "name": "Create a cohort",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.memfault.com/api/v0/organizations/:organization_slug/projects/:project_slug/cohorts",
            "params": [
              {
                "name": "organization_slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "project_slug",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Create a cohort"
        },
        {
          "info": {
            "name": "Get a cohort",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.memfault.com/api/v0/organizations/:organization_slug/projects/:project_slug/cohorts/:cohort_slug",
            "params": [
              {
                "name": "organization_slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "project_slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "cohort_slug",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get a cohort"
        },
        {
          "info": {
            "name": "Update a cohort",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.memfault.com/api/v0/organizations/:organization_slug/projects/:project_slug/cohorts/:cohort_slug",
            "params": [
              {
                "name": "organization_slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "project_slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "cohort_slug",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Update a cohort"
        },
        {
          "info": {
            "name": "List devices in a cohort",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.memfault.com/api/v0/organizations/:organization_slug/projects/:project_slug/cohorts/:cohort_slug/devices",
            "params": [
              {
                "name": "organization_slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "project_slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "cohort_slug",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "List devices in a cohort"
        },
        {
          "info": {
            "name": "Move devices into a cohort",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.memfault.com/api/v0/organizations/:organization_slug/projects/:project_slug/cohorts/:cohort_slug/devices",
            "params": [
              {
                "name": "organization_slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "project_slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "cohort_slug",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Move devices into a cohort"
        }
      ]
    },
    {
      "info": {
        "name": "Devices",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List devices",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.memfault.com/api/v0/organizations/:organization_slug/projects/:project_slug/devices",
            "params": [
              {
                "name": "organization_slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "project_slug",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "List devices"
        },
        {
          "info": {
            "name": "Create or upsert a device",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.memfault.com/api/v0/organizations/:organization_slug/projects/:project_slug/devices",
            "params": [
              {
                "name": "organization_slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "project_slug",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Create or upsert a device"
        },
        {
          "info": {
            "name": "Get a device",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.memfault.com/api/v0/organizations/:organization_slug/projects/:project_slug/devices/:device_serial",
            "params": [
              {
                "name": "organization_slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "project_slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "device_serial",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get a device"
        },
        {
          "info": {
            "name": "Update a device",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.memfault.com/api/v0/organizations/:organization_slug/projects/:project_slug/devices/:device_serial",
            "params": [
              {
                "name": "organization_slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "project_slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "device_serial",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Update a device"
        },
        {
          "info": {
            "name": "Delete a device",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.memfault.com/api/v0/organizations/:organization_slug/projects/:project_slug/devices/:device_serial",
            "params": [
              {
                "name": "organization_slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "project_slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "device_serial",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Delete a device"
        },
        {
          "info": {
            "name": "Get device attributes",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.memfault.com/api/v0/organizations/:organization_slug/projects/:project_slug/devices/:device_serial/attributes",
            "params": [
              {
                "name": "organization_slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "project_slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "device_serial",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get device attributes"
        },
        {
          "info": {
            "name": "Update device attributes",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.memfault.com/api/v0/organizations/:organization_slug/projects/:project_slug/devices/:device_serial/attributes",
            "params": [
              {
                "name": "organization_slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "project_slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "device_serial",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Update device attributes"
        }
      ]
    },
    {
      "info": {
        "name": "Software",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List software types",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.memfault.com/api/v0/organizations/:organization_slug/projects/:project_slug/software_types",
            "params": [
              {
                "name": "organization_slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "project_slug",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "List software types"
        },
        {
          "info": {
            "name": "Create a software type",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.memfault.com/api/v0/organizations/:organization_slug/projects/:project_slug/software_types",
            "params": [
              {
                "name": "organization_slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "project_slug",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Create a software type"
        },
        {
          "info": {
            "name": "List software versions",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.memfault.com/api/v0/organizations/:organization_slug/projects/:project_slug/software_types/:software_type/software_versions",
            "params": [
              {
                "name": "organization_slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "project_slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "software_type",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "List software versions"
        },
        {
          "info": {
            "name": "Create a software version",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.memfault.com/api/v0/organizations/:organization_slug/projects/:project_slug/software_types/:software_type/software_versions",
            "params": [
              {
                "name": "organization_slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "project_slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "software_type",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Create a software version"
        }
      ]
    },
    {
      "info": {
        "name": "Releases",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List releases",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.memfault.com/api/v0/organizations/:organization_slug/projects/:project_slug/releases",
            "params": [
              {
                "name": "organization_slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "project_slug",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "List releases"
        },
        {
          "info": {
            "name": "Create a release",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.memfault.com/api/v0/organizations/:organization_slug/projects/:project_slug/releases",
            "params": [
              {
                "name": "organization_slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "project_slug",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Create a release"
        },
        {
          "info": {
            "name": "Get a release",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.memfault.com/api/v0/organizations/:organization_slug/projects/:project_slug/releases/:release_version",
            "params": [
              {
                "name": "organization_slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "project_slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "release_version",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get a release"
        },
        {
          "info": {
            "name": "Update a release",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.memfault.com/api/v0/organizations/:organization_slug/projects/:project_slug/releases/:release_version",
            "params": [
              {
                "name": "organization_slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "project_slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "release_version",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Update a release"
        },
        {
          "info": {
            "name": "Delete a release",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.memfault.com/api/v0/organizations/:organization_slug/projects/:project_slug/releases/:release_version",
            "params": [
              {
                "name": "organization_slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "project_slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "release_version",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Delete a release"
        },
        {
          "info": {
            "name": "Get the latest release for a device",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.memfault.com/api/v0/releases/latest",
            "params": [
              {
                "name": "hardware_version",
                "value": "",
                "type": "query"
              },
              {
                "name": "software_type",
                "value": "",
                "type": "query"
              },
              {
                "name": "current_version",
                "value": "",
                "type": "query"
              },
              {
                "name": "device_serial",
                "value": "",
                "type": "query"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "Memfault-Project-Key",
              "value": "{{Memfault-Project-Key}}",
              "placement": "header"
            }
          },
          "docs": "Used by devices (with project key auth) to discover the latest OTA release."
        }
      ]
    },
    {
      "info": {
        "name": "Deployments",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List deployments",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.memfault.com/api/v0/organizations/:organization_slug/projects/:project_slug/deployments",
            "params": [
              {
                "name": "organization_slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "project_slug",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "List deployments"
        },
        {
          "info": {
            "name": "Create a deployment",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.memfault.com/api/v0/organizations/:organization_slug/projects/:project_slug/deployments",
            "params": [
              {
                "name": "organization_slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "project_slug",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Create a deployment"
        },
        {
          "info": {
            "name": "Get a deployment",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.memfault.com/api/v0/organizations/:organization_slug/projects/:project_slug/deployments/:deployment_id",
            "params": [
              {
                "name": "organization_slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "project_slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "deployment_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get a deployment"
        },
        {
          "info": {
            "name": "Update a deployment",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.memfault.com/api/v0/organizations/:organization_slug/projects/:project_slug/deployments/:deployment_id",
            "params": [
              {
                "name": "organization_slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "project_slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "deployment_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Update a deployment"
        }
      ]
    },
    {
      "info": {
        "name": "Issues",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List issues",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.memfault.com/api/v0/organizations/:organization_slug/projects/:project_slug/issues",
            "params": [
              {
                "name": "organization_slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "project_slug",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "List issues"
        },
        {
          "info": {
            "name": "Get an issue",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.memfault.com/api/v0/organizations/:organization_slug/projects/:project_slug/issues/:issue_id",
            "params": [
              {
                "name": "organization_slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "project_slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "issue_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get an issue"
        },
        {
          "info": {
            "name": "Update an issue",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.memfault.com/api/v0/organizations/:organization_slug/projects/:project_slug/issues/:issue_id",
            "params": [
              {
                "name": "organization_slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "project_slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "issue_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Update an issue"
        }
      ]
    },
    {
      "info": {
        "name": "Chunks",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Upload device chunk",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.memfault.com/api/v0/chunks/:device_serial",
            "params": [
              {
                "name": "device_serial",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "Memfault-Project-Key",
              "value": "{{Memfault-Project-Key}}",
              "placement": "header"
            }
          },
          "docs": "Ingest a chunk of telemetry data from a device. Authenticated with the project key."
        }
      ]
    },
    {
      "info": {
        "name": "Files",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Request file upload URL",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.memfault.com/api/v0/upload"
          },
          "docs": "Request file upload URL"
        },
        {
          "info": {
            "name": "Upload a coredump",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.memfault.com/api/v0/upload/coredump"
          },
          "docs": "Upload a coredump"
        },
        {
          "info": {
            "name": "Upload a bug report",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.memfault.com/api/v0/upload/bugreport"
          },
          "docs": "Upload a bug report"
        }
      ]
    }
  ],
  "bundled": true
}