Canary Speech

ListScores

GET - /v3/api/list-scores
Required Permissions:
  • scope:api

Description

Either the session ID or assessment ID must be provided.

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...
Content-Type
The content type for this request.
application/json

Query Parameters

NameTypeDescription
sessionIdstring
The ID of the session to query.
assessmentIdstring
The ID of the assessment to query.
includeErrorsstring
Whether to return scores that have errored out, use for getting information about assessment or scoring failures. Can either be false or true, defaults to false.

Successful Response

A successful response

Field NameTypeDescription
scores
array<object>
A list of score objects for the requested assessment. See below to find more details.

Code Example

Models

scores.[]

NameTypeDescription
codestring
The code of the score. Use this to identify which score this is e.g. Anxiety_Overall or Depression_Overall.
timestampdate-time
The ISO-8601 timestamp of when the score was calculated.
sourcestring
Note: This value is not recommended for general client use. Normally the score's code value will be more useful.
This value identifies what produced the score, whether a model (Depression, Anxiety, EnergyScore, ...) or a function (sum, count, composite, ...).
typeunknown
A value indicating where the score originated.
dataobject

scores.[].data

NameTypeDescription
resultunknown
An object containing the score's data. Contents may vary, consult survey documentation.
errorobject
An object containing any error information if present. Will only be present if includeErrors is set to true and an error occurred in scoring.

scores.[].data.error

An object containing any error information if present. Will only be present if includeErrors is set to true and an error occurred in scoring.

NameTypeDescription
statusstring
Error status code. More info here.
titlestring
Basic summary of error
detailstring
A description of what went wrong.
innerErrorsarray<object>
An array of errors related to this error.