How to set up Filerobot API Secret Key

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 WidgetImage 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:

Photo alt \#responsive

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:

Screenshot_2021-09-30_at_16.55.41.png

You can use the API Secret Key in order to Upload, List and Download assets from the Filerobot store by using the Filerobot APIs.

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 example:

curl --request GET \ --url 'https://api.filerobot.com/fdocs/v4/files?' \ --header 'X-Filerobot-Key: 19692813e7364ef8ad6a6504d50a12ca' \ --header 'Content-Type: application/json'
Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.