Llm
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
POST | |
GET | |
PATCH | |
POST | |
GET |
List all llm prompts
Required API key scopes
llm_prompt:readPath parameters
- project_idstring
Query parameters
- limitinteger
- offsetinteger
- searchstring
Response
Example request
GET /api /environments /:project_id /llm_promptsExample response
Status 200
RESPONSE
Create llm prompts
Required API key scopes
llm_prompt:writePath parameters
- project_idstring
Request parameters
- namestring
- prompt
Response
Example request
POST /api /environments /:project_id /llm_promptsExample response
Status 201
RESPONSE
Retrieve llm prompts name
Required API key scopes
llm_prompt:readPath parameters
- project_idstring
- prompt_namestring
Query parameters
- versioninteger
Response
Example request
GET /api /environments /:project_id /llm_prompts /name /:prompt_nameExample response
Status 200
RESPONSE
Update llm prompts name
Required API key scopes
llm_prompt:writePath parameters
- project_idstring
- prompt_namestring
Request parameters
- prompt
- base_versioninteger
Response
Example request
PATCH /api /environments /:project_id /llm_prompts /name /:prompt_nameExample response
Status 200
RESPONSE
Create llm prompts name archive
Required API key scopes
llm_prompt:writePath parameters
- project_idstring
- prompt_namestring
Request parameters
- namestring
- prompt
Response
Example request
POST /api /environments /:project_id /llm_prompts /name /:prompt_name /archiveExample response
Status 200
RESPONSE
Retrieve llm prompts resolve name
Required API key scopes
llm_prompt:readPath parameters
- project_idstring
- prompt_namestring
Query parameters
- before_versioninteger
- limitintegerDefault:
50 - offsetinteger
- versioninteger
- version_idstring
Response
Example request
GET /api /environments /:project_id /llm_prompts /resolve /name /:prompt_nameExample response
Status 200
RESPONSE