{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/coralogix/json-schema/coralogix-get-team-members-api-keys-response-schema.json",
  "title": "Get Team Members API Keys Response",
  "description": "This data structure is the response obtained when retrieving team members API keys.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/coralogix-api-keys-admin-service-api-openapi.yml#/components/schemas/GetTeamMembersApiKeysResponse",
  "type": "object",
  "properties": {
    "keys": {
      "minItems": 0,
      "type": "array",
      "items": {
        "$ref": "#/$defs/ApiKeySummary"
      },
      "description": "The keys."
    }
  },
  "$defs": {
    "ApiKeyOwner": {
      "title": "API Key Owner",
      "type": "object",
      "properties": {
        "user": {
          "$ref": "#/$defs/ApiKeyUserOwner"
        }
      }
    },
    "ApiKeySummary": {
      "title": "API Key Summary",
      "type": "object",
      "properties": {
        "apiKey": {
          "$ref": "#/$defs/v3.ApiKey"
        },
        "permissions": {
          "minItems": 0,
          "type": "array",
          "items": {
            "minLength": 0,
            "type": "string",
            "description": "List of permissions."
          },
          "description": "List of permissions."
        },
        "presets": {
          "minItems": 0,
          "type": "array",
          "items": {
            "$ref": "#/$defs/PermissionsPreset"
          },
          "description": "List of permission presets."
        }
      }
    },
    "ApiKeyUserOwner": {
      "title": "API Key User Owner",
      "type": "object",
      "properties": {
        "userEmail": {
          "minLength": 0,
          "type": "string",
          "description": "The user email."
        },
        "userId": {
          "minLength": 0,
          "type": "string",
          "description": "The user id."
        }
      }
    },
    "PermissionsPreset": {
      "title": "Permissions Preset",
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "description": "Unique identifier.",
          "format": "int32"
        },
        "name": {
          "minLength": 0,
          "type": "string",
          "description": "Display name."
        },
        "permissions": {
          "minItems": 0,
          "type": "array",
          "items": {
            "minLength": 0,
            "type": "string",
            "description": "List of permissions."
          },
          "description": "List of permissions."
        }
      }
    },
    "v3.ApiKey": {
      "title": "API Key",
      "type": "object",
      "properties": {
        "createdAt": {
          "description": "The timestamp when the API key was created.",
          "format": "date-time",
          "minLength": 0,
          "type": "string",
          "x-coralogix-presence": true
        },
        "id": {
          "minLength": 0,
          "type": "string",
          "description": "Unique identifier."
        },
        "isActive": {
          "type": "boolean",
          "description": "Whether this resource is active."
        },
        "keyName": {
          "minLength": 0,
          "type": "string",
          "description": "The key name."
        },
        "lastActivated": {
          "description": "The timestamp when the API key was last activated.",
          "format": "date-time",
          "minLength": 0,
          "type": "string",
          "x-coralogix-presence": true
        },
        "owner": {
          "$ref": "#/$defs/ApiKeyOwner"
        }
      }
    }
  }
}