Keep Workflows API

The workflows API from Keep — 11 operation(s) for workflows.

GitHub OpenAPI

Operations 14

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /workflows List workflows · Get Workflows #
Ask an LLM
“Which workflows are defined in my Keep account?”
“Can I list only v2 workflows?”
Tell an agent
List my workflows.
List workflows where is_v2 is {is_v2}.
POST /workflows Create or update a workflow · Create Workflow #
Ask an LLM
“How do I create a new workflow from a YAML file?”
“Can I overwrite an existing workflow when I upload it?”
Tell an agent
Create a workflow from file {file}.
Create or update a workflow with {file}.
GET /workflows/export Export all workflows as YAML · Export Workflows #
Ask an LLM
“Can I download every workflow as a YAML file?”
“Where do I get the raw workflow definitions for all workflows?”
Tell an agent
Export all workflows as YAML.
Download every workflow definition.
POST /workflows/{workflow_id}/run Run a workflow · Run Workflow #
Ask an LLM
“How do I trigger a workflow to run?”
“Can I kick off a workflow by its ID?”
Tell an agent
Run workflow {workflow_id}.
Trigger workflow {workflow_id} now.
POST /workflows/test Test a workflow definition · Run Workflow From Definition #
Ask an LLM
“Can I test a workflow without saving it?”
“What happens when I send a workflow definition to the test endpoint?”
Tell an agent
Test this workflow definition: {file}.
Preview how a workflow would run from {file}.
POST /workflows/json Create a workflow from JSON · Create Workflow From Body #
Ask an LLM
“Is there a JSON endpoint for creating workflows?”
“Can I create a workflow from a JSON body instead of a file?”
Tell an agent
Create a workflow from the JSON body.
Create a workflow using the JSON definition I send.
GET /workflows/random-templates Get random workflow templates · Get Random Workflow Templates #
Ask an LLM
“Can I get a random workflow template to start from?”
“What workflow templates does the platform suggest at random?”
Tell an agent
Get a random workflow template.
Show me a random workflow template.
GET /workflows/{workflow_id} Get a workflow · Get Workflow By Id #
Ask an LLM
“What does a particular workflow contain?”
“Can I fetch one workflow by its ID?”
Tell an agent
Get workflow {workflow_id}.
Show the definition of workflow {workflow_id}.
PUT /workflows/{workflow_id} Update a workflow · Update Workflow By Id #
Ask an LLM
“How do I change an existing workflow?”
“Can I edit a workflow's definition by ID?”
Tell an agent
Update workflow {workflow_id}.
Edit the definition of workflow {workflow_id}.
DELETE /workflows/{workflow_id} Delete a workflow · Delete Workflow By Id #
Ask an LLM
“How do I delete a workflow?”
“Can I remove a workflow by its ID?”
Tell an agent destructive · confirm first
Delete workflow {workflow_id}.
Remove workflow {workflow_id} permanently.
GET /workflows/{workflow_id}/raw Get a workflow's raw definition · Get Raw Workflow By Id #
Ask an LLM
“Can I see the raw YAML of a workflow?”
“What does the unprocessed workflow definition look like?”
Tell an agent
Get the raw definition of workflow {workflow_id}.
Show the unprocessed YAML for workflow {workflow_id}.
GET /workflows/executions List workflow executions by alert fingerprint · Get Workflow Executions By Alert Fingerprint #
Ask an LLM
“Which workflows ran because of a particular alert?”
“Can I find workflow executions by alert fingerprint?”
Tell an agent
List workflow executions by alert fingerprint.
Find the workflows triggered by an alert.
GET /workflows/{workflow_id}/runs List a workflow's executions · Get Workflow By Id #
Ask an LLM
“What has happened when a workflow ran?”
“Can I filter a workflow's executions by status or trigger?”
Tell an agent
List executions of workflow {workflow_id}.
Show {status} executions of workflow {workflow_id}.
GET /workflows/{workflow_id}/runs/{workflow_execution_id} Get a workflow execution's status · Get Workflow Execution Status #
Ask an LLM
“Did a specific workflow run succeed or fail?”
“How do I check the status of one workflow execution?”
Tell an agent
Get the status of execution {workflow_execution_id} of workflow {workflow_id}.
Check whether execution {workflow_execution_id} of workflow {workflow_id} succeeded.

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/keep:keep-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

