cURL
curl --request POST \ --url http://localhost:3000/api/prompt/get-compiled \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: text/plain' \ --data '{ "name": "tester", "promptId": "a7a55e48-1588-44ee-99e2-d9de5c026238", "version": "1.0.0", "metaProperties": {}, "compile": true, "variables": { "name": "John" } }'
{ "err": {}, "res": { "promptId": "a7a55e48-1588-44ee-99e2-d9de5c026238", "versionId": "2d44f89a-2222-498d-869b-795296496ca3", "name": "tester", "version": "1.0.0", "tags": [ "<string>" ], "metaProperties": {}, "prompt": "Hello {{name}}", "compiledPrompt": "Hello John" } }
Fetches a compiled prompt using the provided prompt ID, version, and variables.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Successfully retrieved compiled prompt.
The response is of type object.
object
Was this page helpful?