Get a download URL
Returns a short-lived URL that downloads a previously uploaded file, along with its real stored size and type.
Request
| Field | Value |
|---|---|
| Method | GET |
| URL | https://next.telecrm.in/autoupdate/v2/enterprise/{enterpriseId}/lead/{leadId}/file/download-url |
| Auth | Bearer token (Sync-typed). See Authentication. |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
path | string | yes | The server-managed path read from an attachment action or FILE field. |
Response
200 OK
json
{
"download_url": "https://s3.ap-south-1.amazonaws.com/...&X-Amz-Signature=...",
"expires_in": 3600,
"size": 184320,
"content_type": "application/pdf"
}size and content_type are read from storage, so they describe the file as it actually exists rather than what was declared when it was uploaded.
Files are always served as a download, never rendered in the browser.
Errors
| Status | Cause |
|---|---|
400 | path missing. |
401 | Missing or invalid token. |
403 | path does not belong to this lead. |
404 | The lead does not exist, or no file exists at path. |