Manage API tokens
An API token authenticates a user or program to an application programming interface (API).
The Northflank API uses JSON Web Tokens (JWT) for authentication.
Tokens can be issued with different levels of authorization defining which resources in the API the user or application with the token can access and which operations can be performed on those resources, e.g. resource
Northflank API tokens apply across projects by default, but can be restricted to specific projects.
Create a token
You can create an API token from the tokens page in account settings.
If you are creating an API token for use on a user account, you can simply configure the required permissions for the individual token.
If you are creating an API token for use in a team account, you will need to select the appropriate API role to create the token from.
Use a token
To use your API token simply copy the token from either the list or the edit token page and pass it into your application.
You should use environment variables to inject sensitive secrets into your applications.
Your application will now have access to your Northflank projects and services as granted by the token.
Edit a token
You can edit an API token on your personal account by clicking through to the token from the list and updating the desired permissions and restrictions. You can also delete the token, which will remove access from any applications currently using it.