Create New Token For User:- 403 Forbidden

I was trying to use the create new token api for my user admin through postman but its
giving this 403 error.

I know i can create it through UI by logging in but can’t i create the token through backend as well?

You can create a new token using the API, but you’ll always need at least one manually created token to make that call.

You can either create that first token through the UI, or you could define an external JupyterHub service and define your own api_token:

1 Like

This might require changes in jupyter_config.py is there a way i can use this in values.yaml.

Yes, you can set hub.services

1 Like

Yep thx it works

services:
    service-admin:
      name: service-admin
      apiToken: my_api_token
      admin: true
2 Likes