{
  "security.get_api_key": {
    "documentation": {
      "url": "https://www.elastic.co/guide/en/elasticsearch/reference/8.19/security-api-get-api-key.html",
      "description": "Get API key information"
    },
    "stability": "stable",
    "visibility": "public",
    "headers": {
      "accept": [
        "application/json"
      ]
    },
    "url": {
      "paths": [
        {
          "path": "/_security/api_key",
          "methods": [
            "GET"
          ]
        }
      ]
    },
    "params": {
      "id": {
        "type": "string",
        "description": "API key id of the API key to be retrieved"
      },
      "name": {
        "type": "string",
        "description": "API key name of the API key to be retrieved"
      },
      "username": {
        "type": "string",
        "description": "user name of the user who created this API key to be retrieved"
      },
      "realm_name": {
        "type": "string",
        "description": "realm name of the user who created this API key to be retrieved"
      },
      "owner": {
        "type": "boolean",
        "default": false,
        "description": "flag to query API keys owned by the currently authenticated user"
      },
      "with_limited_by": {
        "type": "boolean",
        "default": false,
        "description": "flag to show the limited-by role descriptors of API Keys"
      },
      "with_profile_uid": {
        "type": "boolean",
        "default": false,
        "description": "flag to also retrieve the API Key's owner profile uid, if it exists"
      },
      "active_only": {
        "type": "boolean",
        "default": false,
        "description": "flag to limit response to only active (not invalidated or expired) API keys"
      }
    }
  }
}
