Temporal Workflows API

Start, describe, list, count, and read the history of workflow executions.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 7

POST /namespaces/{namespace}/workflows/{workflow_id} Start a workflow execution #
GET /namespaces/{namespace}/workflows/{execution.workflow_id} Describe a workflow execution #
GET /namespaces/{namespace}/workflows List workflow executions #
GET /namespaces/{namespace}/workflow-count Count workflow executions #
GET /namespaces/{namespace}/archived-workflows List archived workflow executions #
GET /namespaces/{namespace}/workflows/{execution.workflow_id}/history Get workflow execution history #
GET /namespaces/{namespace}/workflows/{execution.workflow_id}/history-reverse Get workflow execution history (reverse) #

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/temporal-io:temporal-io-workflows-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

temporal-io-workflows-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Temporal HTTP Workflows API
  description: The Temporal HTTP API is a first-party grpc-gateway that maps a REST/JSON subset of the Temporal WorkflowService (gRPC) onto HTTP paths under `/api/v1`.
  version: '1.0'
  contact:
    name: Temporal Technologies
    url: https://temporal.io
  license:
    name: MIT
    url: https://github.com/temporalio/api/blob/master/LICENSE
servers:
- url: https://{namespace}.{account}.tmprl.cloud/api/v1
  description: Temporal Cloud (per-namespace HTTP API endpoint)
  variables:
    namespace:
      default: your-namespace
      description: Your Temporal Cloud namespace name.
    account:
      default: your-account
      description: Your Temporal Cloud account (short) ID.
- url: http://localhost:7243/api/v1
  description: Self-hosted frontend HTTP API (when the HTTP port is enabled)
security:
- bearerAuth: []
tags:
- name: Workflows
  description: Start, describe, list, count, and read the history of workflow executions.
