API Reference
Create Prompt
API Reference
- POSTCompletion
- GETGet Prompt
- PUTUpdate Prompt
- POSTGet Model Parameters
- DELDelete Prompt
- GETList Prompts
- POSTCreate Prompt
- GETList tools
- POSTCreates tool
- GETGet Tool
- PUTUpdate tool
- DELDelete tool
- GETList Evaluation Assertions
- POSTCreate Evaluation Assertion
- GETGet Evaluation Assertion
- PUTUpdate Evaluation Assertion
- DELDelete Evaluation Assertion
- GETList Evaluations
- POSTCreate Evaluation
- GETGet Evaluation
- PUTUpdate Evaluation
- DELDelete Evaluation
API Reference
Create Prompt
Creates and deploys a new prompt
POST
/
sdk
/
v1
/
prompts
Body
application/json
The LLM model provider.
Available options:
ANTHROPIC
, OPENAI
The name of the model for the provider.
Example: PromptResponseFormat.TEXT
Available options:
JSON
, TEXT
Example: 1
Example: 1
Example: 50
Required range:
x > 1
Example: 0
Example: 0
Example: 100
Example: 97946543
Response
201
application/json
Successful operation
Example: "PROMPT_1"
Example: "Check the weather"
The LLM model provider.
Available options:
ANTHROPIC
, OPENAI
The name of the model for the provider.
Example: PromptResponseFormat.TEXT
Available options:
JSON
, TEXT
Example: 1
Example: 1
Example: 50
Required range:
x > 1
Example: 0
Example: 0
Example: 100
Example: 97946543
The initial messages to be included with your call to the LLM API.
The name of the tool to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
A description of what the tool does, used by the model to choose when and how to call the tool.
Was this page helpful?