curl --request GET \
--url https://api.hubapi.com/files/v3/files/{fileId}/signed-url \
--header 'Authorization: Bearer <token>'{
"expiresAt": "2023-11-07T05:31:56Z",
"extension": "<string>",
"name": "<string>",
"size": 123,
"type": "<string>",
"url": "<string>",
"height": 123,
"width": 123
}Generates signed URL that allows temporary access to a private file.
curl --request GET \
--url https://api.hubapi.com/files/v3/files/{fileId}/signed-url \
--header 'Authorization: Bearer <token>'{
"expiresAt": "2023-11-07T05:31:56Z",
"extension": "<string>",
"name": "<string>",
"size": 123,
"type": "<string>",
"url": "<string>",
"height": 123,
"width": 123
}Supported products
Required Scopes
The access token received from the authorization server in the OAuth 2.0 flow.
ID of file.
\d+How long in seconds the link will provide access to the file.
For image files. This will resize the image to the desired size before sharing. Does not affect the original file, just the file served by this signed URL.
icon, medium, preview, thumb If size is provided, this will upscale the image to fit the size dimensions.
successful operation
Signed Url object with optional ancillary metadata of requested file
Timestamp of when the URL will no longer grant access to the file.
Extension of the requested file.
New name. If specified the folder's name and fullPath will change. All children of the folder will be updated accordingly.
Size in bytes of the requested file.
Type of the file. Can be IMG, DOCUMENT, AUDIO, MOVIE, or OTHER.
URL to download the new file from.
For image and video files. The height of the file.
For image and video files. The width of the file.
Was this page helpful?