Docusign Maestro API

The Docusign Maestro API allows developers to create, control, and integrate agreement workflows with their systems. It connects tools and data across workflows to automatically generate documents and agreements for review, approval, and signature, providing greater flexibility to manage agreements programmatically.

OpenAPI Specification

docusign-maestro-openapi-original.yml Raw ↑
openapi: 3.0.1
info:
  title: Docusign Maestro API
  description: Maestro authors and executes experiences that allow non-coders the ability to define Simple Business Process without having to write code and to deploy them seamlessly without having to have development expertise
  termsOfService: https://www.docusign.com/company/terms-and-conditions/web
  contact:
    name: Docusign Developer Center
    url: https://developers.docusign.com/
    email: [email protected]
  version: 1.0.0
externalDocs:
  description: Maestro API Documentation
  url: https://developers.docusign.com/docs/maestro-api/
servers:
  - url: https://apps.docusign.com/api/maestro
tags:
  - name: WorkflowInstanceManagement
    description: Methods to get information about workflow instances.
  - name: WorkflowManagement
    description: Returns the history of the workflow instance steps.
  - name: WorkflowTrigger
    description: Method to trigger a workflow.
paths:
  /v1/accounts/{accountId}/workflow_definitions/{workflowDefinitionId}/trigger:
    post:
      tags:
        - WorkflowTrigger
      summary: Docusign Triggers a new instance of the workflow.
      description: |-
        Creates a new workflow instance, triggering the workflow.

        <ds-inlinemessage>
          The Maestro API is currently only available
          as part of a beta program.
          See <a href="/docs/maestro-api/get-access/">Get access to Maestro API</a>
          for details.
        </ds-inlinemessage>

        ### Related topics

        - [How to trigger a Maestro workflow](/docs/maestro-api/how-to/trigger-workflow/)
      operationId: triggerWorkflowViaPost
      parameters:
        - name: accountId
          in: path
          description: The account ID.
          required: true
          schema:
            type: string
            format: uuid
        - name: workflowDefinitionId
          in: path
          description: Workflow definition ID.
          required: true
          schema:
            type: string
            format: uuid
        - name: mtid
          in: query
          description: Managed Token Id registered with Docusign Account Server
          schema:
            type: string
            format: uuid
        - name: mtsec
          in: query
          description: Managed Token Secret registered with Docusign account server
          schema:
            type: string
            format: uuid
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TriggerPayload'
        required: true
      responses:
        "201":
          description: Returns a workflow instance trigger URL that can be used to trigger a new instance or return to an instance in progress
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TriggerWorkflowViaPostResponse'
        "400":
          description: Bad Request received
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        "401":
          description: Authentication details are invalid
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        "403":
          description: Authorization Denied
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        "404":
          description: Resource not found when workflow definition id or workflow instance id doesn't exist
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        "500":
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - DSAuth:
            - aow_manage
            - signature
        - DSBearerAuth: []
      x-ds-methodname: triggerWorkflow
      x-ds-method: triggerWorkflow
      x-ds-service: Workflow Trigger
      x-ds-in-sdk: true
      x-codegen-request-body-name: body
  /v1/accounts/{accountId}/management/instances/{instanceId}/cancel:
    post:
      tags:
        - WorkflowInstanceManagement
      summary: Docusign Cancels a running workflow instance.
      description: "Cancels a running \n[workflow][workflows-concept]\ninstance.\n\n<!-- maestro beta notice -->\n\n<ds-inlinemessage>\n  The Maestro API is currently only available\n  as part of a beta program.\n  See <a href=\"/docs/maestro-api/get-access/\">Get access to Maestro API</a>\n  for details.\n</ds-inlinemessage>\n\n<!-- end maestro beta notice -->\n\n### Related topics\n\n- [How to cancel a Maestro workflow instance][howto-cancel]\n\n\n[howto-cancel]:       /docs/maestro-api/how-to/cancel-workflow/\n[workflows-concept]:  /docs/maestro-api/maestro101/workflows/"
      operationId: cancelWorkflowInstance
      parameters:
        - name: accountId
          in: path
          description: The account ID.
          required: true
          schema:
            type: string
            format: uuid
        - name: instanceId
          in: path
          description: The instance ID of the workflow to cancel.
          required: true
          schema:
            type: string
            format: uuid
      responses:
        "200":
          description: Return Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CancelResponse'
        "401":
          description: Authentication details are invalid
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        "404":
          description: The requested resource was not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        "500":
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - DSAuth:
            - aow_manage
            - signature
        - DSBearerAuth: []
      x-ds-methodname: cancelWorkflowInstance
      x-ds-method: cancelWorkflowInstance
      x-ds-service: Workflow Instance Management
      x-ds-in-sdk: true
  /v1/accounts/{accountId}/management/instances/{instanceId}/history:
    get:
      tags:
        - WorkflowManagement
      summary: Docusign Gets the step history for a workflow instance.
      description: |-
        Gets the step history for a workflow instance.
        <!-- maestro beta notice -->

        <ds-inlinemessage>
          The Maestro API is currently only available
          as part of a beta program.
          See <a href="/docs/maestro-api/get-access/">Get access to Maestro API</a>
          for details.
        </ds-inlinemessage>

        <!-- end maestro beta notice -->
      operationId: getWorkflowHistory
      parameters:
        - name: accountId
          in: path
          description: The account ID.
          required: true
          schema:
            type: string
            format: uuid
        - name: instanceId
          in: path
          description: |
            Workflow instance ID. <!-- dacid -->
            A string in UUID format: 4a6d6a08-xxxx-xxxx-xxxx-bae4fecc99c8
          required: true
          schema:
            type: string
            format: uuid
      responses:
        "200":
          description: History of workflow steps is returned
          content:
            application/json:
              schema:
                type: array
                description: Returns Array of Workflow Step History.
                items:
                  $ref: '#/components/schemas/WorkflowStepHistory'
        "401":
          description: Authentication details are invalid
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        "403":
          description: Authorization details are invalid
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        "404":
          description: The requested resource was not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        "500":
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - DSAuth:
            - aow_manage
            - signature
        - DSBearerAuth: []
      x-ds-methodname: getWorkflowHistory
      x-ds-method: getWorkflowHistory
      x-ds-service: Workflow Instance Management
      x-ds-in-sdk: true
  /v1/accounts/{accountId}/management/workflow_definitions:
    get:
      tags:
        - WorkflowManagement
      summary: Docusign Gets a list of  workflow definition metadata.
      description: |-
        Gets a list of  workflow definition metadata.
        <!-- maestro beta notice -->

        <ds-inlinemessage>
          The Maestro API is currently only available
          as part of a beta program.
          See <a href="/docs/maestro-api/get-access/">Get access to Maestro API</a>
          for details.
        </ds-inlinemessage>

        <!-- end maestro beta notice -->
      operationId: getWorkflowDefinitions
      parameters:
        - name: accountId
          in: path
          description: The account ID.
          required: true
          schema:
            type: string
            format: uuid
        - name: status
          in: query
          description: Workflow definition metadata status. <!-- filter -->
          schema:
            type: string
            enum:
              - active
              - inactive
              - publishing
              - unpublishing
              - archived
              - archiving
      responses:
        "200":
          description: Returns a list of workflow definitions' metadata.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkflowDefinitionList'
        "400":
          description: Bad Request received
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        "401":
          description: Authentication details are invalid
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        "403":
          description: Authorization details are invalid
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        "500":
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - DSAuth:
            - aow_manage
            - signature
        - DSBearerAuth: []
      x-ds-methodname: getWorkflowDefinitions
      x-ds-method: getWorkflowDefinitions
      x-ds-service: Workflow Management
      x-ds-in-sdk: true
    post:
      tags:
        - WorkflowManagement
      summary: Docusign Creates a workflow definition.
      description: "Creates a workflow definition. In general, it is much easier to create a workflow through the web interface.\n\n<!-- maestro beta notice -->\n\n<ds-inlinemessage>\n  The Maestro API is currently only available\n  as part of a beta program.\n  See <a href=\"/docs/maestro-api/get-access/\">Get access to Maestro API</a>\n  for details.\n</ds-inlinemessage>\n\n<!-- end maestro beta notice -->\n\nA Maestro workflow is an object that represents your end-to-end agreement workflow, including all pre and post-signing steps. You can add and order steps as necessary for your workflow and add conditional logic to create branches within that workflow. \n\nTo learn the basics of workflows and to see an example workflow definition,\nsee [Workflows](/docs/maestro-api/maestro101/workflows/) in\nthe Maestro API concepts guide.\n\n"
      operationId: createNewWorkflowDefinition
      parameters:
        - name: accountId
          in: path
          description: The account ID.
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateOrUpdateWorkflowDefinitionRequestBody'
        required: true
      responses:
        "200":
          description: Return Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NewOrUpdatedWorkflowDefinitionResponse'
        "401":
          description: Authentication details are invalid
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        "404":
          description: The requested resource was not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        "500":
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - DSAuth:
            - aow_manage
            - signature
        - DSBearerAuth: []
      x-ds-methodname: createWorkflowDefinition
      x-ds-method: createWorkflowDefinition
      x-ds-service: Workflow Management
      x-ds-in-sdk: true
      x-codegen-request-body-name: body
  /v1/accounts/{accountId}/management/workflow_definitions/{workflowDefinitionId}:
    get:
      tags:
        - WorkflowManagement
      summary: Docusign Gets a workflow definition.
      description: |+
        Returns a workflow definition.
        <!-- maestro beta notice -->

        <ds-inlinemessage>
          The Maestro API is currently only available
          as part of a beta program.
          See <a href="/docs/maestro-api/get-access/">Get access to Maestro API</a>
          for details.
        </ds-inlinemessage>

        <!-- end maestro beta notice -->

        ### Related topics

        - [How to trigger a Maestro workflow][howto-trigger]

        [howto-trigger]:      /docs/maestro-api/how-to/trigger-workflow/

      operationId: getWorkflowDefinition
      parameters:
        - name: accountId
          in: path
          description: The account ID.
          required: true
          schema:
            type: string
            format: uuid
        - name: workflowDefinitionId
          in: path
          description: Workflow definition ID.
          required: true
          schema:
            type: string
            format: uuid
        - name: lastDeployedId
          in: query
          description: The ID of the deployed workflow definition.
          schema:
            type: string
            format: string
      responses:
        "200":
          description: Returns a workflow definition.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkflowDefinitionWithId'
        "400":
          description: Bad Request received
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        "401":
          description: Authentication details are invalid
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        "403":
          description: Authorization details are invalid
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        "500":
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - DSAuth:
            - aow_manage
            - signature
        - DSBearerAuth: []
      x-ds-methodname: getWorkflowDefinition
      x-ds-method: getWorkflowDefinition
      x-ds-service: Workflow Management
      x-ds-in-sdk: true
    put:
      tags:
        - WorkflowManagement
      summary: Docusign Updates a workflow definition.
      description: |+
        Updates a workflow definition.
        <!-- maestro beta notice -->

        <ds-inlinemessage>
          The Maestro API is currently only available
          as part of a beta program.
          See <a href="/docs/maestro-api/get-access/">Get access to Maestro API</a>
          for details.
        </ds-inlinemessage>

        <!-- end maestro beta notice -->

        A Maestro workflow is an object that represents your end-to-end agreement workflow, including all pre and post-signing steps. You can add and order steps as necessary for your workflow and add conditional logic to create branches within that workflow.

        To learn the basics of workflows and to see an example workflow definition,
        see [Workflows](/docs/maestro-api/maestro101/workflows/) in
        the Maestro API concepts guide.

      operationId: updateWorkflowDefinition
      parameters:
        - name: accountId
          in: path
          description: The account ID.
          required: true
          schema:
            type: string
            format: uuid
        - name: workflowDefinitionId
          in: path
          description: Workflow definition ID.
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateOrUpdateWorkflowDefinitionRequestBody'
        required: true
      responses:
        "200":
          description: Return Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NewOrUpdatedWorkflowDefinitionResponse'
        "400":
          description: "Bad request, malformed input"
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        "401":
          description: Authentication details are invalid
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        "404":
          description: The requested resource was not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        "500":
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - DSAuth:
            - aow_manage
            - signature
        - DSBearerAuth: []
      x-ds-methodname: updateWorkflowDefinition
      x-ds-method: updateWorkflowDefinition
      x-ds-service: Workflow Management
      x-ds-in-sdk: true
      x-codegen-request-body-name: body
    delete:
      tags:
        - WorkflowManagement
      summary: Docusign Deletes a workflow definition.
      description: |-
        Deletes a workflow definition.
        <!-- maestro beta notice -->

        <ds-inlinemessage>
          The Maestro API is currently only available
          as part of a beta program.
          See <a href="/docs/maestro-api/get-access/">Get access to Maestro API</a>
          for details.
        </ds-inlinemessage>

        <!-- end maestro beta notice -->
      operationId: deleteWorkflowDefinition
      parameters:
        - name: accountId
          in: path
          description: The account ID.
          required: true
          schema:
            type: string
            format: uuid
        - name: workflowDefinitionId
          in: path
          description: The ID of the workflow definition to delete.
          required: true
          schema:
            type: string
            format: uuid
      responses:
        "200":
          description: Returns Delete Successful.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkflowDeleteResponse'
        "404":
          description: Resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        "500":
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - DSAuth:
            - aow_manage
            - signature
        - DSBearerAuth: []
      x-ds-methodname: deleteWorkflowDefinition
      x-ds-method: deleteWorkflowDefinition
      x-ds-service: Workflow Management
      x-ds-in-sdk: true
  /v1/accounts/{accountId}/management/workflow_definitions/{workflowDefinitionId}/config_instances:
    get:
      tags:
        - WorkflowInstanceManagement
      summary: Docusign Gets a list of configuration instances for a workflow definition
      description: |-
        Gets a list of configuration instances for a workflow definition
        <!-- maestro beta notice -->

        <ds-inlinemessage>
          The Maestro API is currently only available
          as part of a beta program.
          See <a href="/docs/maestro-api/get-access/">Get access to Maestro API</a>
          for details.
        </ds-inlinemessage>

        <!-- end maestro beta notice -->
      operationId: getConfigInstances
      parameters:
        - name: accountId
          in: path
          description: The account ID.
          required: true
          schema:
            type: string
            format: uuid
        - name: workflowDefinitionId
          in: path
          description: Workflow definition ID.
          required: true
          schema:
            type: string
            format: uuid
      responses:
        "200":
          description: Returns a list of configuration instances for a workflow definition
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetConfigurationInstancesResponse'
        "400":
          description: Bad request received
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        "401":
          description: Authentication details are invalid
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        "403":
          description: Authorization details are invalid
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        "404":
          description: Resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        "500":
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - DSAuth:
            - aow_manage
            - signature
        - DSBearerAuth: []
      x-ds-methodname: getWorkflowDefinitionConfigInstances
      x-ds-method: getWorkflowDefinitionConfigInstances
      x-ds-service: Workflow Management
      x-ds-in-sdk: true
  /v1/accounts/{accountId}/management/workflow_definitions/{workflowDefinitionId}/instances:
    get:
      tags:
        - WorkflowInstanceManagement
      summary: Docusign Get a list of instances of a deployed workflow definition.
      description: "Get a list of instances of a deployed workflow definition.\n<!-- maestro beta notice -->\n\n<ds-inlinemessage>\n  The Maestro API is currently only available\n  as part of a beta program.\n  See <a href=\"/docs/maestro-api/get-access/\">Get access to Maestro API</a>\n  for details.\n</ds-inlinemessage>\n\n<!-- end maestro beta notice -->\n\nA successful response is an array of \n[`WorkflowInstance`](/docs/maestro-api/reference/workflowinstancemanagement/workflowinstancemanagement/getworkflowinstance/#schema_200_workflowinstance_workflowinstance)\nobjects.\n"
      operationId: getWorkflowInstances
      parameters:
        - name: accountId
          in: path
          description: The account ID.
          required: true
          schema:
            type: string
            format: uuid
        - name: workflowDefinitionId
          in: path
          description: The ID of the workflow definition to delete.
          required: true
          schema:
            type: string
            format: uuid
      responses:
        "200":
          description: A list of workflow instances for a workflow definition in the specified account.
          content:
            application/json:
              schema:
                type: array
                description: A list of workflow instances (0 or more).
                items:
                  $ref: '#/components/schemas/WorkflowInstance'
        "401":
          description: Authentication details are invalid
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        "403":
          description: Authorization details are invalid
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        "404":
          description: The requested resource was not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        "500":
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - DSAuth:
            - aow_manage
            - signature
        - DSBearerAuth: []
      x-ds-methodname: getWorkflowInstances
      x-ds-method: getWorkflowInstances
      x-ds-service: Workflow Instance Management
      x-ds-in-sdk: true
  /v1/accounts/{accountId}/management/workflow_definitions/{workflowDefinitionId}/instances/{instanceId}:
    get:
      tags:
        - WorkflowInstanceManagement
      summary: Docusign Gets the details for a specific instance for a deployed workflow definition.
      description: |
        Gets the details for a specific instance for a deployed workflow definition.

        <!-- maestro beta notice -->

        <ds-inlinemessage>
          The Maestro API is currently only available
          as part of a beta program.
          See <a href="/docs/maestro-api/get-access/">Get access to Maestro API</a>
          for details.
        </ds-inlinemessage>

        <!-- end maestro beta notice -->


        ### Related topics

        - [How to get the status of a Maestro workflow instance][howto-status]

        [howto-status]: /docs/maestro-api/how-to/get-workflow-status/
      operationId: getWorkflowInstance
      parameters:
        - name: accountId
          in: path
          description: The account ID.
          required: true
          schema:
            type: string
            format: uuid
        - name: workflowDefinitionId
          in: path
          description: Workflow definition ID.
          required: true
          schema:
            type: string
            format: uuid
        - name: instanceId
          in: path
          description: |
            Workflow instance ID. <!-- dacid -->
            A string in UUID format: 4a6d6a08-xxxx-xxxx-xxxx-bae4fecc99c8
          required: true
          schema:
            type: string
            format: uuid
      responses:
        "200":
          description: Details for a specific instance for a workflow definition in the specified account.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkflowInstance'
        "401":
          description: Authentication details are invalid
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        "403":
          description: Authorization details are invalid
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        "404":
          description: The requested resource was not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        "500":
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - DSAuth:
            - aow_manage
            - signature
        - DSBearerAuth: []
      x-ds-methodname: getWorkflowInstance
      x-ds-method: getWorkflowInstance
      x-ds-service: Workflow Instance Management
      x-ds-in-sdk: true
  /v1/accounts/{accountId}/management/workflow_definitions/{workflowDefinitionId}/publish:
    post:
      tags:
        - WorkflowManagement
      summary: Docusign Publishes or unpublishes a workflow definition.
      description: |-
        Publishes or unpublishes a workflow definition.
        <!-- maestro beta notice -->

        <ds-inlinemessage>
          The Maestro API is currently only available
          as part of a beta program.
          See <a href="/docs/maestro-api/get-access/">Get access to Maestro API</a>
          for details.
        </ds-inlinemessage>

        <!-- end maestro beta notice -->
      operationId: publishOrUnPublishWorkflowDefinition
      parameters:
        - name: accountId
          in: path
          description: The account ID.
          required: true
          schema:
            type: string
            format: uuid
        - name: workflowDefinitionId
          in: path
          description: Workflow definition ID.
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeployRequest'
        required: true
      responses:
        "200":
          description: Return Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeployResponse'
        "400":
          description: Workflow Definition is invalid
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidWorkflowResponse'
        "401":
          description: Authentication details are invalid
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        "404":
          description: The requested resource was not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        "500":
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - DSAuth:
            - aow_manage
            - signature
        - DSBearerAuth: []
      x-ds-methodname: publishOrUnPublishWorkflowDefinition
      x-ds-method: publishOrUnPublishWorkflowDefinition
      x-ds-service: Workflow Management
      x-ds-in-sdk: true
      x-codegen-request-body-name: body
components:
  schemas:
    AccessTokenResponse:
      type: object
      properties:
        access_token:
          type: string
          description: JWT access token
        expires_in:
          type: number
          description: Expires in seconds
        token_type:
          $ref: '#/components/schemas/AccessTokenTokenTypes'
      description: Access Token response details
      x-ds-definition-name: AccessTokenResponse
      x-ms-summary: Access Token response details
    AccessTokenTokenTypes:
  

# --- truncated at 32 KB (98 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/docusign/refs/heads/main/openapi/docusign-maestro-openapi-original.yml