Skip to main content
GET
/
public
/
file
/
{fileId}
Get a file download URL
curl --request GET \
  --url https://api.prod.commenda.io/api/v1/public/file/{fileId} \
  --header 'x-api-key: <api-key>'
{
  "signedUrl": "https://bucket.s3.amazonaws.com/file.pdf?X-Amz-Signature=example"
}
Returns a temporary download URL for a file the authenticated affiliate can access.

Authorizations

x-api-key
string
header
required

Path Parameters

fileId
integer
required

File identifier returned by Commenda document APIs.

Response

Signed URL created successfully

signedUrl
string<uri>
required

Temporary signed download URL for the file.

Example:

"https://bucket.s3.amazonaws.com/file.pdf?X-Amz-Signature=example"