Example – Logs

  • GET /api/v2/devices/(serial or UUID)/logs
    • Returns the┬ádevice’s log file information (if it exists) and a link to retrieve the .tar.gz file containing the device logs.
      • Parameters:
        • start_date – defaults to 10 days ago
        • end_date – defaults to tomorrow (so as to get all data)
        • dates must be YYYY-MM-DD formatted
        {
          "id": "77778211",
          "type": "devices",
          "attributes": {
            "log": {
              "uploaded_at": "09-23-16 11:12:29UTC",
              "md5sum": "69ed906fbec08f0ee7d66550e0f590ec",
              "description": "09-23-16_11:12:29UTC.zip"
            }
          },
          "links": {
            "self": "https://devicehq.com/api/v2/files/57e50e1d11c3a8fd12711fff"
          }
        }