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": "72ebac6b-535e-49a6-97ed-606ac6b1db8a",
              "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-06-23T15:37:34.073349+00:00"
        },
        {
              "id": "97f263d8-770a-4f99-b4ff-6f545b1eec5f",
              "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-06-21T20:29:05.039308+00:00"
        },
        {
              "id": "bca8f026-66e7-4cf1-95e7-23a8b28f2ea9",
              "prompt": "How to cook {dish}",
              "inputs": [
                    {
                          "key": "dish",
                          "optional": false
                    }
              ],
              "return_prompt": "[{\"step\":\"step counter\",\"instructions\":\"details of this step\"}]",
              "return_prompt_type": "json",
              "created_at": "2025-06-17T20:49:46.657469+00:00"
        },
        {
              "id": "d8107de4-58fe-4005-a9ad-0ca8ca9cfea5",
              "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-06-09T23:03:04.666562+00:00"
        },
        {
              "id": "e583dd90-69b7-4895-a1f9-eff6ce939e14",
              "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-06-04T05:55:44.003902+00:00"
        },
        {
              "id": "5c69bbd1-02a3-44ad-8804-6a798a95d2e8",
              "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-06-04T05:01:09.530531+00:00"
        },
        {
              "id": "b2a69f1f-e5d7-4645-9ab3-cc79b495e161",
              "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-05-23T18:19:04.07942+00:00"
        },
        {
              "id": "0739572e-a0e2-4e7c-972c-3352b697fc91",
              "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-05-23T17:43:27.641541+00:00"
        },
        {
              "id": "f1951057-9de3-48de-9e26-9ce270d1b38b",
              "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-05-22T23:02:56.066965+00:00"
        },
        {
              "id": "b3cfc6ee-13f8-4e94-b6b3-d55009810b3d",
              "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-05-22T04:35:06.211182+00:00"
        }
  ],
  "page": 0,
  "limit": 10,
  "has_more": true,
  "_usage": {
        "input_tokens": 4,
        "output_tokens": 688,
        "inference_time_tokens": 110,
        "total_tokens": 802
  }
}

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": "72ebac6b-535e-49a6-97ed-606ac6b1db8a",
              "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-06-23T15:37:34.073349+00:00"
        },
        {
              "id": "97f263d8-770a-4f99-b4ff-6f545b1eec5f",
              "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-06-21T20:29:05.039308+00:00"
        },
        {
              "id": "bca8f026-66e7-4cf1-95e7-23a8b28f2ea9",
              "prompt": "How to cook {dish}",
              "inputs": [
                    {
                          "key": "dish",
                          "optional": false
                    }
              ],
              "return_prompt": "[{\"step\":\"step counter\",\"instructions\":\"details of this step\"}]",
              "return_prompt_type": "json",
              "created_at": "2025-06-17T20:49:46.657469+00:00"
        },
        {
              "id": "d8107de4-58fe-4005-a9ad-0ca8ca9cfea5",
              "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-06-09T23:03:04.666562+00:00"
        },
        {
              "id": "e583dd90-69b7-4895-a1f9-eff6ce939e14",
              "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-06-04T05:55:44.003902+00:00"
        },
        {
              "id": "5c69bbd1-02a3-44ad-8804-6a798a95d2e8",
              "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-06-04T05:01:09.530531+00:00"
        },
        {
              "id": "b2a69f1f-e5d7-4645-9ab3-cc79b495e161",
              "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-05-23T18:19:04.07942+00:00"
        },
        {
              "id": "0739572e-a0e2-4e7c-972c-3352b697fc91",
              "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-05-23T17:43:27.641541+00:00"
        },
        {
              "id": "f1951057-9de3-48de-9e26-9ce270d1b38b",
              "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-05-22T23:02:56.066965+00:00"
        },
        {
              "id": "b3cfc6ee-13f8-4e94-b6b3-d55009810b3d",
              "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-05-22T04:35:06.211182+00:00"
        }
  ],
  "page": 0,
  "limit": 10,
  "has_more": true,
  "_usage": {
        "input_tokens": 4,
        "output_tokens": 688,
        "inference_time_tokens": 110,
        "total_tokens": 802
  }
}