API → ML → Get 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-03-12T01:36:14.578Z",
"created_at": "2025-03-12T01:36:14.578Z",
"error": "yvXC0tdYFzU8IHSisHg8K",
"feedback": "thumbs_up",
"id": "e5630f34-0548-4233-98b8-63021460baea",
"kcl_version": "lAsahN",
"metadata": {
"code": "0usJZlY3XSbQtmSMv7AA",
"original_source_code": "Hs7TseXaTT1Wvf",
"source_ranges": [
{
"file": "jOrj",
"prompt": "ap6QHxKSS4wzhVRB9c3wP885sQPkq",
"range": {
"end": {
"column": 21,
"line": 13
},
"start": {
"column": 22,
"line": 2
}
}
}
]
},
"model_version": "oQthJNYWuWW",
"output_file": "jJEE5hxkDw9arBPtzbwN01nLwhWf",
"project_name": "Ex0Ls9",
"prompt": "kvxGpvqp2EIsVz7rt",
"started_at": "2025-03-12T01:36:14.578Z",
"status": "failed",
"type": "text_to_kcl_iteration",
"updated_at": "2025-03-12T01:36:14.578Z",
"user_id": "796607c5-568c-4210-8896-fc21312e4f48"
}