Get file by ID
You're viewing API version
2026-09, which is deprecated and stops working on October 1, 2027. To move your integration, see Upgrading to 2026-10.GET
Retrieve file information and access URL.
URL Generation:
- For
PRIVATEfiles: Returns a fresh signed URL (valid for 15 minutes) - For
PUBLICfiles: Returns the permanent CloudFront URL
Response includes:
- File metadata (filename, size, MIME type)
- Visibility setting
- Access URL
- Upload information
header
AuthorizationBearer <token>Personal API key, e.g. Authorization: Bearer sajn_sk_.... Not scope-limited — acts as the issuing user.
id*stringFile information with access URL
application/json- response
File information with access URL
id*stringUnique file identifier
filename*stringOriginal filename
mimeType*stringMIME type of the file
size*numberFile size in bytes
visibility*stringFile visibility
Value in
"PRIVATE""PUBLIC"url*stringURL to access the file (signed URL for private, direct URL for public)
Format
uricreatedAt*stringDate and time when file was uploaded
Format
date-timeupdatedAt*stringDate and time when file was last updated
Format
date-timeuploadedBy*User who uploaded the file
curl -X GET 'https://app.sajn.se/api/v1/files/string' \ -H 'authorization: string'Example Response
{ "id": "string", "filename": "string", "mimeType": "string", "size": 0, "visibility": "PRIVATE", "url": "http://example.com", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "uploadedBy": { "id": "string", "firstName": "string", "lastName": "string", "email": "string" }}Was this page helpful?