Skip to Content
ML.aiDocs

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/routines

Lists 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

PartValue
Authorization headerBearer mlai_sk_.... Required.

Example

curl https://code.ml.ai/api/routines \
  -H "Authorization: Bearer mlai_sk_..."

Responses

HTTP statusMeaning
200The body has a routines list.
401No API key, or the key is wrong or revoked.

On this page