Canary Speech

EndAssessment

POST - /v3/api/assessment/end
Required Permissions:
  • scope:api

Description

Uploads assessment data for storage and processing. Upon uploading of assessment data, vocal processing will begin (if applicable).

Responses provided in body will depend on survey. Please consult your customer documentation under the Sample Responses section for a survey-specific example of this request body.

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

Body Parameters

NameTypeDescription
* assessmentIduuid
The ID of the assessment
responseData
array<object>
The static responses associated with this assessment. NOTE Contents may vary. Do not blindly use example below, consult survey documentation.

Successful Response

A successful response

Field NameTypeDescription
messagestring
"OK"

Code Example

Models

responseData.[]

NameTypeDescription
timestampdate-time
The ISO-8601 timestamp of when this response was recorded.
codestring
The code of the response, used to identify what part of the survey it is used for e.g. "free_speech", "GAD7_1", etc...
typestring
Indicates what type of data is in the response. See "Responses and Scores" section of this documentation for more information.
dataobject
An object containing the response data. Contents may vary, consult survey documentation.