Manually adding the project token
All projects have an authorization token that is used to access data assets, for example files and connections, and is used by platform APIs. This token is called the project access token. This project token must be set in notebooks so that project and platform functions can access the project resources.
When you load data to your notebook by clicking the Find and Add Data icon () and then clicking Insert to code under the data asset in the notebook sidebar, the project token is added for you if the generated code that is inserted uses project functions.
When you use API functions in your notebook that require the project token, for example, if you’re using
Wget to access data by using the HTTP, HTTPS or FTP protocols, or the
project-lib library, you must add the token to the notebook yourself.
To add a project token:
- Create an access token on the Settings page of your project. Only project admins can create access tokens. The access token can have viewer or editor access permissions. Only editors can inject the token into a notebook.
- Add the project token to a notebook by clicking More > Insert project token from the notebook action bar.
The admin can revoke the project access token at any time. An access token has no expiration date and is valid until it is revoked.