#nabox /api/2.0/health doesn't return a token anymore

1 messages · Page 1 of 1 (latest)

crimson escarp
#

When looking at the Nabox documentation, we can see the following example:
https://nabox.org/documentation/rest_api/#__tabbed_1_2

However, when hitting the health endpoint with basic auth, I do not get any Token back from the API and thus I cannot use havrest/api endpoint to configure systems with automation.
I'm on Nabox 4.2.0 abd Harvest 26.02.0

elder pollen
#

@jovial loom

jovial loom
#

I’ll update the documentation. With 4.2 you can generate tokens in admin UI and use them directly as Bearer tokens without collecting a session ID first.

jovial loom
#

Documentation updated.

crimson escarp
#

Ah the tokens created in the UI do not expire

jovial loom
#

Yes, even though I think it’s acceptable to use the web ui once, you should be able to use initial admin/NetApp01 http auth to create an api key. Not sure the swagger has been updated with that though. Let me find the endpoint

crimson escarp
#

sounds good, thank you @jovial loom for the fast update! always appreciative for this nabox discord initiative!