Skip to main content
GET
/
botMetric
/
logs
Get logs
curl --request GET \
  --url https://api.closebot.com/botMetric/logs \
  --header 'X-CB-KEY: <api-key>'
[
  {
    "timestamp": "2023-11-07T05:31:56Z",
    "botId": "<string>",
    "messageId": "<string>",
    "sourceId": "<string>",
    "leadId": "<string>",
    "actionId": "<string>",
    "severity": 123,
    "message": "<string>",
    "prompt": [
      {
        "kind": "<string>",
        "body": "<string>"
      }
    ],
    "response": "<string>",
    "promptTokens": 123,
    "completionTokens": 123,
    "provider": "<string>",
    "model": "<string>",
    "purpose": "<string>",
    "body": "<string>"
  }
]

Authorizations

X-CB-KEY
string
header
required

CloseBot API Key Authorization

Query Parameters

botId
string

Optional bot ID.

messageId
string

Optional message ID.

sourceId
string

Optional source ID.

leadId
string

Optional lead ID.

actionId
string

Optional action ID.

start
string<date-time>

Optional start date.

end
string<date-time>

Optional end date.

maxCount
integer<int32>

Optional maximum number of logs to return.

Response

Success

timestamp
string<date-time>
botId
string | null
messageId
string | null
sourceId
string | null
leadId
string | null
actionId
string | null
severity
integer<int32> | null
message
string | null
prompt
object[] | null
response
string | null
promptTokens
integer<int32> | null
completionTokens
integer<int32> | null
provider
string | null
model
string | null
purpose
string | null
body
string | null