Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. Web API Authentication Question: Bearer Token vs. Session-Id

Web API Authentication Question: Bearer Token vs. Session-Id

Scheduled Pinned Locked Moved Support
2 Posts 2 Posters 18.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A
    A
    Augusto
    wrote on last edited by
    #1

    I'm facing an issue with the Web API authentication on my setup (Ubuntu server with Tomcat 9).
    I can authenticate and make API calls successfully when using a temporary session-id
    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)
    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?


    Selected June 17 2025 12:51:50.png

    Selected June 17 2025 12:52:06.png

    1 Reply Last reply
    0
    • F
      F
      Filipp Sudanov
      wrote on last edited by
      #2

      Tokens generated from Management Console are intended for different things - currently I think only for publishing network maps.
      So yes, current way it to get temporarily session id.

      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.

      1 Reply Last reply
      0

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      Powered by NodeBB Contributors
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups