There's a new version of the HubSpot API

As of November 30, 2022, HubSpot API keys are no longer a supported authentication method for accessing HubSpot APIs. Instead, you should use a private app access token or OAuth to authenticate API calls. Learn more about this change and how to migrate an API key integration to use a private app instead.

Get a file uploaded via form

Last updated May 15, 2023

GET /form-integrations/v1/uploaded-files/signed-url-redirect/:fileId

Method Details

HTTP Methods:

GET

Response Format:

N/A

Requires Authentication?

Yes

Rate Limited?

Yes

Headers

User-Agent

Products:

Marketing

Required Scope:

forms-uploaded-files

For a given file id, return the file associated with that Id.

The complete URL required to fetch the uploaded file can be found in the submitted form metadata, or on an associated contact record. The name of the property containing this URL will vary depending on the name given to the file upload.

The initial GET on this URL returns a redirect, which should be followed to retrieve the file.

Specific URL parameters, including portalId, sign, conversionId, and filename will be included as part of the URL fetched from the property as described above. These variables should not be changed.

Required Parameters How to use Description
OAuth access token or private app access token Authorization: Bearer {token} header Used to authenticate the request. Please see this page for more details about authentication.

Example URL:  https://api.hubapi.com/form-integrations/v1/uploaded-files/signed-url-redirect/20128659661?portalId=62515&sign=sXEkvOBg6C5eiGuxOxrMYWCQb8k%3D&conversionId=1eac2f96-f4b7-4312-a4c3-9962382207f2&filename=1eac2f96-f4b7-4312-a4c3-9962382207f2-upload_a_file-test_file.txt