Get file download URL
GET/api/v1/files/:file-id/download_url
Get a signed private URL for downloading files from Needle. The download URL will be valid for a short time therefore you should read the file immediately after receiving the URL.
Request
Path Parameters
file-id stringrequired
File ID
Responses
- 200
- 400
- 401
- 403
- 404
Successful response
- application/json
- Schema
- Example (from schema)
Schema
result urirequired
URL for downloading the file
{
"result": "string"
}
Invalid request
- application/json
- Schema
- Example (from schema)
Schema
error
object
required
message stringrequired
Human readable error message
data nullable
Further details on the error
{
"error": {
"message": "string"
}
}
Unauthorized request
- application/json
- Schema
- Example (from schema)
Schema
error
object
required
message stringrequired
Human readable error message
data nullable
Further details on the error
{
"error": {
"message": "string"
}
}
Forbidden file, user does not have sufficient permissions to access the file
- application/json
- Schema
- Example (from schema)
Schema
error
object
required
message stringrequired
Human readable error message
data nullable
Further details on the error
{
"error": {
"message": "string"
}
}
File not found
- application/json
- Schema
- Example (from schema)
Schema
error
object
required
message stringrequired
Human readable error message
data nullable
Further details on the error
{
"error": {
"message": "string"
}
}
Loading...