Skip to content
Navigation

Submit a job

POST
/v1/jobs

Queue a registered task or schedule a future execution. Use waitUntil with starter-wait-until or replyTimeoutSeconds with starter-wait-for-reply to pause before the first handler attempt. The wait resumes under the same run ID. The submit_job MCP tool accepts these fields. Use Idempotency-Key to retry submission.

Authorization

  • bearerAuth
    optional
    HTTP Bearer

    Authorization: Bearer <token>

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

Header parameters

  • Idempotency-Key
    optional
    string

    Reuse the same value when repeating the same submission. Reusing it with different inputs returns a conflict.

    maxLength: 160 · minLength: 1

Request body JSON required

  • task
    string
    required
    maxLength: 64 · pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$
  • payload
    object
    required
  • maxAttempts
    optional
    integer

    Defaults to the task's maximum attempts.

    maximum: 5 · minimum: 1
  • runAt
    optional
    string

    An explicit-offset RFC 3339 timestamp for a delayed start. Omit when using a wait starter.

    format: date-time
  • waitUntil
    optional
    string

    Required for starter-wait-until and available only for that starter. Give an explicit-offset RFC 3339 resume time. For new submissions it must be in the future, up to 30 days ahead. Omit runAt.

    format: date-time
  • replyTimeoutSeconds
    optional
    integer

    Available only for starter-wait-for-reply. The timeout starts when Simplcron accepts the job. Omit runAt and waitUntil.

    maximum: 2592000 · minimum: 5 · default: 60

Returns

200

Previously accepted run with the same idempotency key

JSON
  • id
    string
    required
  • task
    string
    required
    maxLength: 64 · pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$
  • status
    string
    ·
    one of 8 values
    required
    Allowed values: scheduled, queued, waiting, running, retrying, succeeded, failed, cancelled
  • attempt
    integer
    required
    maximum: 5 · minimum: 0
  • maxAttempts
    integer
    required
    maximum: 5 · minimum: 1 · default: 3
  • createdAt
    string
    required
    format: date-time
  • runId
    optional
    string
  • taskName
    optional
    string
  • source
    optional
    string
  • payload
    optional
    object
  • output
    optional
    unknown
  • error
    optional

    Any of the following:

    • string
    • null
  • startedAt
    optional

    Any of the following:

    • string
    • null
  • finishedAt
    optional

    Any of the following:

    • string
    • null
  • runAt
    optional

    Any of the following:

    • string
    • null
  • nextAttemptAt
    optional

    Any of the following:

    • string
    • null
  • waitUntil
    optional
    string

    Planned resume time for Wait Until or the reply deadline for Wait for Reply.

    format: date-time
  • waitStartedAt
    optional
    string | null

    Time when a wait run entered its pause, or null until it has paused.

    format: date-time
  • waitResumedAt
    optional
    string | null

    Time when a wait run resumed, or null before resumption.

    format: date-time
  • replyTimeoutSeconds
    optional
    integer

    Timeout applied to this Wait for Reply run.

    maximum: 2592000 · minimum: 5
  • waitOutcome
    optional
    reply
    or
    timeout
    or
    null

    Outcome of a Wait for Reply run. Null until the run resumes.

  • reply
    optional
    object | null

    The accepted reply on a full Wait for Reply run record. Null while there is no accepted reply, including after timeout. Run summaries omit this field.

    • receivedAt
      string
      required
      format: date-time
    • payload
      object
      required
  • durationMs
    optional

    Any of the following:

    • number
    • null
  • previousRunId
    optional

    Any of the following:

    • string
    • null

202

Run accepted

JSON
  • id
    string
    required
  • task
    string
    required
    maxLength: 64 · pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$
  • status
    string
    ·
    one of 8 values
    required
    Allowed values: scheduled, queued, waiting, running, retrying, succeeded, failed, cancelled
  • attempt
    integer
    required
    maximum: 5 · minimum: 0
  • maxAttempts
    integer
    required
    maximum: 5 · minimum: 1 · default: 3
  • createdAt
    string
    required
    format: date-time
  • runId
    optional
    string
  • taskName
    optional
    string
  • source
    optional
    string
  • payload
    optional
    object
  • output
    optional
    unknown
  • error
    optional

    Any of the following:

    • string
    • null
  • startedAt
    optional

    Any of the following:

    • string
    • null
  • finishedAt
    optional

    Any of the following:

    • string
    • null
  • runAt
    optional

    Any of the following:

    • string
    • null
  • nextAttemptAt
    optional

    Any of the following:

    • string
    • null
  • waitUntil
    optional
    string

    Planned resume time for Wait Until or the reply deadline for Wait for Reply.

    format: date-time
  • waitStartedAt
    optional
    string | null

    Time when a wait run entered its pause, or null until it has paused.

    format: date-time
  • waitResumedAt
    optional
    string | null

    Time when a wait run resumed, or null before resumption.

    format: date-time
  • replyTimeoutSeconds
    optional
    integer

    Timeout applied to this Wait for Reply run.

    maximum: 2592000 · minimum: 5
  • waitOutcome
    optional
    reply
    or
    timeout
    or
    null

    Outcome of a Wait for Reply run. Null until the run resumes.

  • reply
    optional
    object | null

    The accepted reply on a full Wait for Reply run record. Null while there is no accepted reply, including after timeout. Run summaries omit this field.

    • receivedAt
      string
      required
      format: date-time
    • payload
      object
      required
  • durationMs
    optional

    Any of the following:

    • number
    • null
  • previousRunId
    optional

    Any of the following:

    • string
    • null

400

Invalid input
JSON
  • error
    string
    required

401

Authentication is required
JSON
  • error
    string
    required

403

The credential lacks permission
JSON
  • error
    string
    required

404

Task not found in this environment
JSON
  • error
    string
    required

409

An idempotency key already exists for different inputs
JSON
  • error
    string
    required

429

Workspace run limit reached
JSON
  • error
    string
    required

Type to search…

↑↓ navigate↵ selectEsc close