---
title: "Start Script Agent Run"
method: POST
path: "/api/v1/scripts/{script}/agent/generate"
tags: ["scripts"]
---

# Start Script Agent Run

`POST /api/v1/scripts/{script}/agent/generate`

## Request

- Base URL: `https://subscribr.ai`
- URL: `https://subscribr.ai/api/v1/scripts/{script}/agent/generate`
- Auth: HTTP bearer

## Request body

- StartScriptAgentRunRequest
  - `model` 'kimi_k26' | 'minimax_m27' | 'glm_51' | 'claude_haiku_45' | 'claude_sonnet_46' | 'claude_opus_48' | 'claude_fable_5' | 'gpt55' | 'gpt54' | 'gpt54_mini' | 'gpt6_astra' | 'claude-opus-5-5' | 'claude-fable-5-1' | 'gpt-6-luna' | 'gpt-6.1-sol' | 'gpt-6-sol' | 'gpt-6-astra'
  - `research` 'auto' | 'on' | 'off' | 'deep_research'
  - `visual_cues` 'off' | 'on'

## Response `202`

Successful response.

- StartScriptAgentRunResponse
  - `cancel_url` string, uri, required
  - `message` string, required
  - `model` string, required
  - `poll_url` string, uri, required
  - `research` string, required
  - `resolved_model` string, required
  - `run_id` integer, required
  - `status` string, required
  - `visual_cues` string, required

## Other responses

- `400`: The request could not be processed.
- `401`: Authentication is required.
- `403`: The token, role, entitlement, or object policy denies this action.
- `404`: The resource was not found or is not visible.
- `422`: One or more request fields are invalid.
- `429`: The request exceeded a rate limit.
- `500`: The service is temporarily unavailable.

---

[API](https://skmtc.dev/subscribr/apis/subscribr-customer-api.md) · [All operations](https://skmtc.dev/subscribr/apis/subscribr-customer-api/llms.txt) · [OpenAPI document](https://skmtc.dev/subscribr/apis/subscribr-customer-api/revisions/d1f105b58bbd?raw)
