Get Chatbot Execution Logs

Retrieve chatbot execution logs for your project.

Retrieve chatbot execution logs for your project. Shows what actions and flows the chatbot executed during conversations. Optionally filter by session or date range.

Authorization

Your API token must have one of the following:

  • Access Role: Owner, Editor, Viewer, or Trainer (broad access), OR
  • Fine-grained Permission: Debugging module with Read enabled
POST
/getChatbotExecutionLogs

Authorization

bearerToken

AuthorizationBearer <token>

API token for YourGPT Public APIs. Create tokens in Settings > API Tokens in your YourGPT dashboard.

In: header

Request Body

application/json

project_uid*string

The project UID.

limit?integer

Results per page.

Range1 <= value <= 100
page?integer

Page number.

Range1 <= value
orderBy?string

Sort order.

Value in"ASC" | "DESC"
from?string

Start date filter (YYYY-MM-DD).

to?string

End date filter (YYYY-MM-DD).

session_uid?string

Filter logs by session UID.

Response Body

application/json

application/json

application/json

curl -X POST "https://api.yourgpt.ai/chatbot/v1/getChatbotExecutionLogs" \  -H "Content-Type: application/json" \  -d '{    "project_uid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"  }'
{
  "type": "RXSUCCESS",
  "message": "Execution logs fetched successfully",
  "data": [
    {}
  ]
}
{
  "type": "RXERROR",
  "message": "string"
}
{
  "type": "RXERROR",
  "message": "string"
}