POST
/
v4
/
experiments
Create a experiment
curl --request POST \
  --url https://gentrace.ai/api/v4/experiments \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "pipelineId": "123e4567-e89b-12d3-a456-426614174000",
  "name": "OpenAI o3-mini prompt",
  "metadata": {
    "promptTemplate": {
      "type": "string",
      "value": "Hello, {{ name }}!"
    }
  }
}'
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "createdAt": "2025-04-01T00:00:00.000Z",
  "updatedAt": "2025-04-01T00:00:00.000Z",
  "name": "OpenAI o3-mini prompt",
  "pipelineId": "123e4567-e89b-12d3-a456-426614174000",
  "metadata": {
    "key": "value"
  }
}

Authorizations

Authorization
string
header
required

Enter Gentrace API key (Format: Authorization: Bearer <token>)

Body

application/json

Creates a new experiment with the given pipeline ID

Response

200
application/json

Successful response

The response is of type object.