---
title: "Classify a Sample"
method: GET
path: "/model/{name}/classify"
---

# Classify a Sample

`GET /model/{name}/classify`

## Path parameters

- `name` string, required

## Query parameters

- `sample` object, required

## Response `200`

successful classification

- Sample
  - `petal_length` number, required
  - `petal_width` number, required
  - `sepal_length` number, required
  - `sepal_width` number, required
  - `species` string
  - `classification` string

## Other responses

- `400` — Invalid Sample
- `401` — Not Authorized
- `404` — Unknown Training Data Name

---

[API](https://skmtc.dev/packtpublishing/apis/classifier.md) · [All operations](https://skmtc.dev/packtpublishing/apis/classifier/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/packtpublishing/classifier/revisions/300ff9246f47/schema)
