GET
/
v3
/
api_keys
/
{keyId}
const fetch = require('node-fetch');

let url = 'https://api.coralogix.com/mgmt/openapi/v3/api_keys/%7BkeyId%7D';

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": {
    "name": "my_api_key",
    "owner": {
      "userId": "<string>",
      "teamId": 123,
      "organisationId": "<string>"
    },
    "active": true,
    "hashed": true,
    "keyPermissions": {
      "presets": [
        {
          "name": "my_preset",
          "permissions": [
            "read_logs"
          ]
        }
      ],
      "permissions": [
        "<string>"
      ]
    },
    "value": "<string>",
    "id": "<string>"
  }
}

Authorizations

Authorization
string
header
required

API key authentication

Path Parameters

keyId
string
required

Response

200
application/json

A successful response.

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