Skip to main content
GET
/
v1
/
agents
/
{agent_id}
/
scheduled-tasks
List Scheduled Tasks
curl --request GET \
  --url https://api.xpander.ai/v1/agents/{agent_id}/scheduled-tasks \
  --header 'x-api-key: <api-key>'
[
  {
    "id": "<string>",
    "cron": "<string>",
    "prompt": "<string>",
    "title": "<string>",
    "enabled": true
  }
]
Returns the recurring scheduled tasks configured on an agent. A scheduled task runs the agent on a cron schedule with a fixed prompt.

Response

[]
array
Array of scheduled tasks.

Example Request

curl -X GET -H "x-api-key: <your-api-key>" \
  "https://api.xpander.ai/v1/agents/<agent-id>/scheduled-tasks"

Example Response

[
  {
    "id": "<task-id>",
    "title": "Daily ticket digest",
    "cron": "0 9 * * *",
    "prompt": "Summarize yesterday's support tickets and post to #ops.",
    "enabled": true
  }
]

Authorizations

x-api-key
string
header
required

API Key for authentication

Path Parameters

agent_id
string
required

Response

Successful Response

id
string
required

Source-node id. Pass it to update/remove/run the task.

cron
string
required

Cron expression (5-field crontab, UTC), e.g. '0 9 * * *'.

prompt
string
required

Instruction the agent runs on each fire.

title
string | null

Human-readable label for the task.

enabled
boolean
default:true

Whether the task is active. Disabled tasks keep their config but do not fire.