Web Methods Approval Workflow API

The Approval Workflow API from Web Methods — 3 operation(s) for approval workflow.

GitHub OpenAPI

Operations 7

GET /approvals Retrieve the list of configured approval flows #
POST /approvals Create a new approval workflow #
GET /approvals/{id} Retrieve the approval flow by Id #
PUT /approvals/{id} Update the approval flow by Id #
DELETE /approvals/{id} Delete the approval flow by Id #
GET /approval/policy Retreieve the approval workflow assigned to User onboarding / Application… #
PUT /approval/policy Assign the approval workflow for User onboarding / Application onboarding #

Specifications

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/web-methods:web-methods-approval-workflow-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

web-methods-approval-workflow-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Web Methods Approval Workflow API
  version: '10.11'
  description: 'Operations tagged Approval Workflow across 2 of this provider''s published API definitions: devportal-approvals.yaml, web-methods-developer-portal-approvals-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: http://localhost:18101/portal/rest/v1
  description: Development server
security:
- basicAuth: []
tags:
- name: Approval Workflow
paths:
  /approvals:
    get:
      tags:
      - Approval Workflow
      summary: Retrieve the list of configured approval flows
      description: 'Endpoint to retrieve the list of all approval workflows configured in API Portal.


        *Endpoint can be accessed only by a user having **Administrator** role*'
      parameters:
      - name: page
        in: query
        description: Optional parameter. Defines the page number to be retrieved for the collection. If not specified default value 0 is assumed. By default collection responses are paginated with batches of 10.
        required: false
        schema:
          type: integer
          default: 0
      - name: limit
        in: query
        description: Optional parameter. Defines the number of results to be fetched for the current page. If not specified default value configured in system settings will be considered.
        required: false
        schema:
          type: integer
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FlowSearchResponse'
              examples:
                ApprovalFlowResponse:
                  $ref: '#/components/examples/ApprovalFlowSearchResponse'
        '403':
          $ref: '#/components/responses/403'
        '401':
          $ref: '#/components/responses/401'
      operationId: getApprovals
      x-operation-id-source: derived
    post:
      tags:
      - Approval Workflow
      summary: Create a new approval workflow
      description: 'Endpoint to create a new approval workflow in API Portal


        *Endpoint can be accessed only by a user having **Administrator** role*'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FlowTemplate'
            examples:
              Create a new flow with a user as approver:
                value:
                  name: New Flow
                  description: Flow with multilevel approval
                  steps:
                  - approver:
                    - id: 9ab209d6-6a9b-3225-8d7f-56cc4b3b125d
                      name: Administrator
                    approver_type: USER
                    mode: EVERYONE
                    notification:
                      pending:
                        subject: Approval request pending
                        message: Hello ${approver.name},  A request by ${requestor.name} to become a registered user needs your review and approval. You can click the link to approve http://localhost:4200/rest/v/approvals/${approval.request.id}/approve  or click the link to reject http://localhost:4200/rest/v/approvals/${approval.request.id}/reject  Best Regards,API Cloud Team *** This notification was sent automatically. Do not reply to this email.***
                      result:
                        subject: Result of registration request
                        message: Hello ${approver.name}, A registration request by ${requestor.name} has been ${approval.result}  Best Regards, API Cloud Team *** This notification was sent automatically. Do not reply to this email.***
              Create a new flow with group as approver group:
                value:
                  name: New Flow
                  description: Flow with multilevel approval
                  steps:
                  - approver:
                    - id: 2bc699d6-6a9b-3225-8d7f-56cc4b3b125d
                      name: API Provider
                    approver_type: GROUP
                    mode: EVERYONE
                    notification:
                      pending:
                        subject: Approval request pending
                        message: Hello ${approver.name},  A request by ${requestor.name} to become a registered user needs your review and approval. You can click the link to approve http://localhost:4200/rest/v/approvals/${approval.request.id}/approve  or click the link to reject http://localhost:4200/rest/v/approvals/${approval.request.id}/reject  Best Regards,API Cloud Team *** This notification was sent automatically. Do not reply to this email.***
                      result:
                        subject: Result of registration request
                        message: Hello ${approver.name}, A registration request by ${requestor.name} has been ${approval.result}  Best Regards, API Cloud Team *** This notification was sent automatically. Do not reply to this email.***
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreationResponse'
              example:
                id: 0392ce93-49e5-4302-9e84-7ba53431ff69
                _self: /rest/v1/approvals/0392ce93-49e5-4302-9e84-7ba53431ff69
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PortalResponse'
              examples:
                400:
                  $ref: '#/components/examples/PortalResponseError'
        '403':
          $ref: '#/components/responses/403'
        '401':
          $ref: '#/components/responses/401'
      operationId: postApprovals
      x-operation-id-source: derived
    servers:
    - url: http://localhost:18101/portal/rest/v1
      description: Development server
  /approvals/{id}:
    get:
      tags:
      - Approval Workflow
      summary: Retrieve the approval flow by Id
      description: 'Endpoint to obtain details of particular approval workflow based on ID


        *Endpoint can be accessed only by a user having **Administrator** role*'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FlowTemplate'
              examples:
                ApprovalFlowResponse:
                  $ref: '#/components/examples/ApprovalFlow'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '401':
          $ref: '#/components/responses/401'
      parameters:
      - name: id
        in: path
        required: true
        allowEmptyValue: false
        schema:
          type: string
        description: Unique Identification for Approval Flow. Refers to the GUID of the approval flow.For example `d4a6bc0b-24dd-4035-862a-0f8f7608512e`
      operationId: getApprovalsById
      x-operation-id-source: derived
    put:
      tags:
      - Approval Workflow
      summary: Update the approval flow by Id
      description: 'Endpoint to update details of particular approval workflow based on ID


        *Endpoint can be accessed only by a user having **Administrator** role*'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FlowTemplate'
            examples:
              Update:
                $ref: '#/components/examples/FlowResponse'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FlowTemplate'
              examples:
                200:
                  $ref: '#/components/examples/FlowResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PortalResponse'
              examples:
                400:
                  $ref: '#/components/examples/PortalResponseError'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '401':
          $ref: '#/components/responses/401'
      parameters:
      - name: id
        in: path
        required: true
        allowEmptyValue: false
        schema:
          type: string
        description: Unique Identification for Approval Flow. Refers to the GUID of the approval flow.For example `d4a6bc0b-24dd-4035-862a-0f8f7608512e`
      operationId: putApprovalsById
      x-operation-id-source: derived
    delete:
      tags:
      - Approval Workflow
      summary: Delete the approval flow by Id
      description: 'Endpoint to delete the particular approval workflow based on ID


        *Endpoint can be accessed only by a user having **Administrator** role*'
      responses:
        '204':
          description: OK
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '401':
          $ref: '#/components/responses/401'
      parameters:
      - name: id
        in: path
        required: true
        allowEmptyValue: false
        schema:
          type: string
        description: Unique Identification for Approval Flow. Refers to the GUID of the approval flow.For example `d4a6bc0b-24dd-4035-862a-0f8f7608512e`
      operationId: deleteApprovalsById
      x-operation-id-source: derived
    servers:
    - url: http://localhost:18101/portal/rest/v1
      description: Development server
  /approval/policy:
    get:
      tags:
      - Approval Workflow
      summary: Retreieve the approval workflow assigned to User onboarding / Application…
      description: 'Endpoint to retrieve the approval workflow policy assigned to onboarding process. The onboarding process is categorized into two parts

        - User onboarding

        - Application onboarding

        - Application creation

        - Subscription

        - Registering API


        *Endpoint can be accessed only by a user having **Administrator** role*'
      parameters:
      - name: type
        in: query
        description: 'Optional parameter. Defines the onboarding type that need to be queryed. The supported values are

          - USER_CREATION

          - APPLICATION_CREATION

          - APPLICATION_API_REGISTRATION'
        required: false
        schema:
          type: string
          default: USER_CREATION
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApprovalPolicy'
              examples:
                ApprovalPolicy:
                  $ref: '#/components/examples/ApprovalPolicy'
        '403':
          $ref: '#/components/responses/403'
        '401':
          $ref: '#/components/responses/401'
      operationId: getApprovalPolicy
      x-operation-id-source: derived
    put:
      tags:
      - Approval Workflow
      summary: Assign the approval workflow for User onboarding / Application onboarding
      description: 'Endpoint to assign the approval workflow policy for onboarding process. The onboarding process is categorized into two parts

        - User onboarding

        - Application onboarding

        - Application creation

        - Subscription

        - Registering API


        *Endpoint can be accessed only by a user having **Administrator** role*'
      parameters:
      - name: type
        in: query
        description: 'Optional parameter. Defines the onboarding type for which approval workflow need to be set. The supported values are

          - USER_CREATION

          - APPLICATION_CREATION'
        required: false
        schema:
          type: string
          default: APPLICATION_CREATION
          enum:
          - APPLICATION_CREATION
          - USER_CREATION
      - name: enableForRegistration
        in: query
        description: Optional parameter. Defines whether the approval workflow need to be set for API Registeration also.
        required: false
        schema:
          type: boolean
          default: false
          enum:
          - false
          - true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ApprovalPolicy'
            examples:
              ApprovalPolicy:
                $ref: '#/components/examples/ApprovalPolicy'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreatedResponse'
              examples:
                200:
                  $ref: '#/components/examples/CreatedResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PortalResponse'
              examples:
                400:
                  $ref: '#/components/examples/PortalResponseError'
        '403':
          $ref: '#/components/responses/403'
        '401':
          $ref: '#/components/responses/401'
      operationId: putApprovalPolicy
      x-operation-id-source: derived
    servers:
    - url: http://localhost:18101/portal/rest/v1
      description: Development server
