API → MLList all ML prompts
hidden

Parameters

Name

Type

Req.

  • limit

    integer
    optional
  • page_token

    string
    optional
  • sort_by

    string
    required
    Possible values
    • created_at_ascending:  Sort in increasing order of "created_at".
    • created_at_descending:  Sort in decreasing order of "created_at".

Returns

  • 200 OK

    successful operation

    Name

    Type

    Req.

    body

    object
    optional
    Object Properties
    • items

      array
      optional
      Array of
      • completed_at

        string / ISO-8601
        optional
      • created_at

        string / ISO-8601
        optional
      • error

        string
        optional
      • feedback

        string
        optional
        Possible values
        • thumbs_up:  Thumbs up.
        • thumbs_down:  Thumbs down.
        • accepted:  Accepted.
        • rejected:  Rejected.
      • id

        string / UUID
        optional
      • kcl_version

        string
        optional
      • metadata

        object
        optional
        Object Properties
      • model_version

        string
        optional
      • output_file

        string
        optional
      • project_name

        string
        optional
      • prompt

        string
        optional
      • started_at

        string / ISO-8601
        optional
      • status

        string
        optional
        Possible values
        • queued:  The async API call is queued.
        • uploaded:  The async API call was uploaded to be converted.
        • in_progress:  The async API call is in progress.
        • completed:  The async API call has completed.
        • failed:  The async API call has failed.
      • type

        string
        optional
        Possible values
        • text_to_cad:  Text to CAD.
        • text_to_kcl:  Text to KCL.
        • text_to_kcl_iteration:  Text to KCL iteration.
        • text_to_kcl_multi_file_iteration:  Text to KCL iteration with multiple files.
      • updated_at

        string / ISO-8601
        optional
      • user_id

        string / UUID
        optional
    • next_page

      string
      optional
get
/ml-prompts
$ curl "https://api.zoo.dev/ml-prompts" \
	--header "Authorization: Bearer $TOKEN"
200 OK
Response
{
  "items": [
    {
      "completed_at": "2025-04-21T19:59:58.889Z",
      "created_at": "2025-04-21T19:59:58.889Z",
      "error": "JD9aP7YQdcm3J",
      "feedback": "thumbs_down",
      "id": "82ad5376-76e9-4715-ab7f-33f14183d693",
      "kcl_version": "PL",
      "metadata": {
        "code": "ROuMIBaLhrxQOV",
        "original_source_code": "iwq7afWrKOXOmNL8lvT6kwoMisyVHz",
        "source_ranges": [
          {
            "file": "CK2xkIv2rI4Tv0IbI5ePcaMqKZ6",
            "prompt": "kOoKYw0",
            "range": {
              "end": {
                "column": 19,
                "line": 27
              },
              "start": {
                "column": 11,
                "line": 16
              }
            }
          }
        ]
      },
      "model_version": "9BX0y5jtlIU17wvcFd3hx6ONhd",
      "output_file": "Ip",
      "project_name": "7D",
      "prompt": "cba9E8mFPWQEP6W14CUtIBQmLY",
      "started_at": "2025-04-21T19:59:58.889Z",
      "status": "completed",
      "type": "text_to_kcl_iteration",
      "updated_at": "2025-04-21T19:59:58.889Z",
      "user_id": "75ea4ee2-3ceb-4c7b-a9d0-71fbd9ff2ff1"
    }
  ],
  "next_page": "rtqCERSd6tBD6L"
}