Canary Speech

BeginAssessment

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

Description

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

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
subjectIduuid
The ID of the subject who was administered this assessment. Required if authorization doesn't include a specified subjectId.
surveyCodestring
The code of the survey associated with this assessment.
surveyVersionstring
The version of the survey associated with this assessment. If omitted, defaults to the latest version.
sessionIduuid
The session ID of the assessment.
integrationsobject
An optional set of integration data.
extraDataobject
An optional set of additional metadata.
generateUploadUrlsboolean
Whether to generate pre-signed upload URLs for this assessment. Defaults to false.

Successful Response

A successful response

Field NameTypeDescription
iduuid
The ID of the created assessment.
recordingUploadUrlsobject
A map object consisting of question ID keys that map to pre-signed URLs. If surveyCode was provided, each URL will be keyed by its corresponding question ID. Otherwise, this object will contain a single upload URL under the "url" field.

Code Example