---
title: "Create Label"
method: POST
path: "/api/v1/session_labels/"
tags: ["session_labels"]
---

# Create Label

`POST /api/v1/session_labels/`

Create a new label

## Request body

- SessionLabelCreate
  - `session_id` integer, required — The internal ID of the session (see Session.session_id)
  - `type` string, required — The type of the label (either "auto-rating" or "human-rating")
  - `code` string, required — A code describing the quality of the labeled session (either "GOOD", "OK", "BAD", or "N/A")
  - `user_email` string, required — The email of the user who created the label
  - `comments` string, nullable — Comment string describing additional details about the session
  - `issue_categories` string[], nullable — Descriptions of issues occurring in the labeled call

## Response `200`

Successful Response

- SessionLabel — Response model for session label operations. A session label is associated with a given session and contains an evaluation of quality and descriptions of issues the user encountered in that session or other details.
  - `session_id` integer, required — The internal ID of the session (see Session.session_id)
  - `type` string, required — The type of the label (either "auto-rating" or "human-rating")
  - `code` string, required — A code describing the quality of the labeled session (either "GOOD", "OK", "BAD", or "N/A")
  - `user_email` string, required — The email of the user who created the label
  - `comments` string, nullable — Comment string describing additional details about the session
  - `issue_categories` string[], nullable — Descriptions of issues occurring in the labeled call
  - `id` integer, required — The internal ID of the label
  - `timestamp` string, required — The timestamp at which the label was created

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/asksyllable/apis/syllablesdk.md) · [All operations](https://skmtc.net/asksyllable/apis/syllablesdk/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/asksyllable/syllablesdk/versions/ac3228f980bb/schema)
