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": "8c769fc6-1d97-4e42-b3c2-414684bc6eba",
              "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-17T23:13:36.930613+00:00"
        },
        {
              "id": "1652cc80-e29d-47b3-9455-4ece371a9fd3",
              "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-17T22:48:59.45124+00:00"
        },
        {
              "id": "2e324509-0708-42d8-9796-2242f3b44603",
              "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-17T22:45:29.229576+00:00"
        },
        {
              "id": "8f8f73a4-1f03-4cac-9a4c-d2eece972efa",
              "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-17T22:44:24.327668+00:00"
        },
        {
              "id": "88497081-4bfd-4bbb-ad16-af189b60de9b",
              "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-17T22:39:28.51249+00:00"
        },
        {
              "id": "159f6b55-33d1-4c0f-9ca2-bc1d4e2021a8",
              "prompt": "Who is this person {name}",
              "inputs": [
                    {
                          "key": "name",
                          "optional": false
                    }
              ],
              "return_prompt": "{\"person_story\":\"the story of the person\"}",
              "return_prompt_type": "json",
              "created_at": "2025-05-22T22:31:49.460307+00:00"
        },
        {
              "id": "d5a310a4-4097-4646-82d8-df2d8b6b574e",
              "prompt": "Who is this person {name}",
              "inputs": [
                    {
                          "key": "name",
                          "optional": false
                    }
              ],
              "return_prompt": "{\"person_story\":\"the story of the person\"}",
              "return_prompt_type": "json",
              "created_at": "2025-05-22T22:23:09.774412+00:00"
        },
        {
              "id": "8c46d13f-fe6d-4628-860f-ac8065293e9f",
              "prompt": "Who is this person {name}",
              "inputs": null,
              "return_prompt": "{\"person_story\":\"the story of the person\"}",
              "return_prompt_type": "json",
              "created_at": "2025-05-22T22:20:19.735801+00:00"
        },
        {
              "id": "e12e596c-c29a-4388-90ae-73145a084bb0",
              "prompt": "Hey there! I was just wondering if you might be able to suggest some cool places to visit in Japan? I'm thinking of going g sometime next year, and I'd love your input if that's alright!",
              "inputs": null,
              "return_prompt": "{\"letter\":\"the letter\"}",
              "return_prompt_type": "json",
              "created_at": "2025-05-22T22:19:19.795786+00:00"
        },
        {
              "id": "7052a745-3a7f-4151-beb4-ebea76a81bdb",
              "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:51.030727+00:00"
        }
  ],
  "page": 0,
  "limit": 10,
  "has_more": true,
  "_usage": {
        "input_tokens": 4,
        "output_tokens": 705,
        "inference_time_tokens": 207,
        "total_tokens": 916
  }
}

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": "8c769fc6-1d97-4e42-b3c2-414684bc6eba",
              "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-17T23:13:36.930613+00:00"
        },
        {
              "id": "1652cc80-e29d-47b3-9455-4ece371a9fd3",
              "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-17T22:48:59.45124+00:00"
        },
        {
              "id": "2e324509-0708-42d8-9796-2242f3b44603",
              "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-17T22:45:29.229576+00:00"
        },
        {
              "id": "8f8f73a4-1f03-4cac-9a4c-d2eece972efa",
              "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-17T22:44:24.327668+00:00"
        },
        {
              "id": "88497081-4bfd-4bbb-ad16-af189b60de9b",
              "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-17T22:39:28.51249+00:00"
        },
        {
              "id": "159f6b55-33d1-4c0f-9ca2-bc1d4e2021a8",
              "prompt": "Who is this person {name}",
              "inputs": [
                    {
                          "key": "name",
                          "optional": false
                    }
              ],
              "return_prompt": "{\"person_story\":\"the story of the person\"}",
              "return_prompt_type": "json",
              "created_at": "2025-05-22T22:31:49.460307+00:00"
        },
        {
              "id": "d5a310a4-4097-4646-82d8-df2d8b6b574e",
              "prompt": "Who is this person {name}",
              "inputs": [
                    {
                          "key": "name",
                          "optional": false
                    }
              ],
              "return_prompt": "{\"person_story\":\"the story of the person\"}",
              "return_prompt_type": "json",
              "created_at": "2025-05-22T22:23:09.774412+00:00"
        },
        {
              "id": "8c46d13f-fe6d-4628-860f-ac8065293e9f",
              "prompt": "Who is this person {name}",
              "inputs": null,
              "return_prompt": "{\"person_story\":\"the story of the person\"}",
              "return_prompt_type": "json",
              "created_at": "2025-05-22T22:20:19.735801+00:00"
        },
        {
              "id": "e12e596c-c29a-4388-90ae-73145a084bb0",
              "prompt": "Hey there! I was just wondering if you might be able to suggest some cool places to visit in Japan? I'm thinking of going g sometime next year, and I'd love your input if that's alright!",
              "inputs": null,
              "return_prompt": "{\"letter\":\"the letter\"}",
              "return_prompt_type": "json",
              "created_at": "2025-05-22T22:19:19.795786+00:00"
        },
        {
              "id": "7052a745-3a7f-4151-beb4-ebea76a81bdb",
              "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:51.030727+00:00"
        }
  ],
  "page": 0,
  "limit": 10,
  "has_more": true,
  "_usage": {
        "input_tokens": 4,
        "output_tokens": 705,
        "inference_time_tokens": 207,
        "total_tokens": 916
  }
}