English
Get File Pre-signed URL
About 161 wordsLess than 1 minute
2026-01-19
Description
Obtain a pre-signed URL for file access.
Request Specification
Method: POST + application/json
Endpoint: https://${cloud-domain}/cgi/crm/v2/file/getPresignedUrl?thirdTraceId=${Random String}
Headers: Refer to Common Parameters
Restrictions: Enterprise must be an Alibaba Cloud or Huawei Cloud file-specialized enterprise.
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| includeNull | Boolean | No | Whether to include null fields. false: not returned, true: returned. Default is false |
| data | Map | Yes | Data MAP |
| paths | List[String] | Yes | File paths |
| expire | Int | Yes | Expiration time (in hours) |
Request Example
{
"includeNull": true,
"data": {
"paths": [
"603dabc14ae65400011aec90"
],
"expire": 1
}
}Response Parameters
| Parameter | Type | Description |
|---|---|---|
| traceId | string | Unique request ID |
| errorDescription | string | Error description |
| errorMessage | string | Error message |
| errorCode | Int | Error codes reference |
Response Example
{
"traceId": "E-O.827xxxxxx",
"errorDescription": "success",
"errorMessage": "OK",
"errorCode": 0
}Notes
- Do not use the message field in the response for logical judgments, as errorMessage may change;
