Web Methods Plans API

The Plans API from Web Methods — 2 operation(s) for plans.

GitHub OpenAPI

Operations 5

GET /plans Get all plans #
POST /plans Create plan #
GET /plans/{planId} Get plan by id #
PUT /plans/{planId} Update plan by plan id #
DELETE /plans/{planId} Delete plan by id #

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-plans-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-plans-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Web Methods Plans API
  version: '11.0'
  description: 'Operations tagged Plans across 2 of this provider''s published API definitions: apigateway-MonetizationSwagger.json, web-methods-api-gateway-monetization-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: http://localhost:5555/{gateway}
tags:
- name: Plans
paths:
  /plans:
    get:
      description: This REST request is used to retrieve list of all plans from API Gateway along with its rate limit and quota as policies. Also it will list down the associated packageIds for each plan in the response. You can use /policies/{policyId} to retrieve the rate limit and quota policy details and /packages/{packageId} to retrieve the package details
      operationId: getAllPlans
      responses:
        '200':
          description: Ok
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PlanGetAllResponse'
              example: "{\n    \"planResponse\": [\n        {\n            \"id\": \"b35e2d91-0e9c-4421-a2a9-7abdf5d1c669\",\n            \"name\": \"Plan1\",\n            \"version\": \"1.0\",\n            \"deprecated\": false,\n            \"isProtected\": false,\n            \"terms\": \"Plan terms\",\n            \"license\": \"https://opensource.org/licenses/Apache-2.0\",\n            \"policies\": [\n                \"2429ece2-96c2-4bd6-b8dc-9c13eedac42f\"\n            ],\n            \"cost\": {\n                \"currency\": null,\n                \"value\": \"100USD\",\n                \"duration\": null\n            },\n            \"quota\": {\n                \"enforcementPolicy\": \"f6e80784-d82e-491c-abda-d492ee037c2c\"\n            },\n            \"customFields\": {\n                \"customfield1\": [\n                    {\n                        \"value\": \"customvalue\",\n                        \"description\": \"values desription\"\n                    },\n                    {\n                        \"value\": \"customvalue2\",\n                        \"description\": \"values descripriton2\"\n                    }\n                ],\n                \"customfield2\": [\n                    {\n                        \"value\": \"field value2\",\n                        \"description\": \"value description\"\n                    }\n                ]\n            },\n            \"creationDate\": 1637922489226,\n            \"protected\": false,\n            \"packageIds\": [\n                \"7146dfc3-004b-473a-9ec8-7c206e766d7a\",\n                \"8024be38-d2ff-40c1-901a-3291169f6f06\"\n            ]\n        },\n        {\n            \"id\": \"12fbf58b-9661-4337-acaa-bb3edbd2b5f2\",\n            \"name\": \"Plan2\",\n            \"description\": \"This plan does not have any rate limit.\",\n            \"version\": \"1.0\",\n            \"deprecated\": false,\n            \"isProtected\": false,\n            \"policies\": [\n                \"5590dec3-754c-416d-9e2d-a1ca10c29760\"\n            ],\n            \"cost\": {\n                \"currency\": null,\n                \"value\": \"250USD\",\n                \"duration\": null\n            },\n            \"quota\": {\n                \"enforcementPolicy\": \"1e50b070-c09b-44e9-8cee-116046c92fa9\"\n            },\n            \"customFields\": {},\n            \"creationDate\": 1637922530140,\n            \"modifiedDate\": 1637922547637,\n            \"protected\": false,\n            \"packageIds\": [\n                \"7146dfc3-004b-473a-9ec8-7c206e766d7a\",\n                \"8024be38-d2ff-40c1-901a-3291169f6f06\"\n            ]\n        }\n    ]\n}"
        '401':
          description: This status shows either user didn't provide any user credential or user doesn't have Administrator or API provider access for this API.
      security:
      - Basic: []
      tags:
      - Plans
      summary: Get all plans
      x-summary-source: derived
    post:
      description: 'This request is used to create the plan. During the creation of plan we can specify meta data of the plans. The rate limit and quota needs to created using a separate rest call to /policyActions. Also they need to be associated to corresponding policies created during the plan. You can also enable notifications in quota to trigger some actions such as billing or any other custom actions based on the consumption of an user. The notification can be either email or a custom destination. To receive email notification you should configure Email destination. To enable custom destination you need to create custom destination in API gateway. The link https://github.com/SoftwareAG/webmethods-api-gateway/tree/master/docs/articles/features/Custom%20Destinations contains the details on how to configure and use it. If you want to block the consumer after consuming allocated quota you should create throttle policy action as mentioned in the below example associate that to quota policy created for plan. If you want to just notify the destination with blocking the customer then you need to create monitorSLA policy action and associate that to quota policy created for plan. If you enable block on breach (throttle policy) you can receive both the policy violation event and monitor event with eventSource field as Enforce-HardLimit in custom destination. Please make sure that custom destination is enabled to receive events for policy violations events. If you dont enable block on breach (monitorSLA) in quota then monitor event with eventSource field as MonitorPolicy is sent to destinations configured. Below are the examples to create rate limit in API gateway using endpoint /policyActions and associate it to the policy created for the plan. curl -X POST -u ''Administrator:manage'' -H ''Accept: application/json'' -H ''Content-Type: application/json'' http://localhost:5555/rest/apigateway/policyActions -d ''{"policyAction":{"names":[{"value":"Traffic Optimization","locale":"en"}],"templateKey":"throttle","parameters":[{"templateKey":"throttleRule","parameters":[{"templateKey":"throttleRuleName","values":["requestCount"]},{"templateKey":"monitorRuleOperator","values":["GT"]},{"templateKey":"value","values":["10"]}]},{"templateKey":"destination","parameters":[{"templateKey":"destinationType","values":["GATEWAY"]}]},{"templateKey":"alertInterval","values":["2"]},{"templateKey":"alertIntervalUnit","values":["minutes"]},{"templateKey":"alertFrequency","values":["once"]},{"templateKey":"alertMessage","values":["10 requests in 2 minutes breached for rate limit"]},{"templateKey":"consumerIds","values":["AnyConsumers"]}],"active":false}}''. The above command will create a throttling policy action and its id in the response which you need to associate to the policy using the below example. curl -X PUT -u ''Administrator:manage'' -H ''Accept: application/json'' -H ''Content-Type: application/json'' http://localhost:5555/rest/apigateway/policies/2429ece2-96c2-4bd6-b8dc-9c13eedac42f -d ''{"policy":{"id":"2429ece2-96c2-4bd6-b8dc-9c13eedac42f","policyEnforcements":[{"enforcements":[{"enforcementObjectId":"f3753917-30ef-438c-99f5-adcc204ac7b6","order":null}],"stageKey":"throttle"}]}}''. To create throttle policy for quota use the below example.'
      operationId: createPlan
      responses:
        '201':
          description: This response code indicates that plan is successfully created and policies for rate limit and quota also successfully created. You can start to add rate limits and quota for the policies associated to this plan
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PlanResponseContainer'
              example: "{\n    \"planResponse\": {\n        \"id\": \"8c84f0cb-559f-40c8-99d0-43e58c3da4c0\",\n        \"name\": \"PlantinumPlan\",\n        \"description\": \"Platinum plan description\",\n        \"icon\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEkAAABRCAIAAAARlBx9AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAPmSURBVHhe7dhNctswDEBhXqe7Lnvv3qK3iOP/uDdox4UEGqIeJQqWZTpVi/nWBt4oM5EdfvbmUnBRrvkY86GG51xwVpxTQdp2KXO3sSe1aBtjwNv2/Icmcy54pO1SEMNcbexJLfrQZBiTOt3aLmXPD5M5F8x4aNp2KXOHybAnVfmhTbc9Nex6+pZDmJj30CbaFg9DxpipMBnGpDSs1LZIGI7264WxjTEQ205DbbFqVhhOfMSDD22g7Z4qmSVjcveGCQvrtTkfF9Y/WyyKwxJIw2RiW6EKy+qLXVkJxLCu7RgGHxc+/eWQkcvDbm3Z/Pr+BZ/+coiBfpiMtg2NtH3CPIEkNRg20fZX5I2FTbd98rxCmKvt0+aVw0Te1rxeoE3h01+uHCasrffqhCqDT3+52JVVKWnrVSkkpfDpL4ee1N1tAp/+Wr9/fEWSmdMmsKAy6UkhyQy0yfdIlAzCvqdCDCBJHdEWvyD72gQuWBCuL0OVkLCmzXoat0FDAW6aDefeJa9qHLUtGwSU4Uon3PeIwbDj8RBiTX9wvQdOz+GgBfXC2io12HbG3U7VYgCPa7DtbHC0H7bWkVcpaeuSDC72w9Y6BsPEOtpYpf63uWFrHUgyXVv8EbeFi/2wtQ4kmdAlJYOL/bC1DiSpQ9M2NLjYD1vryKtae7TF31hwsR+21pFXHQ4NaYs9KVzsh6115FXracur1JJtWFkNksw/0xZ/zVxNm/VE7eBoJ6ysBkkmxJreHHG0E1ZWgySjbfE7ucHRTlhZDZL2jZ2QNoYJHO2EldXkVY39Wtq6pLZKraENSWYVbVmVim3dT0UtHO2EldUgyYTYEye+UONoJ6ysBkkmWE8KRzthZTVIMqts2+5aK2uLVWtq6yU1do01tCHJNG23L+RmL3C3B1ZWgyQTtMReyVI4fRJWVoMkE9ADuL4MK6tBkploEwgowMpqkHTzPt0m0DAGK6tBkti2ptvaL0WuPKysRnssybCt9/Uutd+hJIeV1SBpu40CG1T3n57Qk8LKapBkAk73QJLBymqQZOa0CVQprHweNIyZ2SavcAgTuGBBY391IzbK2bYdeB/N8nDQI2LM/T2pvK3JGCzpJP9PlmrrYu7oEewR7zeBd0OSMWZeWy9muZ5U0pYd7edpY4zg0WXsEYhpvHcCrpwtb2OJ4LmTGCMYo5Ik80hbfNPJX3Y6vHUSSxRLVBbT9+Zvm8pQvNWDJYoligHwlsrbuqfxnBLBDMMSxQDo9ZhN2+ZoELzvLmwwzDAMyDFGSZIJbBC8bAY2GDakeH2OJSrt6WykjWfNwIAUA1I8PccMwxKz6YTrWud6/QMDnAYz3wg70wAAAABJRU5ErkJggg==\",\n        \"version\": \"v1\",\n        \"deprecated\": false,\n        \"isProtected\": false,\n        \"license\": \"https://opensource.org/licenses/Apache-2.0\",\n        \"policies\": [\n            \"d68c9f05-c683-4c0e-9cee-e3d7fb8aa482\"\n        ],\n        \"quota\": {\n            \"enforcementPolicy\": \"9a2955ec-478c-482e-a148-4490bd5cdec7\"\n        },\n        \"customFields\": {\n            \"customfield1\": [\n                {\n                    \"value\": \"customvalue\",\n                    \"description\": \"values desription\"\n                },\n                {\n                    \"value\": \"customvalue2\",\n                    \"description\": \"values descripriton2\"\n                }\n            ],\n            \"customfield2\": [\n                {\n                    \"value\": \"field value2\",\n                    \"description\": \"value description\"\n                }\n            ]\n        },\n        \"creationDate\": 1638162053046,\n        \"protected\": false,\n        \"status\": \"CREATED\",\n        \"message\": \"Plan  Created\"\n    }\n}"
        '400':
          description: Bad request
          content:
            application/json:
              example: "{\n    \"errorDetails\": \"Plan name should not be empty or null\"\n}"
        '401':
          description: This status shows either user didn't provide any user credential or user doesn't have Administrator or manage package and plans access privilege to access this API.
      security:
      - Basic: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Plan'
      tags:
      - Plans
      summary: Create plan
      x-summary-source: derived
    servers:
    - url: http://localhost:5555/{gateway}
  /plans/{planId}:
    get:
      description: This request is used to retrieve the details of particular plan along with rate limit and quota policy ids along with associated package meta data.
      operationId: getPlanById
      parameters:
      - name: planId
        in: path
        description: Id of a Plan
        required: true
        x-example: eb135dfc-6ad4-41a3-9c34-4c005037cb8b
        schema:
          type: string
      responses:
        '200':
          description: To get plan information for the given Plan Id.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PlanGetResponse'
              example: "{\n    \"planResponse\": {\n        \"id\": \"b35e2d91-0e9c-4421-a2a9-7abdf5d1c669\",\n        \"name\": \"Plan1\",\n        \"version\": \"1.0\",\n        \"deprecated\": false,\n        \"isProtected\": false,\n        \"terms\": \"Plan terms\",\n        \"license\": \"https://opensource.org/licenses/Apache-2.0\",\n        \"policies\": [\n            \"2429ece2-96c2-4bd6-b8dc-9c13eedac42f\"\n        ],\n        \"cost\": {\n            \"currency\": null,\n            \"value\": \"100USD\",\n            \"duration\": null\n        },\n        \"quota\": {\n            \"enforcementPolicy\": \"f6e80784-d82e-491c-abda-d492ee037c2c\"\n        },\n        \"customFields\": {\n            \"customfield1\": [\n                {\n                    \"value\": \"customvalue\",\n                    \"description\": \"values desription\"\n                },\n                {\n                    \"value\": \"customvalue2\",\n                    \"description\": \"values descripriton2\"\n                }\n            ],\n            \"customfield2\": [\n                {\n                    \"value\": \"field value2\",\n                    \"description\": \"value description\"\n                }\n            ]\n        },\n        \"creationDate\": 1637922489226,\n        \"protected\": false,\n        \"packages\": [\n            {\n                \"id\": \"7146dfc3-004b-473a-9ec8-7c206e766d7a\",\n                \"name\": \"Package1\",\n                \"deprecated\": false,\n                \"publishedPortals\": [],\n                \"active\": false\n            },\n            {\n                \"id\": \"8024be38-d2ff-40c1-901a-3291169f6f06\",\n                \"name\": \"Package2\",\n                \"deprecated\": false,\n                \"publishedPortals\": [],\n                \"active\": false\n            }\n        ]\n    }\n}"
        '401':
          description: This status shows either user didn't provide any user credential or user doesn't have Administrator or API provider access for this API.
        '404':
          description: The specified package is not available.
      security:
      - Basic: []
      tags:
      - Plans
      summary: Get plan by id
      x-summary-source: derived
    put:
      description: This request is used to update the plan meta data such as name, description, license details. To update the rate limit or quota use the /policies/{policyId} to get the throttling/MSLA policy action id and use /policyActions/{policyActionId} to update the rate limit or quota. To associate or dis associate a package use /packages/{packageId} end point. If the rate limit or quota changes it will be automatically enforced with updated with out re activating the package.
      operationId: updatePlanByPlanId
      parameters:
      - name: planId
        in: path
        description: The id of the plan whose details needs to be updated.
        required: true
        x-example: eb135dfc-6ad4-41a3-9c34-4c005037cb8b
        schema:
          type: string
      responses:
        '200':
          description: The plan details is successfully updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PlanGetResponse'
              example: "{\n    \"planResponse\": {\n        \"id\": \"b35e2d91-0e9c-4421-a2a9-7abdf5d1c669\",\n        \"name\": \"PremiumPlan\",\n        \"description\": \"Premium plan description updated\",\n        \"version\": \"v1\",\n        \"deprecated\": false,\n        \"isProtected\": false,\n        \"terms\": \"Plan terms\",\n        \"license\": \"https://opensource.org/licenses/Apache-2.0\",\n        \"policies\": [\n            \"2429ece2-96c2-4bd6-b8dc-9c13eedac42f\"\n        ],\n        \"cost\": {\n            \"currency\": null,\n            \"value\": \"100USD\",\n            \"duration\": null\n        },\n        \"quota\": {\n            \"enforcementPolicy\": \"f6e80784-d82e-491c-abda-d492ee037c2c\"\n        },\n        \"customFields\": {\n            \"customfield1\": [\n                {\n                    \"value\": \"customvalue\",\n                    \"description\": \"values desription\"\n                },\n                {\n                    \"value\": \"customvalue2\",\n                    \"description\": \"values descripriton2\"\n                }\n            ],\n            \"customfield2\": [\n                {\n                    \"value\": \"field value2\",\n                    \"description\": \"value description\"\n                }\n            ]\n        },\n        \"creationDate\": 1637922489226,\n        \"modifiedDate\": 1637944095771,\n        \"protected\": false,\n        \"status\": \"UPDATED\",\n        \"message\": \"Plan Updated\"\n    }\n}"
        '400':
          description: The error code indicates missing or invalid field in the request
          content:
            application/json:
              example: "{\n    \"errorDetails\": \"Plan name should not be empty or null\"\n}"
        '401':
          description: The error code indicates either user credential is not provided or the user is not an administrator or does not have manage packages and plans privilege
        '404':
          description: The specified package id is not available in API Gateway
      security:
      - Basic: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Plan'
      tags:
      - Plans
      summary: Update plan by plan id
      x-summary-source: derived
    delete:
      description: This request is used to delete the plan by plan id. Before deleting the plan, the plan should removed from all of its associated packages else API gateway will not allow the plan to be deleted. You can use /packages/{packageId} resource dis associate the plan from its corresponding packages. The associated rate limit and quota policy will be deleted automatically when the plan is deleted.
      operationId: deletePlanById
      parameters:
      - name: planId
        in: path
        description: Id of a Plan
        required: true
        x-example: eb135dfc-6ad4-41a3-9c34-4c005037cb8b
        schema:
          type: string
      responses:
        '204':
          description: The plan is successfully deleted.
        '401':
          description: This status shows either user didn't provide any user credential or user doesn't have Administrator or manage package and plans access privilege to access this API.
        '404':
          description: The specified package is not available. Either it is not valid or it might have been deleted already.
        '500':
          description: Error occurred while deleting the plan
          content:
            application/json:
              example: "{\n    \"errorDetails\": \" Plan 'Plan1' linked with Package(s) 'Package1,Package2'.\"\n}"
      security:
      - Basic: []
      tags:
      - Plans
      summary: Delete plan by id
      x-summary-source: derived
    servers:
    - url: http://localhost:5555/{gateway}
