POST
/
v1
/
prompt
/
{user_defined_id}
/
compile
curl --request POST \
  --url https://api.helicone.ai/v1/prompt/{user_defined_id}/compile \
  --header 'Content-Type: application/json' \
  --header 'authorization: <api-key>' \
  --data '{
  "filter": {
    "prompts_versions": {
      "minor_version": {
        "not-equals": 123,
        "equals": 123,
        "gte": 123,
        "lte": 123,
        "lt": 123,
        "gt": 123
      },
      "major_version": {
        "not-equals": 123,
        "equals": 123,
        "gte": 123,
        "lte": 123,
        "lt": 123,
        "gt": 123
      },
      "id": {
        "not-equals": "<string>",
        "equals": "<string>",
        "like": "<string>",
        "ilike": "<string>",
        "contains": "<string>",
        "not-contains": "<string>"
      },
      "prompt_v2": {
        "not-equals": "<string>",
        "equals": "<string>",
        "like": "<string>",
        "ilike": "<string>",
        "contains": "<string>",
        "not-contains": "<string>"
      }
    }
  },
  "includeExperimentVersions": true,
  "inputs": {}
}'
{
  "data": {
    "id": "<string>",
    "minor_version": 123,
    "major_version": 123,
    "prompt_v2": "<string>",
    "model": "<string>",
    "prompt_compiled": "<any>"
  }
}

Authorizations

authorization
string
header
required

Path Parameters

user_defined_id
string
required

Body

application/json
inputs
object
required

Construct a type with a set of properties K of type T

filter

From T, pick a set of properties whose keys are in the union K

includeExperimentVersions
boolean

Response

200 - application/json
Ok
data
object
required
error
enum<number> | null
required