Skip to main content
POST
/
projects
/
{project_id}
/
benchmarks
curl --location 'https://api.withblast.com/projects/550e8400-e29b-41d4-a716-446655440000/benchmarks' \
--header 'Authorization: Bearer YOUR_JWT_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
  "name": "Product Recommendation Quality",
  "description": "Benchmark for evaluating product recommendation responses",
  "metadata": {
    "category": "e-commerce",
    "difficulty": "hard",
    "version": "1.0"
  }
}'
{
  "benchmark_id": "9f8e7d6c-5432-1098-7654-321098765432",
  "name": "Product Recommendation Quality",
  "description": "Benchmark for evaluating product recommendation responses",
  "metadata": {
    "category": "e-commerce",
    "difficulty": "hard",
    "version": "1.0"
  },
  "project_id": "550e8400-e29b-41d4-a716-446655440000",
  "created_at": "2024-01-23T11:30:00Z",
  "updated_at": "2024-01-23T11:30:00Z"
}

Authentication

Authorization
string
required
Bearer token

Path Parameters

project_id
string
required
The unique identifier of the project (UUID format)

Body Parameters

name
string
required
Name of the benchmark
description
string
Description of the benchmark’s purpose and content
metadata
object
Additional metadata as key-value pairs

Response

Returns the created benchmark object with:
benchmark_id
string
required
Unique benchmark identifier (UUID)
name
string
Benchmark name
description
string
Benchmark description
metadata
object
Additional metadata
project_id
string
required
Associated project ID (UUID)
created_at
string
required
ISO 8601 timestamp of creation
updated_at
string
ISO 8601 timestamp of last update
curl --location 'https://api.withblast.com/projects/550e8400-e29b-41d4-a716-446655440000/benchmarks' \
--header 'Authorization: Bearer YOUR_JWT_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
  "name": "Product Recommendation Quality",
  "description": "Benchmark for evaluating product recommendation responses",
  "metadata": {
    "category": "e-commerce",
    "difficulty": "hard",
    "version": "1.0"
  }
}'
{
  "benchmark_id": "9f8e7d6c-5432-1098-7654-321098765432",
  "name": "Product Recommendation Quality",
  "description": "Benchmark for evaluating product recommendation responses",
  "metadata": {
    "category": "e-commerce",
    "difficulty": "hard",
    "version": "1.0"
  },
  "project_id": "550e8400-e29b-41d4-a716-446655440000",
  "created_at": "2024-01-23T11:30:00Z",
  "updated_at": "2024-01-23T11:30:00Z"
}