About API versioning
The Endor Labs REST API uses explicit versioning. Endor Labs ships breaking changes only in a new API version. New endpoints, fields, and enum values are backwards compatible within the same version. For every new API version that Endor Labs releases, the URL specifies the major version. For example,https://api.endorlabs.com/v1/namespaces/my_namespace/projects uses version 1 of the endpoint, per the v1 path segment.
Each resources have their versions specified in the field meta.version. For example the following resource has version 1 per the v1 value for the field meta.version.
endorctl command-line tool to access the API, new endpoints, fields, or enum values are not available if your version of endorctl is older than the API version. Make sure to keep endorctl up-to-date to access the latest features and endpoints. For more information, see Install and configure endorctl.
Check latest API version using curl
To check the latest API version using curl, run the following command:Example request using curl
Check latest endorctl version
To get both the current and the latest version ofendorctl, run the following command:
endorctl version is available.