---
title: "Create a task from a starter"
---

> Documentation Index
> Fetch the complete documentation index at: https://simplcron.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a task from a starter

Path: Simplcron API › Tasks

`POST /v1/tasks/starters/{id}`

Register the starter in the authenticated workspace, project, and environment. An API key needs tasks:write. Repeating the request returns the previously registered task. Submit a job or configure a schedule separately.

## Authentication

Requires one of the following:

- `bearerAuth`, http bearer, header `Authorization`
- `browserSession`, apiKey, in cookie
- `localBrowserSession`, apiKey, in cookie

## Path parameters

- `id` (`createTaskFromStarter.path.id`; string, required)
  - one of `"run-now"`, `"schedule-once"`, `"wait-until"`, `"wait-for-reply"`, `"retry-once"`, `"recurring-report"`, `"webhook-trigger"`, `"failed-run"`

## Header parameters

- `X-Simplcron-Environment` (`createTaskFromStarter.header.X-Simplcron-Environment`; string, optional) — Environment for a browser session. Bearer keys always use their fixed environment.
  - one of `"production"`, `"development"` · default: `"production"`

## Code samples

### cURL

```bash
curl --request POST \
  --url '<base-url>/v1/tasks/starters/run-now' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = '<base-url>/v1/tasks/starters/run-now';
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "<base-url>/v1/tasks/starters/run-now"

headers = {"Authorization": "Bearer <token>"}

response = requests.post(url, headers=headers)

print(response.text)
```

## Responses

### 200

Existing starter task returned with created set to false

#### Example

```json
{
  "task": {
    "id": "string",
    "name": "string",
    "slug": "string",
    "url": "http://example.com",
    "description": "string",
    "starterId": "string",
    "maxAttempts": 3,
    "createdAt": "2019-08-24T14:15:22Z"
  },
  "created": true
}
```

- `task` (`createTaskFromStarter.response.200.task`; object, required)
  - `id` (`createTaskFromStarter.response.200.task.id`; string, required)
  - `name` (`createTaskFromStarter.response.200.task.name`; string, required)
    - maxLength: `100` · minLength: `1`
  - `slug` (`createTaskFromStarter.response.200.task.slug`; string, required)
    - maxLength: `64` · pattern: `^[a-z0-9]+(?:-[a-z0-9]+)*$`
  - `url` (`createTaskFromStarter.response.200.task.url`; string, required) — An allowlisted public HTTPS handler or a fixture URL for a built-in starter.
    - format: `uri` · maxLength: `2048`
  - `maxAttempts` (`createTaskFromStarter.response.200.task.maxAttempts`; integer, required)
    - maximum: `5` · minimum: `1` · default: `3`
  - `createdAt` (`createTaskFromStarter.response.200.task.createdAt`; string, required)
    - format: `date-time`
  - `description` (`createTaskFromStarter.response.200.task.description`; string, optional)
    - maxLength: `200`
  - `starterId` (`createTaskFromStarter.response.200.task.starterId`; string, optional) — The catalog identifier when this task was registered from a starter.
- `created` (`createTaskFromStarter.response.200.created`; boolean, required) — True when this request registered the task.

### 201

Starter task registered with created set to true

#### Example

```json
{
  "task": {
    "id": "string",
    "name": "string",
    "slug": "string",
    "url": "http://example.com",
    "description": "string",
    "starterId": "string",
    "maxAttempts": 3,
    "createdAt": "2019-08-24T14:15:22Z"
  },
  "created": true
}
```

- `task` (`createTaskFromStarter.response.201.task`; object, required)
  - `id` (`createTaskFromStarter.response.201.task.id`; string, required)
  - `name` (`createTaskFromStarter.response.201.task.name`; string, required)
    - maxLength: `100` · minLength: `1`
  - `slug` (`createTaskFromStarter.response.201.task.slug`; string, required)
    - maxLength: `64` · pattern: `^[a-z0-9]+(?:-[a-z0-9]+)*$`
  - `url` (`createTaskFromStarter.response.201.task.url`; string, required) — An allowlisted public HTTPS handler or a fixture URL for a built-in starter.
    - format: `uri` · maxLength: `2048`
  - `maxAttempts` (`createTaskFromStarter.response.201.task.maxAttempts`; integer, required)
    - maximum: `5` · minimum: `1` · default: `3`
  - `createdAt` (`createTaskFromStarter.response.201.task.createdAt`; string, required)
    - format: `date-time`
  - `description` (`createTaskFromStarter.response.201.task.description`; string, optional)
    - maxLength: `200`
  - `starterId` (`createTaskFromStarter.response.201.task.starterId`; string, optional) — The catalog identifier when this task was registered from a starter.
- `created` (`createTaskFromStarter.response.201.created`; boolean, required) — True when this request registered the task.

### 400

This operation expects an empty request body

#### Example

```json
{
  "error": "string"
}
```

- `error` (`createTaskFromStarter.response.400.error`; string, required)

### 401

Authentication is required

#### Example

```json
{
  "error": "string"
}
```

- `error` (`createTaskFromStarter.response.401.error`; string, required)

### 403

The API key lacks the required permission

#### Example

```json
{
  "error": "string"
}
```

- `error` (`createTaskFromStarter.response.403.error`; string, required)

### 404

The starter is unknown or unavailable

#### Example

```json
{
  "error": "string"
}
```

- `error` (`createTaskFromStarter.response.404.error`; string, required)

### 409

Another task already uses this starter's slug

#### Example

```json
{
  "error": "string"
}
```

- `error` (`createTaskFromStarter.response.409.error`; string, required)

### 429

Task limit reached

#### Example

```json
{
  "error": "string"
}
```

- `error` (`createTaskFromStarter.response.429.error`; string, required)


Source: https://simplcron.dev/docs/api/create-task-from-starter/index.md
