There's a new version of the HubSpot API

As of November 30, 2022, HubSpot API Keys are being deprecated and are no longer supported. Continued use of HubSpot API Keys is a security risk to your account and data. Your API Keys could be deactivated at any time after Nov. 30th, and we recommend that you migrate to Private Apps as soon as possible so you do not lose business-critical functionality.

Get a file uploaded via form

Last updated June 17, 2020

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 API Key Authorization: Bearer {token} header
or hapikey={key} query parameter.
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&hapikey=demo