Skip to main content
node
const fetch = require('node-fetch');

let url = 'https://api.coralogix.com/mgmt/openapi/aaa/api-keys/v3/my_key_id';

let options = {method: 'GET', headers: {Authorization: 'Bearer <API_KEY>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error('error:' + err));
{
  "keyInfo": {
    "active": true,
    "hashed": true,
    "id": "<string>",
    "keyPermissions": {
      "permissions": [
        "<string>"
      ],
      "presets": [
        {
          "name": "my_preset",
          "permissions": [
            [
              "read_logs"
            ]
          ]
        }
      ]
    },
    "name": "my_api_key",
    "owner": {
      "userId": "<string>"
    },
    "value": "<string>"
  }
}

Authorizations

Authorization
string
header
required

API key authentication

Path Parameters

key_id
string
required
Example:

"my_key_id"

Response

This data structure is the response obtained when retrieving an API key.

keyInfo
object
required

This data structure represents the information associated with an API key.

I