# apiKey

Sets the API key used to authenticate with the provider.

This parameter applies to AI-based classification (mmaitag).

Name:

  apiKey

Scope:

  action

Type:

  string

Default:

  none

Required?:

  no (either `apiKey` or apiKeyFile must be set)

Introduced:

  9.0.0

## Description

API key for the provider. This parameter takes precedence over apiKeyFile.

## Action usage

    action(type="mmaitag" apiKey="ABC")

## See also

- AI-based classification (mmaitag)

Support: rsyslog Assistant | GitHub Discussions | GitHub Issues: rsyslog source project

Contributing: Source & docs: rsyslog source project

© 2008–2025 Rainer Gerhards and others. Licensed under the Apache License 2.0.