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

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

const response = await jigsaw.prompt_engine.list({
  "limit": "10"
})
{
  "success": true,
  "prompt_engines": [
        {
              "id": "3ab0c989-8014-4866-bc80-c7b8bb2b87e5",
              "prompt": "Tell me a story about {about}",
              "inputs": [
                    {
                          "key": "about",
                          "optional": false
                    }
              ],
              "return_prompt": "Return the result in a markdown format",
              "return_prompt_type": "string",
              "created_at": "2025-04-11T23:04:55.939149+00:00"
        },
        {
              "id": "f57c3e5e-4a6c-40a9-8fa1-3da7a59bcc32",
              "prompt": "Tell me a story about {about}",
              "inputs": [
                    {
                          "key": "about",
                          "optional": false
                    }
              ],
              "return_prompt": "Return the result in a markdown format",
              "return_prompt_type": "string",
              "created_at": "2025-04-11T22:59:04.544596+00:00"
        },
        {
              "id": "79b59c65-e881-474a-b5cf-e7acc4b34738",
              "prompt": "Tell me a story about {about}",
              "inputs": [
                    {
                          "key": "about",
                          "optional": false
                    }
              ],
              "return_prompt": "Return the result in a markdown format",
              "return_prompt_type": "string",
              "created_at": "2025-04-11T22:56:39.649579+00:00"
        },
        {
              "id": "d10d1a34-74cf-44c2-b561-c610b18e1b5c",
              "prompt": "Tell me a story about {about}",
              "inputs": [
                    {
                          "key": "about",
                          "optional": false
                    }
              ],
              "return_prompt": "Return the result in a markdown format",
              "return_prompt_type": "string",
              "created_at": "2025-04-11T22:54:42.478877+00:00"
        },
        {
              "id": "edff1200-ba51-429d-90da-e4157928ba29",
              "prompt": "Tell me a story about {about}",
              "inputs": [
                    {
                          "key": "about",
                          "optional": false
                    }
              ],
              "return_prompt": "Return the result in a markdown format",
              "return_prompt_type": "string",
              "created_at": "2025-04-11T22:52:24.551779+00:00"
        },
        {
              "id": "77046ab9-37f1-443e-8554-443533bd78b7",
              "prompt": "Tell me a story about {about}",
              "inputs": [
                    {
                          "key": "about",
                          "optional": false
                    }
              ],
              "return_prompt": "Return the result in a markdown format",
              "return_prompt_type": "string",
              "created_at": "2025-04-11T22:50:51.287729+00:00"
        },
        {
              "id": "eca537ae-3f7a-43a6-8cfc-e3e72e65d34a",
              "prompt": "Tell me a story about {about}",
              "inputs": [
                    {
                          "key": "about",
                          "optional": false
                    }
              ],
              "return_prompt": "Return the result in a markdown format",
              "return_prompt_type": "string",
              "created_at": "2025-04-11T22:49:40.608235+00:00"
        },
        {
              "id": "748d1d70-114e-4476-976f-0d2b1023e6b3",
              "prompt": "Tell me a story about {about}",
              "inputs": [
                    {
                          "key": "about",
                          "optional": false
                    }
              ],
              "return_prompt": "Return the result in a markdown format",
              "return_prompt_type": "string",
              "created_at": "2025-04-11T22:49:06.908142+00:00"
        },
        {
              "id": "e13b4499-6552-428c-8571-c0f058b689a7",
              "prompt": "Tell me a story about {about}",
              "inputs": [
                    {
                          "key": "about",
                          "optional": false
                    }
              ],
              "return_prompt": "Return the result in a markdown format",
              "return_prompt_type": "string",
              "created_at": "2025-04-11T22:46:03.530141+00:00"
        },
        {
              "id": "0f6695eb-0e3c-4605-9589-1cbeecca8269",
              "prompt": "Tell me a story about {about}",
              "inputs": [
                    {
                          "key": "about",
                          "optional": false
                    }
              ],
              "return_prompt": "Return the result in a markdown format",
              "return_prompt_type": "string",
              "created_at": "2025-04-11T22:42:18.845621+00:00"
        }
  ],
  "page": 0,
  "limit": 10,
  "has_more": true,
  "_usage": {
        "input_tokens": 4,
        "output_tokens": 683,
        "inference_time_tokens": 750,
        "total_tokens": 1437
  }
}

Query

limit
string
default:"30"

The maximum number of prompts to be returned.

page
string
default:"1"

The page to return.

x-api-key
string
required

