---
title: "Log file upload"
method: GET
path: "/v1.4/{dongleId}/upload_url"
tags: ["logs"]
---

# Log file upload

`GET /v1.4/{dongleId}/upload_url`

## Request

- Base URL: `https://api.comma.ai`
- URL: `https://api.comma.ai/v1.4/{dongleId}/upload_url`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Request a URL to which an openpilot file an be uploaded via HTTP PUT. This endpoint only accepts tokens signed with a device private key.

## Query parameters

- `path` string, required
- `expiry_days` integer

## Response `200`

JSON object containing upload URL

- object
  - `url` string, required: URL to which a PUT request can be sent with file contents

## Changes

- **2022-11-27** `c955909ce683`: 1 info
  - the response property `url` became required for the status `200`
- **2022-11-27** `5b1478ce801f`: 1 info
  - api tag `logs` added
- **2022-11-27** `04af598547de`: 2 info
  - the endpoint scheme security `AuthDevice` was added to the API
  - the endpoint scheme security `AuthUser` was added to the API

[Operation history](https://skmtc.dev/comma/apis/comma-api/changes/v1.4/:dongleId/upload_url/get.md)

---

[API](https://skmtc.dev/comma/apis/comma-api.md) - [All operations](https://skmtc.dev/comma/apis/comma-api/llms.txt) - [OpenAPI document](https://skmtc.dev/comma/apis/comma-api/revisions/24f7dbc922ad?raw)
