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

# Scheduler api (/v1/scheduled-jobs/run-due)

> All due schedules in the caller's scope were fired.

### Request body

JSON body of type `GenericObject`.

### Response

`object`

<ResponseField name="fired" type="integer" required>
  Number of due jobs enqueued
</ResponseField>

### Status codes

| Code  | Meaning                                             |
| ----- | --------------------------------------------------- |
| `200` | All due schedules in the caller's scope were fired. |
| `400` | Validation error                                    |
| `401` | Unauthorized                                        |
| `404` | Not found                                           |
| `429` | Rate limited                                        |
| `500` | Internal error                                      |

<RequestExample>
  ```bash cURL theme={null}
  curl --request POST \
    --url 'https://api.workstream.stateset.com/v1/scheduled-jobs/run-due' \
    --header "x-api-key: $STATESET_TEMPORAL_API_KEY" \
    --header 'Content-Type: application/json' \
    --data '{}'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "fired": 1
  }
  ```
</ResponseExample>
