> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mirurobotics.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Download Latest

> Download the content of a latest calibration by its report ID. An older report returns 404.



## OpenAPI

````yaml /references/device-api/v0.2.5/api.yaml get /calibrations/latest/{report_id}/content
openapi: 3.0.3
info:
  title: Miru Agent API
  description: >-
    The API between the Miru Agent and any external client living on the same
    device as the Miru Agent. On Linux the agent serves it over the Unix socket
    `/run/miru/miru.sock` with no authentication. Over loopback TCP, which is on
    by default on Windows at `127.0.0.1:6478`, every route requires
    `Authorization: Bearer <token>`. Clients read the port and token from the
    agent's discovery file, `%ProgramData%\Miru\device-api\device-api.json` on
    Windows; the token changes every time the agent starts.
  version: v0.2
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
  x-release-version: v0.2.5
  x-git-commit:
    sha: 19eb0d408a2b07e39e7eaedb867ed2e8836bea30
    url: >-
      https://github.com/mirurobotics/openapi/commit/19eb0d408a2b07e39e7eaedb867ed2e8836bea30
    message: >-
      docs(device): title the latest calibration download "Download Latest"
      (#471)
    author: Ben's Agent
    branch: HEAD
    dirty: false
  x-build:
    built_at: '2026-11-10T07:34:46.079962+00:00'
servers:
  - url: http://localhost/v0.2
    description: localhost
security:
  - {}
  - BearerAuth: []
paths:
  /calibrations/latest/{report_id}/content:
    get:
      tags:
        - Calibrations
      summary: Download Latest
      description: >-
        Download the content of a latest calibration by its report ID. An older
        report returns 404.
      operationId: getLatestCalibrationContent
      parameters:
        - $ref: '#/components/parameters/report_id'
      responses:
        '200':
          description: >-
            Successfully retrieved the calibration content. The Content-Type
            header is set according to the content format.
          headers:
            Content-Disposition:
              $ref: '#/components/headers/content_disposition'
            Content-Type:
              description: The MIME type of the calibration content.
              schema:
                type: string
                example: application/json
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
                description: The raw calibration content, exactly as it was reported.
      x-codeSamples:
        - lang: curl
          label: curl (Linux)
          source: |-
            curl \
              --unix-socket /run/miru/miru.sock \
              --request GET \
              --url http://localhost/v0.2/calibrations/latest/{report_id}/content
        - lang: powershell
          label: PowerShell (Windows)
          source: >-
            $api = Get-Content -Raw
            "$env:ProgramData\Miru\device-api\device-api.json" |
            ConvertFrom-Json; `

            Invoke-RestMethod -Method Get `
              -Uri "http://127.0.0.1:$($api.port)/v0.2/calibrations/latest/{report_id}/content" `
              -Headers @{ Authorization = "Bearer $($api.token)" }
components:
  parameters:
    report_id:
      name: report_id
      in: path
      required: true
      description: The ID the agent gave the calibration report.
      schema:
        type: string
        format: uuid
        example: 0b6f3c2e-6a51-4e0f-9a43-2f1d7c9e8b10
  headers:
    content_disposition:
      description: >-
        Header indicating whether the file is returned inline or as an
        attachment.
      schema:
        type: string
        example: inline
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        The token from the agent's discovery file
        (`%ProgramData%\Miru\device-api\device-api.json` on Windows). Required
        over loopback TCP (`127.0.0.1:6478` by default on Windows) and accepted
        by every route; not used over the Unix socket.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.