Skip to content
Endless Documentation
Scheduled tasks

Get scheduled task

GET
/scheduled-tasks/{scheduled_task_id}

Returns a single scheduled task. Scoped to the scheduled task named by scheduled_task_id.

Authorization

headerAuthorizationBearer <esk_live_…>

A workspace API key created in workspace settings. It acts as the member who created it, narrowed to its abilities, projects and credit limit. Each operation names the ability it needs.

Scope: schedules:read

Path Parameters

scheduled_task_id*string
Formatuuid

Header Parameters

Endless-Api-Version?string

Pin the caller to an API major (1). Omit to accept the current version. A major this deployment cannot serve is refused with 400 unsupported_api_version.

Response Body

OK

application/json
  1. response
id*string
Formatuuid
organization_id*string
created_by_id*string
name*string
prompt*string
model*string|null
chat_model_id*|null
media_model*string|null
media_model_id*|null
media_intent*|null
cadence?||unknown||
time*string
timezone*string
status*string
Value in"active""paused"
visibility*string
Value in"private""workspace"
workspace_role*string
Value in"viewer""editor""manager""owner"
email_enabled*boolean
delivery*string
Value in"every_run""when_relevant"
next_run_at*|null
last_run_at*|null
mod_schedule_id*string|null
project_id*|null
deleted_at*|null
deleted_by_id*string|null
created_at*string
Formatdate-time
updated_at*string
Formatdate-time
last_run_status*|null
running_runs*integer
Range0 <= value <= 9007199254740991
disabled_connector_ids*array<string>
disabled_skill_ids*array<string>
email_recipient_ids*array<string>
email_recipient_emails*array<string>
shared*boolean
can_edit*boolean
can_delete*boolean
Example Request
curl -X GET 'https://api.endless.app/scheduled-tasks/0191e5a2-c15d-7147-ba2f-7c8e0d36f915'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "organization_id": "string",  "created_by_id": "string",  "name": "string",  "prompt": "string",  "model": "string",  "chat_model_id": "085fd23c-6380-4bcb-90c1-820841aba3a2",  "media_model": "string",  "media_model_id": "6bfa6c29-9e81-4c8d-888f-372202e5c5da",  "media_intent": "image",  "cadence": {    "kind": "daily",    "repeat": {      "every_minutes": 15,      "until": "string"    }  },  "time": "string",  "timezone": "string",  "status": "active",  "visibility": "private",  "workspace_role": "viewer",  "email_enabled": true,  "delivery": "every_run",  "next_run_at": "2019-08-24T14:15:22Z",  "last_run_at": "2019-08-24T14:15:22Z",  "mod_schedule_id": "string",  "project_id": "405d8375-3514-403b-8c43-83ae74cfe0e9",  "deleted_at": "2019-08-24T14:15:22Z",  "deleted_by_id": "string",  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z",  "last_run_status": "in_progress",  "running_runs": 0,  "disabled_connector_ids": [    "string"  ],  "disabled_skill_ids": [    "string"  ],  "email_recipient_ids": [    "string"  ],  "email_recipient_emails": [    "string"  ],  "shared": true,  "can_edit": true,  "can_delete": true}