---
title: "Trigger a schedule run immediately"
method: POST
path: "/v1/schedules/{schedule_id}/run"
tags: ["schedules"]
---

# Trigger a schedule run immediately

`POST /v1/schedules/{schedule_id}/run`

Managed-model published defaults: queueing run-now is free behind a $0.20 Developer API wallet gate; resulting non-Unlimited execution uses consumer subscription credits at 10 credits/minute with a 20-credit start minimum. Unlimited bypasses this runtime credit meter and start-balance gate while retaining separate token/concurrency safeguards. A BYOK schedule bypasses both wallet gates and the consumer-credit runtime meter and debits zero Coasty platform credits. Live-key schedule execution is billed directly by the selected provider. Under test auth, managed-mode execution remains deterministic sandbox; BYOK intent returns 422 LLM_PROVIDER_UNSUPPORTED before execution. It never decrypts or requires a stored provider key and makes no provider call. Read GET /v1/models pricing.schedules for effective deployed values and plan applicability.

## Headers

- `Idempotency-Key` string

## Request body

- RunScheduleRequest
  - `task_prompt_override` string, nullable
  - `triggered_context` object, nullable — Free-form context injected into the agent's prompt. Max 1 MB serialized.

## Response `200`

Run queued.

- RunScheduleResponse
  - `schedule_id` string, required
  - `run_id` string, required
  - `status` 'running' | 'queued' | 'skipped' | 'completed', required
  - `message` string, required
  - `request_id` string, required

## Other responses

- `400` — Invalid request body or parameters.
- `401` — Missing, invalid, or revoked API key. Pass `X-API-Key: sk-coasty-live-...` (or test).
- `402` — Insufficient balance for this operation. Direct metered API calls and managed-machine runtime use the prepaid Developer API wallet; scheduled execution is the documented consumer subscription-credit exception. Follow the operation's billing fields and top up the matching balance in the dashboard.
- `403` — API key lacks the required scope or tier-feature is unavailable on the caller's plan.
- `404` — Resource not found in this key's namespace.
- `409` — The resource state conflicts with this operation.
- `413` — The request body exceeds the endpoint limit.
- `422` — The JSON shape is valid but one or more values violate the endpoint contract.
- `429` — Rate or concurrency limit exceeded.
- `500` — Unexpected server error. Retry with exponential backoff.
- `502` — An upstream dependency returned an invalid response.
- `503` — A required service is temporarily unavailable.
- `504` — An upstream dependency timed out.

---

[API](https://skmtc.net/coasty/apis/coasty-public-api.md) · [All operations](https://skmtc.net/coasty/apis/coasty-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/coasty/coasty-public-api/revisions/f50d93b0d8a1/schema)
