<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Web API Authentication Question: Bearer Token vs. Session-Id]]></title><description><![CDATA[<p dir="auto">I'm facing an issue with the Web API authentication on my setup (Ubuntu server with Tomcat 9).<br />
I can authenticate and make API calls successfully when using a temporary session-id<br />
obtained via the login endpoint. However, when I try to use a permanent API token (generated in the Management Console), I consistently get I consistently get error: 46 (NXSL_CLASS_NOT_FOUND)<br />
My main question is: should authentication with permanent API tokens (Bearer Tokens) work as expected? Or for automation scripts, is the correct approach to always fetch a temporary Session-Id first?</p>
<hr />
<p dir="auto"><img src="/assets/uploads/files/smf/0000000006932-Selected_June_17_2025_12_51_50.png" alt="Selected June 17 2025 12:51:50.png" class="img-markdown  img-fluid" width="2094" height="92" /></p>
<p dir="auto"><img src="/assets/uploads/files/smf/0000000006934-Selected_June_17_2025_12_52_06.png" alt="Selected June 17 2025 12:52:06.png" class="img-markdown  img-fluid" width="360" height="182" /></p>
]]></description><link>https://forum.netxms.org/topic/8196/web-api-authentication-question-bearer-token-vs.-session-id</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 08:37:09 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/8196.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 17 Jun 2025 15:53:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Web API Authentication Question: Bearer Token vs. Session-Id on Wed, 25 Jun 2025 13:49:27 GMT]]></title><description><![CDATA[<p dir="auto">Tokens generated from Management Console are intended for different things - currently I think only for publishing network maps.<br />
So yes, current way it to get temporarily session id.</p>
<p dir="auto">UPD: actually permanent tokens are supported in the new API - the one that is server module and is currently under development. But not in the old one.</p>
]]></description><link>https://forum.netxms.org/post/34555</link><guid isPermaLink="true">https://forum.netxms.org/post/34555</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Wed, 25 Jun 2025 13:49:27 GMT</pubDate></item></channel></rss>