Skip to main content

API Endpoint Documentation

The API has two ways of authentication using Cookie Authentication via the /api/account/login endpoint and Basic Authentication

This document is auto generated

PathTypeDescription
/api/account/statusGETCheck the account status of the current logged-in user
/account/loginGETLogin form page (HTML)
/api/account/loginPOSTLogin the current HttpContext in
/api/account/logoutPOSTLogout the current HttpContext out
/account/logoutGETLogout the current HttpContext and redirect to login
/api/account/change-secretPOSTUpdate password for current user
_Parameters: Password (Password before change), ChangedPassword (The new password), ChangedConfirmPassword (The new _
_ password confirmed) _
/api/account/registerPOSTCreate a new user (you need a AF-token first)
/api/account/register/statusGETIs the register form open
/api/account/permissionsGETList of current permissions
/api/allowed-types/mimetype/syncGETA (string) list of allowed MIME-types ExtensionSyncSupportedList
/api/allowed-types/mimetype/thumbGETA (string) list of allowed ExtensionThumbSupportedList MimeTypes
/api/allowed-types/thumbGETCheck if IsExtensionThumbnailSupported
/api/envGETShow the runtime settings (dont allow AllowAnonymous)
/api/envPOSTShow the runtime settings (dont allow AllowAnonymous)
_Parameters: Verbose, StorageFolder, UseSystemTrash, UseLocalDesktop, UseRateLimiting, DefaultDesktopEditor, DesktopCollectionsOpen, _
_ StorageFolderMappings, ReadOnlyFolders _
/api/env/featuresGETShow features that used in the frontend app / menu
/api/batch-rename/previewPOSTPreview batch rename mappings for a list of file paths and a rename pattern.
/api/batch-rename/executePOSTExecute batch rename for a list of mappings.
/api/batch-rename-datetime/offset-previewPOSTPreview filename datetime repair for files with datetime patterns in their na...
/api/batch-rename-datetime/offset-executePOSTExecute filename datetime repair to correct datetime patterns in filenames.Re...
/api/batch-rename-datetime/timezone-previewPOSTPreview filename datetime repair for files with datetime patterns in their na...
/api/batch-rename-datetime/timezone-executePOSTExecute filename datetime repair to correct datetime patterns in filenames.Re...
/api/cache/listGETGet Database Cache (only the cache)
/api/remove-cacheGETDelete Database Cache (only the cache)
/api/remove-cachePOSTDelete Database Cache (only the cache)
/api/deleteDELETERemove files from the disk, but the file must contain the !delete!(TrashKeywo...
_Parameters: f (subPaths, separated by dot comma), collections (true is to update files with the same name before _
_ the extenstion) _
/api/desktop-editor/openPOSTOpen a file in the default editor or a specific editor on the desktop
_Parameters: f (single or multiple subPaths), collections (to combine files with the same name before the extension) _
/api/desktop-editor/amount-confirmationPOSTCheck the amount of files to open before
/api/disk/mkdirPOSTMake a directory (-p)
/api/disk/renamePOSTRename file/folder and update it in the database
_Parameters: f (from subPath), to (to subPath), collections (is collections bool), currentStatus (default is to not _
_ included files that are removed in result) _
/api/download-sidecarGETDownload sidecar file for example image.xmp
/api/download-photoGETSelect manually the original or thumbnail
_Parameters: f (string, 'sub path' to find the file), isThumbnail (true = 1000px thumb (if supported)), cache (true _
_ = send client headers to cache) _
/errorGETReturn Error page (HTML)
/api/export/create-zipPOSTExport source files to an zip archive
_Parameters: f (subPath to files), collections (enable files with the same name (before the extension)), thumbnail _
_ (export thumbnails) _
/api/export/zip/{f}.zipGETGet the exported zip, but first call 'createZip'use for example this url: /ex...
/api/geo/statusGETGet Geo sync status
/api/geo/syncPOSTReverse lookup for Geo Information and/or add Geo location based on a GPX fil...
/api/geo-location-name/cityGETSearch for a city by name
/api/geo-location-name/city-timezoneGETSearch for a city's timezone for a given date/time
/api/geo-reverse-lookupGETReverse geo lookup
/api/geo-reverse-nominatimGETReverse geo lookup with OpenStreetMap NominatimThis API does not allow BATCH ...
/api/health/check-for-updatesGETCheck if Client/App version has a match with the API-version
/api/health/release-infoGETGet more info to show about the release
/api/healthGETCheck if the service has any known errors and return only a stringPublic API
/api/health/detailsGETCheck if the service has any known errorsFor Authorized Users only
/api/health/versionPOSTCheck if Client/App version has a match with the API-versionthe parameter 've...
/searchPOSTRedirect to search GET page (HTML)
/searchGETSearch GET page (HTML)
/trashGETTrash page (HTML)
/importGETImport page (HTML)
/preferencesGETPreferences page (HTML)
/account/registerGETView the Register form (HTML)
/api/importPOSTImport a file using the structure format
/api/import/fromUrlPOSTImport file from web-url (only whitelisted domains) and import this file into...
_Parameters: fileUrl (the url), filename (the filename (optional, random used if empty)), structure (use structure _
_ (optional)) _
/api/import/historyGETToday's imported files
/api/import/thumbnailPOSTUpload thumbnail to ThumbnailTempFolderMake sure that the filename is correct...
/api/indexGETThe database-view of a directory
_Parameters: f (subPath), colorClass (filter on colorClass (use int)), collections (to combine files with the same _
_ name before the extension), hideDelete (ignore deleted files), sort (how to orderBy, defaults to fileName) _
/api/memory-cache-debugGETView data from the memory cache - use to debug
/api/infoGETGet realtime (cached a few minutes) about the file
_Parameters: f (subPaths split by dot comma), collections (true is to update files with the same name before the _
_ extenstion) _
/api/replacePOSTSearch and Replace text in meta information
_Parameters: f (subPath filepath to file, split by dot comma (;)), fieldName (name of fileIndexItem field e.g. Tags), _
_ search (text to search for), replace (replace [search] with this text), collections (enable collections) _
/api/meta-time-correct/timezone-previewPOSTPreview timezone correction for batch of images (dry-run)Uses timezone IDs to...
/api/meta-time-correct/timezone-executePOSTExecute timezone correction for batch of imagesUses timezone IDs to calculate...
/api/meta-time-correct/offset-previewPOSTPreview custom offset correction for batch of images (dry-run)Uses custom tim...
/api/meta-time-correct/offset-executePOSTExecute custom offset correction for batch of imagesUses custom time/date off...
/api/updatePOSTUpdate Exif and Rotation API
_Parameters: Id (Unique database Id, not used and Json Ignored due the fact that files that are moved could have _
_The parent directory in subPath style), IsDirectory (Gets or sets a value indicating whether this instance is directory. _
_true if this instance is directory; otherwise (then is a file), false.), Tags (Get/Set a comma separated string _
_The display file status. (eg. NotFoundNotInIndex, Ok).), Description (Gets or sets the iptc:Caption-Abstract or _
_The longitude value), LocationAltitude (Location altitude in meters. How how difference there is relative to WGS84 _
_The image format as enum item), CollectionPaths (To show location of files with the same Filename without extension _
_The collection paths, relative to the database (subPath style)), SidecarExtensions (Database string to store sidecar _
_paths), SidecarExtensionsList (List of Sidecar files), Aperture (Gets or sets the aperture. (round to 5 decimals) _
_The iso speed.), Software (Edited with this program), MakeModel (Camera Make, Model and Lens (saved pipe separated _
_Camera brand and type (incl. lens)), Make (Get the Make (Camera Brand) of the _makeModel), Model (Get the Model _
_(Camera Model) of the _makeModel), LensModel (Get the Lens info (from MakeModel)), MakeCameraSerial (Get the Serial _
_of the _makeModel), FocalLength (The Zoom of the camera (that is currently used)), Size (Size of the file in bytes _
_Currently Sony only), LastChanged (Fields that are changed in the last request), Artist (IPTC field for artist/creator), _
_Stored as comma separated string.), ImageClassificationModel (Name/version of the model that generated AI metadata.), _
_ImageClassificationGeneratedAt (Datetime when AI metadata was generated.), f (subPath filepath to file, split by _
_dot comma (;)), append (only for stings, add update to existing items), collections (StackCollections bool, default _
_ true), rotateClock (relative orientation -1 or 1) _
/api/notification/notificationGETGet recent notificationsUse dateTime 2022-04-16T17:33:10.323974Z to get the l...
/api/publishGETGet all publish profilesTo see the entire config check appSettings
/api/publish/createPOSTPublish
_Parameters: f (subPath filepath to file, split by dot comma (;)), itemName (itemName), publishProfileName (publishProfileName), _
_ force _
/api/publish/existGETTo give the user UI feedback when submitting the itemNameTrue is not to conti...
/api/publish-remote/createPOSTPublish generated zip to remote destination (FTP or LocalFileSystem)
_Parameters: itemName (itemName used in /api/publish/create), publishProfileName (publishProfileName used in /api/publish/create) _
/api/publish-remote/statusGETCheck if remote publishing is enabled and the publish profile is valid
/redirect/sub-path-relativeGETRedirect or view path to relative paths using the structure-config (see /api/...
/api/searchGETGets the list of search results (cached)
_Parameters: t (search query), p (page number), collections (to combine files with the same name before the extension) _
/api/search/relative-objectsGETGet relative paths in a search queryDoes not cover multiple pages (so it ends...
_Parameters: f (subPath), t (search query), p (pageNumber (search query)), collections (to combine files with the _
_ same name before the extension) _
/api/search/trashGETList of files with the tag: !delete! (TrashKeyword.TrashKeywordString)Caching...
/api/search/remove-cachePOSTClear the search cache to show the correct results
/api/suggestGETGets the list of search results (cached)
/api/suggest/allGETShow all items in the search suggest cache
/api/suggest/inflateGETTo fill the cache with the data (only if cache is not already filled)
/api/synchronizePOSTFaster API to Check if directory is changed (not recursive)
/api/thumbnail/small/{fileHash}GETGet thumbnail for index pages (300 px or 150px or 1000px (based on what's the...
/api/thumbnail/list-sizes/{f}GETGet overview of what exists by name
/api/thumbnail/{f}GETGet thumbnail with fallback to original source image.Return source image when...
_Parameters: f (one single fileHash (NOT path)), filePath (fallback FilePath), isSingleItem (true = load original), _
_ json (text as output), extraLarge (give preference to extraLarge over large image) _
/api/thumbnail/zoom/{f}@{z}GETGet zoomed in image by fileHash.At the moment this is the source image
/api/thumbnail-generationPOSTCreate thumbnails for a folder in the background
/api/trash/move-to-trashPOSTMove a file to the trash
/api/trash/detect-to-use-system-trashGETIs the system trash supportedUsed in End2End tests to enable or disable the t...
/api/uploadPOSTUpload to specific folder (does not check if already has been imported)Use th...
/api/upload-sidecarPOSTUpload sidecar file to specific folder (does not check if already has been im...
/api/cloud-import/statusGETGet current Cloud Import status for all providers
/api/cloud-import/status/{providerId}GETGet status for a specific provider
/api/cloud-import/syncPOSTTrigger a manual sync for all enabled providers
/api/cloud-import/sync/{providerId}POSTTrigger a manual sync for a specific provider
/api/cloud-import/last-resultsGETGet the last sync results for all providers
/api/cloud-import/last-result/{providerId}GETGet the last sync result for a specific provider