API reference
See the ZenML API reference.
Last updated
See the ZenML API reference.
Last updated
The ZenML server is a FastAPI application, therefore the OpenAPI-compliant docs are available at /docs
or /redoc
of your ZenML server:
In the local case (i.e. using zenml login --local
, the docs are available on http://127.0.0.1:8237/docs
)
If you are using the ZenML server API using the above pages, it is enough to be logged in to your ZenML account in the same browser session. However, in order to do this programmatically, the following steps need to be followed:
Create a service account:
This will print out the <ZENML_API_KEY>
, you can use in the next command.
Get an access token by using the /api/v1/login
endpoint:
This will return a response like this:
Use the access token to make subsequent curl commands: