---
title: "Create Lab"
method: POST
path: "/v1/metrics-lab/lab"
tags: ["Metrics Lab"]
---

# Create Lab

`POST /v1/metrics-lab/lab`

Create a new lab.

## Headers

- `X-API-Key` string, required

## Request body

- CreateLabRequest — Request model for creating a lab
  - `name` string, required — Name of the lab
  - `description` string, nullable — Description of the lab
  - `tags` string[], nullable — Tags for the lab
  - `conversations` ConversationItem[], required — List of conversations to associate with the lab
    - `call_id` string, nullable — Call ID (UUID as string)
    - `test_result_id` integer, nullable — Test result ID
  - `metric_ids` string[], required — List of custom metric IDs (UUIDs as strings) to associate with the lab

## Response `200`

Successful Response

- LabResponse — Response model for lab operations
  - `id` string, required — Unique identifier of the lab
  - `name` string, required — Name of the lab
  - `description` string, nullable — Description of the lab
  - `created_at` string, date-time, required — When the lab was created
  - `updated_at` string, date-time, nullable — When the lab was last updated

## Other responses

- `422` — Validation Error

---

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