curl --request POST \
--url https://api.streamkap.com/logs/count \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"source_ids": [],
"destination_ids": [],
"transform_ids": []
}
'{
"count": 123,
"since": "<string>",
"filters_applied": {
"source_ids": [],
"destination_ids": [],
"transform_ids": [],
"log_level": "<string>"
}
}Get count of new logs since a specific timestamp.
Lightweight endpoint for real-time polling. Recommended polling interval: 5 seconds. Use this to show a “N new logs” badge in the UI.
curl --request POST \
--url https://api.streamkap.com/logs/count \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"source_ids": [],
"destination_ids": [],
"transform_ids": []
}
'{
"count": 123,
"since": "<string>",
"filters_applied": {
"source_ids": [],
"destination_ids": [],
"transform_ids": [],
"log_level": "<string>"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Count logs after this timestamp (ISO 8601)
Comma-separated log levels
Was this page helpful?