---
title: "同步执行工作流（等待结果）"
method: POST
path: "/workflows/{projectId}/execute"
tags: ["workflow"]
---

# 同步执行工作流（等待结果）

`POST /workflows/{projectId}/execute`

## Path parameters

- `projectId` string, required

## Request body

- object
  - `parameters` object

## Response `200`

执行完成，返回结果

- Execution
  - `id` string
  - `projectId` string
  - `status` 'PENDING' | 'RUNNING' | 'COMPLETED' | 'FAILED' | 'CANCELLED'
  - `startTime` string, date-time
  - `endTime` string, date-time
  - `parameters` object
  - `result` object
  - `error` object

## Other responses

- `202` — 执行超时，建议使用异步接口

---

[API](https://skmtc.dev/iflytek/apis/rpa-api.md) · [All operations](https://skmtc.dev/iflytek/apis/rpa-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/iflytek/rpa-api/revisions/eed8d6d43048/schema)
