B3

B3 Executions API

The Executions API from B3 — 7 operation(s) for executions.

Operations 8

GET /v1/executions Get executions #
POST /v1/executions Create executions #
GET /v1/executions/stats Get executions stats #
GET /v1/executions/{id} Get executions by id #
GET /v1/executions/{id}/events Get executions by id events #
GET /v1/executions/stream Stream org execution updates #
GET /v1/executions/{id}/stream Stream execution updates #
GET /v1/public/executions/{id}/stream Stream public execution updates #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/b3-executions-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

b3-executions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: Workflow management API for B3OS
  title: B3OS Workflow Executions API
  version: '1.0'
tags:
- name: Executions
paths:
  /v1/executions:
    get:
      description: List executions for the current organization
      parameters:
      - description: Number of items (default 20, max 100)
        in: query
        name: limit
        schema:
          type: integer
      - description: Offset for pagination (default 0)
        in: query
        name: offset
        schema:
          type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListExecutionsSuccessResponse'
          description: OK
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse'
          description: Bad Request
      tags:
      - Executions
      summary: Get executions
      x-summary-source: derived
      operationId: getV1Executions
      x-operation-id-source: derived
    post:
      description: Create an execution for a workflow
      requestBody:
        content:
          application/json:
            schema:
              oneOf:
              - type: object
              - $ref: '#/components/schemas/CreateExecutionParams'
                summary: request
                description: Execution details
        description: Execution details
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateExecutionSuccessResponse'
          description: OK
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse'
          description: Bad Request
      tags:
      - Executions
      summary: Create executions
      x-summary-source: derived
      operationId: postV1Executions
      x-operation-id-source: derived
  /v1/executions/stats:
    get:
      description: Get external execution stats for an organization
      parameters:
      - description: Start timestamp (Unix milliseconds)
        in: query
        name: from
        required: true
        schema:
          type: integer
      - description: End timestamp (Unix milliseconds)
        in: query
        name: to
        required: true
        schema:
          type: integer
      - description: Granularity (hourly or daily)
        in: query
        name: granularity
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetExecutionStatsSuccessResponse'
          description: OK
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse'
          description: Bad Request
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse'
          description: Internal Server Error
      tags:
      - Executions
      summary: Get executions stats
      x-summary-source: derived
      operationId: getV1ExecutionsStats
      x-operation-id-source: derived
  /v1/executions/{id}:
    get:
      description: Get a single execution by ID
      parameters:
      - description: Execution ID
        in: path
        name: id
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetExecutionSuccessResponse'
          description: OK
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse'
          description: Bad Request
      tags:
      - Executions
      summary: Get executions by id
      x-summary-source: derived
      operationId: getV1ExecutionsById
      x-operation-id-source: derived
  /v1/executions/{id}/events:
    get:
      description: Get events for an execution
      parameters:
      - description: Execution ID
        in: path
        name: id
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetExecutionEventsSuccessResponse'
          description: OK
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse'
          description: Bad Request
      tags:
      - Executions
      summary: Get executions by id events
      x-summary-source: derived
      operationId: getV1ExecutionsByIdEvents
      x-operation-id-source: derived
  /v1/executions/stream:
    get:
      description: SSE endpoint for real-time org-wide external execution updates.
      responses:
        '200':
          content:
            text/event-stream:
              schema:
                type: string
          description: SSE stream with execution updates
        '400':
          content:
            text/event-stream:
              schema:
                $ref: '#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse'
          description: Bad Request
      summary: Stream org execution updates
      tags:
      - Executions
      operationId: getV1ExecutionsStream
      x-operation-id-source: derived
  /v1/executions/{id}/stream:
    get:
      description: SSE endpoint for real-time external execution status updates.
      parameters:
      - description: Execution ID
        in: path
        name: id
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            text/event-stream:
              schema:
                type: string
          description: SSE stream with execution updates
        '400':
          content:
            text/event-stream:
              schema:
                $ref: '#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse'
          description: Bad Request
        '403':
          content:
            text/event-stream:
              schema:
                $ref: '#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse'
          description: Forbidden
      summary: Stream execution updates
      tags:
      - Executions
      operationId: getV1ExecutionsByIdStream
      x-operation-id-source: derived
  /v1/public/executions/{id}/stream:
    get:
      description: SSE endpoint for real-time public execution status updates using the client token returned at creation time.
      parameters:
      - description: Execution ID
        in: path
        name: id
        required: true
        schema:
          type: string
      - description: Client token returned when the execution was created
        in: query
        name: token
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            text/event-stream:
              schema:
                type: string
          description: SSE stream with execution updates
        '400':
          content:
            text/event-stream:
              schema:
                $ref: '#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse'
          description: Bad Request
        '401':
          content:
            text/event-stream:
              schema:
                $ref: '#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse'
          description: Unauthorized
      summary: Stream public execution updates
      tags:
      - Executions
      operationId: getV1PublicExecutionsByIdStream
      x-operation-id-source: derived
