APIContext · Capability

APIContext Platform API — Workflows

APIContext Platform API — Workflows. 5 operations. Lead operation: List workflows. Self-contained Naftiko capability covering one business surface.

APIContext Platform API — Workflows is a Naftiko capability published by APIContext, one of 12 capabilities the APIs.io network indexes for this provider. It bundles 5 operations across the GET, POST, and PUT methods rooted at /v1/workflows.

The capability includes 2 read-only operations and 3 state-changing operations. Lead operation: List workflows. Can be deployed as a REST endpoint, MCP tool, or Agent Skill via Naftiko.

Tagged areas include APIContext and Workflows.

Run with Naftiko APIContextWorkflows

What You Can Do

GET
Listworkflows — List workflows
/v1/workflows/
POST
Createworkflow — Create a workflow
/v1/workflows/
GET
Getworkflow — Get a workflow
/v1/workflows/{workflow_id}
PUT
Updateworkflow — Update a workflow
/v1/workflows/{workflow_id}
POST
Runworkflow — Run a workflow
/v1/workflows/{workflow_id}/run

MCP Tools

apicontext-listworkflows

List workflows

read-only idempotent
apicontext-createworkflow

Create a workflow

apicontext-getworkflow

Get a workflow

read-only idempotent
apicontext-updateworkflow

Update a workflow

idempotent
apicontext-runworkflow

Run a workflow

Capability Spec

platform-workflows.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: APIContext Platform API — Workflows
  description: 'APIContext Platform API — Workflows. 5 operations. Lead operation: List workflows. Self-contained Naftiko capability covering one business surface.'
  tags:
  - APIContext
  - Workflows
  created: '2026-05-20'
  modified: '2026-05-20'
binds:
- namespace: env
  keys:
    APICONTEXT_API_KEY: APICONTEXT_API_KEY
capability:
  consumes:
  - type: http
    namespace: platform-workflows
    baseUri: https://client.apimetrics.io/api/2
    description: APIContext Platform API — Workflows business capability. Self-contained, no shared references.
    resources:
    - name: workflows
      path: /workflows/
      operations:
      - name: listworkflows
        method: GET
        description: List workflows
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters: []
      - name: createworkflow
        method: POST
        description: Create a workflow
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: workflows-workflow-id
      path: /workflows/{workflow_id}
      operations:
      - name: getworkflow
        method: GET
        description: Get a workflow
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: workflow_id
          in: path
          type: string
          description: path parameter workflow_id.
          required: true
      - name: updateworkflow
        method: PUT
        description: Update a workflow
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: workflow_id
          in: path
          type: string
          description: path parameter workflow_id.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: workflows-workflow-id-run
      path: /workflows/{workflow_id}/run
      operations:
      - name: runworkflow
        method: POST
        description: Run a workflow
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: workflow_id
          in: path
          type: string
          description: path parameter workflow_id.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
  exposes:
  - type: rest
    namespace: platform-workflows-rest
    port: 8080
    description: REST adapter for APIContext Platform API — Workflows. One resource per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/workflows/
      name: workflows
      description: REST surface for workflows.
      operations:
      - method: GET
        name: listworkflows
        description: List workflows
        call: platform-workflows.listworkflows
        with: {}
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createworkflow
        description: Create a workflow
        call: platform-workflows.createworkflow
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/workflows/{workflow_id}
      name: workflows-workflow-id
      description: REST surface for workflows-workflow-id.
      operations:
      - method: GET
        name: getworkflow
        description: Get a workflow
        call: platform-workflows.getworkflow
        with:
          workflow_id: rest.workflow_id
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updateworkflow
        description: Update a workflow
        call: platform-workflows.updateworkflow
        with:
          workflow_id: rest.workflow_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/workflows/{workflow_id}/run
      name: workflows-workflow-id-run
      description: REST surface for workflows-workflow-id-run.
      operations:
      - method: POST
        name: runworkflow
        description: Run a workflow
        call: platform-workflows.runworkflow
        with:
          workflow_id: rest.workflow_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: platform-workflows-mcp
    port: 9090
    transport: http
    description: MCP adapter for APIContext Platform API — Workflows. One tool per consumed operation, routed inline through this capability's consumes block.
    tools:
    - name: apicontext-listworkflows
      description: List workflows
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: platform-workflows.listworkflows
      with: {}
      outputParameters:
      - type: object
        mapping: $.
    - name: apicontext-createworkflow
      description: Create a workflow
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: platform-workflows.createworkflow
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: apicontext-getworkflow
      description: Get a workflow
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: platform-workflows.getworkflow
      with:
        workflow_id: tools.workflow_id
      outputParameters:
      - type: object
        mapping: $.
    - name: apicontext-updateworkflow
      description: Update a workflow
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: platform-workflows.updateworkflow
      with:
        workflow_id: tools.workflow_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: apicontext-runworkflow
      description: Run a workflow
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: platform-workflows.runworkflow
      with:
        workflow_id: tools.workflow_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.