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-07T17:16:38.711Z",
"created_at": "2025-01-07T17:16:38.711Z",
"error": "ajdUS5kK15vEwEuRihsCHqxIDhnKRP",
"feedback": "accepted",
"id": "54c584d9-7e00-4319-8fc9-86314641f827",
"metadata": {
"code": "TkU08jnR4D",
"original_source_code": "V",
"source_ranges": [
{
"prompt": "ja9AszgupiEyDxo5Aw",
"range": {
"end": {
"column": 13,
"line": 2
},
"start": {
"column": 6,
"line": 5
}
}
}
]
},
"model_version": "P3GqIJlzlPHJ",
"output_file": "bgjk259ILNQq8GrkAzO1yv1h6b6",
"prompt": "8PYP08dCcN04acHm1IBHh2OqvPxQH",
"started_at": "2025-01-07T17:16:38.711Z",
"status": "uploaded",
"type": "text_to_cad",
"updated_at": "2025-01-07T17:16:38.711Z",
"user_id": "90dbb673-97fa-4ea4-b66c-5e523db269b5"
}