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-01T20:11:54.873Z",
  "created_at": "2025-07-01T20:11:54.873Z",
  "error": "4Bhk86tNBIqTXsR1",
  "feedback": "accepted",
  "id": "ad0ae19b-fc40-4cf6-8af3-e4eb3cb9a23c",
  "kcl_version": "NqHvRcGZor5U2P5KEQoUsjfNGm0sw",
  "metadata": {
    "code": "7RYebhArv32imAulf4PPXR",
    "original_source_code": "zwjaRaFHThayxVYqtgilFrJYEglQP",
    "source_ranges": [
      {
        "file": "03jwnQwHhJDSgKYBAr9lsMNNRb",
        "prompt": "0",
        "range": {
          "end": {
            "column": 5,
            "line": 24
          },
          "start": {
            "column": 12,
            "line": 22
          }
        }
      }
    ]
  },
  "model_version": "FBv3Tm",
  "output_file": "ilcEQJuFiFJalLagRhzUIFyyd",
  "project_name": "",
  "prompt": "ix5Db8LkszKn2RqvRgH",
  "started_at": "2025-07-01T20:11:54.873Z",
  "status": "queued",
  "type": "text_to_kcl",
  "updated_at": "2025-07-01T20:11:54.873Z",
  "user_id": "37259875-0ff1-4113-b4d1-0b2d74d63ab2"
}