Zylon APIs are under active development.
While no major breaking changes are anticipated, minor adjustments may occur.
API tokens generated by Zylon are currently limited to the super admin user, and therefore
must be generated through the CLI by the system administrator.In a future release, all users will be able to generate their own tokens through the web interface.
x-org: <org_slug>
as a header.
The default organization is called default
.
To verify the token is working you can run the CURL command, it will display information about the calling account.
Keep your token secret, it provides full access to your Zylon installation!.
Access the workspace API (High-level API)
In order to access the workspace API, simply call the endpoints under/api/v1/...
Follow the API docs about the workspace API in the sidebar of this page for
the full reference of each endpoint.
Low-level API (ZylonGPT)
To access the low-level API, the Workspace API must be used as a proxy for authentication purposes. The requests will be proxied under the url<your_zylon_domain.com>/api/gpt/...
For example, to generate a simple inference you can run the following command:
All request to the low-level API must be proxied through the workspace API,
so all paths must start with
/api/gpt/...
followed by the actual ZylonGPT endpoint.