Get a file uploaded via form

Last updated November 7, 2019

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

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.hubspot.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