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,
get
/ml-prompts/{id}$ curl "https://api.zoo.dev/ml-prompts/{id}" \
--header "Authorization: Bearer $TOKEN"
200 OK
Response{
"completed_at": "2025-01-28T16:27:34.699Z",
"created_at": "2025-01-28T16:27:34.699Z",
"error": "Gh0qxLmZilCWlqBACVOH4WpVYO",
"feedback": "thumbs_down",
"id": "cc31f96b-abde-43ab-a670-f6e43860cba7",
"metadata": {
"code": "BkIKyQoEbS7oFFscERFiygU1UB8P",
"original_source_code": "yrHFGxQmDOZ0qVgcTR9",
"source_ranges": [
{
"prompt": "",
"range": {
"end": {
"column": 6,
"line": 6
},
"start": {
"column": 3,
"line": 20
}
}
}
]
},
"model_version": "xOnwmlUz",
"output_file": "2",
"prompt": "mEjLdhjgViiFl4",
"started_at": "2025-01-28T16:27:34.699Z",
"status": "completed",
"type": "text_to_cad",
"updated_at": "2025-01-28T16:27:34.699Z",
"user_id": "b4b71c30-33a5-4cf7-ba03-0130cab5907c"
}