---
title: "Generate Custom Metrics"
method: POST
path: "/v1/generate-custom-metrics"
tags: ["Custom Metrics"]
deprecated: true
---

# Generate Custom Metrics

`POST /v1/generate-custom-metrics`

> **Deprecated.**

Generate custom metrics for a given agent based on its description and knowledge base.

## Headers

- `X-API-Key` string, required

## Request body

- GenerateMetricsRequest
  - `agent_id` string, required — ID of the agent to generate metrics for
  - `prompt_id` string, uuid, nullable — Prompt UUID associated with the agent
  - `knowledge_base_id` string, uuid, nullable — Knowledge base UUID associated with the agent
  - `count` integer — Number of custom metrics to generate
  - `custom_prompt` string, nullable — Custom instructions for metric generation

## Response `200`

Successful Response

- unknown

## 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/revisions/4ef94eeb836d/schema)
