How to create API keys for F-Secure Radar API authentication

This discussion has a more recent version.
Customer_Care Posts: 548 F-Secure Employee


How to create API keys for F-Secure Radar API authentication?


F-Secure Radar API uses API keys for authentication.

An API key consists of an access key (for example, PA3IAKNANLM9) and a secret key (for example, UO9mkDEHFGa1Vau6o#[email protected]!qV). Note that the sample requests in this documentation show access and secret keys enclosed in braces, which must be omitted when you submit requests.

Follow the steps below to create an API key:

  1. Log in to F-Secure Radar.
  2. Select My profile.
  3. Scroll down to the Configure API Keys section.
  4. Add a new API key and store it safely.
    • Apply the created API key to the HTTP header of every API request that requires authentication.
  5. Run a simple request to check the authentication:

curl -X GET
-H 'Content-Type: application/json'
-H 'ApiAccessKey: {ApiAccessKey}'
-H 'ApiSecretKey: {ApiSecretKey}'

If authentication was successful, you will get a HTTP response with status code 200 Authenticated.

Single quote works in Linux environment. When using CURL in Windows Operating System, recommended to use double quotes masked with backslash (\). Backslash is used to escape the inner quotes.

curl -X POST -H "Content-Type: application/json" -H "ApiAccessKey: {ApiAccessKey}" -H "ApiSecretKey: {ApiSecretKey}" -d "{\"AssetSourceType\": \"Custom\"}"

    Article no: 000018219