keep-workflows-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Keep Workflows API
  description: Rest API powering https://platform.keephq.dev and friends 🏄‍♀️
  version: 0.24.5
tags:
- name: Workflows
paths:
  /workflows:
    get:
      tags:
      - Workflows
      summary: Get Workflows
      description: Get workflows
      operationId: get_workflows_workflows_get
      parameters:
      - required: false
        schema:
          type: boolean
          title: Is V2
          default: false
        name: is_v2
        in: query
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                anyOf:
                - items:
                    $ref: '#/components/schemas/WorkflowDTO'
                  type: array
                - items:
                    type: object
                  type: array
                title: Response Get Workflows Workflows Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - API Key: []
      - HTTPBasic: []
      - OAuth2PasswordBearer: []
    post:
      tags:
      - Workflows
      summary: Create Workflow
      description: Create or update a workflow
      operationId: create_workflow_workflows_post
      requestBody:
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/Body_create_workflow_workflows_post'
        required: true
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkflowCreateOrUpdateDTO'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - API Key: []
      - HTTPBasic: []
      - OAuth2PasswordBearer: []
  /workflows/export:
    get:
      tags:
      - Workflows
      summary: Export Workflows
      description: export all workflow Yamls
      operationId: export_workflows_workflows_export_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                items:
                  type: string
                type: array
                title: Response Export Workflows Workflows Export Get
      security:
      - API Key: []
      - HTTPBasic: []
      - OAuth2PasswordBearer: []
  /workflows/{workflow_id}/run:
    post:
      tags:
      - Workflows
      summary: Run Workflow
      description: Run a workflow
      operationId: run_workflow_workflows__workflow_id__run_post
      parameters:
      - required: true
        schema:
          type: string
          title: Workflow Id
        name: workflow_id
        in: path
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: Body
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                title: Response Run Workflow Workflows  Workflow Id  Run Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - API Key: []
      - HTTPBasic: []
      - OAuth2PasswordBearer: []
  /workflows/test:
    post:
      tags:
      - Workflows
      summary: Run Workflow From Definition
      description: Test run a workflow from a definition
      operationId: run_workflow_from_definition_workflows_test_post
      requestBody:
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/Body_run_workflow_from_definition_workflows_test_post'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                title: Response Run Workflow From Definition Workflows Test Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - API Key: []
      - HTTPBasic: []
      - OAuth2PasswordBearer: []
  /workflows/json:
    post:
      tags:
      - Workflows
      summary: Create Workflow From Body
      description: Create or update a workflow
      operationId: create_workflow_from_body_workflows_json_post
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkflowCreateOrUpdateDTO'
      security:
      - API Key: []
      - HTTPBasic: []
      - OAuth2PasswordBearer: []
  /workflows/random-templates:
    get:
      tags:
      - Workflows
      summary: Get Random Workflow Templates
      description: Get random workflow templates
      operationId: get_random_workflow_templates_workflows_random_templates_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                items:
                  type: object
                type: array
                title: Response Get Random Workflow Templates Workflows Random Templates Get
      security:
      - API Key: []
      - HTTPBasic: []
      - OAuth2PasswordBearer: []
  /workflows/{workflow_id}:
    get:
      tags:
      - Workflows
      summary: Get Workflow By Id
      description: Get workflow by ID
      operationId: get_workflow_by_id_workflows__workflow_id__get
      parameters:
      - required: true
        schema:
          type: string
          title: Workflow Id
        name: workflow_id
        in: path
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - API Key: []
      - HTTPBasic: []
      - OAuth2PasswordBearer: []
    put:
      tags:
      - Workflows
      summary: Update Workflow By Id
      description: Update a workflow
      operationId: update_workflow_by_id_workflows__workflow_id__put
      parameters:
      - required: true
        schema:
          type: string
          title: Workflow Id
        name: workflow_id
        in: path
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkflowCreateOrUpdateDTO'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - API Key: []
      - HTTPBasic: []
      - OAuth2PasswordBearer: []
    delete:
      tags:
      - Workflows
      summary: Delete Workflow By Id
      description: Delete workflow
      operationId: delete_workflow_by_id_workflows__workflow_id__delete
      parameters:
      - required: true
        schema:
          type: string
          title: Workflow Id
        name: workflow_id
        in: path
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - API Key: []
      - HTTPBasic: []
      - OAuth2PasswordBearer: []
  /workflows/{workflow_id}/raw:
    get:
      tags:
      - Workflows
      summary: Get Raw Workflow By Id
      description: Get workflow executions by ID
      operationId: get_raw_workflow_by_id_workflows__workflow_id__raw_get
      parameters:
      - required: true
        schema:
          type: string
          title: Workflow Id
        name: workflow_id
        in: path
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: string
                title: Response Get Raw Workflow By Id Workflows  Workflow Id  Raw Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - API Key: []
      - HTTPBasic: []
      - OAuth2PasswordBearer: []
  /workflows/executions:
    get:
      tags:
      - Workflows
      summary: Get Workflow Executions By Alert Fingerprint
      description: Get workflow executions by alert fingerprint
      operationId: get_workflow_executions_by_alert_fingerprint_workflows_executions_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/WorkflowToAlertExecutionDTO'
                type: array
                title: Response Get Workflow Executions By Alert Fingerprint Workflows Executions Get
      security:
      - API Key: []
      - HTTPBasic: []
      - OAuth2PasswordBearer: []
  /workflows/{workflow_id}/runs:
    get:
      tags:
      - Workflows
      summary: Get Workflow By Id
      description: Get workflow executions by ID
      operationId: get_workflow_by_id_workflows__workflow_id__runs_get
      parameters:
      - required: true
        schema:
          type: string
          title: Workflow Id
        name: workflow_id
        in: path
      - required: false
        schema:
          type: integer
          title: Tab
          default: 1
        name: tab
        in: query
      - required: false
        schema:
          type: integer
          title: Limit
          default: 25
        name: limit
        in: query
      - required: false
        schema:
          type: integer
          title: Offset
          default: 0
        name: offset
        in: query
      - required: false
        schema:
          items:
            type: string
          type: array
          title: Status
        name: status
        in: query
      - required: false
        schema:
          items:
            type: string
          type: array
          title: Trigger
        name: trigger
        in: query
      - required: false
        schema:
          type: string
          title: Execution Id
        name: execution_id
        in: query
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkflowExecutionsPaginatedResultsDto'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - API Key: []
      - HTTPBasic: []
      - OAuth2PasswordBearer: []
  /workflows/{workflow_id}/runs/{workflow_execution_id}:
    get:
      tags:
      - Workflows
      summary: Get Workflow Execution Status
      description: Get a workflow execution status
      operationId: get_workflow_execution_status_workflows__workflow_id__runs__workflow_execution_id__get
      parameters:
      - required: true
        schema:
          type: string
          title: Workflow Execution Id
        name: workflow_execution_id
        in: path
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkflowExecutionDTO'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - API Key: []
      - HTTPBasic: []
      - OAuth2PasswordBearer: []