Your JigsawStack API key

Response

success
boolean

Indicates whether the call was successful.

import { JigsawStack } from "jigsawstack";

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

const response = await jigsaw.prompt_engine.list({
  "limit": "10"
})
{
  "success": true,
  "prompt_engines": [
        {
              "id": "3ab0c989-8014-4866-bc80-c7b8bb2b87e5",
              "prompt": "Tell me a story about {about}",
              "inputs": [
                    {
                          "key": "about",
                          "optional": false
                    }
              ],
              "return_prompt": "Return the result in a markdown format",
              "return_prompt_type": "string",
              "created_at": "2025-04-11T23:04:55.939149+00:00"
        },
        {
              "id": "f57c3e5e-4a6c-40a9-8fa1-3da7a59bcc32",
              "prompt": "Tell me a story about {about}",
              "inputs": [
                    {
                          "key": "about",
                          "optional": false
                    }
              ],
              "return_prompt": "Return the result in a markdown format",
              "return_prompt_type": "string",
              "created_at": "2025-04-11T22:59:04.544596+00:00"
        },
        {
              "id": "79b59c65-e881-474a-b5cf-e7acc4b34738",
              "prompt": "Tell me a story about {about}",
              "inputs": [
                    {
                          "key": "about",
                          "optional": false
                    }
              ],
              "return_prompt": "Return the result in a markdown format",
              "return_prompt_type": "string",
              "created_at": "2025-04-11T22:56:39.649579+00:00"
        },
        {
              "id": "d10d1a34-74cf-44c2-b561-c610b18e1b5c",
              "prompt": "Tell me a story about {about}",
              "inputs": [
                    {
                          "key": "about",
                          "optional": false
                    }
              ],
              "return_prompt": "Return the result in a markdown format",
              "return_prompt_type": "string",
              "created_at": "2025-04-11T22:54:42.478877+00:00"
        },
        {
              "id": "edff1200-ba51-429d-90da-e4157928ba29",
              "prompt": "Tell me a story about {about}",
              "inputs": [
                    {
                          "key": "about",
                          "optional": false
                    }
              ],
              "return_prompt": "Return the result in a markdown format",
              "return_prompt_type": "string",
              "created_at": "2025-04-11T22:52:24.551779+00:00"
        },
        {
              "id": "77046ab9-37f1-443e-8554-443533bd78b7",
              "prompt": "Tell me a story about {about}",
              "inputs": [
                    {
                          "key": "about",
                          "optional": false
                    }
              ],
              "return_prompt": "Return the result in a markdown format",
              "return_prompt_type": "string",
              "created_at": "2025-04-11T22:50:51.287729+00:00"
        },
        {
              "id": "eca537ae-3f7a-43a6-8cfc-e3e72e65d34a",
              "prompt": "Tell me a story about {about}",
              "inputs": [
                    {
                          "key": "about",
                          "optional": false
                    }
              ],
              "return_prompt": "Return the result in a markdown format",
              "return_prompt_type": "string",
              "created_at": "2025-04-11T22:49:40.608235+00:00"
        },
        {
              "id": "748d1d70-114e-4476-976f-0d2b1023e6b3",
              "prompt": "Tell me a story about {about}",
              "inputs": [
                    {
                          "key": "about",
                          "optional": false
                    }
              ],
              "return_prompt": "Return the result in a markdown format",
              "return_prompt_type": "string",
              "created_at": "2025-04-11T22:49:06.908142+00:00"
        },
        {
              "id": "e13b4499-6552-428c-8571-c0f058b689a7",
              "prompt": "Tell me a story about {about}",
              "inputs": [
                    {
                          "key": "about",
                          "optional": false
                    }
              ],
              "return_prompt": "Return the result in a markdown format",
              "return_prompt_type": "string",
              "created_at": "2025-04-11T22:46:03.530141+00:00"
        },
        {
              "id": "0f6695eb-0e3c-4605-9589-1cbeecca8269",
              "prompt": "Tell me a story about {about}",
              "inputs": [
                    {
                          "key": "about",
                          "optional": false
                    }
              ],
              "return_prompt": "Return the result in a markdown format",
              "return_prompt_type": "string",
              "created_at": "2025-04-11T22:42:18.845621+00:00"
        }
  ],
  "page": 0,
  "limit": 10,
  "has_more": true,
  "_usage": {
        "input_tokens": 4,
        "output_tokens": 683,
        "inference_time_tokens": 750,
        "total_tokens": 1437
  }
}