Skip to content
Product Docs

Get License Info

client.Admin.GetLicenseInfo(ctx, query) (*AdminGetLicenseInfoResponse, error)
GET/api/v1/admin/license/info

Get License Info

ParametersExpand Collapse
query AdminGetLicenseInfoParams
IncludeScopes param.Field[bool]Optional

Whether to include scopes in the response

ReturnsExpand Collapse
type AdminGetLicenseInfoResponse struct{…}
ExpiresAt Time

License expiration date

formatdate-time
Status string

License validation status

Message stringOptional

License message

Scopes []stringOptional

License scopes

Get License Info

package main

import (
  "context"
  "fmt"

  "github.com/run-llama/llamacloud-admin-go"
  "github.com/run-llama/llamacloud-admin-go/option"
)

func main() {
  client := llamacloudadmin.NewClient(
    option.WithAPIKey("My API Key"),
  )
  response, err := client.Admin.GetLicenseInfo(context.TODO(), llamacloudadmin.AdminGetLicenseInfoParams{

  })
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", response.ExpiresAt)
}
{
  "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"
  ]
}