---
title: "POST /v1/public/workflows/{id}/executions"
method: POST
path: "/v1/public/workflows/{id}/executions"
---

# POST /v1/public/workflows/{id}/executions

`POST /v1/public/workflows/{id}/executions`

Create a client-trackable execution session for a public_execute workflow

## Path parameters

- `id` string, required

## Request body

- union
  - object
  - CreatePublicExecutionParams
    - `clientSafeMetadata` object
    - `externalRef` string
    - `idempotencyKey` string
    - `requestPayload` object
    - `sourceEntityId` string
    - `sourceEntityType` string, required
    - `sourceSystem` string, required

## Response `200`

OK

- CreateExecutionSuccessResponse
  - `code` integer
  - `data` CreateExecutionData
    - `clientToken` string
    - `execution` ExternalExecution
      - `checkoutSessionId` string
      - `clientSafeMetadata` object
      - `createdAt` string
      - `externalRef` string
      - `finishedAt` string
      - `id` string
      - `idempotencyKey` string
      - `initiatedById` string
      - `initiatedByType` string
      - `orderId` string
      - `organizationId` string
      - `paymentStatus` string
      - `requestPayload` object
      - `responsePayload` object
      - `runId` string
      - `sourceEntityId` string
      - `sourceEntityType` string
      - `sourceSystem` string
      - `startedAt` string
      - `status` 'awaiting_payment' | 'payment_confirmed' | 'workflow_queued' | 'workflow_running' | 'workflow_waiting' | 'workflow_succeeded' | 'workflow_partial' | 'workflow_failed' | 'workflow_cancelled'
      - `statusReason` string
      - `updatedAt` string
      - `workflowId` string
  - `message` string
  - `requestId` string

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `404` — Not Found
- `429` — Too Many Requests

---

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