naftiko: 1.0.0-alpha2 info: label: Salesforce Flow Automation API — Flows description: 'Salesforce Flow Automation API — Flows. 3 operations. Lead operation: Invoke Flow via REST Action. Self-contained Naftiko capability covering one Salesforce Automation System business surface.' tags: - Salesforce Automation System - Flows created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: SALESFORCE_AUTOMATION_SYSTEM_API_KEY: SALESFORCE_AUTOMATION_SYSTEM_API_KEY capability: consumes: - type: http namespace: salesforce-automation-flow-flows baseUri: https://{instance}.salesforce.com/services/data/v59.0 description: Salesforce Flow Automation API — Flows business capability. Self-contained, no shared references. resources: - name: actions-custom-flow-flowApiName path: /actions/custom/flow/{flowApiName} operations: - name: invokeflow method: POST description: Invoke Flow via REST Action outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: flowApiName in: path type: string description: The API name of the flow to invoke. required: true - name: body in: body type: object description: Request body (JSON). required: true - name: tooling-query path: /tooling/query operations: - name: queryflowdefinitions method: GET description: Query Flow Definitions outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: q in: query type: string description: SOQL query (e.g. SELECT Id, ApiName, Label, Status FROM FlowDefinition) required: true - name: tooling-sobjects-Flow-id path: /tooling/sobjects/Flow/{id} operations: - name: getflowversion method: GET description: Get Flow Version outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: The Salesforce Flow record ID. required: true authentication: type: bearer token: '{{env.SALESFORCE_AUTOMATION_SYSTEM_API_KEY}}' exposes: - type: rest namespace: salesforce-automation-flow-flows-rest port: 8080 description: REST adapter for Salesforce Flow Automation API — Flows. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/actions/custom/flow/{flowapiname} name: actions-custom-flow-flowapiname description: REST surface for actions-custom-flow-flowApiName. operations: - method: POST name: invokeflow description: Invoke Flow via REST Action call: salesforce-automation-flow-flows.invokeflow with: flowApiName: rest.flowApiName body: rest.body outputParameters: - type: object mapping: $. - path: /v1/tooling/query name: tooling-query description: REST surface for tooling-query. operations: - method: GET name: queryflowdefinitions description: Query Flow Definitions call: salesforce-automation-flow-flows.queryflowdefinitions with: q: rest.q outputParameters: - type: object mapping: $. - path: /v1/tooling/sobjects/flow/{id} name: tooling-sobjects-flow-id description: REST surface for tooling-sobjects-Flow-id. operations: - method: GET name: getflowversion description: Get Flow Version call: salesforce-automation-flow-flows.getflowversion with: id: rest.id outputParameters: - type: object mapping: $. - type: mcp namespace: salesforce-automation-flow-flows-mcp port: 9090 transport: http description: MCP adapter for Salesforce Flow Automation API — Flows. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: invoke-flow-rest-action description: Invoke Flow via REST Action hints: readOnly: false destructive: false idempotent: false call: salesforce-automation-flow-flows.invokeflow with: flowApiName: tools.flowApiName body: tools.body outputParameters: - type: object mapping: $. - name: query-flow-definitions description: Query Flow Definitions hints: readOnly: true destructive: false idempotent: true call: salesforce-automation-flow-flows.queryflowdefinitions with: q: tools.q outputParameters: - type: object mapping: $. - name: get-flow-version description: Get Flow Version hints: readOnly: true destructive: false idempotent: true call: salesforce-automation-flow-flows.getflowversion with: id: tools.id outputParameters: - type: object mapping: $.