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-20T22:41:10.282Z",
  "created_at": "2024-09-20T22:41:10.282Z",
  "error": "KWiX6QevFoB",
  "feedback": "rejected",
  "id": "58a39c06-99f3-442b-8136-94816cff0d6f",
  "metadata": {
    "code": "2e",
    "original_source_code": "9",
    "source_ranges": [
      {
        "prompt": "djqKfkSAgvdu",
        "range": {
          "end": {
            "column": 11,
            "line": 27
          },
          "start": {
            "column": 27,
            "line": 13
          }
        }
      }
    ]
  },
  "model_version": "JKtdKMW8SkRp6ZGUu",
  "output_file": "TjQIdvYIuWLMeOX",
  "prompt": "D22c7UBWFgycT7v",
  "started_at": "2024-09-20T22:41:10.282Z",
  "status": "queued",
  "type": "text_to_cad",
  "updated_at": "2024-09-20T22:41:10.282Z",
  "user_id": "d3d7985c-594a-42b3-9a32-9ec2a1e78e27"
}