Skip to content
Product Docs

Get License Info

AdminGetLicenseInfoResponse admin().getLicenseInfo(AdminGetLicenseInfoParamsparams = AdminGetLicenseInfoParams.none(), RequestOptionsrequestOptions = RequestOptions.none())
GET/api/v1/admin/license/info

Get License Info

ParametersExpand Collapse
AdminGetLicenseInfoParams params
Optional<Boolean> includeScopes

Whether to include scopes in the response

ReturnsExpand Collapse
class AdminGetLicenseInfoResponse:
LocalDateTime expiresAt

License expiration date

formatdate-time
String status

License validation status

Optional<String> message

License message

Optional<List<String>> scopes

License scopes

Get License Info

package ai.llamaindex.llamacloudadmin.example;

import ai.llamaindex.llamacloudadmin.client.LlamaCloudAdminClient;
import ai.llamaindex.llamacloudadmin.client.okhttp.LlamaCloudAdminOkHttpClient;
import ai.llamaindex.llamacloudadmin.models.admin.AdminGetLicenseInfoParams;
import ai.llamaindex.llamacloudadmin.models.admin.AdminGetLicenseInfoResponse;

public final class Main {
    private Main() {}

    public static void main(String[] args) {
        LlamaCloudAdminClient client = LlamaCloudAdminOkHttpClient.fromEnv();

        AdminGetLicenseInfoResponse response = client.admin().getLicenseInfo();
    }
}
{
  "expires_at": "2019-12-27T18:11:19.117Z",
  "status": "status",
  "message": "message",
  "scopes": [
    "string"
  ]
}
Returns Examples
{
  "expires_at": "2019-12-27T18:11:19.117Z",
  "status": "status",
  "message": "message",
  "scopes": [
    "string"
  ]
}