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-01T20:11:54.873Z",
"created_at": "2025-07-01T20:11:54.873Z",
"error": "4Bhk86tNBIqTXsR1",
"feedback": "accepted",
"id": "ad0ae19b-fc40-4cf6-8af3-e4eb3cb9a23c",
"kcl_version": "NqHvRcGZor5U2P5KEQoUsjfNGm0sw",
"metadata": {
"code": "7RYebhArv32imAulf4PPXR",
"original_source_code": "zwjaRaFHThayxVYqtgilFrJYEglQP",
"source_ranges": [
{
"file": "03jwnQwHhJDSgKYBAr9lsMNNRb",
"prompt": "0",
"range": {
"end": {
"column": 5,
"line": 24
},
"start": {
"column": 12,
"line": 22
}
}
}
]
},
"model_version": "FBv3Tm",
"output_file": "ilcEQJuFiFJalLagRhzUIFyyd",
"project_name": "",
"prompt": "ix5Db8LkszKn2RqvRgH",
"started_at": "2025-07-01T20:11:54.873Z",
"status": "queued",
"type": "text_to_kcl",
"updated_at": "2025-07-01T20:11:54.873Z",
"user_id": "37259875-0ff1-4113-b4d1-0b2d74d63ab2"
}