components:
  schemas:
    Body_run_workflow_from_definition_workflows_test_post:
      properties:
        file:
          type: string
          format: binary
          title: File
      type: object
      title: Body_run_workflow_from_definition_workflows_test_post
    WorkflowDTO:
      properties:
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
          default: Workflow file doesn't contain name
        description:
          type: string
          title: Description
          default: Workflow file doesn't contain description
        created_by:
          type: string
          title: Created By
        creation_time:
          type: string
          format: date-time
          title: Creation Time
        triggers:
          items:
            type: object
          type: array
          title: Triggers
        interval:
          type: integer
          title: Interval
        disabled:
          type: boolean
          title: Disabled
          default: false
        last_execution_time:
          type: string
          format: date-time
          title: Last Execution Time
        last_execution_status:
          type: string
          title: Last Execution Status
        providers:
          items:
            $ref: '#/components/schemas/ProviderDTO'
          type: array
          title: Providers
        workflow_raw:
          type: string
          title: Workflow Raw
        revision:
          type: integer
          title: Revision
          default: 1
        last_updated:
          type: string
          format: date-time
          title: Last Updated
        invalid:
          type: boolean
          title: Invalid
          default: false
        last_executions:
          items:
            type: object
          type: array
          title: Last Executions
        last_execution_started:
          type: string
          format: date-time
          title: Last Execution Started
        provisioned:
          type: boolean
          title: Provisioned
          default: false
        provisioned_file:
          type: string
          title: Provisioned File
      type: object
      required:
      - id
      - created_by
      - creation_time
      - providers
      - workflow_raw
      title: WorkflowDTO
    WorkflowExecutionDTO:
      properties:
        id:
          type: string
          title: Id
        workflow_id:
          type: string
          title: Workflow Id
        started:
          type: string
          format: date-time
          title: Started
        triggered_by:
          type: string
          title: Triggered By
        status:
          type: string
          title: Status
        workflow_name:
          type: string
          title: Workflow Name
        logs:
          items:
            $ref: '#/components/schemas/WorkflowExecutionLogsDTO'
          type: array
          title: Logs
        error:
          type: string
          title: Error
        execution_time:
          type: number
          title: Execution Time
        results:
          type: object
          title: Results
      type: object
      required:
      - id
      - workflow_id
      - started
      - triggered_by
      - status
      title: WorkflowExecutionDTO
    WorkflowCreateOrUpdateDTO:
      properties:
        workflow_id:
          type: string
          title: Workflow Id
        status:
          type: string
          enum:
          - created
          - updated
          title: Status
        revision:
          type: integer
          title: Revision
          default: 1
      type: object
      required:
      - workflow_id
      - status
      title: WorkflowCreateOrUpdateDTO
    Body_create_workflow_workflows_post:
      properties:
        file:
          type: string
          format: binary
          title: File
      type: object
      required:
      - file
      title: Body_create_workflow_workflows_post
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ProviderDTO:
      properties:
        type:
          type: string
          title: Type
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
        installed:
          type: boolean
          title: Installed
      type: object
      required:
      - type
      - name
      - installed
      title: ProviderDTO
    WorkflowExecutionLogsDTO:
      properties:
        id:
          type: integer
          title: Id
        timestamp:
          type: string
          format: date-time
          title: Timestamp
        message:
          type: string
          title: Message
        context:
          type: object
          title: Context
      type: object
      required:
      - id
      - timestamp
      - message
      title: WorkflowExecutionLogsDTO
    WorkflowToAlertExecutionDTO:
      properties:
        workflow_id:
          type: string
          title: Workflow Id
        workflow_execution_id:
          type: string
          title: Workflow Execution Id
        alert_fingerprint:
          type: string
          title: Alert Fingerprint
        workflow_status:
          type: string
          title: Workflow Status
        workflow_started:
          type: string
          format: date-time
          title: Workflow Started
      type: object
      required:
      - workflow_id
      - workflow_execution_id
      - alert_fingerprint
      - workflow_status
      - workflow_started
      title: WorkflowToAlertExecutionDTO
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    WorkflowExecutionsPaginatedResultsDto:
      properties:
        limit:
          type: integer
          title: Limit
          default: 25
        offset:
          type: integer
          title: Offset
          default: 0
        count:
          type: integer
          title: Count
        items:
          items:
            $ref: '#/components/schemas/WorkflowExecutionDTO'
          type: array
          title: Items
        passCount:
          type: integer
          title: Passcount
          default: 0
        avgDuration:
          type: number
          title: Avgduration
          default: 0
        workflow:
          $ref: '#/components/schemas/WorkflowDTO'
        failCount:
          type: integer
          title: Failcount
          default: 0
      type: object
      required:
      - count
      - items
      title: WorkflowExecutionsPaginatedResultsDto
  securitySchemes:
    API_Key:
      type: apiKey
      in: header
      name: X-API-KEY
    HTTPBasic:
      type: http
      scheme: basic
    OAuth2PasswordBearer:
      type: oauth2
      flows:
        password:
          scopes: {}
          tokenUrl: token
x-provenance:
  method: harvested
  publisher: Keep
  source: https://docs.keephq.dev/openapi.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)