APIMLGet a ML prompt
hidden

Parameters

Name

Type

Req.

  • id

    string / UUID
    required

Returns

  • 200 OK

    successful operation

    Name

    Type

    Req.

    body

    object
    optional
    Object Properties
    • 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
get
/ml-prompts/{id}
$ curl "https://api.zoo.dev/ml-prompts/{id}" \
	--header "Authorization: Bearer $TOKEN"
200 OK
Response
{
  "completed_at": "2025-07-04T14:09:22.728Z",
  "created_at": "2025-07-04T14:09:22.728Z",
  "error": "e50f1EfuYX8r",
  "feedback": "thumbs_down",
  "id": "a0c3580b-20a8-4d61-8082-0d3c3a63d6fc",
  "kcl_version": "PnCsp53RMMrj3i36v0HovZ",
  "metadata": {
    "code": "Cn4JDTZgdb3yAMW0xvhzM1YMuHnry",
    "original_source_code": "IJ",
    "source_ranges": [
      {
        "file": "9SdxAu4mJqEf5hGwHrpvRrf34ZHgZ",
        "prompt": "8J3NJ6i2s6nmzWgj3bGE",
        "range": {
          "end": {
            "column": 8,
            "line": 7
          },
          "start": {
            "column": 8,
            "line": 26
          }
        }
      }
    ]
  },
  "model_version": "hmDusM6tNu92Ajeqnbic0BIeKrEe1",
  "output_file": "hKRdP4u4uMV9uWzH",
  "project_name": "DLGrRJ6Qfc7x5H63WBITqXft",
  "prompt": "YgA4H369djA2Brd0",
  "started_at": "2025-07-04T14:09:22.728Z",
  "status": "completed",
  "type": "text_to_cad",
  "updated_at": "2025-07-04T14:09:22.728Z",
  "user_id": "7b638511-5a73-4da3-99b6-ad839ca59cba"
}