Skip to content

Get a download URL ​

Returns a short-lived URL that downloads a previously uploaded file, along with its real stored size and type.

Request ​

FieldValue
MethodGET
URLhttps://next.telecrm.in/autoupdate/v2/enterprise/{enterpriseId}/lead/{leadId}/file/download-url
AuthBearer token (Sync-typed). See Authentication.

Query parameters ​

NameTypeRequiredDescription
pathstringyesThe 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 ​

StatusCause
400path missing.
401Missing or invalid token.
403path does not belong to this lead.
404The lead does not exist, or no file exists at path.