Generate signed URL
Changed onGenerate a signed URL for a specific file in your HubSpot account. This endpoint allows you to specify the size of the file, the expiration time for the URL, and whether the image should be upscaled. It is useful for securely sharing files with a limited lifespan.
Request
- Base URLhttps://api.hubapi.com
- URLhttps://api.hubapi.com/files/2026-09/files/{fileId}/signed-url
- AuthOAuth 2Authorization code: https://app.hubspot.com/oauth/authorizeToken URL: https://api.hubapi.com/oauth/v1/token scopes: files.ui_hidden.read
Path parameters
The unique identifier of the file for which to generate a signed URL.
Query parameters
The duration in seconds for which the signed URL will remain valid.
The desired size of the file. Valid values are 'thumb', 'icon', 'medium', and 'preview'.
A boolean indicating whether the image should be upscaled if necessary.
Response
successful operation
Changes
- info
api tag
Filesadded - info
api tag
Basicremoved
- info
- info
the security scope
files.ui_hidden.readwas added to the endpoint's security schemeoauth2 - info
the security scope
files.readwas removed from the endpoint's security schemeoauth2
- info