List scheduled tasks
Returns the background tasks this server runs, with their schedules and most recent outcomes. Schedules are set in the server's configuration and cannot be changed through the API.
Required scopes: xmb:admin
Authorization
BearerAuth An access token issued by the xeonr identity provider.
In: header
Header Parameters
Define the version of the Connect protocol
Define the timeout, in ms
Request Body
application/json
Slug of the server whose tasks to list. System-wide tasks are returned alongside, because an administrator looking at a server expects to see the housekeeping too.
1 <= length <= 128Response Body
application/json
application/json
curl -X POST "https://xmb.gg/xmb.api.v1.TaskService/ListScheduledTasks" \ -H "Connect-Protocol-Version: 1" \ -H "Connect-Timeout-Ms: 1000" \ -H "Content-Type: application/json" \ -d '{}'{
"tasks": [
"map[cron:23 */6 * * * cronOverridden:false description:Looks for new, changed and removed files, and brings their details up to date. enabled:true key:library.scan lastRun:map[durationMs:280000 finishedAt:2026-10-22T03:04:41Z issueErrorCount:0 issueWarningCount:0 lockKey:metadata-refresh:server:12 progress:1 progressStep:Finished. queuedAt:2026-10-22T03:00:00Z serverSlug:luke-s-basement startedAt:2026-10-22T03:00:01Z status:TASK_RUN_STATUS_SUCCEEDED taskKey:metadata.refresh taskName:Metadata refresh trigger:TASK_RUN_TRIGGER_SCHEDULE uuid:4f3e2d1c-0b9a-4876-a543-210fedcba987] lockKey:library-scan:server:12 name:Library scan nextRunAt:2026-10-22T12:23:00Z routine:false scheduleLabel:Every six hours serverSlug:luke-s-basement stages:[map[groupKey:3b9e6f0a-1c2d-4e5f-8a7b-6c5d4e3f2a10 groupName:Living room groupOrdinal:0 key:walk name:Reading folders ordinal:3 status:TASK_STAGE_STATUS_PENDING]]]"
]
}Get task run POST
Returns a single task run and the state of each step in it. **Required scopes:** `xmb:admin`
List task run problems POST
Returns the specific items a task run could not process, such as files it could not read. A run may succeed overall and still report these. **Required scopes:** `xmb:admin`