---
title: "Get a signed URL for downloading a file from Definite Drive"
method: GET
path: "/v3/teams/{team_id}/drive/download-url"
tags: ["v3", "Drive"]
---

# Get a signed URL for downloading a file from Definite Drive

`GET /v3/teams/{team_id}/drive/download-url`

## Request

- Base URL: `https://api.definite.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.definite.app/v3/teams/{team_id}/drive/download-url`
- Auth: none declared
- TypeScript: <https://skmtc.dev/definite/apis/defapi/docs/v3/teams/:team_id/drive/download-url/get.ts> (a function with typed inputs; its response is checked against the schema)

Generate a signed URL for downloading a file from Definite Drive (GCS).

    The URL is valid for 1 hour and can be used to download the file directly.

## Path parameters

- `team_id` string, required

## Query parameters

- `path` string, required

## Response `200`

Signed download URL generated successfully

- DriveDownloadUrlResponse: Response containing signed URL for downloading a file from Definite Drive.
  - `download_url` string, required: Signed GET URL for downloading the file
  - `file_name` string, required: Name of the file
  - `expires_in` integer, required: Seconds until the URL expires

## Other responses

- `400`: Invalid path
- `404`: File not found
- `422`: Validation Error
- `500`: Failed to generate signed URL

---

[API](https://skmtc.dev/definite/apis/defapi.md) - [All operations](https://skmtc.dev/definite/apis/defapi/llms.txt) - [OpenAPI document](https://skmtc.dev/definite/apis/defapi/revisions/5ea378187147?raw)
