Skip to main content
POST
Python (SDK)

Authorizations

Authorization
string
header
required

Send Authorization: Bearer , using an MKA1 API key for automation or an OAuth API access token for a signed-in application. Use a dynamic security callback to refresh OAuth access tokens. Browser session-only operations still require their declared cookie.

Body

application/json

Create a labelling project from a question schema and an uploaded items file.

name
string
required

Project name, 1 to 200 characters.

Required string length: 1 - 200
questions
any[]
required

The question schema: a list of LabellingQuestion objects. Checked by the handler.

labels_per_item
required

How many labellers label each item, 1 or 2.

review_rule
enum<string>
required

Which items go to review: 'all', a 'sample' (needs labels_per_item 1) or 'disagreements' (needs labels_per_item 2).

Available options:
all,
sample,
disagreements
labeller_user_ids
string[]
required

User ids of the labellers, at most 100; each a person who is a member of the organization. Repeated ids are dropped. May be empty.

Maximum array length: 100
Required string length: 1 - 255
reviewer_user_ids
string[]
required

User ids of the reviewers, at most 100; each a person who is a member of the organization. Repeated ids are dropped. May be empty.

Maximum array length: 100
Required string length: 1 - 255
source
object
required

Where the project's items came from; other keys are kept as sent.

items_file_id
string
required

Id of a JSONL items file the caller uploaded with purpose 'user_data'.

Required string length: 1 - 255
instructions
string
default:""

Instructions shown to labellers and reviewers, at most 20000 characters.

Maximum string length: 20000

Response

201 - application/json

OK

A labelling project.

object
any
required
id
string
required

Project id.

name
string
required
instructions
string
required
status
enum<string>
required

Project status.

Available options:
active,
archived
source
object
required

Where the project's items came from; other keys are kept as sent.

labels_per_item
required

How many labellers label each item, 1 or 2.

review_rule
enum<string>
required

Which items go to review: 'all', a 'sample' (needs labels_per_item 1) or 'disagreements' (needs labels_per_item 2).

Available options:
all,
sample,
disagreements
labeller_user_ids
string[]
required
reviewer_user_ids
string[]
required
schema_version
integer
required

Version of the current question schema, from 1.

Required range: -9007199254740991 <= x <= 9007199254740991
questions
object[]
required

The current question schema.

counts
object
required

Number of the project's items in each state, and in all.

last_export
object | null
required

The last published export, or null.

my_roles
enum<string>[]
required

The caller's roles on this project.

Available options:
manager,
labeller,
reviewer
created_by_user_id
string
required
created_at
string<date-time>
required
updated_at
string<date-time>
required