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-07-04T14:09:22.728Z",
"created_at": "2025-07-04T14:09:22.728Z",
"error": "e50f1EfuYX8r",
"feedback": "thumbs_down",
"id": "a0c3580b-20a8-4d61-8082-0d3c3a63d6fc",
"kcl_version": "PnCsp53RMMrj3i36v0HovZ",
"metadata": {
"code": "Cn4JDTZgdb3yAMW0xvhzM1YMuHnry",
"original_source_code": "IJ",
"source_ranges": [
{
"file": "9SdxAu4mJqEf5hGwHrpvRrf34ZHgZ",
"prompt": "8J3NJ6i2s6nmzWgj3bGE",
"range": {
"end": {
"column": 8,
"line": 7
},
"start": {
"column": 8,
"line": 26
}
}
}
]
},
"model_version": "hmDusM6tNu92Ajeqnbic0BIeKrEe1",
"output_file": "hKRdP4u4uMV9uWzH",
"project_name": "DLGrRJ6Qfc7x5H63WBITqXft",
"prompt": "YgA4H369djA2Brd0",
"started_at": "2025-07-04T14:09:22.728Z",
"status": "completed",
"type": "text_to_cad",
"updated_at": "2025-07-04T14:09:22.728Z",
"user_id": "7b638511-5a73-4da3-99b6-ad839ca59cba"
}