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": "6babb99c-147c-4a71-913c-b644b944856c",
              "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-24T21:37:42.443306+00:00"
        },
        {
              "id": "c5e2627f-ec4c-4055-a7cc-b691427aa410",
              "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-24T21:30:43.382359+00:00"
        },
        {
              "id": "86048c19-52aa-4b54-bd0b-c81315f11cc8",
              "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-24T21:29:37.880986+00:00"
        },
        {
              "id": "300b3ea1-8ce9-4a34-83f7-a7a52333f41d",
              "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-24T21:29:03.573094+00:00"
        },
        {
              "id": "f78a34ab-3e2c-48b7-806d-1a5d03c58b66",
              "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-24T21:26:50.522244+00:00"
        },
        {
              "id": "a0ac5bcf-6d3c-41fa-811e-9a25d2d9b4cd",
              "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-24T21:26:02.162208+00:00"
        },
        {
              "id": "cf1c9541-7345-43a0-8731-9825bb00a9ab",
              "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-24T21:25:40.656441+00:00"
        },
        {
              "id": "369c7fcd-b6cc-44b0-a6ce-e47b7bd892b6",
              "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-24T21:25:28.539922+00:00"
        },
        {
              "id": "79d47706-1f15-415e-905a-f1c41ac0633e",
              "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-24T21:25:02.088033+00:00"
        },
        {
              "id": "5a68319d-8cbe-4e64-8fbb-1d92f34b2a01",
              "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-24T21:24:29.92532+00:00"
        }
  ],
  "page": 0,
  "limit": 10,
  "has_more": true,
  "_usage": {
        "input_tokens": 4,
        "output_tokens": 683,
        "inference_time_tokens": 401,
        "total_tokens": 1088
  }
}

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": "6babb99c-147c-4a71-913c-b644b944856c",
              "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-24T21:37:42.443306+00:00"
        },
        {
              "id": "c5e2627f-ec4c-4055-a7cc-b691427aa410",
              "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-24T21:30:43.382359+00:00"
        },
        {
              "id": "86048c19-52aa-4b54-bd0b-c81315f11cc8",
              "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-24T21:29:37.880986+00:00"
        },
        {
              "id": "300b3ea1-8ce9-4a34-83f7-a7a52333f41d",
              "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-24T21:29:03.573094+00:00"
        },
        {
              "id": "f78a34ab-3e2c-48b7-806d-1a5d03c58b66",
              "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-24T21:26:50.522244+00:00"
        },
        {
              "id": "a0ac5bcf-6d3c-41fa-811e-9a25d2d9b4cd",
              "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-24T21:26:02.162208+00:00"
        },
        {
              "id": "cf1c9541-7345-43a0-8731-9825bb00a9ab",
              "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-24T21:25:40.656441+00:00"
        },
        {
              "id": "369c7fcd-b6cc-44b0-a6ce-e47b7bd892b6",
              "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-24T21:25:28.539922+00:00"
        },
        {
              "id": "79d47706-1f15-415e-905a-f1c41ac0633e",
              "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-24T21:25:02.088033+00:00"
        },
        {
              "id": "5a68319d-8cbe-4e64-8fbb-1d92f34b2a01",
              "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-24T21:24:29.92532+00:00"
        }
  ],
  "page": 0,
  "limit": 10,
  "has_more": true,
  "_usage": {
        "input_tokens": 4,
        "output_tokens": 683,
        "inference_time_tokens": 401,
        "total_tokens": 1088
  }
}