Connect with an API Token
Connect to the ZenML server using a temporary API token.
Last updated
Was this helpful?
Connect to the ZenML server using a temporary API token.
Last updated
Was this helpful?
API tokens provide a way to authenticate with the ZenML server for temporary automation tasks. These tokens are scoped to your user account and are valid for a maximum of 1 hour.
To generate a new API token:
Navigate to the server's Settings page in your ZenML dashboard (or the workspace's Settings page in your ZenML Pro dashboard)
Select "API Tokens" from the left sidebar
Click the "Create new token" button. Once generated, you'll see a dialog showing your new API token.
You can use the generated API tokens for programmatic access to the ZenML server's REST API. This is the quickest way to access the ZenML API programmatically when you're not using the ZenML CLI or Python client and you don't want to set up a service account.
Accessing the API with this method is thoroughly documented in the API reference section.