user_login
Authenticate with a Zabbix username and password to obtain a session token for subsequent API calls; optionally return full user details.
Instructions
Authenticate a user and obtain a session ID (auth token). The returned token is used for subsequent API calls. If userData is true, the response also includes the full user object (userid, username, role, groups, etc.). This is the standard way to start an API session when not using persistent API tokens.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| server | No | Target Zabbix server. Available: default. Defaults to 'default' if omitted. | |
| password | Yes | Password for the user. | |
| raw_json | No | Strips the security disclaimer preamble from the response so it is pure JSON. Default: false. Requires the bearer token to have 'allow_raw_json' explicitly enabled by an operator in the admin portal - tokens without that policy receive a PolicyError instead. WARNING: setting true bypasses the prompt-injection mitigation marker that wraps untrusted Zabbix data (host names, item descriptions, problem text). LLM clients (Claude, GPT, Cursor, ...) should leave this false; only programmatic non-LLM consumers (Python scripts, n8n workflows that json.loads the result) should set true. | |
| userData | No | Return additional user info (userid, name, role, etc.) alongside the session token. | |
| username | Yes | Zabbix username to authenticate. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |