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-09T18:25:41.594Z",
"created_at": "2025-01-09T18:25:41.594Z",
"error": "cpSQwiKGRF",
"feedback": "thumbs_down",
"id": "54887687-c4df-49a5-8a5d-96becb59d031",
"metadata": {
"code": "J2B",
"original_source_code": "Sq1Bp3RZeDYe4HPE3Prugjuarw",
"source_ranges": [
{
"prompt": "oVfUs3wB5y4eomqltjrfCcTD",
"range": {
"end": {
"column": 12,
"line": 8
},
"start": {
"column": 27,
"line": 22
}
}
}
]
},
"model_version": "D08",
"output_file": "uQi3Yo9DHYrzWpWWUPY",
"prompt": "pxwE3Dou5wsNHZtihsbw9oEegL0Y",
"started_at": "2025-01-09T18:25:41.594Z",
"status": "queued",
"type": "text_to_kcl_iteration",
"updated_at": "2025-01-09T18:25:41.594Z",
"user_id": "9405d1c9-bd54-4621-b31d-83847c5d52b6"
}