Run Prompt (Non-streaming)

POST
POSThttps://api.hyperleapai.com/prompt-runs/run-sync

Run a specific prompt based on the Prompt ID and Prompt Version ID passed in. Recommended when creating classifiers to make decisions, since full response is available for decision making

Authenticated with your API key in the x-hl-api-key request header.

Request body

application/json
promptIdstring · uuidrequired
promptVersionIdstring · uuidnullable
objectnullable
JsonNode
streamboolean

Responses

400Bad Requestapplication/json

Array of ModelError

Exception
MethodBase
messageanytruncated
dataanytruncated
innerExceptionanytruncated
helpLinkanytruncated
sourceanytruncated
hResultanytruncated
stackTraceanytruncated
errorMessageanytruncated
Example payload
[
  {
    "exception": {
      "targetSite": {
        "memberType": 1,
        "name": "string",
        "declaringType": {
          "name": null,
          "customAttributes": null,
          "namespace": null,
          "assemblyQualifiedName": null,
          "fullName": null
        }
      }
    }
  }
]
500Internal Server Error

No response body.

curl -X POST "https://api.hyperleapai.com/prompt-runs/run-sync" \
  -H "x-hl-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "promptId": "string",
  "promptVersionId": "string",
  "replacements": {
    "key": {
      "options": {
        "propertyNameCaseInsensitive": true
      }
    }
  },
  "stream": true
}'

Explore Hyperleap AI

AI customer service agents that answer FAQs, capture leads, and book appointments across Website, WhatsApp, Instagram, and Facebook Messenger.