Projects

Projects are the highest level abstraction in the Annotation Lab platform. They contain directories, source files, schemas, and annotation layers. They are also the scope at which work can be shared.

Create Project

POST https://api.annolab.ai/v1/project/create

Create a new project within your group

Headers

NameTypeDescription

Authorization

string

Where you put your api key. Creating a project requires a key with "Write" permissions. {"Authorization": "Api-key XXXXXXX-XXXXXXX-XXXXXXX"}

Request Body

NameTypeDescription

name

string

Name of the project you wish to create. Must be unique for your group {"name": "New NER Project"}

{
    "name": "New NER Project",
    "id": 22,
    "groupId": 14
}

Examples of how to make a project create request

import requests

ANNO_LAB_API_KEY = 'XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX'

project = {
  'name': 'New NER Project'
}

headers = {
  'Authorization': 'Api-Key '+ANNO_LAB_API_KEY,
}

url = 'https://api.annolab.ai/v1/project/create'

response = requests.post(url, headers=headers, json=project)

print(response.json())

Get Project

GET https://api.annolab.ai/v1/project/{identifier}

Return details of a project given an identifier

Path Parameters

NameTypeDescription

identifier

string

Either the name or the id of a project url = "https://api.annolab.ai/v1/project/New%20NER%20Project" url = "https://api.annolab.ai/v1/project/12"

Headers

NameTypeDescription

Authorization

string

Where you put your api key. Getting a project requires an key with "Read" permissions {"Authorization": "Api-Key XXXXXXX-XXXXXXX-XXXXXXX"}

{
    "name": "New NER Project",
    "id": 22,
    "groupId": 14
}

Last updated