Skip to main content
GET
/
v1
/
projects
/
{project_id}
/
classes
Get Classes
curl --request GET \
  --url https://api.landing.ai/v1/projects/{project_id}/classes
import requests

url = "https://api.landing.ai/v1/projects/{project_id}/classes"

response = requests.get(url)

print(response.text)
const options = {method: 'GET'};

fetch('https://api.landing.ai/v1/projects/{project_id}/classes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
{
  "data": [
    {
      "id": 123,
      "name": "<string>",
      "index": 123,
      "color": "<string>",
      "description": "<string>"
    }
  ]
}
{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}

Headers

apikey
string | null

Path Parameters

project_id
integer
required

Query Parameters

timeout
integer | null
default:60

Response

Successful Response

data
LabelClass · object[] | null
required