GET
/
v1
/
prompt_engine
/
{id}
import { JigsawStack } from "jigsawstack";

const jigsawstack = JigsawStack({
  apiKey: "your-api-key",
});

const result = await jigsawstack.prompt_engine.get(
  "e58d762a-9a00-4907-8cab-5ce6221bb6df",
);
{
  "success": true
  "id": "e58d762a-9a00-4907-8cab-5ce6221bb6df",
  "prompt": "Tell me a story about {about}",
  "inputs": [
        {
          "key": "about",
          "optional": false
        }
      ],
  "return_prompt": "{\"story\":\"short story text\",\"summary\":\"summary of story\"}",
  "created_at": "2024-02-07T09:15:35.857187+00:00"
}
x-api-key
string
required

Your JigsawStack API key

Query

id
string

The prompt id.

Response

success
boolean

Indicates whether the call was successful.

import { JigsawStack } from "jigsawstack";

const jigsawstack = JigsawStack({
  apiKey: "your-api-key",
});

const result = await jigsawstack.prompt_engine.get(
  "e58d762a-9a00-4907-8cab-5ce6221bb6df",
);
{
  "success": true
  "id": "e58d762a-9a00-4907-8cab-5ce6221bb6df",
  "prompt": "Tell me a story about {about}",
  "inputs": [
        {
          "key": "about",
          "optional": false
        }
      ],
  "return_prompt": "{\"story\":\"short story text\",\"summary\":\"summary of story\"}",
  "created_at": "2024-02-07T09:15:35.857187+00:00"
}