Skip to content
Streamkap
Esc
↑↓navigate↵open⌘Jpreview

Get Logs Count

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.

POST/logs/count
Authorization
AuthorizationBearer token · headerrequired
Query parameters
sincestringrequired

Count logs after this timestamp (ISO 8601)

log_levelstring

Comma-separated log levels

Request body
application/json
Any of:
LogCountRequestBody
source_idsstring[]
default: []
destination_idsstring[]
default: []
transform_idsstring[]
default: []
null
null
Responses
200

Successful Response

countintegerrequired
sincestringrequired
filters_appliedLogCountFiltersAppliedrequired

Filters that were applied to the count query.

Show properties
source_idsstring[]
default: []
destination_idsstring[]
default: []
transform_idsstring[]
default: []
log_levelstring | null
Show properties
Any of:
string
string
null
null
422

Validation Error

detailValidationError[]
Show properties
Array of ValidationError
locstring | integer[]required
Show properties
Array of string | integer
Any of:
string
string
integer
integer
msgstringrequired
typestringrequired
inputany
ctxobject
Request
curl -X POST 'https://api.streamkap.com/logs/count?since=string' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
  "source_ids": [],
  "destination_ids": [],
  "transform_ids": []
}'
Response
{
  "count": 0,
  "since": "string",
  "filters_applied": {
    "source_ids": [],
    "destination_ids": [],
    "transform_ids": [],
    "log_level": "string"
  }
}