Skip to content

Get live respondent activity summary

GET
/respondent-activity/live-summary
curl --request GET \
--url https://app.surveyrock.com/api/v1/respondent-activity/live-summary \
--header 'Authorization: Bearer <token>'

Since-midnight and currently-active respondent counts for the authenticated account, broken down by country. Powers the “since midnight” live-visitor widget. Requires authentication but no specific scope.

Live respondent activity summary

Media typeapplication/json
object
success
boolean
data
object
since_midnight_total

Respondents who started a survey since local midnight

integer
currently_active

Respondents currently in an active session

integer
by_country
Array<object>
object
country_code
string
count
integer
meta

Standard response metadata

object
timestamp

Response timestamp in ISO 8601 format

string format: date-time
version

API version

string
requestId

Unique request identifier

string
Example
{
"success": true,
"meta": {
"version": "3.0"
}
}

Unauthorized - invalid or missing token

Media typeapplication/json

Standard error response format

object
success
boolean
error
object
code

Stable, snake_case domain code – see ApiErrorHandler::EXCEPTION_MAP and DomainException

string
message

Human-readable error message

string
suggestion

Imperative recovery hint for this domain code – see ApiErrorHandler::DOMAIN_CODE_SUGGESTIONS

string
retryable

Whether retrying the identical request might succeed without any change on the caller’s end

boolean
details

Additional, code-specific error details

object
meta

Standard response metadata

object
timestamp

Response timestamp in ISO 8601 format

string format: date-time
version

API version

string
requestId

Unique request identifier

string
Example
{
"success": false,
"error": {
"code": "survey_not_found"
},
"meta": {
"version": "3.0"
}
}