Connect to Neptune from your code#
Your currently used domain is encoded into the token itself. The place where you run your Neptune client library just needs to know how to resolve this domain.
To find and copy your API token:
- Log in to the web interface of your self-hosted installation of Neptune.
- In the bottom-left, open the user menu → Get your API token.
- Use the token with the Python client library. For help, see Set your API token.
Note
We strongly recommend using HTTPS (SSL certificates) when exposing Neptune. If you want to use HTTP or you have a self-signed certificate, exporting some environmental variables might be required for the client to work properly.