API → MLGet 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-04-25T16:37:37.742Z",
  "created_at": "2025-04-25T16:37:37.742Z",
  "error": "va2UxgTZ7ZT7xVvgHeLbVDk",
  "feedback": "rejected",
  "id": "5a0f56c9-4141-4079-a562-6a848e60195a",
  "kcl_version": "37TR",
  "metadata": {
    "code": "IxcLlQuQeV4fOwL0GqrWhS9",
    "original_source_code": "lsExMU6kO0C85C3",
    "source_ranges": [
      {
        "file": "ng7K",
        "prompt": "VY1wqRrmbE",
        "range": {
          "end": {
            "column": 31,
            "line": 13
          },
          "start": {
            "column": 16,
            "line": 4
          }
        }
      }
    ]
  },
  "model_version": "LYKAiYJ3",
  "output_file": "AkLB3Gk6",
  "project_name": "utVa6Y6sPVHwgF5Nnvh",
  "prompt": "y74LN2jBrOMbDM",
  "started_at": "2025-04-25T16:37:37.742Z",
  "status": "failed",
  "type": "text_to_kcl",
  "updated_at": "2025-04-25T16:37:37.742Z",
  "user_id": "23622e72-4f4e-4f0c-b67e-3371c2dfbc3f"
}