Generate an API Key
As an Administrator user, you have the possibility of generating an API Key for your account. This can be used as an alternative to authenticating any REST API requests to MetaDefender Storage Security except for user and API Key operations. To generate one, follow these steps:
- In the MetaDefender Storage Security web interface, navigate to the Settings page and click on the Users tab
- Find your user in the list, click on the three dots to the right of the list entry and select "Generate an API Key"

- Click on "Generate", then click the copy button and store your API Key somewhere secure. Afterwards, click on "Save changes".

The API key can be copied only at this step and is saved only after clicking the save changes button. If an API key already exists, it will be updated.
API keys of a user are invalidated on a password change or reset operation.
The following operations are not allowed using an API key:
Generate an API key: GET /api/apikey/generate
Retrieve an API key: GET /api/apikey
Add an API key: POST /api/apikey
Update an API key: PUT /api/apikey
Delete an API key: DELETE /api/apikey/{id}
Enumerate active users: GET /api/user/active/{startIndex}/{count}
Create an user: POST /api/user/create
Update user role: PUT /api/user/role
Enumerate user requests: GET /api/user/requests
Remove a user: DELETE /api/user/{userId}
Update user: PUT /api/user
Validate password: POST /api/user/validation