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
    • 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
get
/ml-prompts/{id}
$ curl "https://api.zoo.dev/ml-prompts/{id}" \
	--header "Authorization: Bearer $TOKEN"
200 OK
Response
{
  "completed_at": "2025-08-30T00:40:19.770Z",
  "conversation_id": "1de1718e-8237-4470-9c59-99159982f69f",
  "created_at": "2025-08-30T00:40:19.770Z",
  "error": "p1Boc2",
  "feedback": "thumbs_up",
  "id": "db6db5bd-5b89-4b40-b6b8-33da32915b89",
  "kcl_version": "oK22bRwYfe7FlP",
  "metadata": {
    "code": "aVG9kddq1mrJb",
    "original_source_code": "aDqBnNfenske",
    "source_ranges": [
      {
        "file": "XujgZ4N51izC3ovkC9s2sMKuO9T0",
        "prompt": "Y1RMOCXnzYBfJoqma",
        "range": {
          "end": {
            "column": 17,
            "line": 28
          },
          "start": {
            "column": 10,
            "line": 16
          }
        }
      }
    ]
  },
  "model_version": "bhHEoTBGsZhj5",
  "output_file": "BQ8BB0iq",
  "project_name": "48qJorXGo7CrDlfrLcBZaqf",
  "prompt": "t",
  "started_at": "2025-08-30T00:40:19.770Z",
  "status": "failed",
  "type": "text_to_kcl_multi_file_iteration",
  "updated_at": "2025-08-30T00:40:19.770Z",
  "user_id": "43e9e1b5-263a-4db9-ab18-d7a494a79687"
}