API Documentation
Web Scrape
Web Search
Prompt Engine
File Store
Prompt Engine
Get Prompt
Prompt Engine
Get Prompt
Retrieve details of a prompt.
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"
}
Header
Your JigsawStack API key
Query
The prompt id.
Response
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"
}
Was this page helpful?
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"
}