---
title: "Manually trigger a workflow"
method: POST
path: "/api/v2/workflows/{id}/runs"
tags: ["Workflows"]
---

# Manually trigger a workflow

`POST /api/v2/workflows/{id}/runs`

## Request

- Base URL: `https://console.jumpcloud.com`
- URL: `https://console.jumpcloud.com/api/v2/workflows/{id}/runs`
- Auth: API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/jumpcloud/apis/jumpcloud-console-api/docs/api/v2/workflows/:id/runs/post.ts> (a function with typed inputs; its response is checked against the schema)

Manually trigger a workflow by its ID

## Path parameters

- `id` string, required

## Request body

- JumpcloudHttpWorkflowsTriggerWorkflowRequest: Request body to trigger a workflow
  - `data` object, required: Data to trigger the workflow

## Response `202`

Workflow trigger accepted. Query the workflow runs endpoint to get the status of this run.

- JumpcloudHttpWorkflowsTriggerWorkflowResponse: Response containing triggered workflow run
  - `id` string: Unique identifier of the workflow run
  - `workflowId` string: Unique identifier of the workflow
  - `status` string: Status of the workflow run
  - `startedAt` string, date-time: Timestamp when the workflow run started

## Other responses

- `400`: Bad request - invalid ID format or request body
- `401`: Unauthorized - authentication required
- `404`: Workflow not found
- `default`: Generic error response

---

[API](https://skmtc.dev/jumpcloud/apis/jumpcloud-console-api.md) - [All operations](https://skmtc.dev/jumpcloud/apis/jumpcloud-console-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jumpcloud/apis/jumpcloud-console-api/revisions/f396d9271b46?raw)
