Skip to main content

GET Presigned URL to View File

Overview


The following table contains important information about the GET method in regards to retrieve presigned url to view file.

GET Presigned URL to view file
MethodGET
URL or Endpoint/api/projects/projectId/uploads/url/requestKey
HeadersAuthorization
ParametersrequestKey, projectId
BodyNot applicable

The description of the URL parameter is as follows:

requestKeyURL Parameter
URL Parameter NamerequestKey
MandatoryYes
Typestring
DescriptionKey that is provided after a successful upload
projectId URL Parameter
URL Parameter NameprojectId
MandatoryYes
Typestring
DescriptionUnique Id of the project.

Request Body

The GET request does not have a request body

Response

{
"success": true,
"errors": [],
"messages": [],
"result": {
"url": "url",
"filePath": "filePath"
},
"resultInfo": null,
"statusCode": 200
}

The description to the fields in the code are written in the table below.

Parameter NameTypeDescription
successboolIf the response is successful, it will return true. Otherwise, it will return false.
errorsarray[string]Indicates if there was an error.
messagesarray[string]Returns the response message from the back-end.
resultobjectReturns the response object.
urlstringThe URL where the resource can be accessed.
filePathstringThe file path of the resource.
resultInfostringReturns extra information about the result.
statusCodeinteger($int32)Returns the HTTP Status Code.

If the action is successful, the service sends back an HTTP 200 or 201 response.

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code 400: Bad Request

  • HTTP Status Code 401: Unauthorized

  • HTTP Status Code 403: Forbidden

  • HTTP Status Code 404: Result Not Found

  • HTTP Status Code 500: Internal Server Error

  • HTTP Status Code 503: Backend Fetch Failed