Skip to navigation

Submit a colour Assessment

Measures the colour of up to four regions in each of up to eight evidence images. A region is [left, top, right, bottom] in pixels, at least 16 on each side and inside its image. Every limit is checked before anything is written, so a refusal is 400 INVALID_REQUEST naming the image or region and records nothing. The answer is 202 with the assessment queued and its recorded request, which binds each evidence id to the digest of the bytes it will measure. Poll GET /v1/digitisation/assessments/{assessment_id} for the result. Send an Idempotency-Key: it is required, and a retry with the same key and the same request answers the first response, byte for byte, with Idempotency-Replayed: true. Requires the digitisation.write scope, which your account operator provisions; served only where digitisation is enabled for your environment.

Authentication

X-API-Keystring

API key for one environment of your account. Keep server-side; never expose in browser clients.

Headers

Idempotency-Keystring or nullOptional

Request

Queue an assessment: images and regions are ordered, and the result keeps it.

imageslist of objectsRequired
subjectobject or nullOptional

The product the images show, as the caller names it. Every field is optional and descriptive: it is what a reviewer reads, never what is measured. A stage of a candidate defaults its external_ref and shade_name from it.

Response

The assessment, queued; a replay under the same Idempotency-Key answers it again with Idempotency-Replayed: true

attemptsinteger>=0
colour_contract_versioninteger
created_atdatetime
failure_codeenum or null
Allowed values:
finished_atdatetime or null
idstring
outputobject or null

The canonical result; result_sha256 is its digest.

output_sha256string or nullformat: "^[0-9a-f]{64}$"
requestobject

The canonical request; request_sha256 is its digest.

request_sha256stringformat: "^[0-9a-f]{64}$"
started_atdatetime or null
statusenum
Allowed values:

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
409
Conflict Error
503
Service Unavailable Error