Palbase Machines · API
GET
/machines/{name}/tasksList a machine's tasks
A page of the machine's tasks, newest first: of one state and one task type, or all. A task that succeeded or was cancelled is kept a day, one that failed 30.
Called by your server, with the project's secret key.
Path
namestring · requiredThe machine's name: lowercase letters, digits and dashes, starting with a letter and not ending with a dash, 32 at most.Query
state"waiting" | "running" | "succeeded" | "failed" | "cancelled" · optionalOnly tasks in this state.taskstring · optionalOnly tasks of this task type.limitinteger · optionalThe most tasks a page holds (50 when not given).cursorstring · optionalThe next_cursor of the page before.curl
curl -X GET "https://<your-ref>.palbase.studio/machines/<name>/tasks" \
-H "apikey: $PALBASE_SECRET_KEY"Responses
200A page of the machine's tasks
400Validation failed or a required field is missing
401Missing or invalid API key
403Not the project's secret key
404The project has no machine of this name
429Over the project's request limit, or its machine time for this period is used up
503Temporarily unavailable; retrying is safe after Retry-After
defaultAn error: the envelope names it (`error`) and explains it (`error_description`).
Operation ListTasks of machines's contract.