open.larksuite.com Open in urlscan Pro
23.59.168.9  Public Scan

URL: https://open.larksuite.com/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/media/batch_get_tmp_download_url
Submission: On April 04 via manual from SG — Scanned from SG

Form analysis 0 forms found in the DOM

Text Content

 * Solutions
   
 * Documentation
   
 * Changelog
   
 * App Directory
   


Search documentation
 * Developer Console
   



Login

 * Home
 * Client Docs
 * Server Docs
 * Common Capabilities
 * Tools
 * ISV Guides
 * Best Practices
 * FAQ

API Explorer

Developer tutorials
Getting Started
Contacts
Instant message
Group
Docs
Docs Overview
Docs Overview and Best Practice
File Management
Overview
FAQ
Folder
File
Media
Introduction
Upload Media
Download Media
Get Temporary Download URL of Media
Multipart Upload
Event
Search
Upload
Download
document import
Permission
Comment
Subscription
Docs
Sheets
Bitable
Wiki
Appendix
Subscribe to Events
Calendar
Video Conferencing
Attendance
Approval
Email
App Information
Company Information
Personal Settings
AI
Admin
OKR
Security and Compliance
Minutes
Historic Version (Not Recommended)
Event Subscription
Rooms
Server DocsDocsFile ManagementMedia
Get Temporary Download URL of Media


OBTAIN A TEMPORARY MATERIAL DOWNLOAD URL

Last updated on 2022-03-13
The contents of this article
Request
Request header
Query parameters
Response
Response body
Response body example


OBTAIN A TEMPORARY MATERIAL DOWNLOAD URL

Obtain the temporary download URL of a material based on a file_token. The URL
is valid for 24 hours.
Try it

This API doesn't support high concurrency, and supports up to 5 queries per
second (QPS).


REQUEST

FactsHTTP URL

https://open.larksuite.com/open-apis/drive/v1/medias/batch_get_tmp_download_url

HTTP Method

GET

Supported app types



Custom apps
Store apps



Required scopes
Enable any scope from the list
Obtain special effects materials in video conference
Update special effects materials in video conference
View Moments content and sections
View, comment, and download all files in My Space
View, comment, and export Bitable
View, comment, and export Docs
View, comment, and export Sheets
View, comment, edit and manage Bitable
View, comment, edit, and manage Docs
View, comment, edit, and manage Sheets
View, comment, edit, and manage all files in My Space
View, create, update, and delete Moments content and sections


REQUEST HEADER

ParameterTypeRequiredDescription

Authorization

string

Yes

tenant_access_token
or
user_access_token

Value format: "Bearer access_token"

Example value: "Bearer u-7f1bcd13fc57d46bac21793a18e560"

Learn more about obtaining and using access_token.

For more information about how to call the AccessToken in the Docs API, see Get
started with the Docs API.


QUERY PARAMETERS

ParameterTypeRequiredDescription

file_tokens

string[]

Yes

List of file tokens

Example value: Boxcnabcdefg

extra

string

No

Extension information. This field is optional.

Example value: "For more information, see Types and the Extra parameter of
upload points."


RESPONSE


RESPONSE BODY

ParameterTypeDescription

code

int

Error codes, fail if not zero

msg

string

Error descriptions

data

-

-

 ∟ tmp_download_urls

tmp_download_url[]

Temporary download list

  ∟ file_token

string

Token of the file

  ∟ tmp_download_url

string

Temporary download URL of the file


RESPONSE BODY EXAMPLE

{
    "code": 0,
    "msg": "success",
    "data": {
        "tmp_download_urls": [
            {
                "file_token": "boxcnabcdefg",
                "tmp_download_url": "https://internal-api-drive-stream.larksuite.com/space/api/box/stream/download/authcode/?code


drive.v1.media.method.batch_get_tmp_download_url.query.prop.file_tokens.list.example=$$$boxcnabcdefg"
            }
        ]
    }
}

Correct
Previous:Download Media
Next:Introduction

Is this document helpful to you?

Is this document helpful to you?

The contents of this article
Request
Request header
Query parameters
Response
Response body
Response body example
Feedback
OnCall
Collapse
Expand