---
title: "Run Scheduled Task Now"
method: POST
path: "/v1/agents/{agent_id}/scheduled-tasks/{task_id}/run"
tags: ["API v1", "Agents", "Scheduled Tasks"]
---

# Run Scheduled Task Now

`POST /v1/agents/{agent_id}/scheduled-tasks/{task_id}/run`

## Request

- Base URL: `https://api.xpander.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.xpander.ai/v1/agents/{agent_id}/scheduled-tasks/{task_id}/run`
- Auth: API key in header `x-api-key`

Fire a scheduled task immediately, regardless of its cron schedule.

## Path parameters

- `agent_id` string, required
- `task_id` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/xpander/apis/xpander-ai-api-service.md) - [All operations](https://skmtc.dev/xpander/apis/xpander-ai-api-service/llms.txt) - [OpenAPI document](https://skmtc.dev/xpander/apis/xpander-ai-api-service/revisions/4389ec0875d0?raw)
