# Process API

Trigger a Process synchronously or asynchronously, and read Process execution history.

Type: reference · Mode: develop · Status: unverified

---
The Process API endpoints trigger and monitor automated workflows (business Processes):
starting a Process synchronously or asynchronously, and retrieving execution history.

See [REST API reference](/reference/rest-api/) for the base URL and authentication header
every request below needs.

## GET /v1/process/execution

**Get Process History:** retrieve a history of executed Processes (workflow runs),
optionally filtered by search text.

Query parameters (none mandatory)

<div class="sym-spec-table">

| Parameter | Type | Notes |
| --- | --- | --- |
| `searchText` | string | Filters the returned executions by text. |

</div>

**Example request:**

```
curl --location 'https://app.symphona.ai/dashboard/api/v1/process/execution?searchText=process' \
--header 'apiKey: xxxxxx'
```

**Sample response (200 OK):**

```json
[
  {
    "procInstanceId": "410d25af-285f-11f0-a092-624783295a60",
    "currentTask": "end__end___END",
    "startTime": "2025-05-03T20:43:22.687",
    "endTime": "2025-05-03T20:43:42.44",
    "duration": "19753",
    "workflowId": "eb70f4cc-5be2-422f-ad77-62c93c8836b3",
    "workflowName": "Conference Fortune Process",
    "requestData": "{\"params\":{...},\"processId\":\"eb70f4cc-5be2-422f-ad77-62c93c8836b3\"}",
    "status": "SUCCESS",
    "environment": "No Environment",
    "params": {
      "BusinessSize": "10-50",
      "Industry": "Banking"
    }
  }
]
```

## POST /v1/process/trigger/sync

**Trigger Process (Synchronous):** trigger a Process execution and wait for it to
complete before returning the result.

**Request body:**

<div class="sym-spec-table">

| Field | Type | Need | Notes |
| --- | --- | --- | --- |
| `processName` | string | Required | Name (or ID) of the Process to execute. |
| `parameters` | object | Optional | Input parameters the Process needs to run. |

</div>

**Example request:**

```
curl --location 'https://app.symphona.ai/dashboard/api/v1/process/trigger/sync' \
--header 'apiKey: xxxxxx' \
--header 'Content-Type: application/json' \
--data '{
    "processName": "54a60131-344e-4f94-a8ee-f27904eef33b"
}'
```

**Sample response (200 OK):**

```json
[
  {
    "procInstanceId": "42908d2a-a5f7-11f0-b7d7-4af4e4592aac",
    "projectName": "API_DEMO",
    "startTime": "2025-10-10T16:36:24.076",
    "endTime": "2025-10-10T16:36:24.691",
    "duration": "615",
    "currentTask": "END",
    "status": "SUCCESS",
    "executionData": "{\"DemoParam\":\"ThisIsMyParam\"}"
  }
]
```

**Errors:**

<div class="sym-spec-table">

| Status | Meaning |
| --- | --- |
| `400 Bad Request` | Invalid request format, or a missing Process identifier. |
| `500 Internal Server Error` | The Process execution failed; the response may include error details. |

</div>

## POST /v1/process/trigger/async

**Trigger Process (Asynchronous):** start a Process and return immediately, without
waiting for it to complete.

**Request body:** same shape as the synchronous trigger above (`processName` required,
`parameters` optional).

**Example request:**

```
curl --location 'https://app.symphona.ai/dashboard/api/v1/process/trigger/async' \
--header 'apiKey: xxxxxx' \
--header 'Content-Type: application/json' \
--data '{
  "processName": "54a60131-344e-4f94-a8ee-f27904eef33b",
  "parameters": {
    "firstName": "First Name",
    "lastName": "Last Name",
    "email": "test@test.com"
  }
}'
```

**Sample response (200 OK):**

```json
{
  "id": "2368e1da-b00c-4d8d-9693-28d85a9278ed",
  "orgId": "8117cd7a-8d74-47c0-951f-c56aaef1c2a3",
  "userId": "e9e33274-46d7-4fea-b0dd-ba6c65470397",
  "source": "NO_INPUT_DATA",
  "workflowName": "API Demo",
  "executionStatus": "PROCESSING",
  "executionTime": "2025-10-09T16:33:59",
  "createdAt": "2025-10-10T16:33:59",
  "executedAt": "2025-10-10T16:33:59",
  "parsedData": { "1": {} },
  "scheduled": false
}
```

Note the response shape differs from the synchronous trigger: this returns the queued
execution's own record (`executionStatus: "PROCESSING"`), not a completed run, since the
Process hasn't finished yet.

**Errors:** same as the synchronous trigger: `400 Bad Request` for an invalid request or
missing Process identifier, `500 Internal Server Error` if the Process execution failed.