Skip to content
Product Docs

Get License Info

admin.get_license_info(AdminGetLicenseInfoParams**kwargs) -> AdminGetLicenseInfoResponse
GET/api/v1/admin/license/info

Get License Info

ParametersExpand Collapse
include_scopes: Optional[bool]

Whether to include scopes in the response

ReturnsExpand Collapse
class AdminGetLicenseInfoResponse:
expires_at: datetime

License expiration date

formatdate-time
status: str

License validation status

message: Optional[str]

License message

scopes: Optional[List[str]]

License scopes

Get License Info

import os
from llama_cloud_admin import LlamaCloudAdmin

client = LlamaCloudAdmin(
    api_key=os.environ.get("LLAMA_CLOUD_API_KEY"),  # This is the default and can be omitted
)
response = client.admin.get_license_info()
print(response.expires_at)
{
  "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"
  ]
}