---
title: "task.execution"
---

> 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.

# task.execution

Path: Simplcron API

`POST task.execution`

_Webhook._

A run attempt was claimed and is starting. Deliveries can repeat. Deduplicate by the event ID.

## Header parameters

- `X-Simplcron-Signature` (`task.execution.header.X-Simplcron-Signature`; string, required) — t=<Unix seconds>,v1=<HMAC SHA-256 hex> over the exact body prefixed by the timestamp and a period.
- `X-Simplcron-Event` (`task.execution.header.X-Simplcron-Event`; string, required) — Lifecycle event name.
  - one of `"task.execution"`, `"task.completed"`, `"task.failed"`
- `X-Simplcron-Delivery` (`task.execution.header.X-Simplcron-Delivery`; string, required) — Delivery identifier. Use the event body ID to deduplicate.

## Request body

_Required._

- `id` (`task.execution.id`; string, required)
- `type` (`task.execution.type`; string, required)
  - one of `"task.execution"`, `"task.completed"`, `"task.failed"`
- `runId` (`task.execution.runId`; string, required)
- `task` (`task.execution.task`; string, required)
  - maxLength: `64` · pattern: `^[a-z0-9]+(?:-[a-z0-9]+)*$`
- `status` (`task.execution.status`; string, required)
  - one of `"scheduled"`, `"queued"`, `"running"`, `"retrying"`, `"succeeded"`, `"failed"`, `"cancelled"`
- `attempt` (`task.execution.attempt`; integer, required)
  - maximum: `5` · minimum: `0`
- `time` (`task.execution.time`; string, required)
  - format: `date-time`
- `environment` (`task.execution.environment`; string, required)
  - one of `"production"`, `"development"`

## Example request

```json
{
  "id": "string",
  "type": "task.execution",
  "runId": "string",
  "task": "string",
  "status": "scheduled",
  "attempt": 5,
  "time": "2019-08-24T14:15:22Z",
  "environment": "production"
}
```

## Responses

### 200

Receiver accepted the event

### 204

Receiver accepted the event


Source: https://simplcron.dev/docs/api/webhooks/task.execution/index.md
