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-03T10:08:23.574Z",
"created_at": "2025-07-03T10:08:23.574Z",
"error": "9nB5gcTVRBrqF9dS",
"feedback": "thumbs_up",
"id": "48170581-03b9-418e-bf30-8ba1a3a1ed88",
"kcl_version": "V5OgnWwx",
"metadata": {
"code": "PTouSSWSivX8El1cRAB",
"original_source_code": "EgWqoOryKBGnGHh1",
"source_ranges": [
{
"file": "8RW",
"prompt": "bdGiuh3a4H3sz",
"range": {
"end": {
"column": 15,
"line": 29
},
"start": {
"column": 4,
"line": 10
}
}
}
]
},
"model_version": "01QvCLt9wyX",
"output_file": "hDuCQBB1KHXeRdSynwVRs9",
"project_name": "pyCzKLBifKwZf5iIq4NL3G967I5",
"prompt": "TAgK95TJ8RCVs9J77ghQmt3Ajhu",
"started_at": "2025-07-03T10:08:23.574Z",
"status": "uploaded",
"type": "text_to_cad",
"updated_at": "2025-07-03T10:08:23.574Z",
"user_id": "d409dadc-70be-4d49-943d-f58eb8315284"
}