cURL
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>" } ]
CloseBot API Key Authorization
Optional bot ID.
Optional message ID.
Optional source ID.
Optional lead ID.
Optional action ID.
Optional start date.
Optional end date.
Optional maximum number of logs to return.
Success
Show child attributes