naftiko: 1.0.0-alpha2 info: label: Docusign Maestro API — WorkflowManagement description: 'Docusign Maestro API — WorkflowManagement. 7 operations. Lead operation: Docusign Gets the step history for a workflow instance.. Self-contained Naftiko capability covering one Docusign business surface.' tags: - Docusign - WorkflowManagement created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: DOCUSIGN_API_KEY: DOCUSIGN_API_KEY capability: consumes: - type: http namespace: maestro-workflowmanagement baseUri: https://apps.docusign.com/api/maestro description: Docusign Maestro API — WorkflowManagement business capability. Self-contained, no shared references. resources: - name: v1-accounts-accountId-management-instances-instanceId-history path: /v1/accounts/{accountId}/management/instances/{instanceId}/history operations: - name: getworkflowhistory method: GET description: Docusign Gets the step history for a workflow instance. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: accountId in: path type: string description: The account ID. required: true - name: instanceId in: path type: string description: Workflow instance ID. required: true - name: v1-accounts-accountId-management-workflow_definitions path: /v1/accounts/{accountId}/management/workflow_definitions operations: - name: getworkflowdefinitions method: GET description: Docusign Gets a list of workflow definition metadata. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: accountId in: path type: string description: The account ID. required: true - name: status in: query type: string description: Workflow definition metadata status. - name: createnewworkflowdefinition method: POST description: Docusign Creates a workflow definition. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: accountId in: path type: string description: The account ID. required: true - name: body in: body type: object description: Request body (JSON). required: true - name: v1-accounts-accountId-management-workflow_definitions-workflowDefinitionId path: /v1/accounts/{accountId}/management/workflow_definitions/{workflowDefinitionId} operations: - name: getworkflowdefinition method: GET description: Docusign Gets a workflow definition. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: accountId in: path type: string description: The account ID. required: true - name: workflowDefinitionId in: path type: string description: Workflow definition ID. required: true - name: lastDeployedId in: query type: string description: The ID of the deployed workflow definition. - name: updateworkflowdefinition method: PUT description: Docusign Updates a workflow definition. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: accountId in: path type: string description: The account ID. required: true - name: workflowDefinitionId in: path type: string description: Workflow definition ID. required: true - name: body in: body type: object description: Request body (JSON). required: true - name: deleteworkflowdefinition method: DELETE description: Docusign Deletes a workflow definition. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: accountId in: path type: string description: The account ID. required: true - name: workflowDefinitionId in: path type: string description: The ID of the workflow definition to delete. required: true - name: v1-accounts-accountId-management-workflow_definitions-workflowDefinitionId-publi path: /v1/accounts/{accountId}/management/workflow_definitions/{workflowDefinitionId}/publish operations: - name: publishorunpublishworkflowdefinition method: POST description: Docusign Publishes or unpublishes a workflow definition. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: accountId in: path type: string description: The account ID. required: true - name: workflowDefinitionId in: path type: string description: Workflow definition ID. required: true - name: body in: body type: object description: Request body (JSON). required: true authentication: type: bearer token: '{{env.DOCUSIGN_API_KEY}}' exposes: - type: rest namespace: maestro-workflowmanagement-rest port: 8080 description: REST adapter for Docusign Maestro API — WorkflowManagement. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/v1/accounts/{accountid}/management/instances/{instanceid}/history name: v1-accounts-accountid-management-instances-instanceid-history description: REST surface for v1-accounts-accountId-management-instances-instanceId-history. operations: - method: GET name: getworkflowhistory description: Docusign Gets the step history for a workflow instance. call: maestro-workflowmanagement.getworkflowhistory with: accountId: rest.accountId instanceId: rest.instanceId outputParameters: - type: object mapping: $. - path: /v1/v1/accounts/{accountid}/management/workflow-definitions name: v1-accounts-accountid-management-workflow-definitions description: REST surface for v1-accounts-accountId-management-workflow_definitions. operations: - method: GET name: getworkflowdefinitions description: Docusign Gets a list of workflow definition metadata. call: maestro-workflowmanagement.getworkflowdefinitions with: accountId: rest.accountId status: rest.status outputParameters: - type: object mapping: $. - method: POST name: createnewworkflowdefinition description: Docusign Creates a workflow definition. call: maestro-workflowmanagement.createnewworkflowdefinition with: accountId: rest.accountId body: rest.body outputParameters: - type: object mapping: $. - path: /v1/v1/accounts/{accountid}/management/workflow-definitions/{workflowdefinitionid} name: v1-accounts-accountid-management-workflow-definitions-workflowdefinitionid description: REST surface for v1-accounts-accountId-management-workflow_definitions-workflowDefinitionId. operations: - method: GET name: getworkflowdefinition description: Docusign Gets a workflow definition. call: maestro-workflowmanagement.getworkflowdefinition with: accountId: rest.accountId workflowDefinitionId: rest.workflowDefinitionId lastDeployedId: rest.lastDeployedId outputParameters: - type: object mapping: $. - method: PUT name: updateworkflowdefinition description: Docusign Updates a workflow definition. call: maestro-workflowmanagement.updateworkflowdefinition with: accountId: rest.accountId workflowDefinitionId: rest.workflowDefinitionId body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deleteworkflowdefinition description: Docusign Deletes a workflow definition. call: maestro-workflowmanagement.deleteworkflowdefinition with: accountId: rest.accountId workflowDefinitionId: rest.workflowDefinitionId outputParameters: - type: object mapping: $. - path: /v1/v1/accounts/{accountid}/management/workflow-definitions/{workflowdefinitionid}/publish name: v1-accounts-accountid-management-workflow-definitions-workflowdefinitionid-publi description: REST surface for v1-accounts-accountId-management-workflow_definitions-workflowDefinitionId-publi. operations: - method: POST name: publishorunpublishworkflowdefinition description: Docusign Publishes or unpublishes a workflow definition. call: maestro-workflowmanagement.publishorunpublishworkflowdefinition with: accountId: rest.accountId workflowDefinitionId: rest.workflowDefinitionId body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: maestro-workflowmanagement-mcp port: 9090 transport: http description: MCP adapter for Docusign Maestro API — WorkflowManagement. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: docusign-gets-step-history-workflow description: Docusign Gets the step history for a workflow instance. hints: readOnly: true destructive: false idempotent: true call: maestro-workflowmanagement.getworkflowhistory with: accountId: tools.accountId instanceId: tools.instanceId outputParameters: - type: object mapping: $. - name: docusign-gets-list-workflow-definition description: Docusign Gets a list of workflow definition metadata. hints: readOnly: true destructive: false idempotent: true call: maestro-workflowmanagement.getworkflowdefinitions with: accountId: tools.accountId status: tools.status outputParameters: - type: object mapping: $. - name: docusign-creates-workflow-definition description: Docusign Creates a workflow definition. hints: readOnly: false destructive: false idempotent: false call: maestro-workflowmanagement.createnewworkflowdefinition with: accountId: tools.accountId body: tools.body outputParameters: - type: object mapping: $. - name: docusign-gets-workflow-definition description: Docusign Gets a workflow definition. hints: readOnly: true destructive: false idempotent: true call: maestro-workflowmanagement.getworkflowdefinition with: accountId: tools.accountId workflowDefinitionId: tools.workflowDefinitionId lastDeployedId: tools.lastDeployedId outputParameters: - type: object mapping: $. - name: docusign-updates-workflow-definition description: Docusign Updates a workflow definition. hints: readOnly: false destructive: false idempotent: true call: maestro-workflowmanagement.updateworkflowdefinition with: accountId: tools.accountId workflowDefinitionId: tools.workflowDefinitionId body: tools.body outputParameters: - type: object mapping: $. - name: docusign-deletes-workflow-definition description: Docusign Deletes a workflow definition. hints: readOnly: false destructive: true idempotent: true call: maestro-workflowmanagement.deleteworkflowdefinition with: accountId: tools.accountId workflowDefinitionId: tools.workflowDefinitionId outputParameters: - type: object mapping: $. - name: docusign-publishes-unpublishes-workflow-definition description: Docusign Publishes or unpublishes a workflow definition. hints: readOnly: false destructive: false idempotent: false call: maestro-workflowmanagement.publishorunpublishworkflowdefinition with: accountId: tools.accountId workflowDefinitionId: tools.workflowDefinitionId body: tools.body outputParameters: - type: object mapping: $.