API Secret Keys are the easiest way to get started with the Filerobot API.
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, integrated in a front-end application: Filerobot Media Asset Widget (FMAW), Uploader Widget, Image Editor and 360° Spin plugin.
Create API Secret Key:
You can create API Secret Keys and define permissions for them through the Create new key button.
In the Filerobot Admin panel navigate to Developers > API Secret Keys and click on the Create new key:
Give a description and select the Permissions that the API Secret Key will have. You can choose between multiple permissions as described in the Filerobot documentation.
Once the API Secret Key is saved, you can review/edit its Permissions, rename or revoke it from the list:
How to make your first API call?
The key is passed as part the
X-Filerobot-Key HTTP header in every API request, for example:
Copy-paste the cURL request in your Terminal or click on the API Explorer tab to see the API in action.
curl --request GET \ --url 'https://api.filerobot.com/fdocs/v4/files?' \ --header 'X-Filerobot-Key: 19692813e7364ef8ad6a6504d50a12ca' \ --header 'Content-Type: application/json'