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-21T20:00:01.899Z",
"created_at": "2025-04-21T20:00:01.899Z",
"error": "sNsDklsRLfQckd0UhUJJvOMpxF6mIb",
"feedback": "thumbs_down",
"id": "4c6879aa-1389-408f-a8e5-af1f63664fa8",
"kcl_version": "Xp8aBWzzbSeDypTW1OnlI",
"metadata": {
"code": "lVJQsodXs2gZeNPgseI",
"original_source_code": "zXszVFdtQmqYvoxT1yery77haq7",
"source_ranges": [
{
"file": "VuWYgmPbg",
"prompt": "eXgGN3pnRolKqwZ1Lof6d4vcqxe",
"range": {
"end": {
"column": 8,
"line": 29
},
"start": {
"column": 17,
"line": 10
}
}
}
]
},
"model_version": "kFcYi3ff2HqU7fg4JKF",
"output_file": "ZvpU0DFlcgbIL",
"project_name": "MyRqXrddlCIdI5TmELcwGJDgm",
"prompt": "",
"started_at": "2025-04-21T20:00:01.899Z",
"status": "in_progress",
"type": "text_to_kcl_iteration",
"updated_at": "2025-04-21T20:00:01.899Z",
"user_id": "af9fe831-4b80-4e18-95ad-f3ddef8ddc94"
}