Skip to main content
POST
/
projects
/
{project_uid}
/
consensus
/
compute
cURL
curl --request POST \
  --url https://api.avala.ai/api/v1/projects/{project_uid}/consensus/compute/ \
  --header 'Content-Type: application/json' \
  --header 'X-Avala-Api-Key: <api-key>' \
  --data '{}'
{
  "uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "dataset_item_uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "task_name": "<string>",
  "score_type": "inter_annotator",
  "score": 123,
  "annotator_count": 123,
  "details": {},
  "created_at": "2023-11-07T05:31:56Z"
}

Authorizations

X-Avala-Api-Key
string
header
required

API key for authentication. Generate one in Mission Control Settings > Security & Identity.

Path Parameters

project_uid
string
required

Body

application/json

The body is of type object.

Response

201 - application/json
uid
string<uuid>
dataset_item_uid
string<uuid>
task_name
string

Task type this score applies to (e.g. 'box', 'classification').

Minimum string length: 1
score_type
enum<string>
Available options:
inter_annotator
score
number

Overall consensus score for this item (0.0-1.0).

annotator_count
integer

Number of distinct annotators compared.

details
Details · object

Score breakdown. For spatial: {mean_iou, matched_pairs, unmatched_count}. For classification: {agreement_ratio, majority_label, label_distribution}.

created_at
string<date-time>