---
title: "Batch log file upload"
method: POST
path: "/v1/{dongleId}/upload_urls"
tags: ["logs"]
---

# Batch log file upload

`POST /v1/{dongleId}/upload_urls`

## Request

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

Request URLs to which openpilot files can be uploaded via HTTP PUT. This endpoint only accepts tokens signed with a device private key.

## Request body

- object
  - `paths` string[], required: Files to upload from openpilot data directory.
  - `expiry_days` integer: number of days the url should be valid

## Response `200`

JSON array containing upload URLs

- 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 `items/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/:dongleId/upload_urls/post.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)
