403 Forbidden Error while calling Jupyter notebook Rest API

I am trying to get kernel state from my local Jupyter Notebook. Using this command - jupyter notebook list, I get all the running notebooks with token you can see that in attachment. While calling this API URL localhost:8000/api/sessions with the given token I get 403 forbidden error. I am getting this error. {“message”: “Forbidden”, “reason”: null}.

Re-post of: How to get kernel state from running local jupyter notebook? - #5 by sohanur_shanto