APIMLList 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
      • conversation_id

        string / UUID
        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-08-30T00:40:18.548Z",
      "conversation_id": "a3c658b2-1a6f-4a03-86c0-567a80b121bb",
      "created_at": "2025-08-30T00:40:18.548Z",
      "error": "Lxt9",
      "feedback": "thumbs_up",
      "id": "d26fad43-b68b-489f-96c4-2a7b9ac7826e",
      "kcl_version": "M28iVu6DyxeG",
      "metadata": {
        "code": "krnf9bM",
        "original_source_code": "VCpSg14IAwhk",
        "source_ranges": [
          {
            "file": "K",
            "prompt": "ktA",
            "range": {
              "end": {
                "column": 25,
                "line": 3
              },
              "start": {
                "column": 1,
                "line": 2
              }
            }
          }
        ]
      },
      "model_version": "ZThY0csOnP5",
      "output_file": "lpm3IBgUtVw",
      "project_name": "VGCTqHV39cGDqQjnDO",
      "prompt": "uYEj",
      "started_at": "2025-08-30T00:40:18.548Z",
      "status": "completed",
      "type": "text_to_kcl",
      "updated_at": "2025-08-30T00:40:18.548Z",
      "user_id": "3993e15c-e2ea-4e48-b34d-29a93fbe1584"
    }
  ],
  "next_page": "btjJ4TQpCvR2AOmbVNAtULW70"
}