Skip to main content
POST
/
projects
/
{project_id}
/
benchmarks
/
{benchmark_id}
/
tests
curl --location 'https://api.withblast.com/projects/550e8400-e29b-41d4-a716-446655440000/benchmarks/7d9c8f90-1234-5678-9abc-def012345678/tests' \
--header 'Authorization: Bearer YOUR_JWT_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
  "prompt": "How do I reset my password?"
}'
{
  "test_id": 1234,
  "benchmark_id": "7d9c8f90-1234-5678-9abc-def012345678",
  "prompt": "How do I reset my password?",
  "last_scores": null,
  "run_count": 0,
  "last_run_at": null,
  "project_id": "550e8400-e29b-41d4-a716-446655440000",
  "created_at": "2024-01-23T14:30:00Z"
}

Authentication

Authorization
string
required
Bearer token

Path Parameters

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

Body Parameters

prompt
string
required
The test prompt or input that will be sent to the AI model

Response

Returns the created test object with:
test_id
integer
required
Unique test identifier
benchmark_id
string
required
Associated benchmark ID (UUID)
prompt
string
The test prompt/input
last_scores
object
Latest evaluation scores (null for new tests)
run_count
integer
required
Number of runs for this test (0 for new tests)
last_run_at
string
ISO 8601 timestamp of last run (null for new tests)
project_id
string
required
Associated project ID (UUID)
created_at
string
required
ISO 8601 timestamp of creation
curl --location 'https://api.withblast.com/projects/550e8400-e29b-41d4-a716-446655440000/benchmarks/7d9c8f90-1234-5678-9abc-def012345678/tests' \
--header 'Authorization: Bearer YOUR_JWT_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
  "prompt": "How do I reset my password?"
}'
{
  "test_id": 1234,
  "benchmark_id": "7d9c8f90-1234-5678-9abc-def012345678",
  "prompt": "How do I reset my password?",
  "last_scores": null,
  "run_count": 0,
  "last_run_at": null,
  "project_id": "550e8400-e29b-41d4-a716-446655440000",
  "created_at": "2024-01-23T14:30:00Z"
}

Notes

  • Tests are not automatically run when created