curl --request POST \
--url https://api.helicone.ai/v1/prompt/create \
--header 'Content-Type: application/json' \
--header 'authorization: <api-key>' \
--data '{
"metadata": {},
"prompt": "<any>",
"userDefinedId": "<string>"
}'
{
"data": {
"id": "<string>",
"prompt_version_id": "<string>"
}
}
Create a new prompt in the system
curl --request POST \
--url https://api.helicone.ai/v1/prompt/create \
--header 'Content-Type: application/json' \
--header 'authorization: <api-key>' \
--data '{
"metadata": {},
"prompt": "<any>",
"userDefinedId": "<string>"
}'
{
"data": {
"id": "<string>",
"prompt_version_id": "<string>"
}
}
Ok
The response is of type object
.
Was this page helpful?