Signed Link of a File
POST
/mongodb/buckets/{bucketName}/files/{fileId}/link
A signed, expiring link that downloads the file (or an image variant of a declared bucket) without authentication (2.11.0): GET /files/signed/{token}. expiresIn in seconds or as duration (default 1h, at most FILE_LINK_MAX_DURATION). Needs the read grant of the bucket and its read rules.
Authorizations
httpAuth
Type
HTTP (bearer)
or
httpAuth1
Type
HTTP (basic)
or
apiKeyAuth
Type
API Key (header: X-AUTH-APIKEY)
Parameters
Path Parameters
bucketName*
The name of the bucket
Type
Requiredstring
fileId*
The id of the file
Type
Requiredstring
Request Body
application/json
JSON "expiresIn": "string", "variant": { "additionalProperties": "string" }
{
}
Responses
application/json
JSON "token": "string", "url": "string", "expiresAt": "2024-01-01T00:00:00Z"
{
}
