The new API v1 requires a header of:
'Authorization: Bearer <key>'
With space inbetween "Bearer" and your unique key.
I'm trying to convert our Zabbix templates to support the new API but it's having issues with the space. I can get this working in postman so I know the issue lies with Zabbix.
I back the response:
{"errors":["Invalid API key"]}
Does anyone know anyway around this without raising a support ticket with Zabbix? I've tried using "%20" to escape a space but no luck.