components:
  schemas:
    FlowTemplate:
      title: FlowTemplate
      type: object
      properties:
        id:
          type: string
          description: Unique representation of flow object
        name:
          type: string
          description: An Unique name for the identification of approval flow
        description:
          type: string
          description: Short description on approval flow
        steps:
          type: array
          description: Approval flow can have multiple levels.Steps are created in order as provided
          items:
            $ref: '#/components/schemas/StepTemplate'
      required:
      - name
      - description
    CreatedResponse:
      required:
      - id
      - _self
      type: object
      properties:
        id:
          type: string
          description: Unique identification for policy.For example `d4a6bc0b-24dd-4035-862a-0f8f7608512e`
        _self:
          type: string
          description: link to the onboarding type policy
    FlowSearchResponse:
      type: object
      properties:
        result:
          description: List of approval workflows
          type: array
          items:
            $ref: '#/components/schemas/ListFlowTemplate'
        count:
          description: Number of approval workflows
          type: integer
        _links:
          description: List of available pagination links
          type: object
          additionalProperties:
            type: string
    ListFlowTemplate:
      title: FlowTemplate
      type: object
      properties:
        id:
          type: string
          description: Unique representation of flow object
        name:
          type: string
          description: An Unique name for the identification of approval flow
        description:
          type: string
          description: Short description on approval flow
      required:
      - name
      - description
    ApprovalPolicy:
      type: object
      properties:
        id:
          type: string
          description: GUID of approval workflow assignment
        policies:
          type: array
          items:
            $ref: '#/components/schemas/Policy'
    PortalResponse:
      type: object
      title: ''
      properties:
        code:
          type: integer
          description: Error code
        message:
          type: string
          description: Error message
        errors:
          type: array
          description: Array of failed validation errors
          items:
            type: string
    CreationResponse:
      title: CreationResponse
      type: object
      properties:
        id:
          type: string
          description: Unique id of saved object
        _self:
          type: string
          description: Location of entity
    Policy:
      type: object
      properties:
        id:
          type: string
          description: GUID of approval workflow policy
        type:
          type: string
          description: Type of approval
          enum:
          - INTERNAL_APPROVAL
          - EXTERNAL_APPROVAL
        parameters:
          type: object
          properties:
            flow_id:
              type: string
              description: GUID of approval workflow
            flow_name:
              type: string
              description: Approval workflow configuration name
    StepTemplate:
      title: ''
      type: object
      properties:
        id:
          type: string
          description: Unique identifier for the object.
        approver:
          type: array
          items:
            type: object
            description: Array of unique Id and name of Portal user or Portal User group
            properties:
              id:
                type: string
                description: Unique identifier for the object.
              name:
                type: string
                description: Name of the object.
        notification:
          type: object
          properties:
            pending:
              type: object
              properties:
                message:
                  type: string
                subject:
                  type: string
            result:
              type: object
              properties:
                message:
                  type: string
                subject:
                  type: string
        mode:
          oneOf:
          - enum:
            - EVERYONE
            - ANYONE
          description: Approver type. Either user or group
          type: string
        approverType:
          description: Attribute to define type of approver configured. Either be of USER or GROUP
          oneOf:
          - enum:
            - USER
            - GROUP
          type: string
      required:
      - approver
      - approverType
      - mode
      - approval_pending_notification_enabled
      - approval_pending_notification_subject
      - approval_pending_notification_message
      - approval_result_notification_enabled
      - approval_result_notification_subject
      - approval_result_notification_message
      description: 'Step objects are used to define a level in a approval workflow. Step can have array of approvers or user group. '
  examples:
    FlowResponse:
      value:
        name: Flow
        description: Flow with multilevel approval
        id: 326dcd63-f215-415a-bb01-7fa53e75d238
        steps:
        - id: 33d727f3-95e2-499f-9679-29d17d968a16
          approver:
          - id: 9ab209d6-6a9b-3225-8d7f-56cc4b3b125d
            name: Administrator
          mode: EVERYONE
          approver_type: USER
          notification:
            pending:
              subject: Approval request pending
              message: Hello ${approver.name},  A request by ${requestor.name} to become a registered user needs your review and approval. You can click the link to approve http://localhost:4200/rest/v/approvals/${approval.request.id}/approve  or click the link to reject http://localhost:4200/rest/v/approvals/${approval.request.id}/reject  Best Regards,API Cloud Team *** This notification was sent automatically. Do not reply to this email.***
            result:
              subject: Result of registration request
              message: Hello ${approver.name}, A registration request by ${requestor.name} has been ${approval.result}  Best Regards, API Cloud Team *** This notification was sent automatically. Do not reply to this email.***
        - approver:
          - id: c32209d6-6a9b-3225-8d7f-56cc4b3b125d
            name: API Administrator
          mode: EVERYONE
          approver_type: GROUP
          notification:
            pending:
              subject: Approval request pending
              message: Hello ${approver.name},  A request by ${requestor.name} to become a registered user needs your review and approval. You can click the link to approve http://localhost:4200/rest/v/approvals/${approval.request.id}/approve  or click the link to reject http://localhost:4200/rest/v/approvals/${approval.request.id}/reject  Best Regards,API Cloud Team *** This notification was sent automatically. Do not reply to this email.***
            result:
              subject: Result of registration request
              message: Hello ${approver.name}, A registration request by ${requestor.name} has been ${approval.result}  Best Regards, API Cloud Team *** This notification was sent automatically. Do not reply to this email.***
    ApprovalPolicy:
      value:
        id: e5e4a159-26a8-4709-95a0-6bd4412c5b20
        policies:
        - id: 4c1f7d17-1e69-47ca-87f6-2f6527180529
          type: INTERNAL_APPROVAL
          parameters:
          - flow_id: 6e1e3d52-9c62-4e52-910c-fc602a19ad9b
            flow_name: ProviderApprovalFlow
    ApprovalFlow:
      value:
        name: Provider Approval
        description: Approve by provider
        id: 14594abf-054f-4e4d-b16d-3eb8495f25dc
        steps:
        - id: 0c6b2610-06de-4f31-9463-0150c176b7c7
          mode: ANYONE
          approver_type: GROUP
          approver:
          - id: 7dead6ba-d7f3-321d-a5c9-971dc33b73fd
            name: API Provider
    PortalResponseError:
      value:
        code: 400
        message: User provided data is not correct
        errors: []
    CreatedResponse:
      value:
        id: f790526b-4de4-c305-732d-d8a3d3e2bc12
        _self: /rest/v1/approval/policy
    ApprovalFlowSearchResponse:
      value:
        result:
        - name: New Flow version
          description: Flow with multilevel approval
          id: 14594abf-054f-4e4d-b16d-3eb8495f25dc
        count: 1
        _links:
          _self: rest/v1/approvals?page=0
          _next: rest/v1/approvals?page=1
  responses:
    '401':
      description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
      x-ae-placeholder: true
    '403':
      description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
      x-ae-placeholder: true
    '404':
      description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
      x-ae-placeholder: true
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
x-refined-from:
- devportal-approvals.yaml
- web-methods-developer-portal-approvals-openapi.yml