components:
  schemas:
    GetExecutionSuccessResponse:
      properties:
        code:
          example: 200
          type: integer
        data:
          $ref: '#/components/schemas/GetExecutionData'
        message:
          example: success
          type: string
        requestId:
          example: abc-123
          type: string
      type: object
    github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ExecutionStatsSummary:
      properties:
        averageDurationMs:
          type: number
        cancelled:
          type: integer
        failed:
          type: integer
        inProgress:
          type: integer
        partial:
          type: integer
        succeeded:
          type: integer
        successRate:
          type: number
        terminal:
          type: integer
        total:
          type: integer
      type: object
    github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ExternalExecution:
      properties:
        checkoutSessionId:
          type: string
        clientSafeMetadata:
          additionalProperties: {}
          type: object
        createdAt:
          type: string
        externalRef:
          type: string
        finishedAt:
          type: string
        id:
          type: string
        idempotencyKey:
          type: string
        initiatedById:
          type: string
        initiatedByType:
          type: string
        orderId:
          type: string
        organizationId:
          type: string
        paymentStatus:
          type: string
        requestPayload:
          additionalProperties: {}
          type: object
        responsePayload:
          additionalProperties: {}
          type: object
        runId:
          type: string
        sourceEntityId:
          type: string
        sourceEntityType:
          type: string
        sourceSystem:
          type: string
        startedAt:
          type: string
        status:
          $ref: '#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ExternalExecutionStatus'
        statusReason:
          type: string
        updatedAt:
          type: string
        workflowId:
          type: string
      type: object
    ListExecutionsSuccessResponse:
      properties:
        code:
          example: 200
          type: integer
        data:
          $ref: '#/components/schemas/PaginatedData-github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity_ExternalExecution'
        message:
          example: success
          type: string
        requestId:
          example: abc-123
          type: string
      type: object
    github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ExecutionStatusCount:
      properties:
        count:
          type: integer
        status:
          $ref: '#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ExternalExecutionStatus'
      type: object
    CreateExecutionSuccessResponse:
      properties:
        code:
          example: 200
          type: integer
        data:
          $ref: '#/components/schemas/CreateExecutionData'
        message:
          example: success
          type: string
        requestId:
          example: abc-123
          type: string
      type: object
    github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ExternalExecutionStatus:
      enum:
      - awaiting_payment
      - payment_confirmed
      - workflow_queued
      - workflow_running
      - workflow_waiting
      - workflow_succeeded
      - workflow_partial
      - workflow_failed
      - workflow_cancelled
      type: string
      x-enum-varnames:
      - ExternalExecutionStatusAwaitingPayment
      - ExternalExecutionStatusPaymentConfirmed
      - ExternalExecutionStatusWorkflowQueued
      - ExternalExecutionStatusWorkflowRunning
      - ExternalExecutionStatusWorkflowWaiting
      - ExternalExecutionStatusWorkflowSucceeded
      - ExternalExecutionStatusWorkflowPartial
      - ExternalExecutionStatusWorkflowFailed
      - ExternalExecutionStatusWorkflowCancelled
    github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ExternalExecutionEvent:
      properties:
        createdAt:
          type: string
        data:
          additionalProperties: {}
          type: object
        eventType:
          type: string
        executionId:
          type: string
        id:
          type: string
        level:
          type: string
        message:
          type: string
        nodeId:
          type: string
        organizationId:
          type: string
        requestId:
          type: string
        runId:
          type: string
        title:
          type: string
        workflowId:
          type: string
      type: object
    CreateExecutionParams:
      properties:
        clientSafeMetadata:
          additionalProperties: {}
          type: object
        externalRef:
          type: string
        idempotencyKey:
          type: string
        requestPayload:
          additionalProperties: {}
          type: object
        sourceEntityId:
          type: string
        sourceEntityType:
          type: string
        sourceSystem:
          type: string
        workflowId:
          type: string
      required:
      - sourceEntityType
      - sourceSystem
      - workflowId
      type: object
    GetExecutionData:
      properties:
        events:
          items:
            $ref: '#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ExternalExecutionEvent'
          type: array
          uniqueItems: false
        execution:
          $ref: '#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ExternalExecution'
        message:
          type: string
      type: object
    GetExecutionStatsSuccessResponse:
      properties:
        code:
          example: 200
          type: integer
        data:
          $ref: '#/components/schemas/ExecutionStatsData'
        message:
          example: success
          type: string
        requestId:
          example: abc-123
          type: string
      type: object
    github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.RecentExecutionFailure:
      properties:
        createdAt:
          type: string
        executionId:
          type: string
        finishedAt:
          type: string
        runId:
          type: string
        sourceSystem:
          type: string
        status:
          $ref: '#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ExternalExecutionStatus'
        statusReason:
          type: string
        workflowId:
          type: string
      type: object
    PaginatedData-github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity_ExternalExecution:
      properties:
        hasMore:
          type: boolean
        items:
          items:
            $ref: '#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ExternalExecution'
          type: array
          uniqueItems: false
        limit:
          type: integer
        offset:
          type: integer
      type: object
    github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ExecutionTimeSeriesPoint:
      properties:
        bucketStart:
          type: string
        cancelled:
          type: integer
        failed:
          type: integer
        partial:
          type: integer
        succeeded:
          type: integer
        total:
          type: integer
      type: object
    github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ExecutionSourceSystemStat:
      properties:
        cancelled:
          type: integer
        failed:
          type: integer
        partial:
          type: integer
        sourceSystem:
          type: string
        succeeded:
          type: integer
        total:
          type: integer
      type: object
    CreateExecutionData:
      properties:
        clientToken:
          type: string
        execution:
          $ref: '#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ExternalExecution'
      type: object
    github_com_b3-fun_b3-mono_services_b3os-workflow_internal_app_api_http.ErrorResponse:
      properties:
        code:
          type: integer
        details:
          items: {}
          type: array
          uniqueItems: false
        message:
          type: string
        requestId:
          type: string
      type: object
    ExecutionStatsData:
      properties:
        granularity:
          type: string
        recentFailures:
          items:
            $ref: '#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.RecentExecutionFailure'
          type: array
          uniqueItems: false
        sourceSystems:
          items:
            $ref: '#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ExecutionSourceSystemStat'
          type: array
          uniqueItems: false
        statuses:
          items:
            $ref: '#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ExecutionStatusCount'
          type: array
          uniqueItems: false
        summary:
          $ref: '#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ExecutionStatsSummary'
        timeSeries:
          items:
            $ref: '#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ExecutionTimeSeriesPoint'
          type: array
          uniqueItems: false
      type: object
    GetExecutionEventsSuccessResponse:
      properties:
        code:
          example: 200
          type: integer
        data:
          items:
            $ref: '#/components/schemas/github_com_b3-fun_b3-mono_services_b3os-workflow_internal_pkg_entity.ExternalExecutionEvent'
          type: array
          uniqueItems: false
        message:
          example: success
          type: string
        requestId:
          example: abc-123
          type: string
      type: object