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-05-22T02:02:51.562Z",
"created_at": "2025-05-22T02:02:51.562Z",
"error": "HgYAS6hjxqRtJzU",
"feedback": "accepted",
"id": "d9490d13-32cf-4a70-93ed-fefd6fa3f8b1",
"kcl_version": "UxfUMeawCZ7qpQjq9q1CF",
"metadata": {
"code": "OThj98ZHOYwdjV6YjH6d8f",
"original_source_code": "U4LdiCC0",
"source_ranges": [
{
"file": "E1GDe3hOXRaM",
"prompt": "yfrMpaYAf2FZ8zMNV4mz6lSbqrG2Qj",
"range": {
"end": {
"column": 4,
"line": 13
},
"start": {
"column": 4,
"line": 3
}
}
}
]
},
"model_version": "dQyxlM33p",
"output_file": "",
"project_name": "7vfOpX1uaOVRoNCjYEoJr",
"prompt": "VAvHuik3F1WGhlgqdOPTSZlGg7",
"started_at": "2025-05-22T02:02:51.562Z",
"status": "failed",
"type": "text_to_kcl",
"updated_at": "2025-05-22T02:02:51.562Z",
"user_id": "2ef2156d-18d7-4aeb-ace2-2f9e7d74531c"
}