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-03-14T16:49:27.930Z",
"created_at": "2025-03-14T16:49:27.930Z",
"error": "55",
"feedback": "accepted",
"id": "403d5ed5-3362-4b5b-9fd9-90405195c17f",
"kcl_version": "N3hS4qOSEtHdyOQIDabi84Rpy",
"metadata": {
"code": "vedeURTZE1jXWUe",
"original_source_code": "sQ6cvQrCXoTIMe",
"source_ranges": [
{
"file": "WY0K8T",
"prompt": "8s2",
"range": {
"end": {
"column": 9,
"line": 18
},
"start": {
"column": 9,
"line": 25
}
}
}
]
},
"model_version": "oWsE",
"output_file": "SmBpSFbF9yVGE",
"project_name": "dA",
"prompt": "9kTVgiLw8w6GG9QosDowiV5rCw",
"started_at": "2025-03-14T16:49:27.930Z",
"status": "completed",
"type": "text_to_kcl_multi_file_iteration",
"updated_at": "2025-03-14T16:49:27.930Z",
"user_id": "3a53149c-3dff-46cd-b47d-f84a35a4012c"
}