components:
  schemas:
    PlanGetResponse:
      type: object
      properties:
        planResponse:
          $ref: '#/components/schemas/Plan'
    Cost:
      type: object
      properties:
        value:
          type: string
          description: Cost of the plan.
      description: Cost details of a plan. It will be used for user information only and wont be enforced.
    PlanGetAllResponse:
      type: object
      properties:
        planResponse:
          type: array
          items:
            $ref: '#/components/schemas/Plan'
    PlanResponseContainer:
      type: object
      properties:
        planResponse:
          $ref: '#/components/schemas/PackagePlanResponse'
    Quota:
      type: object
      properties:
        enforcementPolicy:
          type: string
          description: Policy id holding the information of throttling and monitor policy action to enforce quota limit.
    Plan:
      type: object
      required:
      - name
      properties:
        License:
          type: string
          description: License of the plan
        Terms:
          type: string
          description: Terms of the plan usage as descriptive string
        cost:
          $ref: '#/components/schemas/Cost'
        creationDate:
          type: integer
          format: int64
          description: The creation date of plan in milli seconds
          readOnly: true
        customFields:
          type: object
          description: This can be used to store additional information needed for a plan
          additionalProperties:
            type: object
        description:
          type: string
          description: Description of the plan
        icon:
          type: string
          description: An inline base64 encoded string representation of icon to be used in plan
        id:
          type: string
          description: Id of the plan. It will be autogenerated for the plan on creation
          readOnly: true
        modifiedDate:
          type: integer
          format: int64
          description: The modified date of plan in milli seconds. This will be updated for plan on update.
          readOnly: true
        name:
          type: string
          description: Name of the plan
        policies:
          type: array
          description: Policy that holds the rate limit throttling policy actions. It will created automatically. It can contain zero or more throttling policy action as rate limit policy
          items:
            type: string
        protected:
          type: boolean
        quota:
          $ref: '#/components/schemas/Quota'
        tags:
          type: array
          description: List of tags of the plan
          items:
            type: string
        version:
          type: string
          description: Version of the plan
    PackagePlanResponse:
      type: object
      properties:
        description:
          type: string
          description: Description of action performed on package
        id:
          type: string
          description: Id of the package
        status:
          type: string
          description: Status of action performed on package
          enum:
          - CREATED
          - SUCCESS
          - ERROR
          - UNEXPECTED_ERROR
          - NOT_FOUND
          - NO_CONTENT
          - LOCKED
          - UPDATED
          - ACTIVATED
          - DEACTIVATED
          - PUBLISHED
          - UNPUBLISHED
  securitySchemes:
    Basic:
      type: http
      scheme: basic
      description: API Gateway Administrator
x-refined-from:
- apigateway-MonetizationSwagger.json
- web-methods-api-gateway-monetization-openapi.yml