Skip to content
Navigation

Create a task from a starter

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.

Authorization

  • bearerAuth
    optional
    HTTP Bearer

    Authorization: Bearer <token>

  • browserSession
    optional
    API key in cookie
  • localBrowserSession
    optional
    API key in cookie

Path parameters

  • id
    string
    ·
    one of 8 values
    required
    Allowed values: run-now, schedule-once, wait-until, wait-for-reply, retry-once, recurring-report, webhook-trigger, failed-run

Header parameters

  • X-Simplcron-Environment
    optional
    production
    or
    development

    Environment for a browser session. Bearer keys always use their fixed environment.

    default: "production"

Returns

200

Existing starter task returned with created set to false

JSON
  • task
    object
    required
    • id
      string
      required
    • name
      string
      required
      maxLength: 100 · minLength: 1
    • slug
      string
      required
      maxLength: 64 · pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$
    • url
      string
      required

      An allowlisted public HTTPS handler or a fixture URL for a built-in starter.

      format: uri · maxLength: 2048
    • maxAttempts
      integer
      required
      maximum: 5 · minimum: 1 · default: 3
    • createdAt
      string
      required
      format: date-time
    • description
      optional
      string
      maxLength: 200
    • starterId
      optional
      string

      The catalog identifier when this task was registered from a starter.

  • created
    boolean
    required

    True when this request registered the task.

201

Starter task registered with created set to true

JSON
  • task
    object
    required
    • id
      string
      required
    • name
      string
      required
      maxLength: 100 · minLength: 1
    • slug
      string
      required
      maxLength: 64 · pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$
    • url
      string
      required

      An allowlisted public HTTPS handler or a fixture URL for a built-in starter.

      format: uri · maxLength: 2048
    • maxAttempts
      integer
      required
      maximum: 5 · minimum: 1 · default: 3
    • createdAt
      string
      required
      format: date-time
    • description
      optional
      string
      maxLength: 200
    • starterId
      optional
      string

      The catalog identifier when this task was registered from a starter.

  • created
    boolean
    required

    True when this request registered the task.

400

This operation expects an empty request body
JSON
  • error
    string
    required

401

Authentication is required
JSON
  • error
    string
    required

403

The API key lacks the required permission
JSON
  • error
    string
    required

404

The starter is unknown or unavailable
JSON
  • error
    string
    required

409

Another task already uses this starter's slug
JSON
  • error
    string
    required

429

Task limit reached
JSON
  • error
    string
    required

Type to search…

↑↓ navigate↵ selectEsc close