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-10T11:06:02.849Z",
"created_at": "2025-07-10T11:06:02.849Z",
"error": "o5i",
"feedback": "rejected",
"id": "d5e589e1-6cf2-4ef4-82c3-3f8b7cc62d30",
"kcl_version": "8iNRs9JuJWktdM91Pib",
"metadata": {
"code": "8LLFrVf",
"original_source_code": "ChxM",
"source_ranges": [
{
"file": "gPduf3NZoFJWPMEEN",
"prompt": "Q0ikuDa3nvcEaPPcUf",
"range": {
"end": {
"column": 3,
"line": 17
},
"start": {
"column": 21,
"line": 15
}
}
}
]
},
"model_version": "bxX",
"output_file": "L4k0aR3hKQTkz",
"project_name": "KrOaGgtaL52CUb",
"prompt": "CXBfPAFkOxTjwvjM0sQGxx3m",
"started_at": "2025-07-10T11:06:02.849Z",
"status": "completed",
"type": "text_to_kcl_multi_file_iteration",
"updated_at": "2025-07-10T11:06:02.849Z",
"user_id": "bcb90ec6-9154-47ab-854e-df02f39af101"
}