AIsuru Docs
AIsuru API
AIsuru API
  • Introduzione
  • Engine
    • ChatLogs
    • ContextVars
    • CorrelationPairs
    • CustomDictionary
    • Dialog
    • EventLogs
    • ExpertReferences
    • Functions
    • Intents
    • LocalizationKeys
    • Media
    • Memories
    • NLP
    • People
    • Search
    • Session
    • Stats
    • Topics
    • UnansweredQuestions
    • User
    • WebHooks
    • Models
  • Backend
    • ActionLog
    • Analysis
    • Asset
    • Badge
    • CompletionConfig
    • ConsumptionLog
    • ImportExport
    • Integration
    • Invitation
    • Memori
    • MemoriList
    • Notification
    • Process
    • Tenant
    • User
    • Models
Powered by GitBook
On this page
  1. Backend

ConsumptionLog

PreviousCompletionConfigNextImportExport

Gets the Consumption Log objects for a specific Tenant in a specific date interval.

get

Access to Consumption Log objects not belonging to the current logged in user is granted only to administrative users.

Path parameters
strTokenstringRequired

The login token

tenantNamestringRequired

The name of the Tenant

strTypestringRequired

Type of consumption (i.e. granularity), it may either be Daily or Monthly

strDateFromstringOptional

The optional begin of the date interval, in UTC time, in the format yyyyMMdd

strDateTostringOptional

The optional end of the date interval, in UTC time, in the format yyyyMMdd

Responses
200
Success
get
GET /api/v2/TenantConsumptionLogs/{strToken}/{tenantName}/{strType}/{strDateFrom}/{strDateTo} HTTP/1.1
Host: 
Accept: */*
200

Success

{
  "consumptionLogs": [
    {
      "consumptionLogID": "text",
      "from": "2025-06-07T14:04:09.597Z",
      "to": "2025-06-07T14:04:09.597Z",
      "type": "text",
      "userID": "text",
      "userName": "text",
      "tenantName": "text",
      "memoriID": "text",
      "memoriName": "text",
      "totalSessions": 1,
      "validSessions": 1,
      "completions": 1,
      "deepThoughtValidSessions": 1,
      "deepThoughtCompletions": 1,
      "importedSize": 1,
      "nonChargeableCompletions": 1,
      "nonChargeableDeepThoughtCompletions": 1,
      "nonChargeableImportedSize": 1,
      "promptTokens": {
        "ANY_ADDITIONAL_PROPERTY": "text"
      },
      "completionTokens": {
        "ANY_ADDITIONAL_PROPERTY": "text"
      }
    }
  ],
  "requestID": 1,
  "requestDateTime": "2025-06-07T14:04:09.597Z",
  "resultCode": 1,
  "resultMessage": "text"
}

Gets the Consumption Log objects for a specific User in a specific date interval.

get

Access to Consumption Log objects not belonging to the current logged in user is granted only to administrative users.

Path parameters
strTokenstringRequired

The login token

strUserIDstringRequired

The ID of the User object

strTypestringRequired

Type of consumption (i.e. granularity), it may either be Daily or Monthly

strDateFromstringOptional

The optional begin of the date interval, in UTC time, in the format yyyyMMdd

strDateTostringOptional

The optional end of the date interval, in UTC time, in the format yyyyMMdd

Responses
200
Success
get
GET /api/v2/UserConsumptionLogs/{strToken}/{strUserID}/{strType}/{strDateFrom}/{strDateTo} HTTP/1.1
Host: 
Accept: */*
200

Success

{
  "consumptionLogs": [
    {
      "consumptionLogID": "text",
      "from": "2025-06-07T14:04:09.597Z",
      "to": "2025-06-07T14:04:09.597Z",
      "type": "text",
      "userID": "text",
      "userName": "text",
      "tenantName": "text",
      "memoriID": "text",
      "memoriName": "text",
      "totalSessions": 1,
      "validSessions": 1,
      "completions": 1,
      "deepThoughtValidSessions": 1,
      "deepThoughtCompletions": 1,
      "importedSize": 1,
      "nonChargeableCompletions": 1,
      "nonChargeableDeepThoughtCompletions": 1,
      "nonChargeableImportedSize": 1,
      "promptTokens": {
        "ANY_ADDITIONAL_PROPERTY": "text"
      },
      "completionTokens": {
        "ANY_ADDITIONAL_PROPERTY": "text"
      }
    }
  ],
  "requestID": 1,
  "requestDateTime": "2025-06-07T14:04:09.597Z",
  "resultCode": 1,
  "resultMessage": "text"
}

Gets the Consumption Log objects for a specific Memori in a specific date interval.

get

Access to Consumption Log objects not belonging to the current logged in user is granted only to administrative users.

Path parameters
strTokenstringRequired

The login token

strMemoriIDstringRequired

The ID of the Memori object

strTypestringRequired

Type of consumption (i.e. granularity), it may either be Daily or Monthly

strDateFromstringOptional

The optional begin of the date interval, in UTC time, in the format yyyyMMdd

strDateTostringOptional

The optional end of the date interval, in UTC time, in the format yyyyMMdd

Responses
200
Success
get
GET /api/v2/MemoriConsumptionLogs/{strToken}/{strMemoriID}/{strType}/{strDateFrom}/{strDateTo} HTTP/1.1
Host: 
Accept: */*
200

Success

{
  "consumptionLogs": [
    {
      "consumptionLogID": "text",
      "from": "2025-06-07T14:04:09.597Z",
      "to": "2025-06-07T14:04:09.597Z",
      "type": "text",
      "userID": "text",
      "userName": "text",
      "tenantName": "text",
      "memoriID": "text",
      "memoriName": "text",
      "totalSessions": 1,
      "validSessions": 1,
      "completions": 1,
      "deepThoughtValidSessions": 1,
      "deepThoughtCompletions": 1,
      "importedSize": 1,
      "nonChargeableCompletions": 1,
      "nonChargeableDeepThoughtCompletions": 1,
      "nonChargeableImportedSize": 1,
      "promptTokens": {
        "ANY_ADDITIONAL_PROPERTY": "text"
      },
      "completionTokens": {
        "ANY_ADDITIONAL_PROPERTY": "text"
      }
    }
  ],
  "requestID": 1,
  "requestDateTime": "2025-06-07T14:04:09.597Z",
  "resultCode": 1,
  "resultMessage": "text"
}
  • GETGets the Consumption Log objects for a specific Tenant in a specific date interval.
  • GETGets the Consumption Log objects for a specific User in a specific date interval.
  • GETGets the Consumption Log objects for a specific Memori in a specific date interval.