API → MLGet a ML prompthidden
hidden
Parameters
Name
Type
Req.
Returns
- 200 OK
successful operation
Name
Type
Req.
body
objectoptionalObject Properties
Possible values
thumbs_up
: Thumbs up.thumbs_down
: Thumbs down.accepted
: Accepted.rejected
: Rejected.
metadata
objectoptionalObject Properties
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.
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.
get
/ml-prompts/{id}$ curl "https://api.zoo.dev/ml-prompts/{id}" \
--header "Authorization: Bearer $TOKEN"
200 OK
Response{
"completed_at": "2025-06-13T06:23:47.492Z",
"created_at": "2025-06-13T06:23:47.492Z",
"error": "RsPMuIrzPlMhFYp3xmjjR",
"feedback": "thumbs_up",
"id": "853aaa71-85e3-4fac-887b-a6094ed6c138",
"kcl_version": "sLntdgFdKF29nXV6SN",
"metadata": {
"code": "GrA9F3GOyigUzsU53yob4661",
"original_source_code": "8p5LIPzF",
"source_ranges": [
{
"file": "oaj0lg3cV9C9YTUvcdgOeDYGp",
"prompt": "Z45DG2wALfu4",
"range": {
"end": {
"column": 20,
"line": 11
},
"start": {
"column": 25,
"line": 9
}
}
}
]
},
"model_version": "CKlRagopEFB44SbIhN",
"output_file": "GYvOzAfdPEhZj7pkrdNYWOo",
"project_name": "EvVpPRErDSDoTd4dXCHsNDlgMcVozD",
"prompt": "tYbrf598ZQauftpnY59aLiW",
"started_at": "2025-06-13T06:23:47.492Z",
"status": "failed",
"type": "text_to_kcl",
"updated_at": "2025-06-13T06:23:47.492Z",
"user_id": "b2e10639-737a-40b0-9ba5-6ef6ffe9be7d"
}