Authentication against the Filerobot API is done with an API Secret Key available under Settings > Developer > API Secret Keys
You can create additional API Secret Keys and define permissions for the key through the Create new key button.
Each API Secret Key has associated permissions:
|FILE_META_CHANGE||Create file metadata|
|DIR_META_CHANGE||Create directory metadata|
|CONFIG_CHANGE||Change storage container configuration|
|CONFIG_LIST||List storage container configuration|
The key is passed as part the
X-Filerobot-Key HTTP header in every API request, for example:
Cupy-paste the cURL request in your Terminal or click on the API Explorer tab to see the API in action.
As their name states, API Secret Keys should be kept secret and used for server-to-server communication to manage files in Filerobot. API Secret Keys should not be used for the Filerobot plugins: Uploader Widget, Image Editor and 360° Spin plugin. These should be used with API Access Keys or API Access Keys Templates as described in the Plugins & Widgets section.