paths:
  /namespaces/{namespace}/workflows/{workflow_id}:
    parameters:
    - $ref: '#/components/parameters/Namespace'
    - name: workflow_id
      in: path
      required: true
      description: The workflow ID to start (client-assigned).
      schema:
        type: string
    post:
      operationId: startWorkflowExecution
      tags:
      - Workflows
      summary: Start a workflow execution
      description: Starts a new workflow execution. Maps to the gRPC StartWorkflowExecution RPC. The request body carries the workflow type, task queue, input, and options.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/StartWorkflowExecutionRequest'
      responses:
        '200':
          description: The started workflow execution's run ID.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StartWorkflowExecutionResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/ResourceExhausted'
  /namespaces/{namespace}/workflows/{execution.workflow_id}:
    parameters:
    - $ref: '#/components/parameters/Namespace'
    - name: execution.workflow_id
      in: path
      required: true
      description: The workflow ID of the execution to describe.
      schema:
        type: string
    get:
      operationId: describeWorkflowExecution
      tags:
      - Workflows
      summary: Describe a workflow execution
      description: Returns information about the specified workflow execution - its status, type, task queue, timestamps, pending activities, and more. Maps to the gRPC DescribeWorkflowExecution RPC.
      parameters:
      - name: execution.run_id
        in: query
        required: false
        description: Optional run ID; defaults to the latest run.
        schema:
          type: string
      responses:
        '200':
          description: Details about the workflow execution.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DescribeWorkflowExecutionResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
  /namespaces/{namespace}/workflows:
    parameters:
    - $ref: '#/components/parameters/Namespace'
    get:
      operationId: listWorkflowExecutions
      tags:
      - Workflows
      summary: List workflow executions
      description: Lists workflow executions in a namespace, optionally filtered with a List Filter (SQL-like visibility query). Maps to the gRPC ListWorkflowExecutions RPC.
      parameters:
      - name: query
        in: query
        required: false
        description: A List Filter (visibility query) to filter executions.
        schema:
          type: string
      - name: page_size
        in: query
        required: false
        schema:
          type: integer
      - name: next_page_token
        in: query
        required: false
        schema:
          type: string
          format: byte
      responses:
        '200':
          description: A page of workflow executions.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListWorkflowExecutionsResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
  /namespaces/{namespace}/workflow-count:
    parameters:
    - $ref: '#/components/parameters/Namespace'
    get:
      operationId: countWorkflowExecutions
      tags:
      - Workflows
      summary: Count workflow executions
      description: Returns the number of workflow executions matching a visibility query. Maps to the gRPC CountWorkflowExecutions RPC.
      parameters:
      - name: query
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: The matching execution count.
          content:
            application/json:
              schema:
                type: object
                properties:
                  count:
                    type: string
                    format: int64
        '401':
          $ref: '#/components/responses/Unauthorized'
  /namespaces/{namespace}/archived-workflows:
    parameters:
    - $ref: '#/components/parameters/Namespace'
    get:
      operationId: listArchivedWorkflowExecutions
      tags:
      - Workflows
      summary: List archived workflow executions
      description: Lists workflow executions that have been archived. Maps to the gRPC ListArchivedWorkflowExecutions RPC.
      parameters:
      - name: query
        in: query
        required: false
        schema:
          type: string
      - name: page_size
        in: query
        required: false
        schema:
          type: integer
      - name: next_page_token
        in: query
        required: false
        schema:
          type: string
          format: byte
      responses:
        '200':
          description: A page of archived workflow executions.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListWorkflowExecutionsResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
  /namespaces/{namespace}/workflows/{execution.workflow_id}/history:
    parameters:
    - $ref: '#/components/parameters/Namespace'
    - $ref: '#/components/parameters/ExecutionWorkflowId'
    get:
      operationId: getWorkflowExecutionHistory
      tags:
      - Workflows
      summary: Get workflow execution history
      description: Returns the event history of a workflow execution. Maps to the gRPC GetWorkflowExecutionHistory RPC.
      parameters:
      - name: execution.run_id
        in: query
        required: false
        schema:
          type: string
      - name: next_page_token
        in: query
        required: false
        schema:
          type: string
          format: byte
      responses:
        '200':
          description: The workflow event history.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetWorkflowExecutionHistoryResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
  /namespaces/{namespace}/workflows/{execution.workflow_id}/history-reverse:
    parameters:
    - $ref: '#/components/parameters/Namespace'
    - $ref: '#/components/parameters/ExecutionWorkflowId'
    get:
      operationId: getWorkflowExecutionHistoryReverse
      tags:
      - Workflows
      summary: Get workflow execution history (reverse)
      description: Returns the event history of a workflow execution in reverse order. Maps to the gRPC GetWorkflowExecutionHistoryReverse RPC.
      parameters:
      - name: execution.run_id
        in: query
        required: false
        schema:
          type: string
      - name: next_page_token
        in: query
        required: false
        schema:
          type: string
          format: byte
      responses:
        '200':
          description: The workflow event history in reverse order.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetWorkflowExecutionHistoryResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  schemas:
    GetWorkflowExecutionHistoryResponse:
      type: object
      properties:
        history:
          type: object
          properties:
            events:
              type: array
              items:
                type: object
                additionalProperties: true
        nextPageToken:
          type: string
          format: byte
        archived:
          type: boolean
    ListWorkflowExecutionsResponse:
      type: object
      properties:
        executions:
          type: array
          items:
            type: object
            additionalProperties: true
        nextPageToken:
          type: string
          format: byte
    DescribeWorkflowExecutionResponse:
      type: object
      additionalProperties: true
      properties:
        workflowExecutionInfo:
          type: object
          additionalProperties: true
        pendingActivities:
          type: array
          items:
            type: object
            additionalProperties: true
    Payloads:
      type: object
      description: Temporal payloads envelope. Each payload carries base64-encoded metadata and data.
      properties:
        payloads:
          type: array
          items:
            type: object
            properties:
              metadata:
                type: object
                additionalProperties:
                  type: string
                  format: byte
              data:
                type: string
                format: byte
    TaskQueue:
      type: object
      properties:
        name:
          type: string
        kind:
          type: string
    Status:
      type: object
      description: A google.rpc.Status-style error payload.
      properties:
        code:
          type: integer
        message:
          type: string
        details:
          type: array
          items:
            type: object
            additionalProperties: true
    StartWorkflowExecutionRequest:
      type: object
      properties:
        namespace:
          type: string
        workflowId:
          type: string
        workflowType:
          $ref: '#/components/schemas/WorkflowType'
        taskQueue:
          $ref: '#/components/schemas/TaskQueue'
        input:
          $ref: '#/components/schemas/Payloads'
        requestId:
          type: string
        workflowIdReusePolicy:
          type: string
        workflowExecutionTimeout:
          type: string
        workflowRunTimeout:
          type: string
        workflowTaskTimeout:
          type: string
    WorkflowType:
      type: object
      properties:
        name:
          type: string
    StartWorkflowExecutionResponse:
      type: object
      properties:
        runId:
          type: string
  responses:
    NotFound:
      description: The requested workflow execution or namespace was not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Status'
    Unauthorized:
      description: Missing or invalid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Status'
    ResourceExhausted:
      description: The namespace rate limit (APS/RPS/OPS) was exceeded. gRPC returns a ResourceExhausted status; over HTTP this surfaces as 429. Clients should back off and retry.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Status'
  parameters:
    Namespace:
      name: namespace
      in: path
      required: true
      description: The Temporal namespace.
      schema:
        type: string
    ExecutionWorkflowId:
      name: execution.workflow_id
      in: path
      required: true
      description: The workflow ID of the target execution.
      schema:
        type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Bearer API key. On Temporal Cloud, pass an API key as `Authorization: Bearer <api-key>`. Self-hosted deployments may use mTLS instead. Requests are scoped to the namespace in the path.'