Llm
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
POST | |
GET | |
PATCH | |
DELETE | |
GET | |
POST | |
GET | |
PATCH | |
DELETE | |
GET | |
POST | |
POST | |
GET | |
POST | |
GET | |
POST | |
GET |
List all environments dataset items
Required API key scopes
dataset:readPath parameters
- environment_idstring
Query parameters
- datasetstring
- limitinteger
- offsetinteger
Response
Example request
GET /api /environments /:environment_id /dataset_itemsExample response
Status 200
Create environments dataset items
Required API key scopes
dataset:writePath parameters
- environment_idstring
Request parameters
- datasetstring
- input
- output
- metadata
- ref_trace_idstring
- ref_timestampstring
- ref_source_idstring
- deletedboolean
Response
Example request
POST /api /environments /:environment_id /dataset_itemsExample response
Status 201
Retrieve environments dataset items
Required API key scopes
dataset:readPath parameters
- environment_idstring
- idstring
Response
Example request
GET /api /environments /:environment_id /dataset_items /:idExample response
Status 200
Update environments dataset items
Required API key scopes
dataset:writePath parameters
- environment_idstring
- idstring
Request parameters
- datasetstring
- input
- output
- metadata
- ref_trace_idstring
- ref_timestampstring
- ref_source_idstring
- deletedboolean
Response
Example request
PATCH /api /environments /:environment_id /dataset_items /:idExample response
Status 200
Delete environments dataset items
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
Required API key scopes
dataset:writePath parameters
- environment_idstring
- idstring
Example request
DELETE /api /environments /:environment_id /dataset_items /:idExample response
Status 405 No response body
List all environments datasets
Required API key scopes
dataset:readPath parameters
- environment_idstring
Query parameters
- id__inarray
- limitinteger
- offsetinteger
- order_byarray
- searchstring
Response
Example request
GET /api /environments /:environment_id /datasetsExample response
Status 200
Create environments datasets
Required API key scopes
dataset:writePath parameters
- environment_idstring
Request parameters
- namestring
- descriptionstring
- metadata
- deletedboolean
Response
Example request
POST /api /environments /:environment_id /datasetsExample response
Status 201
Retrieve environments datasets
Required API key scopes
dataset:readPath parameters
- environment_idstring
- idstring
Response
Example request
GET /api /environments /:environment_id /datasets /:idExample response
Status 200
Update environments datasets
Required API key scopes
dataset:writePath parameters
- environment_idstring
- idstring
Request parameters
- namestring
- descriptionstring
- metadata
- deletedboolean
Response
Example request
PATCH /api /environments /:environment_id /datasets /:idExample response
Status 200
Delete environments datasets
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
Required API key scopes
dataset:writePath parameters
- environment_idstring
- idstring
Example request
DELETE /api /environments /:environment_id /datasets /:idExample response
Status 405 No response body
Retrieve llm analytics evaluation config
Get the evaluation config for this team
Required API key scopes
llm_provider_key:readPath parameters
- project_idstring
Example request
GET /api /environments /:project_id /llm_analytics /evaluation_configExample response
Status 200 No response body
Create llm analytics evaluation config set active key
Set the active provider key for evaluations
Path parameters
- project_idstring
Example request
POST /api /environments /:project_id /llm_analytics /evaluation_config /set_active_keyExample response
Status 200 No response body
Create llm analytics evaluation summary
Generate an AI-powered summary of evaluation results.
This endpoint analyzes evaluation runs and identifies patterns in passing and failing evaluations, providing actionable recommendations.
Data is fetched server-side by evaluation ID to ensure data integrity.
Use Cases:
- Understand why evaluations are passing or failing
- Identify systematic issues in LLM responses
- Get recommendations for improving response quality
- Review patterns across many evaluation runs at once
Required API key scopes
llm_analytics:writePath parameters
- project_idstring
Request parameters
- evaluation_idstring
- filterDefault:
all - generation_idsarray
- force_refreshbooleanDefault:
false
Response
Example request
POST /api /environments /:project_id /llm_analytics /evaluation_summaryExample response
Status 200
Status 400
Status 403
Status 404
Status 500
Retrieve llm analytics models
List available models for a provider.
Required API key scopes
llm_provider_key:readPath parameters
- project_idstring
Example request
GET /api /environments /:project_id /llm_analytics /modelsExample response
Status 200 No response body
Create llm analytics provider key validations
Validate LLM provider API keys without persisting them
Required API key scopes
llm_provider_key:writePath parameters
- project_idstring
Example request
POST /api /environments /:project_id /llm_analytics /provider_key_validationsExample response
Status 201 No response body
List all llm analytics provider keys
Required API key scopes
llm_provider_key:readPath parameters
- project_idstring
Query parameters
- limitinteger
- offsetinteger
Response
Example request
GET /api /environments /:project_id /llm_analytics /provider_keysExample response
Status 200
Create llm analytics provider keys
Required API key scopes
llm_provider_key:writePath parameters
- project_idstring
Request parameters
- provider
- namestring
- api_keystring
- set_as_activebooleanDefault:
false
Response
Example request
POST /api /environments /:project_id /llm_analytics /provider_keysExample response
Status 201
Retrieve llm analytics provider keys
Required API key scopes
llm_provider_key:readPath parameters
- idstring
- project_idstring
Response
Example request
GET /api /environments /:project_id /llm_analytics /provider_keys /:id