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-25T16:37:37.742Z",
"created_at": "2025-04-25T16:37:37.742Z",
"error": "va2UxgTZ7ZT7xVvgHeLbVDk",
"feedback": "rejected",
"id": "5a0f56c9-4141-4079-a562-6a848e60195a",
"kcl_version": "37TR",
"metadata": {
"code": "IxcLlQuQeV4fOwL0GqrWhS9",
"original_source_code": "lsExMU6kO0C85C3",
"source_ranges": [
{
"file": "ng7K",
"prompt": "VY1wqRrmbE",
"range": {
"end": {
"column": 31,
"line": 13
},
"start": {
"column": 16,
"line": 4
}
}
}
]
},
"model_version": "LYKAiYJ3",
"output_file": "AkLB3Gk6",
"project_name": "utVa6Y6sPVHwgF5Nnvh",
"prompt": "y74LN2jBrOMbDM",
"started_at": "2025-04-25T16:37:37.742Z",
"status": "failed",
"type": "text_to_kcl",
"updated_at": "2025-04-25T16:37:37.742Z",
"user_id": "23622e72-4f4e-4f0c-b67e-3371c2dfbc3f"
}