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
    • metadata

      object
      optional
      Object Properties
    • model_version

      string
      optional
    • output_file

      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,
    • 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": "2024-09-19T16:11:53.432Z",
  "created_at": "2024-09-19T16:11:53.432Z",
  "error": "5m",
  "feedback": "thumbs_up",
  "id": "4c32c161-6263-4880-9f76-ab2c48060966",
  "metadata": {
    "code": "LbxEYNfPkaAp7U7Fzhn3",
    "original_source_code": "Je4LldVDRXqDBrrbt",
    "source_ranges": [
      {
        "prompt": "QxXGM8pICunQqy4Y",
        "range": {
          "end": {
            "column": 19,
            "line": 15
          },
          "start": {
            "column": 17,
            "line": 18
          }
        }
      }
    ]
  },
  "model_version": "yzCIHy",
  "output_file": "R4epVuusNn",
  "prompt": "6xkKCtER6XSPeZnRb",
  "started_at": "2024-09-19T16:11:53.432Z",
  "status": "uploaded",
  "type": "text_to_kcl_iteration",
  "updated_at": "2024-09-19T16:11:53.432Z",
  "user_id": "59f9b41e-0ee6-418e-ad6f-95b6c7a5fbb7"
}