Get session key from api/session

Hello,
I am on this version: "You're on version v0.44.0" "Built on 2022-08-04"

When I try to retrieve the session key, using the API (or by just typing the link on the browser "https://metabase.xyz.com/api/session/"), I am getting the following error:

"API endpoint does not exist."

Has the api url changed in this version?

thank you very much in advance.

Hi you cannot just directly paste that url on a browser, where are you saying if its a POST or GET? Try something like this:

curl -X POST
-H "Content-Type: application/json"
-d '{"username": "person@mail.com", "password": "fakepassword"}'
http://localhost:3000/api/session

I would also recommend you look into this Working with the Metabase API

Thank you very much for your reply, I've also checked the metabase API documentation. I'm getting the same error when trying the command through my terminal...
The url should also work directly on the browser like all the other API commands which I am using regularly. I've also tried the exact same url in a local metabase environment (however it's a previous version) and it works. Still looking into it. If I have any progress, I will post it here.

2 Likes