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-04-01T22:13:13.744Z",
"created_at": "2025-04-01T22:13:13.744Z",
"error": "E",
"feedback": "thumbs_down",
"id": "b64d71ab-0618-4c77-940b-dac2b3304145",
"kcl_version": "NpnokwYIn4mA7qOkCEiTUN5lBbXB6",
"metadata": {
"code": "KFY0FWXf2K6Nb",
"original_source_code": "BASmOFZdEhCIdsWFSKzg1wWA6",
"source_ranges": [
{
"file": "d",
"prompt": "I7yA7cUe4ATttcr4LmR5j",
"range": {
"end": {
"column": 2,
"line": 20
},
"start": {
"column": 9,
"line": 6
}
}
}
]
},
"model_version": "LFOrilSVR5H",
"output_file": "SrxOIwG2LS1Gr16oMPik5tcoBzTuB5",
"project_name": "0AL",
"prompt": "pCEXDYj2yUYbZb0NQE",
"started_at": "2025-04-01T22:13:13.744Z",
"status": "in_progress",
"type": "text_to_kcl_multi_file_iteration",
"updated_at": "2025-04-01T22:13:13.744Z",
"user_id": "4ed167f2-e963-4f94-9be7-0a87686aeff4"
}