Web Methods Approval Worflow API
The Approval Worflow API from Web Methods — 12 operation(s) for approval worflow.
The Approval Worflow API from Web Methods — 12 operation(s) for approval worflow.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/web-methods:web-methods-approval-worflow-api"
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.
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: 3.2.0
info:
title: Web Methods Approval Worflow API
version: '10.11'
description: 'Operations tagged Approval Worflow 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 Worflow
paths:
/approvals/request:
parameters: []
get:
tags:
- Approval Worflow
summary: Retrieve the list of pending approval requests
description: 'Endpoint to retrieve the list of all pending approvals requests.
*Endpoint can be accessed only by a user having **Administrator** or **Provider** 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/ApprovalRequestSearchResponse'
examples:
ApprovalFlowResponse:
$ref: '#/components/examples/ApprovalRequestSearchResponse'
'403':
$ref: '#/components/responses/403'
'401':
$ref: '#/components/responses/401'
operationId: getApprovalsRequest
x-operation-id-source: derived
servers:
- url: http://localhost:18101/portal/rest/v1
description: Development server
/approvals/request/{id}:
get:
tags:
- Approval Worflow
summary: Retrieve the pending approval request by Id
description: 'Endpoint to obtain details of particular approval request based on ID
*Endpoint can be accessed only by a user having **Administrator** role or **Approval Request READ** permission*'
responses:
'200':
$ref: '#/components/responses/ApprovalRequest'
'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 request. Refers to the GUID of the approval request.For example `d4a6bc0b-24dd-4035-862a-0f8f7608512e`
operationId: getApprovalsRequestById
x-operation-id-source: derived
servers:
- url: http://localhost:18101/portal/rest/v1
description: Development server
/approvals/request/{id}/approve:
parameters:
- name: id
in: path
required: true
allowEmptyValue: false
schema:
type: string
description: Unique Identification for Approval request. Refers to the GUID of the approval request.For example `d4a6bc0b-24dd-4035-862a-0f8f7608512e`
- name: comments
in: query
required: false
allowEmptyValue: false
schema:
type: string
description: Approver can add comments while approving the request. The default value is empty
put:
tags:
- Approval Worflow
summary: Approve a particular approval request
description: 'Endpoint to approve particular approval request based on ID
*Endpoint can be accessed only by a user having **Administrator** role or **Approval Request UPDATE** permission*'
responses:
'200':
description: No content
'403':
$ref: '#/components/responses/403'
'404':
$ref: '#/components/responses/404'
'401':
$ref: '#/components/responses/401'
operationId: putApprovalsRequestByIdApprove
x-operation-id-source: derived
servers:
- url: http://localhost:18101/portal/rest/v1
description: Development server
/approvals/request/external/{id}/approve:
parameters:
- name: id
in: path
required: true
allowEmptyValue: false
schema:
type: string
description: Unique Identification for Approval request. Refers to the GUID of the approval request.For example `d4a6bc0b-24dd-4035-862a-0f8f7608512e`
- name: comments
in: query
required: false
allowEmptyValue: false
schema:
type: string
description: Approver can add comments while approving the request. The default value is empty
put:
tags:
- Approval Worflow
summary: Approve a particular external approval request
description: 'Endpoint to approve particular external approval request based on ID
*Endpoint can be accessed only by a user having **Administrator** role or **Approval Request UPDATE** permission*'
responses:
'200':
description: No content
'403':
$ref: '#/components/responses/403'
'404':
$ref: '#/components/responses/404'
'401':
$ref: '#/components/responses/401'
operationId: putApprovalsRequestExternalByIdApprove
x-operation-id-source: derived
servers:
- url: http://localhost:18101/portal/rest/v1
description: Development server
/approvals/request/approve:
put:
tags:
- Approval Worflow
summary: Approve a set of approval requests
description: 'Endpoint to approve a set of approval requests based on IDs
*Endpoint can be accessed only by a user having **Administrator** role or **Approval Request UPDATE** permission*'
parameters:
- name: comments
in: query
required: false
allowEmptyValue: false
schema:
type: string
description: Approver can add comments while approving the request. The default value is empty
requestBody:
content:
application/json:
schema:
type: array
items:
type: string
example: '["dce350d8-72be-4503-acb1-1e0e699abbe1", "dc8aaac3-f7ee-42f4-8474-1e85678942db"]'
responses:
'200':
description: No content
'403':
$ref: '#/components/responses/403'
'404':
$ref: '#/components/responses/404'
'401':
$ref: '#/components/responses/401'
operationId: putApprovalsRequestApprove
x-operation-id-source: derived
servers:
- url: http://localhost:18101/portal/rest/v1
description: Development server
/approvals/request/{id}/reject:
parameters:
- name: id
in: path
required: true
allowEmptyValue: false
schema:
type: string
description: Unique Identification for Approval request. Refers to the GUID of the approval request.For example `d4a6bc0b-24dd-4035-862a-0f8f7608512e`
- name: comments
in: query
required: false
allowEmptyValue: false
schema:
type: string
description: Approver can add comments while rejecting the request. The default value is empty
put:
tags:
- Approval Worflow
summary: Reject a particular approval request
description: 'Endpoint to reject particular approval request based on ID
*Endpoint can be accessed only by a user having **Administrator** role or **Approval Request UPDATE** permission*'
responses:
'200':
description: No content
'403':
$ref: '#/components/responses/403'
'404':
$ref: '#/components/responses/404'
'401':
$ref: '#/components/responses/401'
operationId: putApprovalsRequestByIdReject
x-operation-id-source: derived
servers:
- url: http://localhost:18101/portal/rest/v1
description: Development server
/approvals/request/external/{id}/reject:
parameters:
- name: id
in: path
required: true
allowEmptyValue: false
schema:
type: string
description: Unique Identification for Approval request. Refers to the GUID of the approval request.For example `d4a6bc0b-24dd-4035-862a-0f8f7608512e`
- name: comments
in: query
required: false
allowEmptyValue: false
schema:
type: string
description: Approver can add comments while rejecting the request. The default value is empty
put:
tags:
- Approval Worflow
summary: Reject a particular external approval request
description: 'Endpoint to reject a particular external approval request based on ID
*Endpoint can be accessed only by a user having **Administrator** role or **Approval Request UPDATE** permission*'
responses:
'200':
description: No content
'403':
$ref: '#/components/responses/403'
'404':
$ref: '#/components/responses/404'
'401':
$ref: '#/components/responses/401'
operationId: putApprovalsRequestExternalByIdReject
x-operation-id-source: derived
servers:
- url: http://localhost:18101/portal/rest/v1
description: Development server
/approvals/request/reject:
put:
tags:
- Approval Worflow
summary: Reject a set of approval requests
description: 'Endpoint to reject a set of approval requests based on IDs
*Endpoint can be accessed only by a user having **Administrator** role or **Approval Request UPDATE** permission*'
parameters:
- name: comments
in: query
required: false
allowEmptyValue: false
schema:
type: string
description: Approver can add comments while rejecting the request. The default value is empty
requestBody:
content:
application/json:
schema:
type: array
items:
type: string
example: '["dce350d8-72be-4503-acb1-1e0e699abbe1", "dc8aaac3-f7ee-42f4-8474-1e85678942db"]'
responses:
'200':
description: No content
'403':
$ref: '#/components/responses/403'
'404':
$ref: '#/components/responses/404'
'401':
$ref: '#/components/responses/401'
operationId: putApprovalsRequestReject
x-operation-id-source: derived
servers:
- url: http://localhost:18101/portal/rest/v1
description: Development server
/approvals/instance:
get:
summary: Retrieve all approval request instance in API Portal by status
description: 'Endpoint to retrieve the list of all approval request flow records in API Portal. API Portal records all the steps of approval request for audit purpose this endpoint can be used to retrieve it based on status.
*Endpoint can be accessed only by a user having **Administrator** role*'
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/FlowInstanceSearchResponse'
examples:
FlowInstanceSearchResponse:
$ref: '#/components/examples/FlowInstanceSearchResponse'
'403':
$ref: '#/components/responses/403'
'401':
$ref: '#/components/responses/401'
tags:
- Approval Worflow
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
- name: status
in: query
description: status of the approval request
required: true
allowEmptyValue: false
schema:
type: string
enum:
- NOT_STARTED
- STOPPED
- SUSPENDED
- COMPLETED
- SKIPPED
- FLOW_COMPLETED
- ALL
- FAILED
operationId: getApprovalsInstance
x-operation-id-source: derived
servers:
- url: http://localhost:18101/portal/rest/v1
description: Development server
/approvals/instance/step/{id}/request:
parameters:
- name: id
in: path
required: true
allowEmptyValue: false
schema:
type: string
description: Unique Identification for Approval step. Refers to the GUID of the approval step.For example `d4a6bc0b-24dd-4035-862a-0f8f7608512e`
put:
tags:
- Approval Worflow
summary: Retrieve approval requests of the given step Id
description: 'Endpoint to get approval request based on the step ID
*Endpoint can be accessed only by a user having **Administrator** role*'
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/ApprovalRequestSearchResponse'
examples:
ApprovalRequestSearchResponse:
$ref: '#/components/examples/ApprovalRequestSearchResponse'
'403':
$ref: '#/components/responses/403'
'404':
$ref: '#/components/responses/404'
'401':
$ref: '#/components/responses/401'
operationId: putApprovalsInstanceStepByIdRequest
x-operation-id-source: derived
servers:
- url: http://localhost:18101/portal/rest/v1
description: Development server
/approvals/instance/{id}/trace:
get:
tags:
- Approval Worflow
summary: Retrieve approval request trace logs
description: 'Endpoint to get approval instance trace logs based on the instance ID
*Endpoint can be accessed only by a user having **Administrator** role*'
parameters:
- name: id
in: path
required: true
allowEmptyValue: false
schema:
type: string
description: Unique Identification for Approval instance. Refers to the GUID of the approval instance.For example `d4a6bc0b-24dd-4035-862a-0f8f7608512e`
responses:
200:
$ref: '#/components/responses/ApprovalTrace'
401:
$ref: '#/components/responses/401'
403:
$ref: '#/components/responses/403'
404:
$ref: '#/components/responses/404'
operationId: getApprovalsInstanceByIdTrace
x-operation-id-source: derived
servers:
- url: http://localhost:18101/portal/rest/v1
description: Development server
/approvals/instance/{id}/logs:
get:
tags:
- Approval Worflow
summary: Retrieve approval request logs
description: 'Endpoint to get approval instance logs based on the instance ID
*Endpoint can be accessed only by a user having **Administrator** role*'
parameters:
- name: id
in: path
required: true
allowEmptyValue: false
schema:
type: string
description: Unique Identification for Approval instance. Refers to the GUID of the approval instance.For example `d4a6bc0b-24dd-4035-862a-0f8f7608512e`
responses:
200:
$ref: '#/components/responses/ApprovalTrace'
401:
$ref: '#/components/responses/401'
403:
$ref: '#/components/responses/403'
404:
$ref: '#/components/responses/404'
operationId: getApprovalsInstanceByIdLogs
x-operation-id-source: derived
servers:
- url: http://localhost:18101/portal/rest/v1
description: Development server
components:
schemas:
RequestByStep:
type: object
properties:
flowId:
type: string
description: Unique Id of flow , approval request belongs to
stepId:
type: string
description: Id of a step, approval request belongs to
status:
type: string
description: Status of approval request
enum:
- PENDING
- APPROVED
- SKIPPED
- REJECTED
comments:
type: string
approver:
$ref: '#/components/schemas/ApproverInfo'
ApproverInfo:
type: object
properties:
id:
type: string
firstName:
type: string
lastName:
type: string
pictureUrl:
type: string
ApprovalRequest:
type: object
properties:
owner:
type: string
description: owner of the approval workflow
id:
type: string
description: Unique identification for approval request. Refers to the GUID of the approval request.For example `d4a6bc0b-24dd-4035-862a-0f8f7608512e`
flowId:
type: string
description: Unique Id of flow , approval request belongs to
stepId:
type: string
description: Id of a step, approval request belongs to
groupId:
type: string
description: Id of a group
status:
type: string
description: Status of approval request
enum:
- PENDING
- APPROVED
- SKIPPED
- REJECTED
type:
type: string
description: Onboarding type
enum:
- APPLICATION_CREATION_REQUEST
- USER_ONBOARDING
- APPLICATION_SCOPE_INCREASE_REQUEST
contextId:
type: string
description: GUID of an application or user for which approval request has been raised.
contextData:
type: object
properties:
firstName:
type: string
lastName:
type: string
appType:
type: string
name:
type: string
email:
type: string
FlowInstanceSearchResponse:
type: object
properties:
result:
description: List of approval request flow
type: array
items:
$ref: '#/components/schemas/FlowInstanceTemplate'
count:
description: Number of approval request flow
type: integer
_links:
description: List of available pagination links
type: object
additionalProperties:
type: string
FlowInstanceTemplate:
title: FlowInstanceTemplate
type: object
properties:
id:
type: string
description: Unique representation of flow object
status:
type: string
description: Status of the approval request instance flow
enum:
- NOT_STARTED
- STOPPED
- SUSPENDED
- COMPLETED
- SKIPPED
- FLOW_COMPLETED
- ALL
- FAILED
contextId:
type: string
type:
type: string
description: Type of approval request
enum:
- USER_ONBOARDING
- APPLICATION_CREATION_REQUEST
- APPLICATION_SCOPE_INCREASE_REQUEST
root:
type: object
description: Flow step information
properties:
id:
type: string
description: Unique representation of flow step object
executor:
type: string
description: Type of request
enum:
- APPLICATION_REQUEST_PENDING
- USER_REQUEST_PENDING
status:
type: string
description: Status of the approval flow step
enum:
- NOT_STARTED
- STOPPED
- SUSPENDED
- COMPLETED
- SKIPPED
- FLOW_COMPLETED
- ALL
- FAILED
created:
type: string
description: Approval flow step created time
modified:
type: string
description: Approval flow step modified time
configuration:
type: object
nextSteps:
type: object
description: This parameter is a map of next possible steps for this approval request flow
ApprovalRequestSearchResponse:
type: object
properties:
result:
description: List of approval workflows
type: array
items:
$ref: '#/components/schemas/ApprovalRequest'
count:
description: Number of approval workflows
type: integer
_links:
description: List of available pagination links
type: object
additionalProperties:
type: string
RequestTrace:
type: object
additionalProperties:
type: array
items:
$ref: '#/components/schemas/RequestByStep'
ApprovalTrace:
type: object
properties:
trace:
$ref: '#/components/schemas/RequestTrace'
examples:
ApprovalRequest:
value:
owner: 200ceb26-807d-3bf9-9fd6-f4f0d1ca54d4
id: 14594abf-054f-4e4d-b16d-3eb8495f25dc
flowId: 5a6eed06-1ec9-4257-b79f-88621da4fffb
stepId: fd972ce8-5d33-4721-aaa5-15c85b9e6566
groupId: 9870271b-5413-3053-b5b3-12f97a513552
status: PENDING
type: APPLICATION_CREATION_REQUEST
contextId: d5982437-a78a-40d5-9618-bedae3818c6e
contextData:
firstName: John
lastName: Oliver
appType: API
name: ApprApp
email: johnoliver@gmail.com
ApprovalRequestSearchResponse:
value:
result:
- owner: 200ceb26-807d-3bf9-9fd6-f4f0d1ca54d4
id: 14594abf-054f-4e4d-b16d-3eb8495f25dc
flowId: 5a6eed06-1ec9-4257-b79f-88621da4fffb
stepId: fd972ce8-5d33-4721-aaa5-15c85b9e6566
groupId: 9870271b-5413-3053-b5b3-12f97a513552
status: PENDING
type: APPLICATION_CREATION_REQUEST
contextId: d5982437-a78a-40d5-9618-bedae3818c6e
contextData:
firstName: John
lastName: Oliver
appType: API
name: ApprApp
email: johnoliver@gmail.com
count: 1
_links:
_self: rest/v1/approvals/request?page=0
_next: rest/v1/approvals/request?page=1
ApprovalTrace:
value:
trace:
- Step 1: null
owner: 05e85288-f375-43be-a25c-9fba3dc39716
id: 05e85288-f375-43be-a25c-9fba3dc39716
modified: 2020-07-10 12:48
created: 2020-07-10 12:48
flowId: 05e85288-f375-43be-a25c-9fba3dc39716
stepId: 05e85288-f375-43be-a25c-9fba3dc39716
status: APPROVED
approver:
id: 05e85288-f375-43be-a25c-9fba3dc39716
firstName: Admin
lastName: Admin
pictureUrl: null
- Step 2: null
owner: 05e85288-f375-43be-a25c-9fba3dc39716
id: 05e85288-f375-43be-a25c-9fba3dc39716
modified: 2020-07-10 12:48
created: 2020-07-10 12:48
flowId: 05e85288-f375-43be-a25c-9fba3dc39716
stepId: 05e85288-f375-43be-a25c-9fba3dc39716
status: APPROVED
approver:
id: 05e85288-f375-43be-a25c-9fba3dc39716
firstName: Admin
lastName: Admin
pictureUrl: null
FlowInstanceSearchResponse:
value:
result:
- id: fb39605e-0f55-4098-a28e-4db588e1510c
status: COMPLETED
root:
id: 7b5bb9b5-5d63-46fd-89d7-315fae052fa4
executor: APPLICATION_REQUEST_PENDING
status: COMPLETED
configuration: {}
nextSteps:
APPROVED:
id: 1ce1be73-6408-4b59-b210-45a18bac4fc0
executor: APPLICATION_REQUEST_ACCEPTED
status: COMPLETED
configuration: {}
nextSteps: {}
created: 2021-03-25 13:03
modified: 2021-03-25 13:03
REJECTED:
id: ee58bbc3-7234-4c1d-9d24-12d8055d4fdb
executor: APPLICATION_REQUEST_REJECTED
status: SKIPPED
configuration: {}
nextSteps: {}
created: 2021-03-25 13:03
modified: 2021-03-25 13:03
created: 2021-03-25 13:03
modified: 2021-03-25 13:03
parameters:
custom: {}
redirect_uris: '[/rest/v1/oauth/callback]'
subscription: false
source: ApplicationCreationHandler
externalrefkey: 757bbd47-35a4-4513-8470-8205cb59f5c4
step_id: 1ce1be73-6408-4b59-b210-45a18bac4fc0
provider_ref: a1b3a59c-0639-4260-a9a6-c75c78fcb62d
flow_type: APPLICATION_CREATION_REQUEST
apis: '[c2eb4247-8274-4ffb-978e-382c23825cfa]'
application: 379cbafd-b3a3-4d10-aa8c-b639eb1b7e05
correlation: e60e1a2e-ba12-475b-843d-8ee994b7de92
user_request_id: df98180b-a97f-480c-9091-d0d779abc5ea
flow_id: fb39605e-0f55-4098-a28e-4db588e1510c
name: PhotoApp
api: c2eb4247-8274-4ffb-978e-382c23825cfa
user: 200ceb26-807d-3bf9-9fd6-f4f0d1ca54d4
tenant: default
type: APPLICATION_CREATION_REQUEST
contextId: 379cbafd-b3a3-4d10-aa8c-b639eb1b7e05
count: 1
_links:
_self: /rest/v1/approvals/instance?status=ALL&page=0
_next: /rest/v1/approvals/instance?status=ALL&page=1
responses:
ApprovalRequest:
description: ok
content:
application/json:
schema:
$ref: '#/components/schemas/ApprovalRequest'
examples:
SearchResponse:
$ref: '#/components/examples/ApprovalRequest'
ApprovalTrace:
description: List of Approval requests grouped by step for the given approval flow
content:
application/json:
schema:
$ref: '#/components/schemas/ApprovalTrace'
examples:
ApprovalTraceExample:
$ref: '#/components/examples/ApprovalTrace'
'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
'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
'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