curl --request GET \
--url https://api.botpress.cloud/v1/admin/bots/{id}/logs \
--header 'Authorization: Bearer <token>' \
--header 'x-workspace-id: <x-workspace-id>'{
"logs": [
{
"timestamp": "<string>",
"level": "<string>",
"message": "<string>",
"workflowId": "<string>",
"userId": "<string>",
"conversationId": "<string>"
}
],
"nextToken": "<string>"
}Get bot logs
curl --request GET \
--url https://api.botpress.cloud/v1/admin/bots/{id}/logs \
--header 'Authorization: Bearer <token>' \
--header 'x-workspace-id: <x-workspace-id>'{
"logs": [
{
"timestamp": "<string>",
"level": "<string>",
"message": "<string>",
"workflowId": "<string>",
"userId": "<string>",
"conversationId": "<string>"
}
],
"nextToken": "<string>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Workspace ID
Whether the client supports bots with multiple instances of the same integration. Set to "true" to receive integration instances keyed by their alias instead of their id. This header will be removed in the future, and the API will always return multiple instances keyed by alias.
Bot ID
Beginning of the time range to get logs from
End of the time range to get logs from
Filter by log level
Filter by user ID
Filter by workflow ID
Filter by conversation ID
Filter logs where the message contains this substring
Token to get the next page of logs
Was this page helpful?