List routines
GET /api/routines lists your ML AI Code routines with their id, name, trigger, on or off state and the last run state. Example and responses.
GET https://code.ml.ai/api/routinesLists your routines with their id, name, trigger, whether they are on, and the last run state. Use an id from this list to start a routine.
Request
| Part | Value |
|---|---|
Authorization header | Bearer mlai_sk_.... Required. |
Example
curl https://code.ml.ai/api/routines \
-H "Authorization: Bearer mlai_sk_..."Responses
| HTTP status | Meaning |
|---|---|
| 200 | The body has a routines list. |
| 401 | No API key, or the key is wrong or revoked. |