Canary Speech

QuerySubjectScores

GET - /data/query-subject-scores/:subjectId
Required Permissions:
  • scope:api
  • scope:app

Description

Query for historical score data for a given subject within a given date window.

Headers

Header KeyDescriptionExample
Authorization
The Authorization header for this endpoint. The value must be the token from the /v3/auth/tokens/get endpoint and given using the Bearer pattern.
Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdW...

Path Parameters

NameTypeDescription
subjectIdstring
The UUID of the subject

Query Parameters

NameTypeDescription
surveyIdstring
The UUID of the survey to query.
startstring
The start of the datetime window to query. (ISO-8601)
endstring
The end of the datetime window to query. (ISO-8601)

Successful Response

A successful response

Field NameTypeDescription
scores
array<object>
The scores matched by the query, sorted by date ascending. Limited to 100 returned scores per query.

Code Example